![]() |
Help me please?
Here is the original Line:
$DB_site->query("UPDATE user SET birthday='$birthday',options='$options',usergroupi d='$usergroupid',username='".a ddslashes(htmlspecialchars($ausername))."'$pwdincl ude,email='".addslashes(htmlsp ecialchars($email))."',styleid='$userstyleid',pare ntemail='".addslashes(htmlspec ialchars($parentemail))."',coppauser=$coppauser,ho mepage='".addslashes(htmlspeci alchars($homepage))."',icq='".addslashes(htmlspeci alchars($icq))."',aim='".addsl ashes(htmlspecialchars($aim))."',yahoo='".addslash es(htmlspecialchars($yahoo))." ',signature='".addslashes($signature)."',adminemai l=$adminemail,showemail=$showe mail,invisible=$invisible,usertitle='".addslashes( $usertitle)."',customtitle=$cu stomtitle,joindate=$joindate,cookieuser=$cookieuse r,nosessionhash=$nosessionhash ,daysprune='$daysprune',lastvisit=$lastvisit,lasta ctivity=$lastactivity,lastpost =$lastpost,posts='$posts',timezoneoffset='$timezon eoffset',emailnotification=$em ailnotification,receivepm='$receivepm',emailonpm=' $emailonpm',ipaddress='".addsl ashes($aipaddress)."',donator='$donation',showdona tion='$showdonation',pmpopup=I F(pmpopup=2 AND $pmpopup=1,pmpopup,'$pmpopup') WHERE userid=$userid"); Here is the line that I am suppose to replace it with: $DB_site->query("UPDATE user SET birthday='$birthday',options='$options',usergroupi d='$usergroupid',username='".a ddslashes(htmlspecialchars($ausername))."'$pwdincl ude,email='".addslashes(htmlsp ecialchars($email))."',styleid='$userstyleid',pare ntemail='".addslashes(htmlspec ialchars($parentemail))."',coppauser=$coppauser,ho mepage='".addslashes(htmlspeci alchars($homepage))."',icq='".addslashes(htmlspeci alchars($icq))."',aim='".addsl ashes(htmlspecialchars($aim))."',yahoo='".addslash es(htmlspecialchars($yahoo))." ',signature='".addslashes($signature)."',adminemai l=$adminemail,showemail=$showe mail,invisible=$invisible,usertitle='".addslashes( $usertitle)."',customtitle=$cu stomtitle,joindate=$joindate,cookieuser=$cookieuse r,nosessionhash=$nosessionhash ,daysprune='$daysprune',lastvisit=$lastvisit,lasta ctivity=$lastactivity,lastpost =$lastpost,posts='$posts',timezoneoffset='$timezon eoffset',emailnotification=$em ailnotification,receivepm='$receivepm',emailonpm=' $emailonpm',ipaddress='".addsl ashes($aipaddress)."',award='$hasaward',pmpopup=IF (pmpopup=2 AND $pmpopup=1,pmpopup,'$pmpopup') WHERE userid=$userid"); Basically it has to do with the awards part but I have other edits in the first line I need to keep to have certain things running correctly on the forums. anyway I can add the award part without getting an error? Any help would be great. |
No, because u have also in your original line: donator and showdonation. To include award in your original line u come to this code:
PHP Code:
|
So this will work with my donations as well? No errors?
|
I added the code and it still doesnt show the donations. : (
|
Still doesnt work? So it did not work before the sql query change?
I only added ,award='$hasaward', to your sql query. This sql query change will update the row "award" in the database aswell. |
:(
|
Ok it worked. Can you tell me how to add future things to those lines? So that I may add more hacks?
|
In an update tag it mostly adds a new variable on the end like the awards hack did. The awards hack added almost on the end (before ,pmpopup) awards='$hasaward', but u also need to add , between the variables..
You have currently an end tag of the update like this: ,award='$hasaward',pmpopup=IF(pmpopup=2 AND $pmpopup=1,pmpopup,'$pmpopup') WHERE userid=$userid"); when you install a new hack for example: karma hack. Then you must first look whats changed in the update tag, the instructions will always say that u need 2 change that update tag to that update tag... now u compare those 2 and look whats changed, then when u know the changing u add it on the end after awards='$hasawards'... so lets say the new variable is: karma='$karma' then you get an update tag like this: ,award='$hasaward',karma='$karma',pmpopup=IF(pmpop up=2 AND $pmpopup=1,pmpopup,'$pmpopup') WHERE userid=$userid"); Do i make any sense? ;) |
Is that the code for the karma hack? Cause I need to get it working again hehe
|
hehe, nono.. thats just an example :)
|
All times are GMT. The time now is 01:41 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|