vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=155)
-   -   Instant Messaging Status Icon (https://vborg.vbsupport.ru/showthread.php?t=110926)

LeaderGL 03-20-2006 10:00 PM

Instant Messaging Status Icon
 
Hi,
i'm an Italian boy and this is my first hack on vBulletin Forum.

What this does:
It's a little mod to add in User Description Bar the real status of IM.

How:
1) Go in your "Admin Control Panel" -> Styles & Templates -> Style Manager -> Edit Template
2) Now search "Instant Messaging Template" and expand it.

We should modify: im_aim, im_icq, im_msn, im_yahoo

Go in im_aim:
Replace all text with:
Code:

<a href="#" onclick="imwindow('aim', '$userinfo[userid]', 400, 200); return false;"><img src="http://www.the-server.net:8001/aim/$userinfo[aim]" alt="<phrase 1="$userinfo[username]">$vbphrase[send_message_via_aim_to_x]</phrase>" border="0" /></a>
Go in im_icq:
Replace all text with:
Code:

<a href="#" onclick="imwindow('icq', '$userinfo[userid]', 500, 450); return false;"><img src="http://www.the-server.net:8001/icq/$userinfo[icq]" alt="<phrase 1="$userinfo[username]">$vbphrase[send_message_via_icq_to_x]</phrase>" border="0" /></a>
Go in im_msn:
Replace all text with:
Code:

<a href="#" onclick="imwindow('msn', '$userinfo[userid]', 400, 200); return false;"><img src="http://www.the-server.net:8001/msn/$userinfo[msn]" alt="<phrase 1="$userinfo[username]">$vbphrase[send_message_via_msn_to_x]</phrase>" border="0" /></a>
Go in im_yahoo:
Replace all text with:
Code:

<a href="#" onclick="imwindow('yahoo', '$userinfo[userid]', 400, 200); return false;"><img src="http://www.the-server.net:8001/yahoo/$userinfo[yahoo]" alt="<phrase 1="$userinfo[username]">$vbphrase[send_message_via_yahoo_to_x]</phrase>" border="0" /></a>

Dougie Nunny 03-20-2006 11:23 PM

Doesn't work.

A bunch of members who ARE on-line show up as not.

Tralala 03-20-2006 11:29 PM

This all relies on some external server (the-server.net), yes? What happens when that server is unresponsive, down or whatever?

COBRAws 03-21-2006 12:22 AM

this is a port, why dont u say? I helped with the original 3.0

Tralala 03-21-2006 05:24 AM

Just for comparison's sake, how is this different from this hack:
https://vborg.vbsupport.ru/showthread.php?t=101437

LeaderGL 03-21-2006 09:57 AM

Quote:

Originally Posted by Tralala
Just for comparison's sake, how is this different from this hack:
https://vborg.vbsupport.ru/showthread.php?t=101437

Sorry, i know this site: http://www.the-server.net:8001/ and from this i get the code to show right image and then i've changed the original vBulletin code in this way:

Original Code:
Code:

<a href="#" onclick="imwindow('msn', '$userinfo[userid]', 400, 200); return false;"><img src="$stylevar[imgdir_misc]/im_msn.gif" alt="<phrase 1="$userinfo[username]">$vbphrase[send_message_via_msn_to_x]</phrase>" border="0" /></a>
With new code:
Code:

<a href="#" onclick="imwindow('msn', '$userinfo[userid]', 400, 200); return false;"><img src="http://www.the-server.net:8001/msn/$userinfo[msn]" alt="<phrase 1="$userinfo[username]">$vbphrase[send_message_via_msn_to_x]</phrase>" border="0" /></a>
The only difference is in the "IMG SRC" code that now load right status icon from the site...:

Original:
Code:

<img src="$stylevar[imgdir_misc]/im_msn.gif" ...
New:
Code:

<img src="http://www.the-server.net:8001/msn/$userinfo[msn]" ...
This https://vborg.vbsupport.ru/showthread.php?t=101437 is a PlugIn so more invasive....my hack is equal to original expect for the Image Source...i've only MSN Messenger Account and i tested it and work....

Snake 03-21-2006 10:23 AM

Thanks man it seems to work fine now.

LeaderGL 03-21-2006 11:21 AM

I've changed some code, with this new code you use the appropiate status indication (icq from icq server, yahoo from yahoo server, only msn is on the-server.net):

ICQ:
Code:

<a href="#" onclick="imwindow('icq', '$userinfo[userid]', 450, 420); return false;"><img src="http://web.icq.com/whitepages/online?icq=$userinfo[icq]&amp;img=5" alt="<phrase 1="$userinfo[username]">$vbphrase[send_message_via_icq_to_x]</phrase>" onerror="this.onerror=null;this.src='http://www.the-server.net:8001/image/icqunknown.gif';" border="0" /></a>

MSN:
Code:

<a href="#" onclick="imwindow('msn', '$userinfo[userid]', 400, 205); return false;"><img src="http://www.the-server.net:8002/msn/$userinfo[msn]" alt="<phrase 1="$userinfo[username]">$vbphrase[send_message_via_msn_to_x]</phrase>" onerror="this.onerror=null;this.src='http://www.the-server.net:8002/image/msnunknown.gif';" border="0" /></a>

YAHOO:
Code:

<a href="#" onclick="imwindow('yahoo', '$userinfo[userid]', 400, 150); return false;"><img src="http://opi.yahoo.com/online?u=$userinfo[yahoo]%40yahoo.it&m=g&t=1" alt="<phrase 1="$userinfo[username]">$vbphrase[send_message_via_yahoo_to_x]</phrase>" border="0" /></a>

Trana 03-21-2006 05:34 PM

This is just a reposted hack.

gunitman247 04-11-2006 10:08 PM

yeah im getting a question mark for msn and im online


All times are GMT. The time now is 10:06 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
  • Page Generation 0.01869 seconds
  • Memory Usage 1,748KB
  • 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
  • (11)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete