PDA

View Full Version : Add Skype To IM List


burnist
07-18-2005, 10:00 PM
This is my First vB 3.5 mod so it may be a little rusty :)


Title: Add Skype Handle to vBullein

Function: Adds a listings for Skype VoIP 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 plugin manager
- Run The Query
- Upload im_skype.gif to images/misc
- Add new Templates
- Do Template Edits
Notes: - Phrases not used at this time, possibly in a newer version.
- 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 beta 4

Author: Stewart Ritchie (acid burn/burnist)
Date: Tuesday July 16th
Version: 1.00
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.


The following will add Skype 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.

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

Open online.php and find

$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


$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
");


Save and close online.php

Open The template 'whosonlinebit'

Find


$userinfo[yahooicon]


Add under this


$userinfo[skypeicon]

#############
### /WOL #####
#############

If you install this please click "Install" :)

Abe1
07-19-2005, 05:08 PM
This is NOT an extention. This belongs in 'code chages'.

burnist
07-19-2005, 09:03 PM
The only code change is in the WOL, thats why I've listed it as optional hence no files are modified but It does require FTP as it has to add an image and there is a database change.

Abe1
07-19-2005, 09:34 PM
The only code change is in the WOL, thats why I've listed it as optional hence no files are modified but It does require FTP as it has to add an image and there is a database change.

Sorry, I didn't see that it was optional. My mistake.

xug
08-14-2005, 03:12 PM
any word on this running on RC2?

sensimilla
08-22-2005, 11:36 AM
any chance for a vb 3.0.8 version of that hack ?

eljeffe
09-15-2005, 04:40 AM
any chance for a vb 3.0.8 version of that hack ?

Yeah, I'd love to see a 3.0.x hack for this as well

Icehawk002
09-23-2005, 12:24 PM
Yeah, I'd love to see a 3.0.x hack for this as well

ditto

Sovereign
09-23-2005, 11:58 PM
Sorry for being slightly off topic, but could this be modified for XFire too?

jlschwab
10-13-2005, 03:28 PM
Sorry for being slightly off topic, but could this be modified for XFire too?

I am looking to have xfire more than skype really, as I run a gaming community.
I might take this mod and modify it to be for xfire instead of skype, but who
knows, so busy lately.

Hawkbizkit
10-16-2005, 05:54 AM
i turned this into a product for skype / xfire / google talk works great...

WNxWakko
10-16-2005, 05:24 PM
i turned this into a product for skype / xfire / google talk works great...


What did you modify for xfire?

Hawkbizkit
10-16-2005, 07:59 PM
what do you mean like how did i change it over to xfire?

if it's alright with burnist i wouldn't mind releasing the products i made for all the clients.

vau7
10-16-2005, 09:00 PM
Who can i set a broder=0 around it?
The Skypeicon is the only one which has git a frame around it and that doesnt look so good.

Hawkbizkit
10-18-2005, 06:11 PM
alright i got the go ahead so here it is https://vborg.vbsupport.ru/showthread.php?t=98707