xFire thing

Would you like this mod: http://custom.simplemachines.org/mods/index.php?mod=1161 ?

  • Yes

    Votes: 7 77.8%
  • No

    Votes: 1 11.1%
  • I Dont Care

    Votes: 1 11.1%

  • Total voters
    9
https://forums.themavesite.com/index.php?topic=507.0

2 people voted yes on my poll :biggrin: so thats 1 more person to vote yes and we have it! :woot:
 
Oh crap, that was what I've forgotten, It'll be on tomorrow, it's 2:28 now :s Need to go to beddddddddddddd
 
OMG

I wanted to install this today, but...

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

XFire Image: Your first step will be to open the Modification zip file and extract the "xfire.gif" image and upload it to your Custom Themes' image folder. You will also need to upload it to the images folder for the classic and babylon themes if they exist on your forum and you allow people to choose one of them as their theme. Same goes with the Aa_New_Damage theme. Right now i cant figure out how to make the image file go into the correct folder for custom themes without it causing problems if that theme isn't on your server. Therefore, if you use ANY other theme other then the SMF default theme, you will HAVE to upload xfire.gif to the proper image directory.

Now 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 a lot of cases, custom themes dont have a custom Profile.template.php, but you MUST be sure).

FOR THE Profile.template.php:

Open Profile.template.php and locate the following code:
Code: [Select]
<td>', $context['member']['yim']['link_text'], '</td>
position your cursor directly after that code and then PASTE this next code:

Code: [Select]
</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>' : '', '
<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>
Now in the same file, located the following code:
Code: [Select]
<td><input type="text" name="YIM" maxlength="32" size="24" value="', $context['member']['yim']['name'], '" /></td>
Once again, exactly after that code paste this:
Code: [Select]
</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'], '" /></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:
Code: [Select]
', $message['member']['yim']['link'],
Directly after that paste this code:
Code: [Select]
!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>' : '',Save the file and upload it to your theme directory. And your done with the Display.template.php!! YAY!!
 
ThePro said:
i can do that, please upload Profile.template.php and Display.template.php from Dilber MC and ill do it.

w00t pro!! MAVE DO IT!!

[Offtopic] "ThePro" i think you shud change your name to "TehPro" :woot: [/Offtopic]
 
ThePro said:
i can do that, please upload Profile.template.php and Display.template.php from Dilber MC and ill do it.

Ok. :tongue: I'll send you a pm later

GPow69 said:
ThePro said:
i can do that, please upload Profile.template.php and Display.template.php from Dilber MC and ill do it.

w00t pro!! MAVE DO IT!!

[Offtopic] "ThePro" i think you shud change your name to "TehPro" :woot: [/Offtopic]

nah, teh is gay ><
 
uhm :s I search intire forums folder in ftp, and I only find one profile.template, in the themes/default

and when I search display.template, I only find it in ;

Themes/default
Themes/othertheme
Themes/anotherteam


..

but no Themes/dilbermc :s
 
k, I'll send you a pm in one minute

its only in themes/default, so I'll send that one
 
Back
Top Bottom