Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Beta Releases
FAQ Community Calendar Today's Posts Search

Closed Thread
 
Thread Tools
Support for Google Talk! Details »»
Support for Google Talk!
Version: 0.90, by Spike223 Spike223 is offline
Developer Last Online: May 2007 Show Printable Version Email this Page

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'));
    } 

++ In Template MEMBERINFO::

Replace:

Code:
<if condition="$userinfo['showyahoo']">
				<tr>
					<td>$userinfo[yahooicon]</td>
					<td><a href="#" onclick="return imwindow('yahoo', '$userinfo[userid]', 400, 200)">$userinfo[yahoo]</a></td>
				</tr>
				</if>
With:

Code:
<if condition="$userinfo['showyahoo']">
				<tr>
					<td>$userinfo[yahooicon]</td>
					<td><a href="#" onclick="return imwindow('yahoo', '$userinfo[userid]', 450, 200)">$userinfo[yahoo]</a></td>
				</tr>
				</if>
<if condition="$userinfo[field10]">
				<tr>
					<td><a href="#" onclick="return imwindow('gt', '$userinfo[userid]', 450, 200)"><img src="images/misc/im_gt.gif" border="0"></a></td>
					<td><a href="#" onclick="return imwindow('gt', '$userinfo[userid]', 450, 200)">$userinfo[field10]</a></td>
				</tr>
				</if>
++ In template memberlist_resultsbit:

Replace:

Code:
<if condition="$show['imicons'] AND exec_switch_bg()"><td class="$bgclass">$userinfo[icqicon] $userinfo[aimicon] $userinfo[msnicon] $userinfo[yahooicon]</td></if>
With:

Code:
<if condition="$show['imicons'] AND exec_switch_bg()"><td class="$bgclass">$userinfo[icqicon] $userinfo[aimicon] $userinfo[msnicon] $userinfo[yahooicon] <if condition="$userinfo[field10]"><a href="#" onclick="return imwindow('gt', '$userinfo[userid]', 400, 200)"><img src="images/misc/im_gt.gif" border="0"></a></if></td></if>

++ In Postbit and Postbit_Legacy Templates:: ***WARNING: NOT TESTED ON REGULAR POSTBIT STYLE, ONLY LEGACY!***

Find:

Code:
<div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon]</div>
Replace:

Code:
<div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] <if condition="$post[field10]"><a href="#" onclick="return imwindow('gt', '$userinfo[userid]', 400, 200)"><img src="images/misc/im_gt.gif" border="0"></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 is "$userinfo[field10]", no quotes.

-----------------------------------------------------------------------------------

Code:
<table class="tborder" cellpadding="6" cellspacing="1" border="0" width="100%" align="center">
<tr>
	<td class="tcat">
		<span class="smallfont" style="float:right"><a href="#" onclick="self.close()">Close this window</a></span>
		Google Talk
	</td>
</tr>
<tr>
	<td class="panelsurround" align="center">
	<div class="panel">

		*** __CONTENT HERE__ ***

	</div>
	</td>
</tr>
</table>

</body>
</html>

-----------------------------------------------------------------------------------

Add whatever you like in it, but whatever you add, HTML allowed!, will be displayed in the popup window for contacting that user.
Any feedback is greatly appreciated, I pulled this together in about an hour or two. Here's my image, you can make your own if you like:



Thanks, hope it works!

If you liked this mod, please make sure to:

CLICK INSTALL!

Post yuor feedback, especially since this is my first mod!!!

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 08-25-2005, 01:15 PM
Selene Selene is offline
 
Join Date: Feb 2005
Posts: 166
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

any screenshots
  #3  
Old 08-25-2005, 02:29 PM
hotrod1 hotrod1 is offline
 
Join Date: Apr 2005
Posts: 112
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

<a href="http://www.guipowered.com/member.php?userid=1" target="_blank">http://www.guipowered.com/member.php?userid=1</a>

At that page take a look at the dialog box.
  #4  
Old 08-25-2005, 04:00 PM
Spike223 Spike223 is offline
 
Join Date: Mar 2005
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ahh, sorry, I should have done that. Here are some screens from my board: (it looks the exact same on the member's list, too)
  #5  
Old 08-25-2005, 04:03 PM
Lee's Avatar
Lee Lee is offline
 
Join Date: Jul 2004
Location: Texas
Posts: 83
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.

Example: http://www.zeldauniverse.net/forums/member.php?u=6838
  #6  
Old 08-25-2005, 04:21 PM
Spike223 Spike223 is offline
 
Join Date: Mar 2005
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

In your template "MEMBERINFO", make sure that you followed the directions in the mod exactly. Do you see text that matches this::

Code:
<if condition="$userinfo[field10]">
				<tr>
					<td><a href="#" onclick="return imwindow('gt', '$userinfo[userid]', 450, 200)"><img src="images/misc/im_gt.gif" border="0"></a></td>
					<td><a href="#" onclick="return imwindow('gt', '$userinfo[userid]', 450, 200)">$userinfo[field10]</a></td>
				</tr>
				</if>
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
  #7  
Old 08-25-2005, 05:14 PM
Lee's Avatar
Lee Lee is offline
 
Join Date: Jul 2004
Location: Texas
Posts: 83
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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:


http://www.zeldauniverse.net/forums/images/misc/im_gt.gif
  #8  
Old 08-25-2005, 05:27 PM
yupfish yupfish is offline
 
Join Date: Feb 2005
Posts: 34
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks!
  #9  
Old 08-25-2005, 07:12 PM
Spike223 Spike223 is offline
 
Join Date: Mar 2005
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

We are in the works of porting this over to vBulletin 3.5, so when it is complete, I will post it in that section of the forums.
  #10  
Old 08-25-2005, 08:26 PM
JsnakeJ JsnakeJ is offline
 
Join Date: Mar 2005
Location: Pennsylvania
Posts: 231
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Wow thats quick since this just came out. Thank you, appreciate it.
Closed Thread


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 08:11 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04698 seconds
  • Memory Usage 2,315KB
  • Queries Executed 23 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (8)bbcode_code
  • (6)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete