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
  #12  
Old 08-26-2005, 01:57 AM
Spike223 Spike223 is offline
 
Join Date: Mar 2005
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thread Closed, This Hack is now official.

https://vborg.vbsupport.ru/showthread.php?t=95094
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:31 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.05003 seconds
  • Memory Usage 2,232KB
  • Queries Executed 16 (?)
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
  • (7)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
  • (2)post_thanks_box
  • (2)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (2)post_thanks_postbit_info
  • (1)postbit
  • (2)postbit_onlinestatus
  • (2)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