Version: 0.90, by Spike223
Developer Last Online: May 2007
Version: 3.0.7
Rating:
Released: 08-24-2005
Last Update: Never
Installs: 4
Template Edits
Code Changes Additional Files Is in Beta Stage
No support by the author.
Alright, this is my first ever mod, I actually did it for someone else, and they suggested I post it here, but I'm no goood at making mods professional, so this is probably a very crude way of doing it to some of you, so bear with me, it does work, though.
Description:
This Mod will add popup links, just like Aim, Yahoo, ICQ, and MSN, but for Google Talk. IT will add them in the user's profile, their postbit (both styles), and the Member List (if enabled).
How To Install:
Firstly, you need to create a custom Profile Field, 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 "field10" in this document, with your own field name from above, otherwise it'll grab the wrong profile field!!!
Here's the mod instructions:
Quote:
Originally Posted by Instructions
Upload im_gt.gif into %FORUM_ROOT%/images/misc/ (image is below quote box)
++ 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:
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['field10']))
{
// user does not have this messaging meduim defined
eval(print_standard_error('error_immethodnotdefined'));
}
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 is "$userinfo[field10]", no quotes.
It looks like a wonderful hack, and I have it installed and working, save one thing.
On any given member's profile page, the name refuses to show up next to the Google Talk image... perhaps someone could help me here? I've looked over the code, and I can't really figure out exactly what went wrong.
Make sure that you are using your correct profile field, NOT mine, which happened to be "field10" (unless yours is field10, as well). There are two places in this code where you must modify this, and I think that's your problem. :P
Ah, thank you for that. There was one field10 I had neglected to change, and that was the issue. It's working great now, awesome hack! You can check that same link again to see it, obviously.
And for those looking for a better speech bubble image, I went ahead and made one: