News:

Wondering if this will always be free?  See why free is better.

Main Menu

Advanced XFire Field v2.0

Started by Violat3r, April 19, 2008, 07:23:35 PM

Previous topic - Next topic

gamerhookup

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...

beeman

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

ccbtimewiz

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.

beeman

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

ccbtimewiz

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?

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.

beeman

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?

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.

ccbtimewiz

Attach your profile.template.php file.

beeman

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?

ccbtimewiz

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. :)

beeman

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


ccbtimewiz

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.

beeman

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.

Mystiquo

#72
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>';

Fievel Lee


thanks for the mod....it´s working fine on 1.1.4  ;D

Mystiquo

i don't see miniprofile xfire

Mystiquo


Mystiquo

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

Sabre™

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. :)
Do NOT give admin and/or ftp details to just anybody, see if they are trust worthy first!!  Do your homework ;)


General_Naga

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?

Mystiquo

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>';

Advertisement: