Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic XFire in Profile V1.2 for YaBB 2.4 (Read 4511 times)
Derek Barnstorm
God Member
*****
Offline



Posts: 1146
Location: Warwickshire
Joined: Mar 23rd, 2008
Gender: Male
XFire in Profile V1.2 for YaBB 2.4
Apr 17th, 2009 at 12:14am
Print Post  
XFire in Profile V1.2

Description:
Adds XFire info in user profile and message view.

There are two versions of this Mod included. One version will display a normal link in your YaBB Profile to your XFire Profile, and the other will display your XFire Miniprofile.

Credits:
The original version of this Mod was by Ron (Spikecity) for YaBB 2.1

Screenshots:

User CP:


Profile (Normal link):


Profile (Miniprofile):


Display:


Zip Package:
XFire_V1_2.mod
XFire_V1_2-Miniprofile.mod
XFire_V1_2-CSS-Buttons_Patch.mod
XFire.lng
Xfire.gif
XFire.png

Installation:
1) Modify YaBB files using BoardMod or manually.
2) Load modified files to your server.

If you are using the CSS buttons Mod, install that first, then the XFire Mod and then the XFire CSS Buttons Patch.

Files to Edit:
Admin/ModList.pl
Sources/Display.pl
Sources/Load.pl
Sources/MyCenter.pl
Sources/Profile.pl
Sources/System.pl
Templates/default/Display.template
Templates/yabb2/Display.template

Mod History:
1.0 - Originally version by Ron (Spikecity) for YaBB 2.1 - 18th April 2006
1.1 - Updated for YaBB 2.3/2.3.1 by Derek Barnstorm - 5th January 2009
1.2 - Updated for YaBB 2.4 - 17th April 2009
« Last Edit: May 14th, 2009 at 6:52pm by Derek Barnstorm »  

XFire_V1_2.zip ( 11 KB | Downloads )
Back to top
 
IP Logged
 
Derek Barnstorm
God Member
*****
Offline



Posts: 1146
Location: Warwickshire
Joined: Mar 23rd, 2008
Gender: Male
Re: XFire in Profile V1.2 for YaBB 2.4
Reply #1 - May 14th, 2009 at 6:53pm
Print Post  
I've added a patch to the Zip package for anyone using Carsten's CSS Buttons Mod.
  
Back to top
 
IP Logged
 
Fps_Brian
Full Member
***
Offline



Posts: 130
Location: Beach Haven
Joined: Aug 14th, 2008
Gender: Male
Re: XFire in Profile V1.2 for YaBB 2.4
Reply #2 - Feb 21st, 2011 at 12:49am
Print Post  
I would really like to add this and myspace/facebook and the "steam" one I made working off your mod to the members list on my forums, I've tried with no luck Sad Do you have any pointers?
  

www.omgot.org
65+ mods installed
Back to top
IP Logged
 
Derek Barnstorm
God Member
*****
Offline



Posts: 1146
Location: Warwickshire
Joined: Mar 23rd, 2008
Gender: Male
Re: XFire in Profile V1.2 for YaBB 2.4
Reply #3 - Feb 21st, 2011 at 1:28am
Print Post  
I've only testing very quickly, but I guess something like this - This will show you how to do it with MySpace, so you should easily be able to work it out for the others.

In Sources/Memberlist.pl find:

Code
Select All
        $dr_regdate =~ s~(.*)(, 1?[0-9]):[0-9][0-9].*~$1~; 


And add after:

Code
Select All
        $myspace = ${$uid.$user}{'myspace'} ? qq~<a href="http://www.myspace.com/${$uid.$user}{'myspace'}" target="_blank"><img src="$imagesdir/myspace.gif" alt="${$uid.$user}{'myspace'}" title="${$uid.$user}{'myspace'}" border="0" /></a>~ : ''; 


The find:

Code
Select All
        <td class="windowbg">$dr_regdate &nbsp;</td> 


And add after:

Code
Select All
        <td class="windowbg">$myspace</td> 


Then find:

Code
Select All
        $headercount = 7; 


And replace with:

Code
Select All
        $headercount = 8; 


And lastly find:

Code
Select All
                <td $selReg onclick="location.href='$scripturl?action=ml;sort=regdate';" width="23%" align="center" style="border: 1px; border-style: outset; cursor: pointer;"><a href="$scripturl?action=ml;sort=regdate"><b>$ml_txt{'234'}</b></a></td> 


And add after:

Code
Select All
                <td class="catbg" align="center"><b>MySpace</b></td> 


And that should be it...
  
Back to top
 
IP Logged
 
Fps_Brian
Full Member
***
Offline



Posts: 130
Location: Beach Haven
Joined: Aug 14th, 2008
Gender: Male
Re: XFire in Profile V1.2 for YaBB 2.4
Reply #4 - Feb 21st, 2011 at 2:23pm
Print Post  
Very simple! Thanks a ton
  

www.omgot.org
65+ mods installed
Back to top
IP Logged
 
Derek Barnstorm
God Member
*****
Offline



Posts: 1146
Location: Warwickshire
Joined: Mar 23rd, 2008
Gender: Male
Re: XFire in Profile V1.2 for YaBB 2.4
Reply #5 - Feb 21st, 2011 at 4:05pm
Print Post  
No worries.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint