Advanced XFire Field v2.0

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

Previous topic - Next topic

Violat3r

#100
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! ^_^

Sakae

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
http://www.tigrelog.com.br
l: simple p: machines

Violat3r

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?

Violat3r

#103
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


Combat


Sci-Fi


Fantasy


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


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. If your not using his mod, dont worry about v2.0a.

General_Naga

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

Violat3r

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.

General_Naga

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.

Dr. Pain [+]

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!!
[nofollow]

Violat3r

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.

General_Naga

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

tbk22

any tips on why it failed to install cuz of memberlist file?
=)

ShadoWind

Are there any plans for a version that works with 1.1.9 as it doesn't seem to work with that version... :(

MF30


h4nbury

hey does this work with SMF 1.1.9? i reeeeaaaaly want this awesome mod! :D

Basinator

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

Nameless?

#115
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)

deciph3red

Getting this error on install:
2.  Execute Modification  ./Themes/default/Memberlist.template.php  Test failed

Here is my memberlist.template.php file:

Dr. Pain [+]

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!
[nofollow]

deciph3red

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?

tbk22

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

Advertisement: