
lucky3809
-
Posts
1,115 -
Joined
-
Last visited
-
Days Won
3
Content Type
Profiles
Forums
Events
Posts posted by lucky3809
-
-
I like the new forum look, however noticed in all the php code area bbcode brackets [ ] are shown instead of the php < >
-
it's not bbcodes it because of the new forum why its showing bbcode tags..
-
well this part ...
$db->query("UPDATE users SET new_mail=new_mail+1 WHERE userid=$userid");
should already be in the mailbox.php it's not really needed in the app deny function...
It should update the user that is being denied if it's not then $userid should be changed to '{$_GET['user']}'
-
Font need to be changed or maybe thicker and different color maybe have it outlined in another color, also need to be brought forward in front of the blood,the blood is ok but should darken it...As for the background change it to another color besides white, maybe an earth tone color...
But not bad .
-
Curt is correct :-)
function app_deny() { global $db,$ir,$c,$h,$userid; $_GET['ID'] = abs((int) $_GET['ID']); mysql_query("DELETE FROM staffapps WHERE appID={$_GET['ID']}",$c); mysql_query("INSERT INTO mail VALUES('', 0, 'System', '{$_GET['user']}', unix_timestamp(),'Your application' ,'Our staff has reviewed your staff application and unfortunately we feel you are not qualified to be a staff member. Feel free to fill in another application.')",$c); $db->query("UPDATE users SET new_mail=new_mail+1 WHERE userid=$userid"); print "App Denied [url='staff.php?action=appview']> Back[/url]"; }
-
if($r[ddays] > 0) echo "[*]$r[ddays] days Donator Status: Red name + cross next to your name.";
$r[ddays] after echo should be {$r['ddays']}
all the database info is wrong missing brackets and ' around them...
-
w3school has all the info you need to make a game with mccodes, and this forum is a good help too.
You can always ask question on here, and many will give an answer and help =)
just to name a few...
php.net
w3schools.com
phpbuddy.com
learnphp.org
-
No problem it's really simple to add lol.
Just add this anywhere on the gang.php or whatever page you want it to display on that has gangdata..
if($gangdata['waroption']=="Off"){
echo ' This gang has war option off.';
}
else
{
echo 'This gang has war option on.';
}
-
look in your switch area make sure you have all the functions and look at the link in which you clicked and make sure it is calling the correct path to the action in which it says...
Post your page and maybe someone can help hard to know when you havent posted lol
-
The files are not the problem, the problem is the one who uploaded them to the server,didnt upload them correctly, and or is using invalid mccodes that aren't a legal copy... just saying...
-
If you have done that then something in your config file is wrong, maybe at setup you never provided the right database info, which also would make you get that error too, check your config file and see what info you entered for your database, and make sure it is correct, because last thing was it was trying to connect to your database then failed.
-
similar to Pog1's
-
You have to make a "new folder" call it class,then if you have a legit copy of mccodes you then upload the files class_db_mysql.php, class_db_mysqli.php to it...
you apparently havent done that, why your getting the error there is no path class/ in your directory.
-
you need to add your bbcode stuff to that line like...(example only)...
$r['mail_text']=$bbcode->Parse(htmlentities($r['mail_text'], ENT_QUOTES));
if your just copying and pasting
$r['mail_text']=htmlentities($r['mail_text'], ENT_QUOTES);
your bbcode isnt going to work.
-
$20 is a bit too cheap for a coder expect to pay around $75- and up... Unless you want an inexperienced coder then $20 isn't a bad price lol...
-
I tested this script and it worked without the bbcode stuff however the only thing that didnt work was the notification that makes the mailbox link show (1)
-
Yes you got the correct idea about htmlspecialchars.
they both secure from xss attacks and html injections.
here is 2 sites that may help you understand them both!
http://www.php.net/manual/en/function.htmlspecialchars.php
http://sqa.fyicenter.com/Online_Test_Tools/Test_htmlspecialchars_PHP_Function.php
-
they arent the same but very similar
htmlentities — Convert all applicable characters to HTML entities
htmlspecialchars — Convert special characters to HTML entities
there is no need to use both, if you want everything html not to go through a post then you would use htmlentites.
If you only want special characters not to go through then you use the other one htmlespecialchars... using both is useless imo. lol.
and yes you have the correct way of placing the function!
-
That is a cute mod I love it thanks for putting your time into it, something different!
-
css is better imo.
all you would have need to add was class='blah' to the bar img tag or put the class in a
tag...
-
Yes you can remove the send and other links however if you are not allowing your users to send items then you would need to remove the send php or else they can insert the item id and page name in url and send items and whatever.... if you do not want to remove the page then type in an if statement for only staff or users you wish to use the send page and option.
As for the effect Value is as you stated 10 would increase or decrease a players health, percent is 10% of the effect.
-
No this mod is not secured.
-
took this from the viewuser profile count thread
anyways haunted dawg had a code that only counted the user only and it didnt count multiple times only once... here is the profile code just to get an idea, the viewcount was added to users table.
if($_GET['u'] != $ir['userid'])
{
mysql_query("UPDATE users SET pviews=pvies+1 WHERE userid='{$r['userid']}'") or die(mysql_error());
}
the thread was this one
-
Dont know if this will work but try it anyways
find...
("INSERT INTO referals VALUES('', {$_POST['ref']}, $i, unix_timestamp(),'{$r['lastip']}','$IP')");
change to ...
("INSERT INTO referals VALUES('', '{$_POST['ref']}', '$i', unix_timestamp(),'{$r['lastip']}','$IP')");
Help NEEDED! *Auction file ...
in Modification Support
Posted · Edited by lucky3809
[/mysql] is showing because the new forum, I already had directed the error...It is in all php bccode areas and other bccode area such as [mysql][/mysql].