Version: 1.3, by Spike223
Developer Last Online: May 2007
Version: 3.0.7
Rating:
Released: 08-25-2005
Last Update: Never
Installs: 14
Template Edits
Code Changes Additional Files
No support by the author.
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:
'aim' => 'AIM',
With:
PHP Code:
'aim' => 'AIM',
'gt' => 'Google Talk',
Replace:
PHP Code:
case 'icq':
$userinfo['icq'] = trim(htmlspecialchars_uni($userinfo['icq']));
break;
With:
PHP Code:
case 'icq':
$userinfo['icq'] = trim(htmlspecialchars_uni($userinfo['icq']));
break;
case 'gt':
$type = 'gt';
break;
Replace:
PHP Code:
// pre-cache templates used by specific actions
$actiontemplates = array(
'im' => array(
'im_send_aim',
'im_send_icq',
'im_send_yahoo',
'im_send_msn',
'im_message'
With:
PHP Code:
// pre-cache templates used by specific actions
$actiontemplates = array(
'im' => array(
'im_send_aim',
'im_send_icq',
'im_send_yahoo',
'im_send_msn',
'im_message',
'im_send_gt'
Replace:
PHP Code:
if (empty($userinfo["$type"]))
{
// user does not have this messaging meduim defined
eval(print_standard_error('error_immethodnotdefined'));
}
With:
PHP Code:
if (empty($userinfo["$type"]) and empty($userinfo['fieldXX']))
{
// user does not have this messaging meduim defined
eval(print_standard_error('error_immethodnotdefined'));
}
++ In includes/functions_user.php::
Replace:
PHP Code:
$optionalfield = '';
if ($profilefield['required'] == 1 AND $profilefield['form'] == 0) // Ignore the required setting for fields on the options page
With:
PHP Code:
$optionalfield = '';
if($profilefieldname !== "fieldXX") {
if ($profilefield['required'] == 1 AND $profilefield['form'] == 0) // Ignore the required setting for fields on the options page
Add whatever you like in it, but whatever you add will be displayed in the popup window for contacting that user. HTML is allowed in the template as usual.
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...
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.
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.