News:

Join the Facebook Fan Page.

Main Menu

XFire Field

Started by InsaneBoarder234, August 12, 2007, 01:15:02 PM

Previous topic - Next topic

InsaneBoarder234

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
Progress is born from the opportunity to make mistakes

CrimsonGuard

Absolutely fantastic mod!  It's simple, and it does the job well.  Thanks man!

:D

Afterglow86

This is great. Thank you for making it fit in more.

Mulgarus

thank you very much, this is what ive been searching for :)

JOSHSKORN

Does anyone have this mod in action?  I'd like to see it.  It MIGHT be what I'm looking for.

Mulgarus

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

JOSHSKORN

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.

ziycon

This failed when i was trying to apply the mod, it failed on the test with the who.template.php file, any ideas?

ziycon

#8
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???

zsw007

you forgot to add the Xfire field to Members
viewing Members

InsaneBoarder234

#10
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.
Progress is born from the opportunity to make mistakes

Kodiak_Ice

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

Kodiak_Ice


Kodiak_Ice


InsaneBoarder234

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]
Progress is born from the opportunity to make mistakes

Kodiak_Ice

Thanks for the reply, sent out the file today!!!

Paper-Cut

Where's the download link? I don't see one..

concorde7

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?

GwE¬ØЯΐĠîŋ™

I hate to ask this.. but where in the database does the member's xfire get saved?

Xfire: origin89 | Xbox Live: I ORiGiN L

crazedlemming

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?

Advertisement: