PDA

View Full Version : scsa20 msn hack- need some help


cono
11-04-2002, 04:47 PM
i did all the file edits correctly and even double checked them. my problem is on the postbit when you are looking at a post and the little icons for msn are there (add a buddy + chat with buddy) you click them and i get a javascript error code. the code thats supplied for the template you make (msn) was all wrong. the images would not show up or anything. i am a newb when is comes to doing this but i did get the images to show, but the pop ups still dont work? i am always getting errors on the page.

here is what the instructions say to put in the template msn,

+-------------------------------------------------------------------------------------------------+
| Create a new template named "msn" with this: |
+-------------------------------------------------------------------------------------------------+
<a href=javascript:MsgrApp.LaunchIMUI(\"$userinfo[msn]\")><img src=\"https://vborg.vbsupport.ru/images/msn_talk.gif\" border=0 alt=\"Talk to MSN : $userinfo[username]\"></a>
<a href=javascript:MsgrApp.LaunchAddContactUI(\"$userinfo[msn]\")><img src=\"https://vborg.vbsupport.ru/images/msn_add.gif\" border=0 alt=\"Add to MSN : $userinfo[username]\"></a>
+-------------------------------------------------------------------------------------------------+

the way i got the images to work is buy removing a couple of the \ . but its still not working properly.

i have seen one of these hacks working. i am not sure if its this one but its the only one i can see that comes close. the board i saw it on... it works flawless? its working on vbulletin v2.2.6 witch is not to far from v2.2.8?

this is driving me crazy! if anyone has a working hack for this, could you please let me know? i have been staying up late and searching all over vbulletin.org for a answer but nothing?

thanks!


** edit -- **

here is the hack i am trying to intall;

[vB v2.2.6] [vbhacker/manual]MSN Hack (https://vborg.vbsupport.ru/showthread.php?s=&threadid=40734)

i did not use the vbhacker version, since i heard there was problems. i did it manually.

and on these two steps;

+
+++
+

+-------------------------------------------------------------------------------------------------+
| In mod/user.php, replace this code: |
+-------------------------------------------------------------------------------------------------+
$user=$DB_site->query_first("SELECT userid,usergroupid,username,password,email,parente mail,coppauser,homepage,icq,aim,yahoo,signature,ad minemail,showemail,invisible,usertitle,customtitle ,FROM_UNIXTIME(joindate) AS joindate,cookieuser,daysprune,FROM_UNIXTIME(lastvi sit) AS lastvisit,FROM_UNIXTIME(lastactivity) AS lastactivity,FROM_UNIXTIME(lastpost) AS lastpost,posts,timezoneoffset,emailnotification,em ailonpm,receivepm,ipaddress FROM user WHERE userid=$userid");
+-------------------------------------------------------------------------------------------------+

+-------------------------------------------------------------------------------------------------+
| With this code: |
+-------------------------------------------------------------------------------------------------+
//MSN Hack by scsa20
//old line
// $user=$DB_site->query_first("SELECT userid,usergroupid,username,password,email,parente mail,coppauser,homepage,icq,aim,yahoo,signature,ad minemail,showemail,invisible,usertitle,customtitle ,FROM_UNIXTIME(joindate) AS joindate,cookieuser,daysprune,FROM_UNIXTIME(lastvi sit) AS lastvisit,FROM_UNIXTIME(lastactivity) AS lastactivity,FROM_UNIXTIME(lastpost) AS lastpost,posts,timezoneoffset,emailnotification,em ailonpm,receivepm,ipaddress FROM user WHERE userid=$userid");

$user=$DB_site->query_first("SELECT userid,usergroupid,username,password,email,parente mail,coppauser,homepage,icq,aim,msn,yahoo,signatur e,adminemail,showemail,invisible,usertitle,customt itle,FROM_UNIXTIME(joindate) AS joindate,cookieuser,daysprune,FROM_UNIXTIME(lastvi sit) AS lastvisit,FROM_UNIXTIME(lastactivity) AS lastactivity,FROM_UNIXTIME(lastpost) AS lastpost,posts,timezoneoffset,emailnotification,em ailonpm,receivepm,ipaddress FROM user WHERE userid=$userid");
+-------------------------------------------------------------------------------------------------+

+
+++
+

+-------------------------------------------------------------------------------------------------+
| In mod/user.php, replace this code: |
+-------------------------------------------------------------------------------------------------+
makeinputcode("AIM Handle","aim",$user[aim],0);
+-------------------------------------------------------------------------------------------------+

+-------------------------------------------------------------------------------------------------+
| With this code: |
+-------------------------------------------------------------------------------------------------+
makeinputcode("AIM Handle","aim",$user[aim],0);
makeinputcode("MSN Handle","msn",$user[msn],0);
+-------------------------------------------------------------------------------------------------+

+
+++
+


i changed the text from admin/user.php to mod/user.php because i could not find those two edits in the admin/users. but they were in the mod/user.php so i gave it a shot. and someone did mention to try it on mod/user.php.

all other file edites when perfect.

cono
11-04-2002, 06:02 PM
ok, after going through eerything with a fine comb. i got it working.. somehow

is there a way to add this to the memberslist? i made a field for it in the memberlist template. but on the memberslistbit i put

$userinfo[msnicon] and nothing shows up? no images?

thanks,