PDA

View Full Version : integrating "away message in profile hack" with "country flag hack"


red_baron2000
03-11-2003, 09:33 PM
i was trying to install the flag 2.0 hack , and everything went good until i'd tried to modify the member.php file .
since i have the away hack already installed there i couldnt integrate between the two.
here the original line:

// Leave Away Message in Profile (v1.2a)
$DB_site->query ("UPDATE user SET birthday='".addslashes($birthday)."',signature='".addslashes($signature)."',customtitle='".intval($customtitle)."',usertitle='".addslashes($customtext)."',email='".addslashes(htmlspecialchars($email))."',parentemail='".addslashes(htmlspecialchars($parentemail))."',coppauser='$coppauser',homepage='".addslashes(htmlspecialchars($homepage))."',icq='".addslashes(htmlspecialchars($icq))."',aim='".addslashes(htmlspecialchars($aim))."',yahoo='".addslashes(htmlspecialchars($yahoo))."',usergroupid='$bbuserinfo[usergroupid]' $awaysql WHERE userid='$bbuserinfo[userid]'");
// Leave Away Message in Profile (v1.2a)

and the country flag line:
$DB_site->query("UPDATE user SET birthday='".addslashes($birthday)."',signature='".addslashes($signature)."',customtitle='".intval($customtitle)."',usertitle='".addslashes($customtext)."',email='".addslashes(htmlspecialchars($email))."',parentemail='".addslashes(htmlspecialchars($parentemail))."',coppauser='$coppauser',homepage='".addslashes(htmlspecialchars($homepage))."',icq='".addslashes(htmlspecialchars($icq))."',aim='".addslashes(htmlspecialchars($aim))."',yahoo='".addslashes(htmlspecialchars($yahoo))."',usergroupid='$bbuserinfo[usergroupid]',country='".addslashes($country)."' WHERE userid='$bbuserinfo[userid]'");
// Country Hack End

please help !

joeboo
03-12-2003, 02:52 AM
Very simple. Just use this code:

// Leave Away Message in Profile (v1.2a) & Country Hack
$DB_site->query ("UPDATE user SET birthday='".addslashes($birthday)."',signature='".addslashes($signature)."',customtitle='".intval($customtitle)."',usertitle='".addslashes($customtext)."',email='".addslashes(htmlspecialchars($email))."',parentemail='".addslashes(htmlspecialchars($parentemail))."',coppauser='$coppauser',homepage='".addslashes(htmlspecialchars($homepage))."',icq='".addslashes(htmlspecialchars($icq))."',aim='".addslashes(htmlspecialchars($aim))."',yahoo='".addslashes(htmlspecialchars($yahoo))."',usergroupid='$bbuserinfo[usergroupid]', country='".addslashes($country)."' $awaysql WHERE userid='$bbuserinfo[userid]'");
// Leave Away Message in Profile (v1.2a) & Country Hack


Hopefully it helped :)

red_baron2000
03-12-2003, 04:26 AM
thx alot man !!!!
you'r a life saver !!!!