Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: Violat3r on April 19, 2008, 07:23:35 PM

Title: Advanced XFire Field v2.0
Post by: Violat3r on April 19, 2008, 07:23:35 PM
Advanced XFire Field Mod v2.0
by Violat3r (http://www.simplemachines.org/community/index.php?action=profile) | Support (http://www.simplemachines.org/community/index.php?topic=235062.0) | Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=1161)


Compatibility: This should work fine on SMF 1.1.4 through 1.1.7. But its only been tested on those so im not sure how well it will work with anything lower nor do i know about compatibility with 2.x Beta at this time.

Info: This mod will add an "XFire" field to your members' profile page, a little image in their posts, xfire information in the member list, and xfire info in the "Who's Online" page. Unlike the other xfire mods i've encountered, this one doesn't just display your xfire name and a link to your xfire profile. It shows your xfire information using the mini-profile Banners from the Xfire website. The small icon which appears on the member list, posts, and who's online list will change if their online, offline, or playing a game. If the game has an icon that XFire has setup, it will show that icon, if however your playing a game that XFire doesnt have an icon for but still recognizes the game, it will show the normal icon as well as what game their playing when you mouseover the icon.

Upgrading: If your upgrading from the 1.x versions, please, PLEASE delete ALL codes added with the xfire mod and COMPLETELY un-install it. Your database will keep the members' information so upon installation of the new versions, everything should work ok. If it doesnt...then well i guess they've got to reenter there information, sorry. The main reason for such deletion is almost ALL the code has been tweaked in some way. After this has been done, just follow the following installation instructions and you should be up and running in no time!

Installation: First off just Download the mod and then go to "Admin > Packages > Download Packages" then browse for the mod zip and click "Upload". Once thats done, click "Install Mod" then click "Apply Mod". It may pause for a few seconds but eventually you should get a successful installation. Kerblam! Its done, just go to "Profile Information" and enter your xfire Username. Your other option is to search for it in the package servers, but i dont much care for them so i prefer the manual installation method.

For Custom themes that have a Custom "Profile.template.php" and "Display.template.php", it wont be quite as simple:

You will need some kind of text editor or coding program to open the php files needed; If your theme has both a custom Profile.template.php and Display.template.php then please follow both instructions carefully, if your theme has only 1 of those custom-built please just follow the instructions for just that one (in most cases, custom themes dont have a custom Profile.template.php, but you MUST be sure else it wont work right).



FOR THE Profile.template.php:

Open Profile.template.php and locate the following code:
<td>', $context['member']['yim']['link_text'], '</td>

position your cursor directly after that code and then PASTE this next code:
</tr><tr>
<td colspan="2"><hr size="1" width="100%" class="hrcolor" /></td>
</tr><tr><td><b>', $txt['xfire'], ': </b></td>
<td>', !empty($context['member']['options']['xfire']) ? '<a href="http://www.xfire.com/profile/' . $context['member']['options']['xfire'] . '/" target="_blank"><img src="http://miniprofile.xfire.com/bg/sh/type/1/' . $context['member']['options']['xfire'] . '.png" /></a><br /><div class="smalltext"><a href="xfire:add_friend?user=' . $context['member']['options']['xfire'] . '">' . $txt['xfire_add'] . '</a> | ' . $txt['xfire_dont'] . ' <a href="http://www.xfire.com/download/" target="_blank">' . $txt['xfire_download'] . '</a></div>'  : '', '</td><tr>
<td colspan="2"><hr size="1" width="100%" class="hrcolor" /></td>
</tr>


Now in the same file, located the following code:
<td><input type="text" name="YIM" maxlength="32" size="24" value="', $context['member']['yim']['name'], '" /></td>

Once again, exactly after that code paste this:
</tr><tr><td><b>', $txt['xfire'], ': </b><div class="smalltext">', $txt['xfire_username'], '. </div></td>
<td><input type="text" name="default_options[xfire]" maxlength="25" size="24" value="', @$context['member']['options']['xfire'], '" /><br /><div class="smalltext">' . $txt['xfire_dont'] . ' <a href="http://www.xfire.com/download/" target="_blank">' . $txt['xfire_download'] . '</a></div></td>


Save the file and upload it to your theme directory. And your done with the Profile.template.php!! YAY!!



FOR THE Display.template.php:

Open Display.template.php and locate this code:
', $message['member']['yim']['link'],

Directly after that paste this code:

!empty($message['member']['options']['xfire']) ? '<a href="http://www.xfire.com/profile/' . $message['member']['options']['xfire'] . '/" target="_blank"><img src="http://miniprofile.xfire.com/bg/bg/type/4/' . $message['member']['options']['xfire'] . '.gif" width="16" height="16" alt="' . $message['member']['options']['xfire'] . '" title="' . $txt['xfire'] . ' :: '.$message['member']['options']['xfire'].'" /></a>' : '',

Make sure that you start the above code on a new line but keep this code after the xfire one on the next line:   '<br />';
Basically your display.template.php should look like this:
// This shows the popular messaging icons.
echo '
', $message['member']['icq']['link'], '
', $message['member']['msn']['link'], '
', $message['member']['aim']['link'], '
', $message['member']['yim']['link'],
!empty($message['member']['options']['xfire']) ? '<a href="http://www.xfire.com/profile/' . $message['member']['options']['xfire'] . '/" target="_blank"><img src="http://miniprofile.xfire.com/bg/bg/type/4/' . $message['member']['options']['xfire'] . '.gif" width="16" height="16" alt="' . $message['member']['options']['xfire'] . '" title="' . $txt['xfire'] . ' :: '.$message['member']['options']['xfire'].'" /></a>' : '',
'<br />';

Notice that the '<br />'; is on its own line AFTER the xfire modification.

Save the file and upload it to your theme directory. And your done with the Display.template.php!! YAY!!


if your still having some problems understanding EXACTLY what to do, try going Here (http://docs.simplemachines.org/index.php?topic=402), it will help explain what to do probably better then i can.

Un-install: To un-install this mod, just go to "Admin > Packages" and click "un-install" then delete if you just want to get rid of it completely. If its a custom theme that you made MANUAL changes to, just locate the codes i told you to paste above, and then delete them, CAREFULLY. You dont want to accidentally delete an important part of your forum. In this case you might consider making a copy of each of the template.php files BEFORE modifying them so that maybe at a later date you can just re-upload them as if nothing was installed to begin with.

IMPORTANT: ALWAYS, and i mean ALWAYS make a back of your forum, files, and database before installing any kind of mod.

Support: Please look for help and support in the mod's post in the SMF Community forums which you can find here (http://www.simplemachines.org/community/index.php?topic=235062.0). My website is currently non-operational, so you will not be able to contact me through there.

Future Releases:

Credits: Huge Credits go to InsaneBoarder234 for his great XFire Field mod that led to the eventual construction of this one. I would also like to thank winrules for his Custom Profile Field mod which gave me the idea of making something like this. And finally i would like to thank ccbtimewiz from the Community forums for finding such a simple mistake on my part and correcting it for me as well as providing a lot of help and support to my mod-users, especially when i was absent for months on end, Thanx!

Changelog:

Title: Re: Advanced XFire Field
Post by: Sabre™ on April 20, 2008, 09:42:44 PM
Good sh*t mate (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.postsmile.net%2Fimg%2F19%2F1942.gif&hash=42cd69283eccfe590865ee3fae6fe4254686921d)
About time someone did a good mod for xfire.
Its fantastic mate, thanks for the great work!

My custom theme edit for the display template gets a parse error.
It is the invazion theme, and I've added my display template for you to see why.
Hopefully you can sort this out.
Thank You in advance. :)
Title: Re: Advanced XFire Field
Post by: Apllicmz on April 21, 2008, 01:26:09 AM
nice Mod i translate portuguese

<file name="$languagedir/Modifications.portuguese.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[
$txt['xfire'] = 'XFire';
$txt['xfire_username'] = 'O XFire do membro';
]]></add>
</operation>
</file>
<file name="$languagedir/Modifications.brazilian.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[
$txt['xfire'] = 'XFire';
$txt['xfire_username'] = 'O XFire do membro';
]]></add>
</operation>
</file>
Title: Re: Advanced XFire Field
Post by: Violat3r on April 23, 2008, 02:49:22 AM
well its late so i shall make this brief, first off: Thanx joomlamz! I'll get to work on adding that in the next day or two. Second; Sabre, i dont know if you thought you had added the code to the display template and it wouldnt work, or if you were just giving me a fresh copy without the code added, but you have to add a certain code YOURSELF, to the display.template.php for ALL custom themes, as it will only install normally on the default theme. But in any case, please try this (i added the code for you) and let me know if it works:
Title: Re: Advanced XFire Field
Post by: Sabre™ on April 23, 2008, 09:20:36 AM
Hi mate.
Yep sorry, I didnt explain myself properly.
I had, as with every mod, manually installed this, but when adding the code supplied for that template, I would get the parse error.

Anyho..  Thank You for adding the code for me bud. It works flawlessly!!
Im about to compare both codes and see what differs.

Cheers :)

EDIT:   I found what I was doing wrong..   I was adding an extra single quote!! LOL
Cheers mate.   Glad you showed me that flaw.
Title: Re: Advanced XFire Field
Post by: Violat3r on April 24, 2008, 05:09:07 PM
I just updated the Mod to version 1.1, the changes can be seen in the "Changelog" located in the first post in this topic.
Title: Re: Advanced XFire Field
Post by: lOOmis on May 14, 2008, 12:27:18 PM
Have the mod set up and running on my site but the feilds in the profile are not right. I might have done something but believe I've followed the directions well. Here is an image of what Im talking about. I realize it deals with a table or something along those lines but I'm still lost, obviously. Any help would be great,

Thanks
Title: Re: Advanced XFire Field
Post by: Violat3r on May 15, 2008, 02:59:30 PM
Can you please post your profile.template.php? im sure that its just an issue with placement in there.
Title: Re: Advanced XFire Field
Post by: ccbtimewiz on May 15, 2008, 04:49:38 PM
Nice modification (and glad to help :P).

Though, only a couple more requests for this modification. Could you port it into the memberlist, buddylist, and who's online list?

I can do this myself obviously, but it would be nice to see a fully integrated modification. =)
Title: Re: Advanced XFire Field
Post by: Violat3r on May 15, 2008, 04:57:22 PM
Oh, i definitely plan to. Although right now im extremely busy with about a bazillion other things lol so changes will come relatively slowly.
Title: Re: Advanced XFire Field
Post by: lOOmis on May 20, 2008, 03:46:23 PM
Hey I got the MOD to work, looks great. I missed a line of code when copying it over to the custom Theme. Works like a champ now. Thanks anyway Violat3r. Nice MOD.
Title: Re: Advanced XFire Field
Post by: Violat3r on May 20, 2008, 08:28:28 PM
Just updated the mod to show up on the "Who's Online" list! Huzzah! =D
Title: Re: Advanced XFire Field
Post by: malfunkshun on June 09, 2008, 06:34:25 PM
Problem, my code for default/display template is

', $message['member']['icq']['link'], '
', $message['member']['msn']['link'], '
', $message['member']['aim']['link'], '
', $message['member']['yim']['link'], '<br />';

This is the excerpt from the default, unchanged display.template.
the code insert doesnt work, T String error :(...any ideas? perhaps its because its late but I cant get my head around it lol
Title: Re: Advanced XFire Field
Post by: ccbtimewiz on June 09, 2008, 07:45:31 PM
Show me more code. WITH the code from the mod inserted.
Title: Re: Advanced XFire Field
Post by: malfunkshun on June 10, 2008, 01:27:50 AM

// This shows the popular messaging icons.
echo '

', $message['member']['icq']['link'], '
', $message['member']['msn']['link'], '
', $message['member']['aim']['link'], '
', $message['member']['yim']['link'], '
!empty($message['member']['options']['xfire']) ? '<a href="http://profile.xfire.com/' . $message['member']['options']['xfire'] . '" target="_blank"><img border="0" src="' . $settings['images_url'] . '/xfire.gif" alt="' . $message['member']['options']['xfire'] . '" title="'.$message['member']['options']['xfire'].'"></a>' : '',<br />';

// Show the profile, website, email address, and personal message buttons.

including the line for insertion as per the install instructions.
resulting in Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in ... on the added line.
Title: Re: Advanced XFire Field
Post by: ccbtimewiz on June 10, 2008, 03:48:35 PM
Use this instead:

// This shows the popular messaging icons.
echo '
', $message['member']['icq']['link'], '
', $message['member']['msn']['link'], '
', $message['member']['aim']['link'], '
', $message['member']['yim']['link'], ''

!empty($message['member']['options']['xfire']) ? '<a href="http://profile.xfire.com/' . $message['member']['options']['xfire'] . '" target="_blank"><img border="0" src="' . $settings['images_url'] . '/xfire.gif" alt="' . $message['member']['options']['xfire'] . '" title="' , $message['member']['options']['xfire'].'"></a>' : '' , '<br />';
Title: Re: Advanced XFire Field
Post by: malfunkshun on June 11, 2008, 02:49:30 PM
Quote
Parse error: syntax error, unexpected '!', expecting ',' or ';' in .../Themes/default2/Display.template.php on line 338

329:                         ', $message['member']['blurb'], '<br />
330:                         <br />';
331:
332: // This shows the popular messaging icons.
333: echo '
334: ', $message['member']['icq']['link'], '
335: ', $message['member']['msn']['link'], '
336: ', $message['member']['aim']['link'], '
337: ', $message['member']['yim']['link'], ''
338: !empty($message['member']['options']['xfire']) ? '<a href="http://profile.xfire.com/' . $message['member']['options']['xfire'] . '" target="_blank"><img border="0" src="' . $settings['images_url'] . '/xfire.gif" alt="' . $message['member']['options']['xfire'] . '" title="' , $message['member']['options']['xfire'].'"></a>' : '' , '<br />';
339:             
340:    
:( unfortunately that didnt work either. Thanks for trying though.
Title: Re: Advanced XFire Field
Post by: malfunkshun on June 11, 2008, 03:09:19 PM
Ahh, its surprising how much some sleep can help.
Since I am using the default code I am surprised that no-one else has had this problem (1.1.5), on the off chance that someone does the working code is below;

// This shows the popular messaging icons.
echo '
', $message['member']['icq']['link'], '
', $message['member']['msn']['link'], '
', $message['member']['yim']['link'], '
', $message['member']['aim']['link'], ' ',
!empty($message['member']['options']['xfire']) ? '<a href="http://profile.xfire.com/' . $message['member']['options']['xfire'] . '" target="_blank"><img border="0" src="' . $settings['images_url'] . '/xfire.gif" alt="' . $message['member']['options']['xfire'] . '" title="'.$message['member']['options']['xfire'].'"></a>' : '','<br />';
Title: Re: Advanced XFire Field
Post by: ccbtimewiz on June 11, 2008, 04:32:01 PM
Quote from: malfunkshun on June 11, 2008, 02:49:30 PM
Quote
Parse error: syntax error, unexpected '!', expecting ',' or ';' in .../Themes/default2/Display.template.php on line 338

329:                         ', $message['member']['blurb'], '<br />
330:                         <br />';
331:
332: // This shows the popular messaging icons.
333: echo '
334: ', $message['member']['icq']['link'], '
335: ', $message['member']['msn']['link'], '
336: ', $message['member']['aim']['link'], '
337: ', $message['member']['yim']['link'], ''
338: !empty($message['member']['options']['xfire']) ? '<a href="http://profile.xfire.com/' . $message['member']['options']['xfire'] . '" target="_blank"><img border="0" src="' . $settings['images_url'] . '/xfire.gif" alt="' . $message['member']['options']['xfire'] . '" title="' , $message['member']['options']['xfire'].'"></a>' : '' , '<br />';
339:             
340:    
:( unfortunately that didnt work either. Thanks for trying though.

[code338: !empty($message['member']['options']['xfire']) ? '<a href="http://profile.xfire.com/' . $message['member']['options']['xfire'] . '" target="_blank"><img border="0" src="' . $settings['images_url'] . '/xfire.gif" alt="' . $message['member']['options']['xfire'] . '" title="' , $message['member']['options']['xfire'].'"></a>' : '' , '<br />';[/code]

Change to

echo ',!empty($message['member']['options']['xfire']) ? '<a href="http://profile.xfire.com/' . $message['member']['options']['xfire'] . '" target="_blank"><img border="0" src="' . $settings['images_url'] . '/xfire.gif" alt="' . $message['member']['options']['xfire'] . '" title="' , $message['member']['options']['xfire'].'"></a>' : '' , '<br />';
Title: Re: Advanced XFire Field
Post by: CrazyHorse80 on June 11, 2008, 04:58:47 PM
I got this error in forum log:

Quote8: Undefined index: xfire
File: D:\xx\xx\forum\Themes\default\languages\Who.italian.php (eval?)
Riga: 225

I looked into the mod file and it seems it desn't modify who.english.php so I don't expect to make any change in my who.italian.php: what's wrong?
Bye,
PS
Title: Re: Advanced XFire Field
Post by: ruckstande on June 11, 2008, 05:18:41 PM
I'm generating a bunch of errors here.
The Guest is getting this one:

8: Undefined index: gamertag
File: /home/content/r/u/c/ruckstande/html/Themes/default/Display.template.php (eval?)
Line: 371

8: Undefined index: options
File: /home/content/r/u/c/ruckstande/html/Themes/default/Display.template.php (eval?)
Line: 371

And I'm getting these

2: unlink(/home/content/r/u/c/ruckstande/html/Themes/default/images/xfire.gif): No such file or directory
File: /home/content/r/u/c/ruckstande/html/Sources/Subs-Package.php
Line: 1047

8: Undefined index: xfire
File: /home/content/r/u/c/ruckstande/html/Themes/default/languages/Who.english.php (eval?)
Line: 225

Title: Re: Advanced XFire Field
Post by: Violat3r on June 12, 2008, 07:05:08 PM
Quote from: CrazyHorse80 on June 11, 2008, 04:58:47 PM
I got this error in forum log:

Quote8: Undefined index: xfire
File: D:\xx\xx\forum\Themes\default\languages\Who.italian.php (eval?)
Riga: 225

I looked into the mod file and it seems it desn't modify who.english.php so I don't expect to make any change in my who.italian.php: what's wrong?
Bye,
PS


Well, as ive said before im not very good with this kinda stuff, but ill try. Are you trying to use an italian forum? it seems that maybe that may be the issue, its trying to read what the xfire term means by i THINK grabbing it from a Modification.italian.php...which i dont have a translation for so it cant read it.....but i really dont know, you might wanna wait for ccbtimewiz lol. If you are using an italian forum, try opening your Modification.italian.php and adding these lines:

$txt['xfire'] = 'XFire';
$txt['xfire_username'] = 'Your XFire Username';
$txt['xfire_add'] = 'Add as Friend?';

Then remove the english and make the italian translation (probably need to keep the first one just XFire lol) Then save and upload and see if it makes a difference.

Quote from: ruckstande on June 11, 2008, 05:18:41 PM
I'm generating a bunch of errors here.
The Guest is getting this one:

8: Undefined index: gamertag
File: /home/content/r/u/c/ruckstande/html/Themes/default/Display.template.php (eval?)
Line: 371

8: Undefined index: options
File: /home/content/r/u/c/ruckstande/html/Themes/default/Display.template.php (eval?)
Line: 371

And I'm getting these

2: unlink(/home/content/r/u/c/ruckstande/html/Themes/default/images/xfire.gif): No such file or directory
File: /home/content/r/u/c/ruckstande/html/Sources/Subs-Package.php
Line: 1047

8: Undefined index: xfire
File: /home/content/r/u/c/ruckstande/html/Themes/default/languages/Who.english.php (eval?)
Line: 225



I dont think the first 2 have anything to do with my mod, since "gamertag" doesnt exist in it, and the "options" error.....i haven't the SLIGHTEST clue. For the errors your personally getting, make sure that the xfire.gif is in the default themes' image directory, if not just grab it from the zip and put it in manually. For the 2nd error......not sure, but it sounds similar to the previous guys problem, make sure the proper string is in the Modification.english.php. If all is well......then i have no idea.....it works fine for me so  ::) Good Luck ~ Vio
Title: Re: Advanced XFire Field
Post by: ruckstande on June 13, 2008, 07:40:31 AM
Nope, I'm still messed up. I don't understand why it is telling me I have an error at line 225 when it only goes to 96.
Title: Re: Advanced XFire Field
Post by: CrazyHorse80 on June 13, 2008, 03:02:43 PM
Quote from: Violat3r on June 12, 2008, 07:05:08 PM
Quote from: CrazyHorse80 on June 11, 2008, 04:58:47 PM
I got this error in forum log:

Quote8: Undefined index: xfire
File: D:\xx\xx\forum\Themes\default\languages\Who.italian.php (eval?)
Riga: 225

I looked into the mod file and it seems it desn't modify who.english.php so I don't expect to make any change in my who.italian.php: what's wrong?
Bye,
PS


Well, as ive said before im not very good with this kinda stuff, but ill try. Are you trying to use an italian forum? it seems that maybe that may be the issue, its trying to read what the xfire term means by i THINK grabbing it from a Modification.italian.php...which i dont have a translation for so it cant read it.....but i really dont know, you might wanna wait for ccbtimewiz lol. If you are using an italian forum, try opening your Modification.italian.php and adding these lines:

$txt['xfire'] = 'XFire';
$txt['xfire_username'] = 'Your XFire Username';
$txt['xfire_add'] = 'Add as Friend?';

Then remove the english and make the italian translation (probably need to keep the first one just XFire lol) Then save and upload and see if it makes a difference.


I've already done this...  But it doesn't work!
Title: Re: Advanced XFire Field
Post by: malfunkshun on June 13, 2008, 03:13:45 PM
having the same problem. But it is not an error I can reliably recreate. It appears to be fairly random from my end but is more prevalent when viewing a profile that has not added xfire info.
Title: Re: Advanced XFire Field
Post by: Violat3r on June 13, 2008, 04:31:53 PM
Thats....well really strange. I do know that if no xfire info has been placed it will still show the XFire area and the "Add as Friend?" thing, which i have fixed in the version im working on now. But once again....i really dont know enough as i have never had any of these errors on my end at all and im not a nearly enough experience coder in any way. As i said before i think that maybe we'll just have to wait for ccbtimewiz or someone who knows what there doing LOL to help. So yea....sorry :/
Title: Re: Advanced XFire Field
Post by: ccbtimewiz on June 13, 2008, 05:03:37 PM
The ones whom are having problems...

Please attach the templates that this modification edits (or the templates in your custom theme if it applies), and please give me a list of all the modifications you currently have installed and what version of SMF you're running.
Title: Re: Advanced XFire Field
Post by: CrazyHorse80 on June 14, 2008, 03:56:37 AM
Here they are:

profile.template.php
who.template.php
display.template.php (custom theme - Metallic Abyss)
modification.italian.php (I'm using it)
modification.english.php

All they are attached to this post.


I've installed those mods in my forum (SMF 1.1.5):
1.     Advanced XFire Field             1.2
2.    Attachment File Renamer    1.1.2
3.    Auto Embed Video Clips            1.0
4.    Banlist                                    1.0
5.    Double Post Stopper            1.0.1
6.    Auto Email Inactive Users    1.7
7.    Googlebot & Spiders Mod    2.0.3
8.    Google Member Map            0.1
9.    Hide SMF Version                    1.0
10.    MCLegendII                            1.1
11.    nCode Image Resizer            1.0
12.    ReasonForEditing Mod         1.14
14.    Rename Topic                             1.0.2
15.    Save PM as HTML                    1.0.5
16.    Separated Bd from Events    1.0
17.    Add Sitepreview's                    1.0
18.    SMF 1.1.4 Search "brd" Bug Fix (1.0.1)    1.0.1
19.    SMF 1.0.13 / 1.1.5 / 2.0 b3.1 Update    1.0
20.    Spiders Don't Increase Topic Views    1.1
21.    Who Voted What?                    1.1.4


Thanks,
PS
Title: Re: Advanced XFire Field
Post by: ccbtimewiz on June 14, 2008, 01:27:38 PM
Okie, I managed to fix it, but in two ways.

One of the ways might not work for you, so if one doesn't work, try the other. =]
Title: Re: Advanced XFire Field
Post by: CrazyHorse80 on June 14, 2008, 01:57:44 PM
I'm gonna try... But, only for satisfy my curiosity, what exactly did you modify?
Thanks,
PS

EDIT: I need the modifications because I've installed another mod after that and I've modded some of those files you fixed...
Title: Re: Advanced XFire Field
Post by: ruckstande on June 15, 2008, 11:10:09 PM
Quote from: ccbtimewiz on June 13, 2008, 05:03:37 PM
The ones whom are having problems...

Please attach the templates that this modification edits (or the templates in your custom theme if it applies), and please give me a list of all the modifications you currently have installed and what version of SMF you're running.

Here is mine.

   Mod Name     Version     
1.    SMF 1.0.12 / 1.1.4 / 2.0 b1.1 Update    1.0    [ List Files ] [ Delete ]
2.    YouTube BBC Tag (XHTML Compliant)    1.0    [ Uninstall ] [ List Files ] [ Delete ]
3.    SMF Links    1.6.5    [ Uninstall ] [ List Files ] [ Delete ]
4.    Xbox Live Gamer Tag    1.0.0    [ Uninstall ] [ List Files ] [ Delete ]
5.    FontandSizeDropdown_1.2    1.2    [ Uninstall ] [ List Files ] [ Delete ]
6.    Spoiler Tag - unofficial version for SMF 1.1.3    0.3.3    [ List Files ] [ Delete ]
7.    Auto Embed Video/Audio Clips    3.0    [ Uninstall ] [ List Files ] [ Delete ]
8.    express 2 smiley set    2    [ Uninstall ] [ List Files ] [ Delete ]
9.    Advanced XFire Field    1.2    [ Uninstall ] [ List Files ] [ Delete ]
10.    SMF 1.0.12 / 1.1.4 / 2.0 b1.1 Update    1.0    [ List Files ] [ Delete ]
11.    Increase/Decrease Postbox Size    1.0    [ Uninstall ] [ List Files ] [ Delete ]
12.    SMF 1.0.13 / 1.1.5 / 2.0 b3.1 Update    1.0    [ Uninstall ] [ List Files ] [ Delete ]
13.    nCode Image Resizer    1.0    [ Uninstall ] [ List Files ] [ Delete ]
14.    Username Tag    1.2    [ Uninstall ] [ List Files ] [ Delete ]
15.    Order by Length(code) fix    1.0    [ Uninstall ] [ List Files ] [ Delete ]
16.    Automatic_Karma    1.0    [ Uninstall ] [ List Files ] [ Delete ]
17.    Pretty URLs - Base    0.8.3    [ Uninstall ] [ List Files ] [ Delete ]
18.    URL Popup    1.0    [ Uninstall ] [ List Files ] [ Delete ]
19.    clickableImagebbcode    1.0

Title: Re: Advanced XFire Field
Post by: Violat3r on June 18, 2008, 12:18:10 AM
Sorry Ruck, ive been really busy. Ill take a look at these when i can but i do want to say before-hand that that one error saying "gamertag" that your getting im pretty sure is coming from your "Xbox Live Gamer Tag" mod (hence the "Gamer Tag" part LOL!!!) But yea, ya never maybe my mod is screwing up both :/ Dunno but ill take a look at these soon.

EDIT: Which version of the XBox Live Gamer Tag are you using? Cause if its the one i think it is then it is VERY outdated!!! I would suggest going with a newer one, such as ziycon's (http://custom.simplemachines.org/mods/index.php?mod=957) or UTM-MaKaVeLi's (http://custom.simplemachines.org/mods/index.php?mod=1252) I dont know at this point, but it MIGHT be a problem with that for that one at least.

EDIT AGAIN: Ok well, i personally cant really find any problems, but once again im not really a coder and i barely know anything so w/e. Anyway, there was only 1 issue i could find and i highly doubt it could cause all your problems but hey, ya never know. Try uploading this Modifications.english.php of which i made only a slight adjustment to the nCode Image Resizer information. I hope this helps...but its just a shot in the dark :/ Good Luck Sir! =D
Title: Re: Advanced XFire Field
Post by: ruckstande on June 19, 2008, 08:42:10 PM
Quote from: Violat3r on June 18, 2008, 12:18:10 AM
Sorry Ruck, ive been really busy. Ill take a look at these when i can but i do want to say before-hand that that one error saying "gamertag" that your getting im pretty sure is coming from your "Xbox Live Gamer Tag" mod (hence the "Gamer Tag" part LOL!!!) But yea, ya never maybe my mod is screwing up both :/ Dunno but ill take a look at these soon.

EDIT: Which version of the XBox Live Gamer Tag are you using? Cause if its the one i think it is then it is VERY outdated!!! I would suggest going with a newer one, such as ziycon's (http://custom.simplemachines.org/mods/index.php?mod=957) or UTM-MaKaVeLi's (http://custom.simplemachines.org/mods/index.php?mod=1252) I dont know at this point, but it MIGHT be a problem with that for that one at least.

EDIT AGAIN: Ok well, i personally cant really find any problems, but once again im not really a coder and i barely know anything so w/e. Anyway, there was only 1 issue i could find and i highly doubt it could cause all your problems but hey, ya never know. Try uploading this Modifications.english.php of which i made only a slight adjustment to the nCode Image Resizer information. I hope this helps...but its just a shot in the dark :/ Good Luck Sir! =D
Thanks for your help. I wouldn't kill yourself over it. I'm reinstalling the site anyway because the Simple Portal mod f'd me up royally. I will take that file though. Thank you.
Title: Re: Advanced XFire Field
Post by: ruckstande on June 22, 2008, 08:00:47 PM
Okay, I reinstalled everything but I'm still getting the same errors as before. It's just strange.
Title: Re: Advanced XFire Field
Post by: ccbtimewiz on June 22, 2008, 08:35:46 PM
Quote from: ruckstande on June 22, 2008, 08:00:47 PM
Okay, I reinstalled everything but I'm still getting the same errors as before. It's just strange.

Very strange. Mind letting me see for myself?
Title: Re: Advanced XFire Field
Post by: ruckstande on June 23, 2008, 09:01:38 AM
Quote from: ccbtimewiz on June 22, 2008, 08:35:46 PM
Quote from: ruckstande on June 22, 2008, 08:00:47 PM
Okay, I reinstalled everything but I'm still getting the same errors as before. It's just strange.

Very strange. Mind letting me see for myself?
Do you just want the errors?

QuoteApply Filter: Only show the error messages of this member  Guest       June 22, 2008, 01:52:27 PM
8: Undefined index: xfire
File: /home/content/r/u/c/ruckstande/html/pbl2/Themes/default/Profile.template.php (eval?)
Line: 225
   
Apply Filter: Only show the error messages of this member [OnA]Beeman99    June 21, 2008, 11:12:21 PM
8: Undefined index: xfire
File: /home/content/r/u/c/ruckstande/html/pbl2/Themes/default/languages/Who.english.php (eval?)
Line: 225
   
Apply Filter: Only show the error messages of this member Garyisajoke    June 21, 2008, 10:02:29 PM
8: Undefined index: xfire
File: /home/content/r/u/c/ruckstande/html/pbl2/Themes/default/languages/Who.english.php (eval?)
Line: 225
   
Apply Filter: Only show the error messages of this member Bill Lehecka    June 21, 2008, 08:48:38 PM
8: Undefined index: xfire
File: /home/content/r/u/c/ruckstande/html/pbl2/Themes/default/languages/Who.english.php (eval?)
Line: 225

   
Apply Filter: Only show the error messages of this member Guest    June 21, 2008, 06:58:40 PM
8: Undefined index: xfire
File: /home/content/r/u/c/ruckstande/html/pbl2/Themes/default/Profile.template.php (eval?)
Line: 225
   
Apply Filter: Only show the error messages of this member [OnA] Rollin    June 21, 2008, 06:37:04 PM
8: Undefined index: xfire
File: /home/content/r/u/c/ruckstande/html/pbl2/Themes/default/languages/Who.english.php (eval?)
Line: 225
   
Apply Filter: Only show the error messages of this member Aero 1    June 21, 2008, 03:20:47 PM
8: Undefined index: xfire
File: /home/content/r/u/c/ruckstande/html/pbl2/Themes/default/languages/Who.english.php (eval?)
Line: 225
   

Title: Re: Advanced XFire Field
Post by: ccbtimewiz on June 23, 2008, 12:21:33 PM
Attach your profile.template.php and modifications.english.php file.
Title: Re: Advanced XFire Field
Post by: ruckstande on June 23, 2008, 01:09:33 PM
Here you go.
Title: Re: Advanced XFire Field
Post by: ccbtimewiz on June 23, 2008, 02:06:57 PM
Try these.
Title: Re: Advanced XFire Field
Post by: ruckstande on June 23, 2008, 02:32:46 PM
Quote from: ccbtimewiz on June 23, 2008, 02:06:57 PM
Try these.
I will thank you. I'll post how it goes.
Title: Re: Advanced XFire Field
Post by: ruckstande on June 23, 2008, 02:54:42 PM
So far so good. Can you post what changed so I can correct this if I ever have to reinstall the site?
Title: Re: Advanced XFire Field
Post by: ccbtimewiz on June 23, 2008, 03:31:31 PM
Compare the old file with the new one. XD

All I did was remove the empty() check and fixed the <tr></td></td></tr> issues. :)
Title: Re: Advanced XFire Field
Post by: ruckstande on June 23, 2008, 06:02:29 PM
Quote from: ccbtimewiz on June 23, 2008, 03:31:31 PM
Compare the old file with the new one. XD

All I did was remove the empty() check and fixed the <tr></td></td></tr> issues. :)
Terrific. Thank you.
Title: Re: Advanced XFire Field
Post by: threepwood on June 24, 2008, 07:35:24 AM
Hi,

I've installed this great mod on my forum (SMF 1.1.5 with TinyPortal 0.9.8) but the xfire description doesn't appear before the image. I only get the " : " character.

Is this because of the custom theme size? I've edited the display.template.php as instructed, don't have the profile.template file.

Here's a pic of what happens:

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg255.imageshack.us%2Fimg255%2F4356%2Fxfnv2.th.jpg&hash=8f70588f3e37aa02d2adef53cf07612c0a27b82a) (http://img255.imageshack.us/my.php?image=xfnv2.jpg)

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg120.imageshack.us%2Fimg120%2F558%2Fxf2ix7.th.jpg&hash=3e633d422a5ed9adb90a0d061f624956f47aa240) (http://img120.imageshack.us/my.php?image=xf2ix7.jpg)

Title: Re: Advanced XFire Field
Post by: ruckstande on June 24, 2008, 07:42:24 AM
Hey me again. I'm getting even more errors now but only from "Guest".

Guest       Today at 01:38:08 AM
8: Undefined index: xfire
File: /home/content/r/u/c/ruckstande/html/pbl2/Themes/default/Profile.template.php (eval?)
Line: 450
Title: Re: Advanced XFire Field
Post by: ccbtimewiz on June 24, 2008, 10:49:24 AM
Quote from: ruckstande on June 24, 2008, 07:42:24 AM
Hey me again. I'm getting even more errors now but only from "Guest".

Guest       Today at 01:38:08 AM
8: Undefined index: xfire
File: /home/content/r/u/c/ruckstande/html/pbl2/Themes/default/Profile.template.php (eval?)
Line: 450

Simply disable guests from viewing profiles.

threepwood, make sure you have the strings in modifications.english.php that this mod puts in.
Title: Re: Advanced XFire Field
Post by: ruckstande on June 24, 2008, 11:35:43 AM
Quote from: ccbtimewiz on June 24, 2008, 10:49:24 AM
Quote from: ruckstande on June 24, 2008, 07:42:24 AM
Hey me again. I'm getting even more errors now but only from "Guest".

Guest       Today at 01:38:08 AM
8: Undefined index: xfire
File: /home/content/r/u/c/ruckstande/html/pbl2/Themes/default/Profile.template.php (eval?)
Line: 450

Simply disable guests from viewing profiles.

threepwood, make sure you have the strings in modifications.english.php that this mod puts in.
Oh that simple. Thank you.
Title: Re: Advanced XFire Field
Post by: threepwood on June 24, 2008, 07:13:02 PM
Quote from: ccbtimewiz on June 24, 2008, 10:49:24 AMthreepwood, make sure you have the strings in modifications.english.php that this mod puts in.

Thanks, that nailed it down, perfect now :)
Title: Re: Advanced XFire Field
Post by: gamerhookup on August 13, 2008, 10:53:54 PM
Ok, after an hour or so and trying all the ideas in this posting. Nothing and I mean nothing other than deleting the mode all together.. I get the same errors.

I am running SMF 1.1.5, TP 1.05b and this happens on two different sites, one with default theme and 50 mods, and the other with only 12 mods.

Basically on both sites I get this exact same errors. there are no other errors on either site.

MYUSERNAME   Today at 10:48:36 PM 
0.0.0.0     0d74204f944039610dcf2db7f26a9555 
http://www.MYDOMAIN.net/index.php?action=profile;u=2 
8: Undefined index: xfire
File: /hermes/web07/b2331/pow.MYDOMAIN/htdocs/Themes/default/languages/TPShout.english.php (eval?)
Line: 230

In that Tpshout file, ther eis no line 230, there are only 20 lines in there.

Again, i have tried all the ideas in here and nothing has worked for either site.

Now this error only happens when any one whether is be guest or a member views a profile, and it does not have an xfire name in it, then it creates this error. Those with an xfire name works 100 percent!

Short of not using this mod Advanced Xfire 1.2 any other ideas ????
Title: Re: Advanced XFire Field
Post by: ccbtimewiz on August 13, 2008, 10:57:28 PM
Quote from: gamerhookup on August 13, 2008, 10:53:54 PM
Ok, after an hour or so and trying all the ideas in this posting. Nothing and I mean nothing other than deleting the mode all together.. I get the same errors.

I am running SMF 1.1.5, TP 1.05b and this happens on two different sites, one with default theme and 50 mods, and the other with only 12 mods.

Basically on both sites I get this exact same errors. there are no other errors on either site.

MYUSERNAME   Today at 10:48:36 PM 
0.0.0.0     0d74204f944039610dcf2db7f26a9555 
http://www.MYDOMAIN.net/index.php?action=profile;u=2 
8: Undefined index: xfire
File: /hermes/web07/b2331/pow.MYDOMAIN/htdocs/Themes/default/languages/TPShout.english.php (eval?)
Line: 230

In that Tpshout file, ther eis no line 230, there are only 20 lines in there.

Again, i have tried all the ideas in here and nothing has worked for either site.

Now this error only happens when any one whether is be guest or a member views a profile, and it does not have an xfire name in it, then it creates this error. Those with an xfire name works 100 percent!

Short of not using this mod Advanced Xfire 1.2 any other ideas ????


There is no line line 230 on that file because you have eval enabled.

In order to actually see where this error is coming from, you need to disable eval. Please open your phpmyadmin (http://www.simplemachines.org/community/index.php?topic=21919.0), and type this following command:

INSERT INTO smf_settings VALUES ('disableTemplateEval', 1);

Then paste to us the errors that come up.

Then reactivate eval once you finish by doing:

DELETE FROM smf_settings WHERE variable = 'disableTemplateEval';
Title: Re: Advanced XFire Field
Post by: gamerhookup on August 13, 2008, 11:54:18 PM
Ok did all that and here are the errors, as well as my profile template php file if you need to look at it.

These are the errors on the one website. Fugre we can fix this and theother should be easy.

USERNAME   Today at 08:46:26 PM 
0.0.0.0     ded83cea674dae4b7189cc0f940db034 
http://www.MYDOMAINNAME.com/index.php?action=profile;u=4 
8: Undefined index: xfire
File: /home/content/n/t/h/nthrbiz/html/MYDOMAINNAME/Themes/default/Profile.template.php
Line: 305

USERNAME   Today at 08:46:26 PM 
0.0.0.0     ded83cea674dae4b7189cc0f940db034 
http://www.MYDOMAINNAME.com/index.php?action=profile;u=4 
8: Undefined index: xfire
File: /home/content/n/t/h/nthrbiz/html/MYDOMAINNAME/Themes/default/Profile.template.php
Line: 304

USERNAME Today at 08:46:26 PM 
0.0.0.0     ded83cea674dae4b7189cc0f940db034 
http://www.MYDOMAINNAME.com/index.php?action=profile;u=4 
8: Undefined index: xfire
File: /home/content/n/t/h/nthrbiz/html/MYDOMAINNAME/Themes/default/Profile.template.php
Line: 304


Sure hope that helps.... FYI, if I leave that error EVAL thing on, will that hurt anything. I like the way it give me the errors....

Let me know if oyu need anything else from me to figure this thig out..
THANKS!
Title: Re: Advanced XFire Field
Post by: ccbtimewiz on August 14, 2008, 12:07:29 AM
Here you are.
Title: Re: Advanced XFire Field
Post by: gamerhookup on August 14, 2008, 12:26:11 AM
Ok, well that did not help, now it has the same errors only this time it says lines 608 and 610 of the same  file...

Not sure if this will help. Here are the files in RAR that I have directly from server with your new profile.template.php

Hopefully you can see in these files if I screwed up anything. But to be real honest, until your xfire mod, everything has been automatic and no other errors till people without an xfire name views the profile page, then I get 3 errors for each view.

I am pretty good with code but this one stumps me.
Title: Re: Advanced XFire Field
Post by: ccbtimewiz on August 14, 2008, 12:37:06 AM
Display.template.php

Find:
', $message['member']['yim']['link'],
<br />';


Replace with:
', $message['member']['yim']['link'], '
<br />';


Also, I edited your profile.template.php file like so:
</tr>';


// ccbtimewiz
# !!! Do these $txt[] validate correctly? If they are empty for some reason, we need to fill them!
if( $txt['xfire'] == '' ) $txt['xfire'] = 'XFire';
if( $txt['xfire_add'] == '' ) $txt['xfire_add'] = 'Add as Friend?';

// # Update to fix this bug. If guests view a profile, they can't view the xfire field!
if( ( $context['user']['is_logged']) && ( !$context['user']['is_guest'] ) ) {
echo '
<tr>
<td><b>', $txt['xfire'], ': </b></td>
<td><a href="http://profile.xfire.com/' . $context['member']['options']['xfire'] . '" target="_blank"><img src="http://miniprofile.xfire.com/bg/sh/type/1/', $context['member']['options']['xfire'] ,'.png" /></a>

<br /><a href="xfire:add_friend?user=' . $context['member']['options']['xfire'] . '">', $txt['xfire_add'], '</a></td>
</tr>'; }
// -------------------

echo '<tr>


Download the attached and see if that helps.
Title: Re: Advanced XFire Field
Post by: gamerhookup on August 14, 2008, 12:48:47 AM
Nope, now I get same 3 errors but on lines 613 and 615

Not sure if this helps, but I noticed in the profile.template.php  you stated guest view.. But I am logged in as a member and viewing and it give these errors. or any member that logs in and view a profile other than those that actually have an xfire.

I appreciate the work, I know how hard it is these days to get things working, I know there has to be a simple fix, well sorta...

Any other ideas>?
Title: Re: Advanced XFire Field
Post by: ccbtimewiz on August 14, 2008, 12:50:50 AM
Quote from: gamerhookup on August 14, 2008, 12:48:47 AM
Nope, now I get same 3 errors but on lines 613 and 615

Not sure if this helps, but I noticed in the profile.template.php  you stated guest view.. But I am logged in as a member and viewing and it give these errors. or any member that logs in and view a profile other than those that actually have an xfire.

I appreciate the work, I know how hard it is these days to get things working, I know there has to be a simple fix, well sorta...

Any other ideas>?

In your server configuration settings in the admin panel, are you set to using English and NOT utf8-english?
Title: Re: Advanced XFire Field
Post by: gamerhookup on August 14, 2008, 12:53:08 AM
yes i am using english only..

Also, there are no errors when a guest views it, only when a member views it.. I just checked.
Title: Re: Advanced XFire Field
Post by: ccbtimewiz on August 14, 2008, 12:58:36 AM
Quote from: gamerhookup on August 14, 2008, 12:53:08 AM
yes i am using english only..

Also, there are no errors when a guest views it, only when a member views it.. I just checked.

Then I have no clue.

Though you're showing me the profile.template.php of the theme you're using, yes? (If your theme doesn't have that file, then you show me the one located in the default theme).
Title: Re: Advanced XFire Field
Post by: gamerhookup on August 14, 2008, 01:06:26 AM
:)  Dang... That is the default theme... I am using the default theme and only changed the style.css file and the Tp.css file for colors...

But now on this other site, we are using the Diable 3 theme and it does the same exact thing.

I hate to stop using it because, our clan group wants it in the profiles..  ????
Title: Re: Advanced XFire Field
Post by: ccbtimewiz on August 14, 2008, 01:09:03 AM
The error is a php warning about a undefined index, which *should* be defined in the /languages directory.

Maybe the author of the mod will know more information about this. I'll attempt to write a patch for it in the mean time.
Title: Re: Advanced XFire Field
Post by: gamerhookup on August 14, 2008, 01:16:39 AM
Ok great, post here when or if anything gets worked out. I may try tomorrow to see if I can create the situation on a brand new install startig with this mod and then see where it takes me...
Title: Re: Advanced XFire Field
Post by: beeman on August 20, 2008, 04:46:47 PM
I had installed this mod, but I did it wrong, so I deleted it, now I've got this at the top of all the themes I have installed minus Alienation

$txt['xfire'] = 'XFire'; $txt['xfire_username'] = 'Your XFire Username'; $txt['xfire_add'] = 'Add as Friend?';

where is that line of code, I can't find it, and I'm going bug eyed looking for it
Title: Re: Advanced XFire Field
Post by: ccbtimewiz on August 20, 2008, 04:48:40 PM
Quote from: beeman on August 20, 2008, 04:46:47 PM
I had installed this mod, but I did it wrong, so I deleted it, now I've got this at the top of all the themes I have installed minus Alienation

$txt['xfire'] = 'XFire'; $txt['xfire_username'] = 'Your XFire Username'; $txt['xfire_add'] = 'Add as Friend?';

where is that line of code, I can't find it, and I'm going bug eyed looking for it

Open modifications.english.php and make sure all $txt[] string values are before the ?> tag.
Title: Re: Advanced XFire Field
Post by: beeman on August 20, 2008, 04:51:49 PM
Quote from: ccbtimewiz on August 20, 2008, 04:48:40 PM
Quote from: beeman on August 20, 2008, 04:46:47 PM
I had installed this mod, but I did it wrong, so I deleted it, now I've got this at the top of all the themes I have installed minus Alienation

$txt['xfire'] = 'XFire'; $txt['xfire_username'] = 'Your XFire Username'; $txt['xfire_add'] = 'Add as Friend?';

where is that line of code, I can't find it, and I'm going bug eyed looking for it

Open modifications.english.php and make sure all $txt[] string values are before the ?> tag.
even if the xfire mod is uninstalled and the package is removed from the site?
Title: Re: Advanced XFire Field
Post by: ccbtimewiz on August 20, 2008, 04:59:57 PM
Quote from: beeman on August 20, 2008, 04:51:49 PM
Quote from: ccbtimewiz on August 20, 2008, 04:48:40 PM
Quote from: beeman on August 20, 2008, 04:46:47 PM
I had installed this mod, but I did it wrong, so I deleted it, now I've got this at the top of all the themes I have installed minus Alienation

$txt['xfire'] = 'XFire'; $txt['xfire_username'] = 'Your XFire Username'; $txt['xfire_add'] = 'Add as Friend?';

where is that line of code, I can't find it, and I'm going bug eyed looking for it

Open modifications.english.php and make sure all $txt[] string values are before the ?> tag.
even if the xfire mod is uninstalled and the package is removed from the site?

If the strings are appearing on the top of your site-- it means the package was not uninstalled properly. So going into your server and removing the lines via an FTP client will do this. How do I use FTP? / What is FTP? (http://docs.simplemachines.org/index.php?topic=480)

The file in question is modifications.english.php. The location of the file is ./Themes/default/languages/modifications.english.php

Make sure all $txt[] string values are before the ?> tag.
Title: Re: Advanced XFire Field
Post by: beeman on August 20, 2008, 05:13:06 PM
Quote from: ccbtimewiz on August 20, 2008, 04:59:57 PM
Quote from: beeman on August 20, 2008, 04:51:49 PM
Quote from: ccbtimewiz on August 20, 2008, 04:48:40 PM
Quote from: beeman on August 20, 2008, 04:46:47 PM
I had installed this mod, but I did it wrong, so I deleted it, now I've got this at the top of all the themes I have installed minus Alienation

$txt['xfire'] = 'XFire'; $txt['xfire_username'] = 'Your XFire Username'; $txt['xfire_add'] = 'Add as Friend?';

where is that line of code, I can't find it, and I'm going bug eyed looking for it

Open modifications.english.php and make sure all $txt[] string values are before the ?> tag.
even if the xfire mod is uninstalled and the package is removed from the site?

If the strings are appearing on the top of your site-- it means the package was not uninstalled properly. So going into your server and removing the lines via an FTP client will do this. How do I use FTP? / What is FTP? (http://docs.simplemachines.org/index.php?topic=480)

The file in question is modifications.english.php. The location of the file is ./Themes/default/languages/modifications.english.php

Make sure all $txt[] string values are before the ?> tag.

that worked, I was able to get rid of it at the top of the page, but now I still have the : in the profile options where the xfire table should be.
Title: Re: Advanced XFire Field
Post by: ccbtimewiz on August 20, 2008, 05:36:18 PM
Attach your profile.template.php file.
Title: Re: Advanced XFire Field
Post by: beeman on August 20, 2008, 05:45:11 PM
Quote from: ccbtimewiz on August 20, 2008, 05:36:18 PM
Attach your profile.template.php file.

you're dealing with an SMF dummy here.  I'm looking at the profile.template.php file in Dreamweaver right now, am I supposed to remove any lines containing Xfire code, then re upload it to the site?
Title: Re: Advanced XFire Field
Post by: ccbtimewiz on August 20, 2008, 05:47:35 PM
I mean download the file via an FTP protocol and attach the file to your post so I can look at it and tell you what to remove. :)
Title: Re: Advanced XFire Field
Post by: beeman on August 20, 2008, 06:01:09 PM
Quote from: ccbtimewiz on August 20, 2008, 05:47:35 PM
I mean download the file via an FTP protocol and attach the file to your post so I can look at it and tell you what to remove. :)

oh

here it is

Title: Re: Advanced XFire Field
Post by: ccbtimewiz on August 20, 2008, 06:09:08 PM
Find and remove:

<tr><td><b>', $txt['xfire'], ': </b></td>

<td>', !empty($context['member']['options']['xfire']) ? '<a href="http://profile.xfire.com/' . $context['member']['options']['xfire'] . '" target="_blank"><img src="http://miniprofile.xfire.com/bg/sh/type/1/' . $context['member']['options']['xfire'] . '.png" /></a>'  : '', '<br /><a href="xfire:add_friend?user=' . $context['member']['options']['xfire'] . '">', $txt['xfire_add'], '</a></td><tr>

<td colspan="2"><hr size="1" width="100%" class="hrcolor" /></td>

</tr>

</tr><tr> <td colspan="2"><hr size="1" width="100%" class="hrcolor" /></td> </tr><tr><td><b>', $txt['xfire'], ': </b></td> <td>', !empty($context['member']['options']['xfire']) ? '<a href="http://profile.xfire.com/' . $context['member']['options']['xfire'] . '" target="_blank"><img src="http://miniprofile.xfire.com/bg/sh/type/1/' . $context['member']['options']['xfire'] . '.png" /></a>' : '', '<br /><a href="xfire:add_friend?user=' . $context['member']['options']['xfire'] . '">', $txt['xfire_add'], '</a></td><tr> <td colspan="2"><hr size="1" width="100%" class="hrcolor" /></td> </tr>

</tr>


Likewise, I found a bug in this mod. It adds an extra </tr> by accident.
Title: Re: Advanced XFire Field
Post by: beeman on August 20, 2008, 06:12:03 PM
Quote from: ccbtimewiz on August 20, 2008, 06:09:08 PM
Find and remove:

<tr><td><b>', $txt['xfire'], ': </b></td>

<td>', !empty($context['member']['options']['xfire']) ? '<a href="http://profile.xfire.com/' . $context['member']['options']['xfire'] . '" target="_blank"><img src="http://miniprofile.xfire.com/bg/sh/type/1/' . $context['member']['options']['xfire'] . '.png" /></a>'  : '', '<br /><a href="xfire:add_friend?user=' . $context['member']['options']['xfire'] . '">', $txt['xfire_add'], '</a></td><tr>

<td colspan="2"><hr size="1" width="100%" class="hrcolor" /></td>

</tr>

</tr><tr> <td colspan="2"><hr size="1" width="100%" class="hrcolor" /></td> </tr><tr><td><b>', $txt['xfire'], ': </b></td> <td>', !empty($context['member']['options']['xfire']) ? '<a href="http://profile.xfire.com/' . $context['member']['options']['xfire'] . '" target="_blank"><img src="http://miniprofile.xfire.com/bg/sh/type/1/' . $context['member']['options']['xfire'] . '.png" /></a>' : '', '<br /><a href="xfire:add_friend?user=' . $context['member']['options']['xfire'] . '">', $txt['xfire_add'], '</a></td><tr> <td colspan="2"><hr size="1" width="100%" class="hrcolor" /></td> </tr>

</tr>


Likewise, I found a bug in this mod. It adds an extra </tr> by accident.

thank you very much.  Now I'll just have to not screw it up again.
Title: Re: Advanced XFire Field
Post by: Mystiquo on August 29, 2008, 11:54:54 AM
tyhank
but i have a problem i don't see in my public profile this is a code of profile.template
if (!empty($context['member']['yim']['link_text']))
echo '
<tr>
<td><b>', $txt[604], ': </b></td>
<td>', $context['member']['yim']['link_text'], '</td>
</tr><tr>
<td colspan="2"><hr size="1" width="100%" class="hrcolor" /></td>
</tr><tr><td><b>', $txt['xfire'], ': </b></td>
<td>', !empty($context['member']['options']['xfire']) ? '<a href="http://profile.xfire.com/' . $context['member']['options']['xfire'] . '" target="_blank"><img src="http://miniprofile.xfire.com/bg/sh/type/1/' . $context['member']['options']['xfire'] . '.png" /></a>'  : '', '<br /><a href="xfire:add_friend?user=' . $context['member']['options']['xfire'] . '">', $txt['xfire_add'], '</a></td><tr>
<td colspan="2"><hr size="1" width="100%" class="hrcolor" /></td>
</tr>
</tr>';
Title: Re: Advanced XFire Field
Post by: Fievel Lee on September 03, 2008, 04:44:59 PM

thanks for the mod....it´s working fine on 1.1.4  ;D
Title: Re: Advanced XFire Field
Post by: Mystiquo on September 10, 2008, 11:34:37 AM
i don't see miniprofile xfire
Title: Re: Advanced XFire Field
Post by: Mystiquo on September 10, 2008, 02:46:51 PM
resolved
Title: Re: Advanced XFire Field
Post by: Mystiquo on September 20, 2008, 07:40:43 AM
 http://www.eknights.it/clan/index.php?action=profile;u=4;sa=summary

8: Undefined index: xfire
File: /home/eknights/domains/eknights.it/public_html/clan/Themes/default/languages/Who.italian.php (summary sub template - eval?)
Riga: 243

Why i have this error? can you help me???
Title: Re: Advanced XFire Field
Post by: Sabre™ on September 20, 2008, 04:25:31 PM
Quote from: Fievel Lee on September 03, 2008, 04:44:59 PM
thanks for the mod....it´s working fine on 1.1.4  ;D

Upgrade to SMF 1.1.6 or above(beta).
Your site is open to issues that 1.1.4 had. :)
Title: Re: Advanced XFire Field
Post by: General_Naga on September 20, 2008, 04:34:10 PM
I love what you've done with this mod, it does everything anyone with xfire could ask. The only snag is I'm on SMF 2.0 b4 :( - any chance of a 2.0 version at some stage?
Title: Re: Advanced XFire Field
Post by: Mystiquo on September 21, 2008, 06:59:45 AM
the problem for me is here. Can you help me??

Profile.template.php


if (!empty($context['member']['msn']['link_text']))
echo '
<tr>
<td><b>', $txt['MSN'], ': </b></td>
<td>', $context['member']['msn']['link_text'], '</td>
</tr>';
if (!empty($context['member']['yim']['link_text']))
echo '
<tr>
<td><b>', $txt[604], ': </b></td>
<td>', $context['member']['yim']['link_text'], '</td>
</tr>';
echo '
<tr>
<td><b>', $txt['xfire'], ': </b></td>
<td>', !empty($context['member']['options']['xfire']) ? '<a href="http://profile.xfire.com/' . $context['member']['options']['xfire'] . '" target="_blank"><img src="http://miniprofile.xfire.com/bg/sh/type/1/' . $context['member']['options']['xfire'] . '.png" /></a>'  : '', '<br /><a href="xfire:add_friend?user=' . $context['member']['options']['xfire'] . '">', $txt['xfire_add'], '</a></td>
</tr>
<tr>
                <td colspan="2"><hr size="1" width="100%" class="hrcolor" /></td>
</tr>
<tr>
<td><b>', $txt[69], ': </b></td>
<td>';
Title: Re: Advanced XFire Field
Post by: fyndler on September 21, 2008, 09:44:27 PM
Does is work on 1.1.6 ?

Thanks
Title: Re: Advanced XFire Field
Post by: Sabre™ on September 21, 2008, 09:48:24 PM
Yes. It works fine with SMF 1.1.6
Title: Re: Advanced XFire Field
Post by: fyndler on September 21, 2008, 10:12:43 PM
Quote from: Sabre™ on September 21, 2008, 09:48:24 PM
Yes. It works fine with SMF 1.1.6

Oh awsome :)

Thanks for you quick answer

btw i use the Dark Fantasy theme so i must add it myself and if i get it right i must edit these files

Profile.template.php
Display.template.php

Only problem is my theme files i have is

index.template
BoardIndex.template

Im out and biking or i on the right way ? lol
Title: Re: Advanced XFire Field
Post by: Mystiquo on September 22, 2008, 01:56:10 PM
Quote from: Mystiquo on August 29, 2008, 11:54:54 AM
tyhank
but i have a problem i don't see in my public profile this is a code of profile.template
if (!empty($context['member']['yim']['link_text']))
echo '
<tr>
<td><b>', $txt[604], ': </b></td>
<td>', $context['member']['yim']['link_text'], '</td>
</tr><tr>
<td colspan="2"><hr size="1" width="100%" class="hrcolor" /></td>
</tr><tr><td><b>', $txt['xfire'], ': </b></td>
<td>', !empty($context['member']['options']['xfire']) ? '<a href="http://profile.xfire.com/' . $context['member']['options']['xfire'] . '" target="_blank"><img src="http://miniprofile.xfire.com/bg/sh/type/1/' . $context['member']['options']['xfire'] . '.png" /></a>'  : '', '<br /><a href="xfire:add_friend?user=' . $context['member']['options']['xfire'] . '">', $txt['xfire_add'], '</a></td><tr>
<td colspan="2"><hr size="1" width="100%" class="hrcolor" /></td>
</tr>
</tr>';

up
Title: Re: Advanced XFire Field
Post by: ccbtimewiz on September 22, 2008, 02:24:58 PM
Quote from: fyndler on September 21, 2008, 10:12:43 PM
Quote from: Sabre™ on September 21, 2008, 09:48:24 PM
Yes. It works fine with SMF 1.1.6

Oh awsome :)

Thanks for you quick answer

btw i use the Dark Fantasy theme so i must add it myself and if i get it right i must edit these files

Profile.template.php
Display.template.php

Only problem is my theme files i have is

index.template
BoardIndex.template

Im out and biking or i on the right way ? lol

SMF is built so that if the files are not in your theme folder, they are automaticly grabbed from the default theme.

Quote from: Mystiquo on September 22, 2008, 01:56:10 PM
Quote from: Mystiquo on August 29, 2008, 11:54:54 AM
tyhank
but i have a problem i don't see in my public profile this is a code of profile.template
if (!empty($context['member']['yim']['link_text']))
echo '
<tr>
<td><b>', $txt[604], ': </b></td>
<td>', $context['member']['yim']['link_text'], '</td>
</tr><tr>
<td colspan="2"><hr size="1" width="100%" class="hrcolor" /></td>
</tr><tr><td><b>', $txt['xfire'], ': </b></td>
<td>', !empty($context['member']['options']['xfire']) ? '<a href="http://profile.xfire.com/' . $context['member']['options']['xfire'] . '" target="_blank"><img src="http://miniprofile.xfire.com/bg/sh/type/1/' . $context['member']['options']['xfire'] . '.png" /></a>'  : '', '<br /><a href="xfire:add_friend?user=' . $context['member']['options']['xfire'] . '">', $txt['xfire_add'], '</a></td><tr>
<td colspan="2"><hr size="1" width="100%" class="hrcolor" /></td>
</tr>
</tr>';

up

It's a bit pointless to bump a post in a topic. Likewise I don't see a problem with that code. What's the error you're getting?
Title: Re: Advanced XFire Field
Post by: Mystiquo on September 22, 2008, 08:47:53 PM
 http://www.eknights.it/clan/index.php?action=profile;u=4;sa=summary

8: Undefined index: xfire
File: /home/eknights/domains/eknights.it/public_html/clan/Themes/default/languages/Who.italian.php (summary sub template - eval?)
Riga: 243
Title: Re: Advanced XFire Field
Post by: fyndler on September 26, 2008, 08:24:23 PM
Quote from: ccbtimewiz on September 22, 2008, 02:24:58 PM
Quote from: fyndler on September 21, 2008, 10:12:43 PM
Quote from: Sabre™ on September 21, 2008, 09:48:24 PM
Yes. It works fine with SMF 1.1.6

Oh awsome :)

Thanks for you quick answer

btw i use the Dark Fantasy theme so i must add it myself and if i get it right i must edit these files

Profile.template.php
Display.template.php

Only problem is my theme files i have is

index.template
BoardIndex.template

Im out and biking or i on the right way ? lol

SMF is built so that if the files are not in your theme folder, they are automaticly grabbed from the default theme.

Quote from: Mystiquo on September 22, 2008, 01:56:10 PM
Quote from: Mystiquo on August 29, 2008, 11:54:54 AM
tyhank
but i have a problem i don't see in my public profile this is a code of profile.template
if (!empty($context['member']['yim']['link_text']))
echo '
<tr>
<td><b>', $txt[604], ': </b></td>
<td>', $context['member']['yim']['link_text'], '</td>
</tr><tr>
<td colspan="2"><hr size="1" width="100%" class="hrcolor" /></td>
</tr><tr><td><b>', $txt['xfire'], ': </b></td>
<td>', !empty($context['member']['options']['xfire']) ? '<a href="http://profile.xfire.com/' . $context['member']['options']['xfire'] . '" target="_blank"><img src="http://miniprofile.xfire.com/bg/sh/type/1/' . $context['member']['options']['xfire'] . '.png" /></a>'  : '', '<br /><a href="xfire:add_friend?user=' . $context['member']['options']['xfire'] . '">', $txt['xfire_add'], '</a></td><tr>
<td colspan="2"><hr size="1" width="100%" class="hrcolor" /></td>
</tr>
</tr>';

up

It's a bit pointless to bump a post in a topic. Likewise I don't see a problem with that code. What's the error you're getting?

So basicly i need to change it in my default theme ? :/
Title: Re: Advanced XFire Field
Post by: Mystiquo on September 27, 2008, 01:45:57 PM
Quote from: Mystiquo on September 22, 2008, 08:47:53 PM
http://www.eknights.it/clan/index.php?action=profile;u=4;sa=summary

8: Undefined index: xfire
File: /home/eknights/domains/eknights.it/public_html/clan/Themes/default/languages/Who.italian.php (summary sub template - eval?)
Riga: 243
I understood when I get this error. if I see the profile of user "4" (in this case) and is not inserted Xfire nick I have the error, if you enter nick and I see the more I did not mistake. then I have the error only when I see a profile that does not have the nick Xfire how to resolve? depends on what? Since not every user will have a nick Xfire I would fix this annoying error
Title: Re: Advanced XFire Field
Post by: fyndler on October 01, 2008, 03:14:48 AM
Sorry but i still dont get wich file to edit when i use costume theme :/
Title: Re: Advanced XFire Field
Post by: ccbtimewiz on October 01, 2008, 11:52:35 AM
Quote from: fyndler on October 01, 2008, 03:14:48 AM
Sorry but i still dont get wich file to edit when i use costume theme :/

Have a look at the manual instructions (http://custom.simplemachines.org/mods/index.php?action=parse;mod=1161;attach=56402;smf_version=1.1.6).
Title: Re: Advanced XFire Field
Post by: General_Naga on October 01, 2008, 01:32:49 PM
Any news on a SMF 2.0 version? - I'd really like to give my members this facility.
Title: Re: Advanced XFire Field
Post by: ccbtimewiz on October 01, 2008, 03:28:33 PM
I haven't seen this mod author for 3 months. So I wouden't expect any updates anytime soon..
Title: Re: Advanced XFire Field
Post by: General_Naga on October 01, 2008, 04:18:48 PM
 :( - ok it's a shame really, both xfire mods are 1.1._ and seem to have stopped development.
Title: Re: Advanced XFire Field
Post by: ccbtimewiz on October 01, 2008, 04:22:15 PM
If the author doesn't reply by the end of the month, I'll make a 2.0 version of this mod. :)
Title: Re: Advanced XFire Field
Post by: General_Naga on October 01, 2008, 05:28:37 PM
Much appreciated ccbtimewiz. I would offer to put the time in myself but I just make a mess of a good mod :)
Title: Re: Advanced XFire Field
Post by: General_Naga on October 31, 2008, 04:55:40 AM
Looks like Violat3r has moved on from this project. Thanks for offering to do it once again ccbtimewiz
Title: Re: Advanced XFire Field
Post by: ccbtimewiz on October 31, 2008, 11:40:02 AM
Looks like you're right. I'll remake this mod and submit it to the mod site. :)
Title: Re: Advanced XFire Field
Post by: General_Naga on November 18, 2008, 06:56:07 PM
Any news on this? Not trying to hurry you just interested to see how its coming...
Title: Re: Advanced XFire Field
Post by: ccbtimewiz on November 18, 2008, 06:59:29 PM
Funny thing about this too.

Could you please PM me or AIM me?
Title: Re: Advanced XFire Field
Post by: Violat3r on December 14, 2008, 02:11:47 PM
Hello! I first off wanted to apologize for suddenly disappearing. I've been dealing with a lot lately and somehow just couldn't find a way to do much of anything for a long time. I do plan on continuing this mod, it may be a little while before i'll have it completely ready for 1.1.7 or later (if more come out before i finish updating). For a 2.x version.......im not sure. Since im having to completely rebuild my website and forums from scratch yet again, i might be able to create a 2.x version of the forums to test on but that may take even longer since i'll be focused on the 1.1.x versions the most. Message to ccb: If you would be willing and have the ability to do so, i would greately appreciate it if you could code a 2.x version, that way i can just focus on 1.1.x. I also just wanted to thank you for helping everyone since the beginning on this mod, its beyond appreciated from me and im sure everyone that you have helped. Thanx ~ Vio

EDIT: I just tested it in 1.1.7 and it works fine. I am working on an updated version with fixes, etc. It will be some time before its ready but i will try and get it done a.s.a.p.
Title: Re: Advanced XFire Field v2.0
Post by: Violat3r on December 17, 2008, 10:39:25 PM
Heya Everyone, well i certainly surprised myself!!! I actually worked on this....oh just about ALL FRIGGIN DAY the other day. It took me a day and a half to then write/edit the information just because i had work and what-not. Anyway, version 2.0 is GOOOOO!!! The mod is still a bit of a distance from where i want it to be, but its getting there and im sure you'll enjoy the improvements from 1.2.  I should have a small guide on changing the banner (read the "change log" for December 17th) within a few days. For those that provided me with alternate languages, i wanted to just up and release this so i just used the Google Translator for the New text-strings i added to this version. If the translation doesnt sound right to you, please let me know what would seem better in your language and i'll change it. Peace ~ Violat3r

EDIT: Argh, i forgot to add the dutch translation! but its added now, so THANX mrgekkie!!!!! I will be replacing the image previews at some point in the next couple of days with more updated ones as well. Tonight i will be installing a 2.x SMF forum and within hopefully the next week or two, i'll begin testing an 2.x version of the mod. Please Stay Tune! ^_^
Title: Re: Advanced XFire Field v2.0
Post by: Sakae on December 18, 2008, 10:20:33 AM
Quote from: Violat3r on April 19, 2008, 07:23:35 PM
        *Portuguese/Brazilian

This translation doesn't make ANY sense. Here's the correct:

// Advanced XFire Field
$txt['xfire'] = 'XFire';
$txt['xfire_username'] = 'Qual o XFire do membro';
$txt['xfire_add'] = 'Adicionar como amigo?';
$txt['xfire_dont'] = 'Não tem XFire?';
$txt['xfire_download'] = 'Obtê-lo aqui!';
// End Advanced XFire Field


Brazilian-UTF8

// Advanced XFire Field
$txt['xfire'] = 'XFire';
$txt['xfire_username'] = 'Qual o XFire do membro';
$txt['xfire_add'] = 'Adicionar como amigo?';
$txt['xfire_dont'] = 'N&atilde;o tem XFire?';
$txt['xfire_download'] = 'Obt&ecirc;-lo aqui!';
// End Advanced XFire Field
Title: Re: Advanced XFire Field v2.0
Post by: Violat3r on December 18, 2008, 07:07:53 PM
Hey softcore thanx! One question though: in the second code you gave (the UTF-8), the "xfire_dont", is that suppose to be the same as the previous code or is it suppose to have those extra letters in it?
Title: Re: Advanced XFire Field v2.0
Post by: Violat3r on December 29, 2008, 12:24:21 AM
Alright guys, sorry it took me longer then i said (sorta lol) to be able to do this. But anyway, heres a quick guide on changing which banner you want to show in the profile:


Step 1: Open up this mods zip file (adv_xfire_field_v2.0.zip or w/e it is later on) and find the file "modification.xml".

Step 2: Download the "modification_[banner].xml" file for whichever banner you wanna use (they can be found as attachments to this post):

XFire Default
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fminiprofile.xfire.com%2Fbg%2Fbg%2Ftype%2F1%2Fviolat3r.png&hash=0dfd99e839f0539605252eab994cb481d349a16d)

Combat
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fminiprofile.xfire.com%2Fbg%2Fco%2Ftype%2F1%2Fviolat3r.png&hash=2c1afb4ec2df4118e0766c614a9e66f61ed3138e)

Sci-Fi
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fminiprofile.xfire.com%2Fbg%2Fsf%2Ftype%2F1%2Fviolat3r.png&hash=5fb432e146ade631ddd7aa100f63dd368ce99a7e)

Fantasy
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fminiprofile.xfire.com%2Fbg%2Fos%2Ftype%2F1%2Fviolat3r.png&hash=a790338154eaa78e89a1efdbdce6e4462ba540e7)

For this next one, you have to keep in mind that the user will of had to have their World of Warcraft character information entered into there online xfire profile (http://www.xfire.com/profile/#wow_module). If they do not have one, the banner will revert to the banner above, i.e. "Fantasy". So use this next one carefully.
World of Warcraft
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fminiprofile.xfire.com%2Fbg%2Fwow%2Ftype%2F1%2Fviolat3r.png&hash=b6d94238810295155d47746fa803e7563e3507c2)

Step 3: Rename the file you just downloaded to "modification.xml" (i.e. REMOVING the name of the particular banner as well as the underscore) and place it into the zip file overwriting the old one (or just extract all, then recompile them with the new file). Now just upload the zip to your forum and shazzaam! your good to go (hopefully).

I am working on a way for users to just manually choose which one they want viewed on their profile, but thats a low priority right now so i have no idea when it will be implemented.

EDIT: I just uploaded v2.0a which is simply a slight change so that the XFire icon will display on the memberlist if your using Nascar's "Memberlist Xrevolution" mod located here (http://custom.simplemachines.org/mods/index.php?mod=1503). If your not using his mod, dont worry about v2.0a.
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg149.imageshack.us%2Fimg149%2F9722%2Fxfiremodxreveb1.jpg&hash=29750e59444d233a372c9907e97f884731544eac)
Title: Re: Advanced XFire Field v2.0
Post by: General_Naga on March 16, 2009, 06:54:08 PM
Any chance of you updating this for SMF 2.0 RC1? I'd love to add xfire functionality to my forums and this seems just about the most complete xfire modification around.

PS. There's no xfire mods for 2.0 yet - otherwise I wouldn't ask ;)
Title: Re: Advanced XFire Field v2.0
Post by: Violat3r on March 25, 2009, 08:10:00 PM
Ahhh, i do apologize General, i told you several months ago about trying to work on it for 2.0 Beta 4 but i kinda....well.....im a huge procrastinator and it never seemed time. Now though i've gotten sorta back into it and have an up and running 2.0 rc1 forum to test on i've already sorta begun work on 2.0 rc1 for it. Its gonna be a little harder then i thought as well. I've already figured out how to modify the code to display on the profile, but all the other changes are gonna be harder since im not a php or coding expert in even the slightest, im amateur at best. I've downloaded a few mods i wont actually use on my forums but will give me good references on what kind of changes im gonna need to make, so i've begun but it may be awhile before i come up with a working Mod for RC1. I WILL let you know the second its done, that i promise. Thank you for support, it means a lot to someone who doesnt really know the first thing about what he's doing LOL.
Title: Re: Advanced XFire Field v2.0
Post by: General_Naga on March 26, 2009, 05:21:12 PM
Great to hear from you Violat3r. I'm sure a lot of people will be very happy to hear you've started on a SMF 2.0 RC1 version - not least our community members :)

Thanks once again for taking the time out to do this.
Title: Re: Advanced XFire Field v2.0
Post by: Dr. Pain [+] on April 15, 2009, 08:24:08 AM
Hi I firstly want to thank you for a great mod. It really works well!

In an attemp to help improve the ease of installation I noted two things.

My normal installation of the mod through SMF failed. So it didn't add the language text strings. Is it possible that you can mention that on the first page of installation. A type of a "If the normal installation fails" proceedure. Then I also noted that with the editing of the template.profile.php that this code

</tr><tr>
<td colspan="2"><hr size="1" width="100%" class="hrcolor" /></td>
</tr><tr><td><b>', $txt['xfire'], ': </b></td>
<td>', !empty($context['member']['options']['xfire']) ? '<a href="http://www.xfire.com/profile/' . $context['member']['options']['xfire'] . '/" target="_blank"><img src="http://miniprofile.xfire.com/bg/sh/type/1/' . $context['member']['options']['xfire'] . '.png" /></a><br /><div class="smalltext"><a href="xfire:add_friend?user=' . $context['member']['options']['xfire'] . '">' . $txt['xfire_add'] . '</a> | ' . $txt['xfire_dont'] . ' <a href="http://www.xfire.com/download/" target="_blank">' . $txt['xfire_download'] . '</a></div>'  : '', '</td><tr>
<td colspan="2"><hr size="1" width="100%" class="hrcolor" /></td>
</tr>


It ends with a </tr> when there is already one in the original script.


Once again thanks for this great mod!!
Title: Re: Advanced XFire Field v2.0
Post by: Violat3r on April 17, 2009, 09:58:07 PM
Thanks for the heads up! The main reason i only put the info on the front page for the display and profile code is because those are the main files that usually have different ones inside custom templates. I figured that if anyone needed the other code they could just either open the file directly or use SMF's Package Parser on the mod page, which would give you the correct code for all the files the mod changes. And when i get some free time i'll take a quick look at the </tr> thing, although im not sure i fully understand what your saying.
Title: Re: Advanced XFire Field v2.0
Post by: General_Naga on April 20, 2009, 06:27:00 AM
I think he means that the installer adds a </tr> which is already in there so you end up with two. Solution is either to remove the </tr> from the new code or include </tr> in the replace code (assuming that's what you use, I'm waiting for the 2.0RC1 version before playing with this mod :) )
Title: Re: Advanced XFire Field v2.0
Post by: tbk22 on April 28, 2009, 02:54:27 PM
any tips on why it failed to install cuz of memberlist file?
Title: Re: Advanced XFire Field v2.0
Post by: ShadoWind on June 30, 2009, 03:09:43 AM
Are there any plans for a version that works with 1.1.9 as it doesn't seem to work with that version... :(
Title: Re: Advanced XFire Field v2.0
Post by: MF30 on July 05, 2009, 11:58:27 AM
Please update for 1.1.9v.  :-[
Title: Re: Advanced XFire Field v2.0
Post by: h4nbury on July 07, 2009, 03:50:41 PM
hey does this work with SMF 1.1.9? i reeeeaaaaly want this awesome mod! :D
Title: Re: Advanced XFire Field v2.0
Post by: Basinator on July 08, 2009, 02:01:52 PM
Even though it isn't noted to be compatible with 1.1.9, can I still use it for this version w/o problems?
I started a test run, and it doesn't seems that there are serious problems:


Installing this package will perform the following actions:
Type Action Description
1. Execute Modification ./Themes/default/Profile.template.php Test successful
2. Execute Modification ./Sources/Memberlist.php Test successful
3. Execute Modification ./Themes/default/Memberlist.template.php Test successful
4. Execute Modification ./Themes/default/Who.template.php Test successful
5. Execute Modification ./Themes/default/Display.template.php Test successful
6. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful
7. Execute Modification ./Themes/default/languages/Modifications.english-utf8.php Skipping file
8. Execute Modification ./Themes/default/languages/Modifications.english_british.php Skipping file
9. Execute Modification ./Themes/default/languages/Modifications.english_british-utf8.php Skipping file
10. Execute Modification ./Themes/default/languages/Modifications.portuguese.php Skipping file
11. Execute Modification ./Themes/default/languages/Modifications.portuguese-utf8.php Skipping file
12. Execute Modification ./Themes/default/languages/Modifications.brazilian.php Skipping file
13. Execute Modification ./Themes/default/languages/Modifications.brazilian-utf8.php Skipping file
14. Execute Modification ./Themes/default/languages/Modifications.spanish.php Skipping file
15. Execute Modification ./Themes/default/languages/Modifications.spanish-utf8.php Skipping file
16. Execute Modification ./Themes/default/languages/Modifications.dutch.php Skipping file
17. Execute Modification ./Themes/default/languages/Modifications.dutch-utf8.php Skipping file
Title: Re: Advanced XFire Field v2.0
Post by: Nameless? on September 11, 2009, 09:37:33 AM
yo Violat3r, this is a awesome modification and could u possibly make this be compability with SMF 2.0 RC1.2? would be great, Thanks.  8)
Title: Re: Advanced XFire Field v2.0
Post by: deciph3red on September 16, 2009, 08:00:08 PM
Getting this error on install:
2.  Execute Modification  ./Themes/default/Memberlist.template.php  Test failed

