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:
- I will first be working on getting it running on SMF v2.x series.
- I will be working on a way to allow the member to choose a different banner from some kind of a dropdown list.
- Since tsviewer.com's release of similar types of banners, im looking into making a mod similar to this one for the teamspeak banner.
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:
- April 19th: v1.0
- April 24th: v1.1
- Added Support for several languages (and their UTF-8 equivalents):
*Portuguese/Brazilian - Thanx joomlamz
*British English
*Spanish - Thanx Agustin - Added Support for the custom theme "Aa_New_Damage" by m3talc0re (http://www.webtechnica.net/).
- Added Support for the 2 other original SMF themes besides the default (i.e. Babylon and classic).
- Moved the xfire image around to allow for a more "direct" extraction/installation.
- Added a link to add them as a friend (it will open using XFire).
- May 20th: v1.2
- Added Support for the "Who's Online" List. For custom themes' users: This update changes none of the original code, so just un-install and delete, then upload and install v1.2 and your good to go.
- December 17th: v2.0
- Theres been a lot of code changed as well as additions and deletions so i decided to go ahead and bump this up to a v2.0 of the mod.
- I've deleted all the theme support for the mod since it was just annoying clutter really.
- There's no more xfire image on the post display; i've included the FULL code for the XFire's mini-profile information. Which grabs the image from xfire.com itself.
- Made the "Add as Friend?" link use the "smalltext" css code so its smaller and looks better in contrast with the Banner.
- Added text "Dont Have XFire? Get it Here!" that will link you to the XFire download page if you dont have it and are interested. It also adds the same text right
under the field where you enter your XFire username in the edit profile area. - Added a "languages.xml" file so i could keep things organized by having the main modifications done in one area, and the text strings and translated text strings in a separate file, to be able to easily modify and or add new language translations. So if your looking to translate it into another language for me, just look in there!
- Added Support for another language (and its UTF-8 equivalent):
*Dutch - Thanx mrgekkie - FIX - The most annoying bug that i somehow completely overlooked on v1.x was the xfire field appearing no matter if you had an xfire username set up or not. I found this had happened because of the way i included the "Add as Friend?" link, this HAS been fixed and the XFire info panel will now ONLY appear when one has entered their username.
- One of my original plans was to allow people to have a dropdown of where they can choose WHICH of the XFire mini-profile banners they want to show, but since is still currently beyond my coding abilities it will have to wait for a future release. As a consolation prize, i will be putting a small guide on the community forums in this mods' section on how to change it to the one you want.
- December 28th: v2.0a
- I quickly tossed up this version for those of you who use Nascar's Memberlist Xrevolution Mod for 1.1.7. Now he coded it very well and i got no errors when the regular version of this was installed along with the memberlist mod, so you'll only need to install this version if you want the XFire icon to show up in the new memberlist. Please make sure that you first un-install all previous versions of this mod (including the new 2.0 verson) before installing this one.
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. :)
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>
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:
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.
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.
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
Can you please post your profile.template.php? im sure that its just an issue with placement in there.
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. =)
Oh, i definitely plan to. Although right now im extremely busy with about a bazillion other things lol so changes will come relatively slowly.
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.
Just updated the mod to show up on the "Who's Online" list! Huzzah! =D
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
Show me more code. WITH the code from the mod inserted.
// 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.
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 />';
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.
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 />';
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 />';
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
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
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
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.
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!
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.
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 :/
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 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
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. =]
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...
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
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
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.
Okay, I reinstalled everything but I'm still getting the same errors as before. It's just strange.
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?
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
Attach your profile.template.php and modifications.english.php file.
Here you go.
Try these.
So far so good. Can you post what changed so I can correct this if I ever have to reinstall the site?
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. :)
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.
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)
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
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.
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.
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 :)
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 ????
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';
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!
Here you are.
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.
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.
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>?
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?
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.
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).
:) 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.. ????
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.
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...
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
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.
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?
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.
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.
Attach your profile.template.php file.
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?
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. :)
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
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.
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.
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>';
thanks for the mod....it´s working fine on 1.1.4 ;D
i don't see miniprofile xfire
resolved
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???
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. :)
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?
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>';
Does is work on 1.1.6 ?
Thanks
Yes. It works fine with SMF 1.1.6
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
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
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?
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
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 ? :/
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
Sorry but i still dont get wich file to edit when i use costume theme :/
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).
Any news on a SMF 2.0 version? - I'd really like to give my members this facility.
I haven't seen this mod author for 3 months. So I wouden't expect any updates anytime soon..
:( - ok it's a shame really, both xfire mods are 1.1._ and seem to have stopped development.
If the author doesn't reply by the end of the month, I'll make a 2.0 version of this mod. :)
Much appreciated ccbtimewiz. I would offer to put the time in myself but I just make a mess of a good mod :)
Looks like Violat3r has moved on from this project. Thanks for offering to do it once again ccbtimewiz
Looks like you're right. I'll remake this mod and submit it to the mod site. :)
Any news on this? Not trying to hurry you just interested to see how its coming...
Funny thing about this too.
Could you please PM me or AIM me?
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.
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! ^_^
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ão tem XFire?';
$txt['xfire_download'] = 'Obtê-lo aqui!';
// End Advanced XFire Field
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?
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)
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 ;)
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.
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.
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!!
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.
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 :) )
any tips on why it failed to install cuz of memberlist file?
Are there any plans for a version that works with 1.1.9 as it doesn't seem to work with that version... :(
Please update for 1.1.9v. :-[
hey does this work with SMF 1.1.9? i reeeeaaaaly want this awesome mod! :D
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
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)
Getting this error on install:
2. Execute Modification ./Themes/default/Memberlist.template.php Test failed
Here is my memberlist.template.php file:
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!
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?
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?
please Violat3r, update this awesome Modification to work with 2.0 RC1.2, it would be great :D
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!
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 !
Could this mod be updated for 2.0 RC5 please?