![]() |
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:
|
Upgraded to v1.1. Awesome hack as usual - its use is becoming widespread around the forums as well!
But just so you know, Spike, some of the code in their still says "field10" and not "fieldXX" like it should. This makes some things harder to catch and fix since you don't say anything about a "field10" in this version. For the alt messages, though, wouldn't it be more appropriate to have it say "Send a message via Google Talk to <user>"? The rest of the IMing icons have that as their alt message. |
gr8 hack.. and provided very much in time, especially GT is becoming very common, this shall go really well with the members.
Just a few questions... 1. Any chance of having the newly created custom profile field appear in the "Instant Messaging" section under the Users CP ==> Edit Profile ==> {Optional Information section} as opposed to it appearing by itself in a seperate section. 2. When I enter my GT addy, it does not appear in the "View Profile" page until and unless I include another IM ID, e.g. MSN. Is this happening for anyone else? Cheers |
Upgraded to Version 1.2.
Thanks to everyone who gave me ideas for the new version. I am unable to display it in the Who's Online part, unfortunately, I've toyed with it for quite some time now, and it still puzzles me as to why it doesn't work. I did fix the Precaching problem, also the one field10 i missed, and I changed and tested the new ALT tags on my forums, so everything should be in working order. Oh, and if GT is the only IM name you have, it WILL show up in your Profile now. Thanks to everyone for reporting these little things, this helps make the hack better for everyone! And, MET, I think I'll have to pass on the ZIP file, this post should be enough to suffice. Thanks for the offer, though. |
Upgraded to 1.3 with support on adding the GT textbox by the other four IM textboxes when editing your profile.
|
Awesome as usual. I've been waiting for the GTalk box to get in there with the other IM fields, so this was treat. Working perfect, and I'm glad you took the alt message suggestion - it looks much nicer.
Something you may wat to consider is where Google Talk is headed in the future. If our prayers are answered, Google Talk will open up to the Jabber community with Server-to-Server support and transports. This would mean, in short, abolishing every other instant messenging system you have. If Google decides for Server-to-Server support, this becomes a Jabber client. And more importantly, an amazingly popular VoIP-enhanced Jabber client. They might even be thinking about adding PC-to-Phone calls. IF such happens, this hack may just become general Jabber support for vB, instead of strictly Google Talk. Or you may wish to name the field Google Talk (Jabber). |
Quote:
|
I have it installed and it works but I have one thing that doesn't look right. Under Edit Profile > Optional Information > Instant Messaging, it has the option for Google Talk. If I enter something in their and save, it won't stay there. But down under Additional Information it has the Custom Profile Field I created and I put the Google Talk name there and it saves and works. Do you know what I might have missed?
|
To get Google to show up under who's online couldn't you just add something to the whosonlinebit template under this:
<if condition="$vboptions['showimicons']"> <td class="alt2" align="center" nowrap="nowrap"> $userinfo[aimicon] $userinfo[icqicon] $userinfo[msnicon] $userinfo[yahooicon] |
do you plan to resease it for 3.5 ?
|
Make sure your custom profile field has the following settings:
Required? No Editable? Yes Private? Yes |
Quote:
|
Quote:
|
Quote:
|
Make sure your profile field is under the "EDit PRofile" section, not "Options" or something else.
|
It is
|
Then I dunno, really, anyone else have any suggestions?
I mean, the only other thing it could be is that you have another mod thats interfering with mine. |
Can you take a look at my files and see what's up? (PM me)
|
Ok, is it just me, or I don't see the download file for this hack. I would really like to install this hack on our vB forum.
|
You have to follow the instructions in the first post of this thread. There is no install.html/txt file. It's all posted in the first post.
|
Thanks MET920.
Question though. where is: } } } } I am having hard time finding that under includes/functions_user.php |
I've installed this hack but I have the following problem, when I enter my Google Talk email into the text box and when I click save, it wont save when I go back to [Edit Profile] the Google Talk textbox is just blank...
I can't work out where I have went wrong, please help... http://www.forzacentral.com |
The same thing is happening to me also. I put my Google Talk address in the box, and when I went back it was gone. I haven't included that extra bracket in includes/user_functions.php because I can't find it.
|
*sigh* I might have forgotten a code snippet...I'll look into it later tonight (CST).
|
Alright sweet. Thanks :D
|
Any solutions yet ?
|
I suppose any solutions are not found yet.
I also have another problem. Whenever I click on an IM icon under the avatars, the box that appears, it shows all the writings messed up. I have done everything right, so what could be the problem? |
He's really not giving us the support we need and not fixing the issue at hand here. I think I'll just uninstall this mod. Either way, Google Talk sucks and no one really on my forums uses it.
|
I got one person to help me on the forums whom that person installed this hack successfully on his forums. But my forums are giving problems, so I am uninstalling this hack as well.
I waited days to get a respose. |
All times are GMT. The time now is 04:44 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:
|