Here is my memberlist.template.php file:
Title: Re: Advanced XFire Field v2.0
Post by: Dr. Pain [+] on September 16, 2009, 09:32:33 PM
Hi Violat3r,

I just wanted to say thank you for the effort you put in to create this awesome mod. We use it as if it was there from the beginning. Thanks!
Title: Re: Advanced XFire Field v2.0
Post by: deciph3red on September 18, 2009, 11:32:40 PM
Quote from: deciph3red on September 16, 2009, 08:00:08 PM
Getting this error on install:
2.  Execute Modification  ./Themes/default/Memberlist.template.php  Test failed

Here is my memberlist.template.php file:

Any ideas?
Title: Re: Advanced XFire Field v2.0
Post by: tbk22 on October 03, 2009, 11:19:42 AM
I installed but text of the mod is not appearing


For example in the profile field it apears "::"

Even with the forum in default english language

Anyone knows why?
Title: Re: Advanced XFire Field v2.0
Post by: Nameless? on November 04, 2009, 09:58:44 AM
please Violat3r, update this awesome Modification to work with 2.0 RC1.2, it would be great  :D
Title: Re: Advanced XFire Field v2.0
Post by: ugogo.info on November 27, 2009, 10:19:58 AM
Hi!

I'm a bit confused after reading all the messages on this topic.

Is the mod working or not?

It sound fabulous!

Does it work with SMF 1.1.10?

Where do I copy the three files to?  the Readme Txt file doesn't say how to install. I put it in the main folder, and nothing changed in admin, members, register, settings.

I clicked the link I found in an earlier post for the online manual, but the page says this mod is not approved for download. 

http://custom.simplemachines.org/mods/index.php?action=parse;mod=1161;attach=56402;smf_version=1.1.6

Thanks!
Title: Re: Advanced XFire Field v2.0
Post by: dbdblack on November 08, 2010, 11:17:16 PM
Is this mod dead? i am having so many problems with it, I am new to SMF and all the different versions of smf are so confusing to try and install.

i have installed it ...and i see a 'Xfire' bit in my profile...i put my username in but still doesnt show..nor is there a pic after it...

can someone please help me i run a gaming clan and this is the ideal mod we need !
Title: Re: Advanced XFire Field v2.0
Post by: WhiteEagle on March 01, 2011, 05:17:27 PM
Could this mod be updated for 2.0 RC5 please?