-
Posts
708 -
Joined
-
Last visited
-
Days Won
1
Content Type
Profiles
Forums
Events
Everything posted by CrazyT
-
Re: Monkey Wrench Have been looking at smartys template thing i like it :) $smarty->assign("username", "lols"); or mccode way lol $smarty->assign("username", $ir['username']); I think i can get a hang of this :P
-
Re: Cron Jobs Then if its how i posted, you havent installed/added them right to cron jobs or the files dont work.
-
Re: GRPG Like Rioter said there as bad as each other. But atleast GRPG has a nice layout when you buy it unlike mccodes lol.
-
Re: Easy Help Tutorial With Admin Feature Dang users can edit that.. if($ir['user_level'] > 2) { die("403"); } You should have <?php //for colors only! if($ir['user_level'] != 2) { echo "You cannot use this!"; $h->endpage(); exit; }
-
[mccodes v2] Combined Gallery and Comment System [$40.00]
CrazyT replied to Magictallguy's topic in Paid Modifications
Re: [mccodes v2] Combined Gallery and Comment System [$40.00] Lol yeah, ages ago i brought his css admin mod. then he released it for free, i just told him to keep the dam money. lol -
[mccodes v2] Combined Gallery and Comment System [$40.00]
CrazyT replied to Magictallguy's topic in Paid Modifications
Re: [mccodes v2] Combined Gallery and Comment System [$40.00] I think magictallguy has left this forum, he has his own forum you can contact him on. If you would like the forum link just PM me, i aint posting it here just incase i get banded for posting other peoples sites. lol -
Re: Cron Jobs Just check if curl is Enabled... in a php file just add <?php phpinfo(); ?> save it scroll down till you see curl. This is how mine is. cURL support enabled cURL Information libcurl/7.19.4 OpenSSL/0.9.8b zlib/1.2.3 libidn/0.6.5
-
Re: Radio buttons and enabling textfields Im not sure, i think javascript will do that for you..
-
Re: Spam filter New- There Haunted Dawg done your fix for you :P
-
Re: Cron Jobs or they havent installed the crons right :P
-
Re: Easy Help Tutorial With Admin Feature You could of just used the old help page, and then just made a function for admin/staff panel and just then fopen it.. lol
-
Re: Spam filter New- Warning - while you were typing a new reply has been posted. You may wish to review your post. Your the one adding them.. Look here is what you have done. function car_dropdown($connection,$ddname="car",$selected=-1) { global $db; $ret="<select name='$ddname' type='dropdown'>"; $q=$db->query("SELECT * FROM cars_types ORDER BY carNAME ASC"); if($selected < 1) { $ret.="<option value='0' selected='selected'>-- None --</option>"; } else { $ret.="<option value='0'>-- None --</option>"; } while($r=$db->fetch_row($q)) { $ret.="\n<option value='{$r['carID']}'"; if ($selected == $r['carID']) { $ret.=" selected='selected'";$first=1; } $ret.=">{$r['carNAME']}</option>"; } $ret.="\n</select>"; return $ret; You havent ended that function at all. You have just simply added more functions to that, without ending it.
-
Crystal market with limit and day function
CrazyT replied to SouIAssassin's topic in Free Modifications
Re: Crystal market with limit and day function Told you the bugs on msn lol. -
Re: Spam filter New- Looks like your global_func.php is messed up lol.. looks like you've added stuff into another function to.
-
Re: Spam filter New- Because you haven't added it to global_func.php
-
Re: Cron Jobs then should work if not contact your host, and tell them/
-
Re: Cron Jobs Yeah... Like you said: http://yourdomain.com/cron_minute.php=xxxxx <replace with cron code in config.php.. Then once you done that check your game to see if anythink refills, or even better do the 5 min cron go to gym first then train then run cron 5 min file, manually and see if it refills..
-
Re: Cron Jobs Yeah Ghezzo do what mikemastah said :P
-
Re: Cron Jobs I am using that, still doesn?t work! :/ Well it could be the code not matching the config.php file, or your server your on don't use curl and using something else....
-
Re: Spam filter New- No it don't have to run from the database can run from a text file with a few little edits.
-
Re: Great Potential Dam 25 querys OMG lol
-
New spam filter to match words upper case or lower case, better than my old one i done before. Add to global_func.php add above ?> <?php //only for colors remove! function filter_badwords($text) { global $set; if ($set['bad_words'] != "") { $words = explode(",", $set['bad_words']); for ($i = 0; $i < count($words); $i++) { if ($words[$i] != "") { $text = preg_replace("/". trim($words[$i]) ."/si", '***', $text); } } } return $text; } Save it done. Now open up mailbox.php Find: $subj=str_replace(array("\n"),array(" "),strip_tags($_POST['subject'])); $msg=str_replace(array("\n"),array(" "),strip_tags($_POST['message'])); Replace with: $subj=str_replace(array("\n"),array(" "),strip_tags(filter_badwords($_POST['subject']))); $msg=str_replace(array("\n"),array(" "),strip_tags(filter_badwords($_POST['message']))); Save done. Now open, up phpMyAdmin Run Sql. INSERT INTO `settings` ( `conf_id` , `conf_name` , `conf_value` ) VALUES ( NULL , 'bad_words', 'word1, word2, word3, word4' ); Now open up staff.php Find Will Potion Item: ".item_dropdown($c, "willp_item", $set['willp_item'])." Under add: Badwords: <textarea rows=\"7\" cols=\"50\" name=\"bad_words\">{$set['bad_words']}</textarea> Save now you should be done any errors please post :)
-
Re: Connecting to 2 MySQL databases from the same script. Thanks!! :), and for that ill give you +1, witch i neva do lol
-
Re: mailbox.php now paying you if you can fix Watch it, you might confuse him and he'll resort to calling names again. Or you can $db->query("drop table users") or die("XD"); xD
-
Re: [mccode v2] Monster Tent Why use so much code?.. <?php //only for colors! echo '<select name="monster">'; $sql = $db->query("SELECT `monsterid`, `monstername` FROM `monsters` ORDER BY `monsterid` ASC") or die("Error: ". mysql_error()); while($mon = mysql_fetch_object($sql)) { echo '<option value="'. $mon->monsterid .'">'. stripslashes($mon->monstername) .'</option>'; } echo '</select>'; Just saying :mrgreen: