DragonPrime - LoGD Resource Community
Welcome Guest
  • Good morning, Guest.
    Please log in, or register.
  • April 26, 2018, 09:57:47 AM
Home Forums News Downloads Login Register Advanced Search
* *
DragonPrime Menu
Login
 
 
Resource Pages
Search

  Show Posts
Pages: 1 ... 15 16 [17] 18 19 ... 26
241  Coding Support / Coding Support Desk / Re: Serious Call Stack Issues With Forums on: October 23, 2017, 11:15:59 PM
Screenshots of the errors?

hummm, not sure I can post screenshots but I could reproduce the call stacks.

this is lonny's module call stack:

CREATE TABLE logdforum (`id` int(11) NOT NULL auto_increment,`postdate` datetime NOT NULL default '0000-00-00 00:00:00',`newpostdate` datetime NOT NULL default '0000-00-00 00:00:00',`author` text NOT NULL,`parent` int(11) NOT NULL default '0',`replies` int(11) NOT NULL default '0',`userid` int(11) NOT NULL default '0',`title` varchar(100) NOT NULL default '',`category` int(11) NOT NULL default '0',`content` text NOT NULL,PRIMARY KEY  (`id`)) TYPE=MyISAM;
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'TYPE=MyISAM' at line 1
Call Stack:
1: db_query("CREATE TABLE logdforum (`...") called from /home/savmor/public_html/modules/forum.php on line 56
2: forum_install() called from /home/savmor/public_html/lib/modules.php on line 111
3: injectmodule("forum", true) called from /home/savmor/public_html/modules.php on line 70




here is Mighty E's blog call stack...
CREATE TABLE mod_mightyblogs (
blogid int(11) unsigned NOT NULL auto_increment,
author int(11) unsigned NOT NULL default '1' ,
date datetime NOT NULL ,
subject varchar(255) NOT NULL ,
body text NOT NULL ,
hits int(11) unsigned NOT NULL default '0' ,
PRIMARY KEY (blogid),
KEY date (date),
KEY author (author)) Type=INNODB
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'Type=INNODB' at line 10
Call Stack:
1: db_query("CREATE TABLE mod_mightybl...") called from /home/savmor/public_html/lib/tabledescriptor.php on line 24
2: synctable("mod_mightyblogs", Array(
"blogid"=>Array(
"name"=>"blogid", "type"=>"int(11) unsigned", "extra"=>"auto_increment"
), "author"=>Array(
"name"=>"author", "type"=>"int(11) unsigned", "default"=>"1"
), "date"=>Array(
"name"=>"date", "type"=>"datetime"
), "subject"=>Array(
"name"=>"subject", "type"=>"varchar(255)"
), "body"=>Array(
"name"=>"body", "type"=>"text"
), "hits"=>Array(
"name"=>"hits", "type"=>"int(11) unsigned", "default"=>"0"
), "key-PRIMARY"=>Array(
"name"=>"PRIMARY", "type"=>"primary key", "unique"=>"1", "columns"=>"blogid"
), "index-date"=>Array(
"name"=>"date", "type"=>"index", "columns"=>"date"
), "index-author"=>Array(
"name"=>"author", "type"=>"index", "columns"=>"author"
)
), true) called from /home/savmor/public_html/modules/mightyblogs.php on line 49
3: mightyblogs_install() called from /home/savmor/public_html/lib/modules.php on line 1327
4: install_module("mightyblogs") called from /home/savmor/public_html/modules.php on line 42
242  Coding Support / Coding Support Desk / Serious Call Stack Issues With Forums on: October 23, 2017, 01:50:33 PM
Lonny's Forum thing and Mighty E's blogs both cause a call stack on my system.

Can't even uninstall them now but at least they are inactive.

What the heaven is the problem with these things and is there an actual module for a Player Forum somewhere??  One that actually works??
243  Coding Support / Coding Support Desk / Pets In The Gardens on: October 23, 2017, 12:27:04 PM
I have forever been trying, without success...to figure out WHERE in the coding or settings, that you end up with the addnews about someone's pet devouring a fairy in the Gardens.

