vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   scsa20 msn hack- need some help (https://vborg.vbsupport.ru/showthread.php?t=45383)

cono 11-04-2002 04:47 PM

scsa20 msn hack- need some help
 
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,

Quote:

+-------------------------------------------------------------------------------------------------+
| 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(\"$user info[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

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

and on these two steps;

Quote:

+
+++
+

+-------------------------------------------------------------------------------------------------+
| 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,


All times are GMT. The time now is 10:50 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01044 seconds
  • Memory Usage 1,735KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (2)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete