![]() |
vBGT [Google Talk Supprt]
vBGT [Google Talk Support]
By Spike223 Description:: This hack will add an icon which acts identically to the other four instant messager icons, it wil pop up a box and display the user's Google Talk Username. It will add this icon in three places, your member's list, postbit (both styles), and profile. Version Info:: v 1.0: - First Release v 1.1: - Added Image Alt Tags As Requested v 1.2: - Fixed Image Alt tage to match other 4 Im Clients'. - Added bug so if GT is the only IM client the user has, it shows in their profile. - vBulletin now pre-caches the template for faster load times. v 1.3: - the Google Talk Textbox shows by the other four when editing profiles. Installation Instructions:: Firstly, you need to create a custom Profile Field. Make it a single-line textbox, and REMEMBER it's name. It should be something like "field__" where the __'s are a number. Then, follow these directions. Sorry they're so crude, but I decided to document it 1/3 of the way in, and Notepad was the handiest way. REMEMBER to replace, ANYWHERE you see "fieldXX" in this document, with your own field name from above, otherwise this hack will not function! Here are the PHP and Template Modifications: ++ In sendmessage.php:: Replace: PHP Code:
PHP Code:
Replace: PHP Code:
PHP Code:
PHP Code:
PHP Code:
Replace: PHP Code:
PHP Code:
++ In includes/functions_user.php:: Replace: PHP Code:
PHP Code:
Replace: PHP Code:
PHP Code:
++ In Template modifyprofile:: Replace: Code:
<td>$vbphrase[msn_messenger_handle]:<br /><input type="text" class="bginput" name="msn" value="$bbuserinfo[msn]" size="25" maxlength="50" /></td> Code:
<td>$vbphrase[msn_messenger_handle]:<br /><input type="text" class="bginput" name="msn" value="$bbuserinfo[msn]" size="25" maxlength="50" /></td> Replace: Code:
<if condition="$userinfo['showyahoo']"> Code:
<if condition="$userinfo['showyahoo']"> Code:
<if condition="$show['hasimicons']> Code:
<if condition="$show['hasimicons'] or $userinfo[fieldXX]"> Replace: Code:
<if condition="$show['imicons'] AND exec_switch_bg()"><td class="$bgclass">$userinfo[icqicon] $userinfo[aimicon] $userinfo[msnicon] $userinfo[yahooicon]</td></if> Code:
<if condition="$show['imicons'] AND exec_switch_bg()"><td class="$bgclass">$userinfo[icqicon] $userinfo[aimicon] $userinfo[msnicon] $userinfo[yahooicon] <if condition="$userinfo[fieldXX]"><a href="#" onclick="return imwindow('gt', '$userinfo[userid]', 400, 200)"><img src="images/misc/im_gt.gif" border="0" alt="Send a message via Google Talk to $userinfo[username]"></a></if></td></if> Find: Code:
<div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon]</div> Code:
<div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] <if condition="$post[fieldXX]"><a href="#" onclick="return imwindow('gt', '$userinfo[userid]', 400, 200)"><img src="images/misc/im_gt.gif" border="0" alt="Send a message via Google Talk to $post[username]"></a></if></div> Create Template Called "im_send_gt", put this in it, but replace with HTML where it says __CONTENT HERE__. The user's GT s/n for use in this template is "$userinfo[fieldXX]", no quotes. Code:
<table class="tborder" cellpadding="6" cellspacing="1" border="0" width="100%" align="center"> Files To Upload:: Here's a GT logo: http://guipowered.com/images/misc/im_gt.gif Upload it to FORUM ROOT/images/misc/. If you liked this hack, please click INSTALL! |
*installed* at www.bigblueball.com/forums (Thanks, Spike!)
I did add alt text to the img tag, to provide a tooltip when people hover over the image (like they get for the other IM icons). |
I use the google icon for mine. :)
|
Quote:
*install* |
I was just talking to my friend about a mod like this.. And then I found this! :P
Great job! [high]* MET920 installs [/high] Quote:
|
never mind, i got it
|
Quote:
|
now how about displaying it in the who's online page
|
Quote:
|
Thnx Spike, it's a nice hack ;)
For the uncached templates you can replace in the sendmessage.php Replace: PHP Code:
With: PHP Code:
|
All times are GMT. The time now is 01:46 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|