Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: InsaneBoarder234 on August 12, 2007, 01:15:02 PM

Title: XFire Field
Post by: InsaneBoarder234 on August 12, 2007, 01:15:02 PM
I was asked to add XFire to an SMF installation and was unimpressed by another XFire mod so I wrote this.

The general functionality is to provide an XFire field in user's profiles and posts but all of the following functionality has been implemented:


Version 1.3 Additions

Version 1.4 Additions

http://custom.simplemachines.org/mods/index.php?mod=888 (http://custom.simplemachines.org/mods/index.php?mod=888)
Title: Re: XFire Field
Post by: CrimsonGuard on August 15, 2007, 07:34:48 PM
Absolutely fantastic mod!  It's simple, and it does the job well.  Thanks man!

:D
Title: Re: XFire Field
Post by: Afterglow86 on August 16, 2007, 06:42:49 AM
This is great. Thank you for making it fit in more.
Title: Re: XFire Field
Post by: Mulgarus on September 02, 2007, 04:45:21 AM
thank you very much, this is what ive been searching for :)
Title: Re: XFire Field
Post by: JOSHSKORN on September 09, 2007, 10:08:03 PM
Does anyone have this mod in action?  I'd like to see it.  It MIGHT be what I'm looking for.
Title: Re: XFire Field
Post by: Mulgarus on September 09, 2007, 10:20:53 PM
goto www.clan-fd.net and look for one of my posts.

you may need to register.. dont remember, been awhile since i logged out lol
Title: Re: XFire Field
Post by: JOSHSKORN on September 09, 2007, 10:44:18 PM
OK unfortunately this isn't quite what I want, I was hoping it would be.

Basically what I want is this.  If you're familiar w/ TinyPortal, the mod for SMF that makes your forum look like a homepage, I've created an article which queries members from the smf_member table if they're in specific groups, and displays them on a page.  I'd like one of the display columns to be an xfire column.

How this pertains to this mod, is that, I was thinking that this mod places an xfire image on your profile, indicating if you're in game and if so, which one and where.  Modifying the article's query would be simple, but I would first need the fields in the database to accomplish this task.
Title: Re: XFire Field
Post by: ziycon on September 26, 2007, 10:51:16 AM
This failed when i was trying to apply the mod, it failed on the test with the who.template.php file, any ideas?
Title: Re: XFire Field
Post by: ziycon on September 26, 2007, 11:09:38 AM
I just removed the XMl code for the whos.template page and uploaded the package, working fine now, nice mod!

P.S. - Any chance of getting this updated so it will display the Xfire for members in the members page that lists all members on the site???
Title: Re: XFire Field
Post by: zsw007 on September 29, 2007, 08:30:27 PM
you forgot to add the Xfire field to Members
viewing Members
Title: Re: XFire Field
Post by: InsaneBoarder234 on October 02, 2007, 02:32:15 AM
I'll be posting an update later to add XFire to the members list.

Updated, the XFire link is now also displayed in the "View Members" page.
Title: Re: XFire Field
Post by: Kodiak_Ice on October 19, 2007, 10:38:41 PM
Love this mod but having a problem installing it, I really can't do it with the package manager because I use a secure FTP.  So I've been trying to do it manually, I have most of it installed but having a problem with one section and that is the display.template.php when I enter this code:
!empty($message['member']['options']['XFire']) ? '<a href="http://www.xfire.com/xf/modules.php?name=XFire&file=profile&uname=' . $message['member']['options']['XFire'] . '" target="_blank"><img border="0" src="' . $settings['images_url'] . '/XFire.gif" alt="' . $message['member']['options']['XFire'] . '"></a>' : '',

I get an error:
parse error, unexpected T_STRING, expecting ',' or ';'

I've looked at it but can't figure out what exactly it's looking for?  Any help would be greatly appreciated!!  Thanks
Title: Re: XFire Field
Post by: Kodiak_Ice on October 20, 2007, 06:27:09 PM
anyone?
Title: Re: XFire Field
Post by: Kodiak_Ice on October 22, 2007, 06:49:41 PM
is anyone here?
Title: Re: XFire Field
Post by: InsaneBoarder234 on October 22, 2007, 07:22:27 PM
My best guess is that you've entered the code wrong. Unless you know PHP yourself, the easiest way for me to help you would be if you email your display.template.php file to me and I'll fix it and return it to you - [email protected]
Title: Re: XFire Field
Post by: Kodiak_Ice on October 23, 2007, 08:41:07 PM
Thanks for the reply, sent out the file today!!!
Title: Re: XFire Field
Post by: Paper-Cut on November 14, 2007, 02:26:46 PM
Where's the download link? I don't see one..
Title: Re: XFire Field
Post by: concorde7 on November 14, 2007, 08:44:41 PM
I have this MOD installed but no Xfire image in teh forums and no image in the Member list, just a "POSITION" section with the xfire link on it.  Any help? Where did i go wrong.  I uploaded and installed with no issues.  Help?   .... anyone? Please?
Title: Re: XFire Field
Post by: GwE¬ØЯΐĠîŋ™ on December 05, 2007, 09:44:59 AM
I hate to ask this.. but where in the database does the member's xfire get saved?
Title: Re: XFire Field
Post by: crazedlemming on December 05, 2007, 02:31:04 PM
Quote from: GwE¬ORiGiN on December 05, 2007, 09:44:59 AM
I hate to ask this.. but where in the database does the member's xfire get saved?

I was curious about the same thing. Tracked it down to the Themes table.

Anyone else gotten a SQL error if you try to sort the Member List by Xfire name?
Title: Re: XFire Field
Post by: GwE¬ØЯΐĠîŋ™ on December 13, 2007, 08:39:03 AM
Thanks for the answer.

I got the error and I have no idea how fixed it.
Title: Re: XFire Field
Post by: concorde7 on December 19, 2007, 12:58:18 PM
bad mod, too many porblems with it.  others who have looked at the code have no idea what to make of it. very questionable.  beware. has hurt my site and now with issues reversing.
Title: Re: XFire Field
Post by: SgtMic on January 03, 2008, 09:03:51 PM
While viewing the members page, I click on the xfire link to sort all the members with xfire and I get this Database error:

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 0, 30' at line 5
File: /home/***/public_html/forum/Sources/Memberlist.php
Line: 347

Here is what I have on line 347:

LIMIT $limit, $modSettings[defaultMaxMembers]", __FILE__, __LINE__);


Any ideas on what to do here? I'm using SMF 1.1.4
Title: Re: XFire Field
Post by: SgtMic on January 07, 2008, 12:28:24 PM
Bumpity bump bump...
Title: Re: XFire Field
Post by: Sabre™ on January 12, 2008, 12:14:21 AM
Hmmmm..  Very strange..

I have installed this without a hitch.
No errors at all..

Thanks mate for the mod :-)
I just downed xfire, and had no idea it kept my gaming stats..  LOL
That is until I clicked on the icon...

Nice one mate.. :-)

And thanks again.

EDIT!!!      Oh nah..  Scratch that.
The database errors are piling up..
Title: Re: XFire Field
Post by: SgtMic on January 12, 2008, 12:45:13 AM
It installed for just fine with no errors. I just get that error when I try to do that action.
Title: Re: XFire Field
Post by: concorde7 on January 18, 2008, 09:37:41 PM
I must retract my last post, i have discovered that the issue was not with this mod but instead with my own permissions.  My apologies, i have installed the mod, although i cannot get it full features from the theme i am using, i will have to work this out myself, but mod installed with no issues.
Title: Re: XFire Field
Post by: Sabre™ on February 03, 2008, 12:24:41 AM
What do you add to your custom themes display.template, to get this to show??

I've added this from the default template, but it doesnt work.
!empty($message['member']['options']['XFire']) ? '<a href="http://www.xfire.com/xf/modules.php?name=XFire&file=profile&uname=' . $message['member']['options']['XFire'] . '" target="_blank"><img border="0" src="' . $settings['images_url'] . '/XFire.gif" alt="' . $message['member']['options']['XFire'] . '"></a>' : '',

Any ideas??   Thanks
Title: Re: XFire Field
Post by: concorde7 on February 06, 2008, 03:55:25 PM
Fernside, i am unable to get this to work on my current theme (aa_new_damage) I have emailed the author and recieved no replies.
Title: Re: XFire Field
Post by: Sabre™ on February 07, 2008, 10:41:28 PM
Yea..  Thats a shame mate.
Hopefully someone picks this mod up, or rewrites it completely.

I'll have another look tonight after work.