I find it annoying to have four or five news items like that added and I want to stop that news from adding.

But I cannot find where it happens.

It is NOT in the hook to the gardens from petshop.php and it is not anywhere in gardens.php either.

So where is it coming from?

I also don't see it in the settings in the petshop module, or in the individual pets settings.

Can someone point me to the right place so I can take this out?

Thanks
244  Coding Support / Coding Support Desk / Re: How Do I Remove Color-Coding Notations From Page Headers? on: October 13, 2017, 10:43:50 PM
I am pretty sure I never messed with the sanitize function, I would have had no reason to.

Just curious...do you document all your code and especially your changes to the core code in the files?  If not, strongly recommended...

Well, my site goes back quite some time.  I do not think, at the beginning, I was doing that.

I do now.

But I am pretty sure I never had any reason to muck around with the sanitize function.

I should look, what file is this?  I do have archived the original core files I could always try uploading a fresh copy and see.

Of course I would save my own so I could do a side by side compare.
245  Coding Support / Coding Support Desk / Re: How Do I Remove Color-Coding Notations From Page Headers? on: October 13, 2017, 01:45:11 PM
I do not believe that was in any way edited or why I would.

I will look for another declaration of page_header then.

Just looked, I do not see another declaration.  I am stumped.

Do you have to somewhere require_once /lib/sanitize.php or something?

That is the only thing I can think of...

You shouldn't have to. There should have been a fatal error because of the undeclared function if you didn't require the file. You should probably try that out before posting about it o.O.

That was what I thought.
And I do not get a fatal error.

I know I got a number of fatal errors with the Item system for not requiring /lib/itemhandler.php - but those all got fixed long ago.

So...so come this is not working for me?  I still get the stupid codes...

I am pretty sure I never messed with the sanitize function, I would have had no reason to.

Any help here?
246  Coding Support / Coding Support Desk / Re: How Do I Remove Color-Coding Notations From Page Headers? on: October 12, 2017, 05:25:56 PM
I do not believe that was in any way edited or why I would.

I will look for another declaration of page_header then.

Just looked, I do not see another declaration.  I am stumped.

Do you have to somewhere require_once /lib/sanitize.php or something?

That is the only thing I can think of...
247  Coding Support / Coding Support Desk / Re: How Do I Remove Color-Coding Notations From Page Headers? on: October 10, 2017, 02:25:04 PM
Where the dwellings code uses the page_header function when you enter a dwelling, use the sanitize function first on the dwelling name, then pass that into page_header.

Humm...not sure I get it.  It LOOKS like the sanitize is already being used, nevertheless, I still get unwanted stuff in my page headers.

Here is the code snip for case_enter on dwellins:
Code:
<?php
if (
$session['user']['location'] != get_module_setting("logoutlocation"))
set_module_pref("location_saver"$session['user']['location']);
$sql "SELECT name,description,ownerid FROM ".db_prefix("dwellings")." WHERE dwid=$dwid";
$result db_query($sql);
$row db_fetch_assoc($result); 
if($row['name'] == ""){
$name translate_inline("Unnamed");
}else{
$name $row['name'];
}
page_header("%s",sanitize($name));

Is that not supposed to sanitize the name and get the bold and color codes out of the page header?

Or am I missing something here?
248  Coding Support / Coding Support Desk / Re: How Do I Remove Color-Coding Notations From Page Headers? on: October 10, 2017, 05:02:41 AM
Where the dwellings code uses the page_header function when you enter a dwelling, use the sanitize function first on the dwelling name, then pass that into page_header.

Thanks.  I wonder how come dwellings was not done that way to begin with. Oh well.  Should solve my problem.
249  Coding Support / Coding Support Desk / How Do I Remove Color-Coding Notations From Page Headers? on: October 09, 2017, 03:00:16 PM
Even if it is a two-step process, no biggie.

But in my Dwellings, when anyone uses bolds or color in their Dwelling name...then the page header for their dwelling us the name f their Dwelling, as should be...but the stupid color codes are there so that I get "` b Joe's Dwellling ` b" etc, when all I WANT there is "Joe's Dwelling"

So...how do I strip those color codes out so that the page header will not include them, since they do not parse in page headers?
250  Coding Support / Coding Support Desk / Re: Idea For An Item Cabinet on: October 06, 2017, 05:10:13 PM
I actually made all the items I wanted - by modifying the code of houses.php - but it is all hard-coded specific to my site and my items.

I would release this to anyone who may want it with the note that you can't just plug and play this, you would have to alter the hard coding for your own site.

It works on 1.1.0 and I see no reason it should not work on any 1.x.x version.
251  Coding Support / Coding Support Desk / Re: get_module_objpref and how to use it on: October 06, 2017, 05:07:30 PM
Because I do not look at how old a thread is.  I'm not sure why that matters so much.

It was a subject I was interested in, okay?

Maybe the better question is why you and some others must absolutely find fault with everyone else. 

I have n idea why some people here are so absoultely terrible to other people?  Why the cruelty?

Because it's a thread that is a decade old. The code has advanced great amounts since then, so further comments to it are probably irrelevant due to deprecated code, especially when they didn't actually contribute anything.

If you had an idea on it, you should have started a new thread. It's not cruelty (wow, drama, much), it's efficiency.

Didn't your mothers ever teach you that if you don't have something nice to say, DON'T SAY ANYTHING AT ALL??

You COULD have just let it go if efficiency is what you were after, so I call B.S.  - you were cruel and intended to be so.
252  Coding Support / Coding Support Desk / Re: get_module_objpref and how to use it on: October 06, 2017, 08:39:31 AM
Why do you dig up a 10 year old thread without even asking a question?  Huh

Because I do not look at how old a thread is.  I'm not sure why that matters so much.

It was a subject I was interested in, okay?

Maybe the better question is why you and some others must absolutely find fault with everyone else. 

I have n idea why some people here are so absoultely terrible to other people?  Why the cruelty?
253  Coding Support / Coding Support Desk / Re: get_module_objpref and how to use it on: October 03, 2017, 06:50:25 AM
I run 1.1.0 - the way I got around thee being no increment fuction was to increment a different variable, and then use the set function to set the value to the variable value...and just increment the variable.

It's a three-step process istead of a one-step process but it works.

I know, nobody but me uses 1.1.0 anymore right...because older core is so terrible, right?

BUT if you are using older core...or you don't really understand how to use the increment...or, if you are like me and you LIKE more steps so that you can SEE each step...this is how it can be done.

I know I am a terrible and sloppy coder, and not too confident of my abilities, so I tend, myself, to like the extra steps so that I can SEE each function as it happens.  I am just not all that confident of getting it right when I skip steps or combine steps.  Just an idiosyncracy I have.

SO...FWIW, there is a workaround for the not having an increment function, if anyone is interested.
254  Coding Support / Coding Support Desk / Re: Is It Possible To.... on: October 03, 2017, 06:44:15 AM
Hummm, I do not see anywhere in the Creature Editor I can do this.

I should mention, at the moment, I am running 1.1.0 - is that matter?  Is this something that can only be done on higher versions?

Again, this was a curiousity question.


I now have a test server...and I am looking at the possibility of an upgrade, but ONLY if it can be done without breaking anything I already have in place.
255  Coding Support / Coding Support Desk / Re: Is It Possible To.... on: September 28, 2017, 01:00:47 AM
Cool.  Have to try it.
Pages: 1 ... 15 16 [17] 18 19 ... 26

*
DragonPrime Notices
Welcome to DragonPrime - The LoGD Resource Community!

Support Us
No funds raised yet this year
Your help is greatly appreciated!
Recent Topics
DragonPrime LoGD
Who's Online
41 Guests, 0 Users
Home Forums News Downloads Login Register Advanced Search