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:
- An XFire field is displayed under the Instant Messengers section of both the view profile and modify profile pages, rather than under the website section
- Includes a description below the XFire field in the modify profile page to make it look more natural with the other instant messenger fields
- The XFire field always appears in the view profile page regardless of whether an XFire name has been entered, making it look more natural with the other instant messenger fields
- The XFire field in the view profile page is hyperlinked (to the user's XFire profile page) like the other instant messenger fields
- An XFire icon is displayed along with other instant messenger icons in the user information section of forum posts.
- The XFire icon displayed in posts is displayed after the YIM icon rather than before the other instant messenger icons, following the same order as the instant messenger fields in the profile pages*
- The XFire icon shown in posts has alt text displaying the user's XFire username similar to the other instant messenger icons
- The modification uninstall removes the XFire icon image when uninstalled
Version 1.3 Additions
- An XFire icon and link are now added to the "Who's Online" page
Version 1.4 Additions
- An XFire icon and link are now added to the "View Members" page
http://custom.simplemachines.org/mods/index.php?mod=888 (http://custom.simplemachines.org/mods/index.php?mod=888)
Absolutely fantastic mod! It's simple, and it does the job well. Thanks man!
:D
This is great. Thank you for making it fit in more.
thank you very much, this is what ive been searching for :)
Does anyone have this mod in action? I'd like to see it. It MIGHT be what I'm looking for.
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
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.
This failed when i was trying to apply the mod, it failed on the test with the who.template.php file, any ideas?
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???
you forgot to add the Xfire field to Members
viewing Members
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.
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
anyone?
is anyone here?
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]
Thanks for the reply, sent out the file today!!!
Where's the download link? I don't see one..
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?
I hate to ask this.. but where in the database does the member's xfire get saved?
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?
Thanks for the answer.
I got the error and I have no idea how fixed it.
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.
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
Bumpity bump bump...
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..
It installed for just fine with no errors. I just get that error when I try to do that action.
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.
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
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.
Yea.. Thats a shame mate.
Hopefully someone picks this mod up, or rewrites it completely.
I'll have another look tonight after work.