vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Add Skype To IM List (https://vborg.vbsupport.ru/showthread.php?t=92491)

burnist 07-18-2005 10:00 PM

Add Skype To IM List
 
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
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

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

Save and close online.php

Open The template 'whosonlinebit'

Find

HTML Code:

$userinfo[yahooicon]
Add under this

HTML Code:

$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

Quote:

Originally Posted by burnist
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

Quote:

Originally Posted by sensimilla
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

Quote:

Originally Posted by eljeffe
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

Quote:

Originally Posted by Sovereign
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

Quote:

Originally Posted by Hawkbizkit
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


All times are GMT. The time now is 04:43 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01156 seconds
  • Memory Usage 1,762KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_html_printable
  • (2)bbcode_php_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (15)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete