Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Add Skype/Xfire/Google Talk to IM List Details »»
Add Skype/Xfire/Google Talk to IM List
Version: 1.0, by Hawkbizkit Hawkbizkit is offline
Developer Last Online: Apr 2009 Show Printable Version Email this Page

Version: 3.5.0 Rating:
Released: 10-17-2005 Last Update: 10-20-2005 Installs: 99
DB Changes Uses Plugins Template Edits
Additional Files  
No support by the author.

Well first off I would like to thank burnist for allowing me to re-release this hack as a product and change a few things so it will work with xfire and google talk also. Here is the original hack by burnist Add Skype To IM List.

The code is almost the same with very few changes all i really did was automate the query and adding the templates and added prases to it but you will still need to edit a few templates and have 1 file edit ONLY IF you want this feature.

Title: Add Skype/Xfire/Google Talk to IM List

Function: Adds a listings for Skype/Xfire/Google Talk along side the instant messengers in the profile, memberlist, postbit and Who's Online (WOL requires file edit)

Installation: - Load The XML file in the Product manager
- Upload im_skype.gif/im_xfire.gif/im_gt.gif to images/misc
- Do Template Edits
- WOL addition is listed in the Thread
- If it becomes available the WOL will be added by a hook (future version)
- Tested on vB 3.5 GOLD

Author: Greg Orsi (Hawkbizkit)
Original Author: Stewart Ritchie (acid burn/burnist)
Date: Tuesday October 18th
Version: 1.0
License: Provided "as is" with no warrnty. I take no responsibility for your board, always make a back up before modifying anything, even more important now as modifications them selves are stored in the database now.
Can only be distributed on Vbulletin.org or other official Sites without my permission.

OPTIONAL FILE MOD IF YOU WANT THIS FEATURE!!!

The following will add Skype/Xfire/Google Talk to the Who's Online IM list, it was not included in the hack file as it requires file edits and the rest of the add-on uses hooks so you can add this at your own discretion.

Depending on which version you install you will need to change a few things in the file edit.

#########
## WOL ###
#########

Open online.php and find
PHP Code:
                          $allusers $db->query_read(
SELECT user.username, session.useragent, session.location, session.lastactivity, user.userid, user.options, session.host, session.badlocation, session.incalendar, user.aim, user.icq, user.msn, user.yahoo, 
IF(displaygroupid=0, user.usergroupid, displaygroupid) AS displaygroupid 
FROM " 
TABLE_PREFIX "session AS session 
"
iif($vbulletin->options['WOLguests'], " LEFT JOIN " TABLE_PREFIX "user AS user USING (userid) "", " TABLE_PREFIX "user AS user") .
WHERE session.lastactivity > 
$datecut 
"
iif(!$vbulletin->options['WOLguests'], " AND session.userid = user.userid""") .
ORDER BY 
$sqlsort $sortorder 
"
); 
Replace It with

For Skype:
PHP Code:
                         $allusers $db->query_read(
SELECT user.username, session.useragent, session.location, session.lastactivity, user.userid, user.options, session.host, session.badlocation, session.incalendar, user.aim, user.icq, user.msn, user.yahoo, user.skype, 
IF(displaygroupid=0, user.usergroupid, displaygroupid) AS displaygroupid 
FROM " 
TABLE_PREFIX "session AS session 
"
iif($vbulletin->options['WOLguests'], " LEFT JOIN " TABLE_PREFIX "user AS user USING (userid) "", " TABLE_PREFIX "user AS user") .
WHERE session.lastactivity > 
$datecut 
"
iif(!$vbulletin->options['WOLguests'], " AND session.userid = user.userid""") .
ORDER BY 
$sqlsort $sortorder 
"
); 
For Xfire:
PHP Code:
                          $allusers $db->query_read(
SELECT user.username, session.useragent, session.location, session.lastactivity, user.userid, user.options, session.host, session.badlocation, session.incalendar, user.aim, user.icq, user.msn, user.yahoo, user.xfire, 
IF(displaygroupid=0, user.usergroupid, displaygroupid) AS displaygroupid 
FROM " 
TABLE_PREFIX "session AS session 
"
iif($vbulletin->options['WOLguests'], " LEFT JOIN " TABLE_PREFIX "user AS user USING (userid) "", " TABLE_PREFIX "user AS user") .
WHERE session.lastactivity > 
$datecut 
"
iif(!$vbulletin->options['WOLguests'], " AND session.userid = user.userid""") .
ORDER BY 
$sqlsort $sortorder 
"
); 
For Googletalk:
PHP Code:
                         $allusers $db->query_read(
SELECT user.username, session.useragent, session.location, session.lastactivity, user.userid, user.options, session.host, session.badlocation, session.incalendar, user.aim, user.icq, user.msn, user.yahoo, user.googletalk, 
IF(displaygroupid=0, user.usergroupid, displaygroupid) AS displaygroupid 
FROM " 
TABLE_PREFIX "session AS session 
"
iif($vbulletin->options['WOLguests'], " LEFT JOIN " TABLE_PREFIX "user AS user USING (userid) "", " TABLE_PREFIX "user AS user") .
WHERE session.lastactivity > 
$datecut 
"
iif(!$vbulletin->options['WOLguests'], " AND session.userid = user.userid""") .
ORDER BY 
$sqlsort $sortorder 
"
); 
For Google Talk/Xfire/Skype Triple Pack:
PHP Code:
                         $allusers $db->query_read(
SELECT user.username, session.useragent, session.location, session.lastactivity, user.userid, user.options, session.host, session.badlocation, session.incalendar, user.aim, user.icq, user.msn, user.yahoo, user.googletalk, user.xfire, user.skype, 
IF(displaygroupid=0, user.usergroupid, displaygroupid) AS displaygroupid 
FROM " 
TABLE_PREFIX "session AS session 
"
iif($vbulletin->options['WOLguests'], " LEFT JOIN " TABLE_PREFIX "user AS user USING (userid) "", " TABLE_PREFIX "user AS user") .
WHERE session.lastactivity > 
$datecut 
"
iif(!$vbulletin->options['WOLguests'], " AND session.userid = user.userid""") .
ORDER BY 
$sqlsort $sortorder 
"
); 
Save and close online.php

Open The template 'whosonlinebit'

Find

HTML Code:
            $userinfo[yahooicon]
Add under this

HTML Code:
      $userinfo[gticon]
            $userinfo[xfireicon]
            $userinfo[skypeicon]
#############
### /WOL #####
#############

Show Your Support

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

Comments
  #122  
Old 07-21-2008, 08:32 PM
espesso espesso is offline
 
Join Date: Jul 2007
Location: Berlin
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Oh great i will test it tomorrow.... many thx
Reply With Quote
  #123  
Old 07-22-2008, 03:20 PM
espesso espesso is offline
 
Join Date: Jul 2007
Location: Berlin
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok i have tested...

Many thanks for the update.

I have a little different changes and a few questions

My different changes:

/includes/class_userprofile.php

-- Find --
Code:
$this->prepared['hasimdetails'] = ($this->prepared['icq'] OR $this->prepared['aim'] OR $this->prepared['msn'] OR $this->prepared['yahoo'] OR $this->prepared['skype']) ? true : false;
-- Replace With --
Code:
$this->prepared['hasimdetails'] = ($this->prepared['icq'] OR $this->prepared['aim'] OR $this->prepared['msn'] OR $this->prepared['yahoo'] OR $this->prepared['skype'] OR $this->prepared['xfire']) ? true : false;

I have added: OR $this->prepared['xfire']

TEMPLATE EDIT: modifyprofile

-- Find --
Code:
<td>$vbphrase[skype_name]<br />
						<img src="$stylevar[imgdir_misc]/im_skype.gif" alt="" />
						<input type="text" class="bginput" name="skype" value="$bbuserinfo[skype]" size="25" maxlength="50" dir="ltr" /></td>
-- add below --
Code:
<td>Xfire-Name<br />
						<img src="$stylevar[imgdir_misc]/im_xfire.gif" alt="" />
						<input type="text" class="bginput" name="xfire" value="$bbuserinfo[xfire]" size="25" maxlength="50" dir="ltr" /></td>

Thats better for me...

TEMPLATE EDIT: postbit legacy - postbit

-- Find -- (should be in both postbit and postbit_legacy, whichever you use)
Code:
<div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon] </div>
-- Replace -- I have replaced not added after
Code:
<div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon] $post[xfireicon] </div>

TEMPLATE EDIT: headinclude

-- Find --
Code:
<script type="text/javascript">
<!--
var SESSIONURL = "$session[sessionurl_js]";
var IMGDIR_MISC = "$stylevar[imgdir_misc]";
// -->
-- Add Below --
Code:
function xfirewindow(userid, width, height)
{
	return openWindow(
		'sendmessage.php?' + SESSIONURL + 'do=xfire&u=' + userid,
		width, height
	);
}
i dont know wat this makes but i have changed...

My Questions:

1. Profil overview or whos online >> displayed:

Current Activity: Unknown Location /sendmessage.php?do=im&type=xfire&u=1 ?

we can i change it?

2. How i can integrate send message in profile popup menu like icq? (is under profil overview)

3. Menu showing friends on member profile - xfire info is missing under friends. we can i change it? icq and skype is displayed..

4. Admincp - Edit User xfire field is missing

finaly: it is possible write message like icq - direct message?


Annother works great. Good Job.

Many thanks.

Greetz

and sorry my englisch is little crazzy (we can talk german better ^^)

New Xfire Icon Attachment 84417 Download here
Reply With Quote
  #124  
Old 07-23-2008, 11:09 AM
TingelT TingelT is offline
 
Join Date: Jul 2008
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Here some answers
Quote:
Originally Posted by espesso View Post
Ok i have tested...

Many thanks for the update.

I have a little different changes and a few questions

My different changes:

/includes/class_userprofile.php

-- Find --
Code:
$this->prepared['hasimdetails'] = ($this->prepared['icq'] OR $this->prepared['aim'] OR $this->prepared['msn'] OR $this->prepared['yahoo'] OR $this->prepared['skype']) ? true : false;
-- Replace With --
Code:
$this->prepared['hasimdetails'] = ($this->prepared['icq'] OR $this->prepared['aim'] OR $this->prepared['msn'] OR $this->prepared['yahoo'] OR $this->prepared['skype'] OR $this->prepared['xfire']) ? true : false;

I have added: OR $this->prepared['xfire']
This and my solution is the same

TEMPLATE EDIT: modifyprofile

-- Find --
Code:
<td>$vbphrase[skype_name]<br />
						<img src="$stylevar[imgdir_misc]/im_skype.gif" alt="" />
						<input type="text" class="bginput" name="skype" value="$bbuserinfo[skype]" size="25" maxlength="50" dir="ltr" /></td>
-- add below --
Code:
<td>Xfire-Name<br />
						<img src="$stylevar[imgdir_misc]/im_xfire.gif" alt="" />
						<input type="text" class="bginput" name="xfire" value="$bbuserinfo[xfire]" size="25" maxlength="50" dir="ltr" /></td>

Thats better for me...
No After the Skype block is
<td>&nbsp;</td> this make a empty cell..and if that isn't removed you will get a a 3cell table..this kill you 2 cell layout..but so it will works


TEMPLATE EDIT: postbit legacy - postbit

-- Find -- (should be in both postbit and postbit_legacy, whichever you use)
Code:
<div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon] </div>
-- Replace -- I have replaced not added after
Code:
<div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon] $post[xfireicon] </div>
No you have to replace that your our trying to get it two times?

TEMPLATE EDIT: headinclude

-- Find --
Code:
<script type="text/javascript">
<!--
var SESSIONURL = "$session[sessionurl_js]";
var IMGDIR_MISC = "$stylevar[imgdir_misc]";
// -->
-- Add Below --
Code:
function xfirewindow(userid, width, height)
{
	return openWindow(
		'sendmessage.php?' + SESSIONURL + 'do=xfire&u=' + userid,
		width, height
	);
}


i dont know wat this makes but i have changed...
This Java isn't necessary any more..the Plugin uses now the imwindow and not xfirewindow

My Questions:

1. Profil overview or whos online >> displayed:

Current Activity: Unknown Location /sendmessage.php?do=im&type=xfire&u=1 ?

we can i change it?
******************************************
*////////////////////////////////////////*
*////////////sendmassage.php/////////////*
*////////////////////////////////////////*
******************************************
-- Find --
case 'aim':

-- Add Below --

case 'xfire':

------------------------------
That was posted in the install.txt


2. How i can integrate send message in profile popup menu like icq? (is under profil overview)
Edit the product_xfire.xml edit there phrases <![CDATA[ as you want
3. Menu showing friends on member profile - xfire info is missing under friends. we can i change it? icq and skype is displayed..
Will fix them soon
4. Admincp - Edit User xfire field is missing
I will fix that if i had enough time
finaly: it is possible write message like icq - direct message?
Don't knew!

Annother works great. Good Job.

Many thanks.

Greetz

and sorry my englisch is little crazzy (we can talk german better ^^)

New Xfire Icon Attachment 84417 Download here
Reply With Quote
  #125  
Old 08-02-2008, 06:36 PM
Barteh Barteh is offline
 
Join Date: Aug 2006
Posts: 113
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for the update, installed. One slight oversight in your howto though:

Quote:
******************************************
*////////////////////////////////////////*
*/includes/class_userprofile.php/////////*
*////////////////////////////////////////*
******************************************

(...)

-- Find --

$this->prepared['hasimdetails'] = ($this->prepared['icq'] OR $this->prepared['aim'] OR $this->prepared['msn'] OR $this->prepared['yahoo'] OR $this->prepared['skype']) ? true : false;


-- Replace With --

$this->prepared['hasimdetails'] = ($this->prepared['icq'] OR $this->prepared['aim'] OR $this->prepared['msn'] OR $this->prepared['yahoo'] OR $this->prepared['skype'] OR $this->prepared['xfire']) ? true : false;
Reply With Quote
  #126  
Old 08-04-2008, 01:54 AM
DragonMasterNYC's Avatar
DragonMasterNYC DragonMasterNYC is offline
 
Join Date: Jul 2007
Location: Bronx NY
Posts: 121
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I would be great if we could get a basic xml file and edits that we can put what ever networks we want into vBulletin.

Just an idea
Reply With Quote
  #127  
Old 10-01-2008, 06:02 PM
espesso espesso is offline
 
Join Date: Jul 2007
Location: Berlin
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by TingelT View Post
2. How i can integrate send message in profile popup menu like icq? (is under profil overview)

TEMPLATE EDIT: MEMBERINFO

-- Find --

Code:
condition="$prepared['icq']">
							<li class="vbmenu_option"><img class="alt2 inlineimg" alt="" src="$stylevar[imgdir_misc]/im_icq.gif" />  <a href="#" dir="ltr" onclick="imwindow('icq', '$prepared[userid]', 500, 450); return false;"><phrase 1="$prepared[username]">$vbphrase[send_icq_message_to_x]</phrase></a></li>
						</if>
-- add below --

Code:
<if condition="$prepared['xfire']">
							<li class="vbmenu_option"><img class="alt2 inlineimg" alt="" src="$stylevar[imgdir_misc]/im_xfire.gif" />  <a href="#" dir="ltr" onclick="imwindow('xfire', '$prepared[userid]', 400, 200); return false;"><phrase 1="$prepared[username]">$vbphrase[send_xfire_message_to_x]</phrase></a></li>
						</if>

Add new phrase:

Variable: send_xfire_message_to_x

Send an Xfire message to {1}

Quote:
Originally Posted by TingelT View Post
1. Profil overview or whos online >> displayed:
Create new hook:

AdminCP -> Add-ons & Plug-ins -> Add Plug-in

1. Xfire: WOL Init

Hook: online_location_preprocess

Code:
if($filename=='sendmessage.php' and $values['type']=='xfire') { 
   $userinfo['activity'] = 'xfire'; 
}

2. Xfire: WOL Show

Hook: online_location_unknown

Code:
if($userinfo['activity']=='xfire') 
{ 
$userinfo['action']=$vbphrase['sending_xfire_message']; 
$userinfo['where']=''; 
$handled=true; 
}
Add new phrase:

Variable: sending_xfire_message

Sending Xfire Message

add xfire icon >>> profil overview >> friends

TEMPLATE EDIT: memberinfo_small

-- Find --

Code:
<if condition="$user['showicq']"><li>$user[icqicon]</li></if>
-- add below --

Code:
<if condition="$user['showxfire']"><li>$user[xfireicon]</li></if>

Works fine for Vbulletin 3.7.3 PL1 xD

Greetz Espesso
Reply With Quote
  #128  
Old 01-08-2009, 09:26 PM
Barteh Barteh is offline
 
Join Date: Aug 2006
Posts: 113
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Still working for 3.8.0

(with the modifications mentioned in the previous posts)
Reply With Quote
  #129  
Old 01-28-2009, 10:40 AM
bisshop bisshop is offline
 
Join Date: Jan 2009
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Eh, I need some help here, please.

Do the files from TingelT completely replace the ones from the original author? Should I use only these (and only do the template edits in HIS .txt-file)?

Maybe, can someone post a complete and comprehensive (for dummys) instruction on how to install this (only XFire, though) for 3.8.0?

Thank you, thank you, thank you.
Reply With Quote
  #130  
Old 07-10-2009, 08:05 PM
Raptor Raptor is offline
 
Join Date: Nov 2001
Posts: 499
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can someone post a clean version of the triple pack for 3.8.3 ?
Reply With Quote
  #131  
Old 04-21-2010, 06:42 AM
axix20xx axix20xx is offline
 
Join Date: Mar 2009
Location: Iran
Posts: 74
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i want this for VB 4.0 anyone can help ?
Reply With Quote
Reply


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 02:37 AM.


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.04950 seconds
  • Memory Usage 2,383KB
  • Queries Executed 27 (?)
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
  • (22)bbcode_code
  • (2)bbcode_html
  • (5)bbcode_php
  • (4)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
  • (2)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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_postinfo_query
  • fetch_postinfo
  • 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