News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

WoW Characters 1.9.0

Started by Night09, October 16, 2008, 11:46:21 PM

Previous topic - Next topic

Night09

Link to Mod
--------------------------------------------------------------------
   World of Warcraft Character Profile Mod V 1.9.3 
        by Nightbre originally made by yutt.
--------------------------------------------------------------------
       04.12.2010 Updated to add new races and Characters to the Memberlist page.
--------------------------------------------------------------------
Features:

Admin Options:  >  Features and Options >  [WoW Characters]


User Options:  >   Profile       >  [WoW Characters]


What this package does:

Installation for the following themes from this package.


Default SMF theme  > (1.1.3 - 6)(Should be ok with themes based on default or minor code insertions)

wowdk_115v1   > (1.1.5)

wowdk_114v1   > (1.1.4)

TP_Risen_WoW_v1 (Tinyportal version or you will get errors in your logs)

Testing was done on SMF version 1.1.6

Admin instructions:

Enter admin console and select: Features and Options >  [WoW Characters]

You set the default realm name here which must be exactly the same as your warcraft server name.
You choose european or Oceanic server (U.S) (Tick for europe)
You choose weather to show the option for members to set their own realm(server name) or they use the default set server instead.

User instructions:

Enter Profile       >  [WoW Characters]

You are presented with the option to select up to 5 warcraft characters attributes on this page.
You must enter your character name correctly for your wow armoury link to work.

Armoury links:

The default realm or custom realm if the user selects must be correct along with the character name for the armoury link to work correct.
You will be taken to Blizzard armoury page upon clicking the name of the character.
The armoury will not work for characters below level 10.

Installation:

If you get any errors in the test before install do not proceed until you know why you have the error.
As with any mod there is potential for error so you should make sure it functions correctly for your
forum setup and current mods.Your forum install should auto skip any file not required on themes not
installed and return no errors.

This pack was tested on a clean 'mod free' forum with only the listed themes and no other mods
so if you do encounter an error it may be caused by another mods changes to the code and you
may have to add it manually.

Always back up important data before making changes to your forum!!! I accept no responsibility
for any faults or losses caused by this modification.

If you have any questions or issues concerning this package please post in the support thread for this mod.

In the pipeline:

Version 2 for SMF 2.x













Camealion

Really cool mod.

the only problem I seen is that the url for the us realms was not correct.

the mod adds:
./Themes/default/Profile.template.php

//North America and Oceania Servers
$armory_url = "http://armory.worldofwarcraft.com/#character-sheet.xml?r=";



the way I got it to work was to take out the #

//North America and Oceania Servers
$armory_url = "http://armory.worldofwarcraft.com/character-sheet.xml?r=";



but since I did that it works great. 

Thanks for the cool addition to my site.

Night09

Quotethe only problem I seen is that the url for the us realms was not correct.

I was not aware the US URL had changed and since I have an EU account I couldn't actually try it to a character sheet.It did used to use the # but they must have changed it slightly.

I will double check the US URL and I will incorporate the change into an update so it is permanently fixed for all. ;)

And thanks for pointing this out as well.

Truff

#3
Thanks for this, I have it installed and working on my site :)

One request however: is it possible to limit the display on the forum posts to just the first character (your main), leaving the rest only viewable in the profile?

With this option it would be useful for some people to have more than the current limit of 5 characters - can this be changed easily?

Night09

QuoteOne request however: is it possible to limit the display on the forum posts to just the first character (your main), leaving the rest only viewable in the profile?

This can be done easily by doing the following.

Uninstall WOW Characters, You wont loose saved Characters
Open wow_character_profiles.xml  in the 1.9.0 folder

Find line 597:(3/4 way down file)

Quotefor ($i = 1; $i <= 5; $i++) {

Change the 5 to a 1 like so

Quotefor ($i = 1; $i <= 1; $i++) {

You will now have just main in posts and alts visible on profile page.

Now reinstall the mod and all previously saved characters will still be there.

The limit of 5 is something I will look at as well but might need a little more effort than the fix above for posts.

Garou

 
Quote from: nightbre on October 02, 2008, 07:40:09 AM
I got 1.1.6 running ok but the default realm has a problem and wont use the database data to finish the armory link.

I got a post up here for any ideas but no replies to it yet lol so working to sort that as we speak.

Its running ok otherwise apart from everyone has to specify the server they're on for armory to be right.If it cant be resolved ill write the option out and make it a user only option to fill it in but hopefully it wont have to be done.If its fixed today ill sub it today so its soon as I can I will.

I just installed the latest version of the mod as posted earlier on SMF 1.1.6 with Tiny Portal and I'm still having this issue. In fact I cant get it to save any of the info from the admin panel. I type in the Default Realm Name as well as clicking the option for Allow Custom Realm and the info isn't saving. After I click save, it pops me out to the default Features and Options page. When I go back to the Setup page the info I typed isn't there.

So then I went ahead and tried to edit the settings in the actual profile anyway and the Custom Realm option isn't there.  The info doesn't show up on the profile in the default theme.

Using the the wowdk_114v1 theme I get the message "An Error Has Occurred! Unable to load the 'wowchar' template When I try to go to the edit profile page. On the admin page there is no text even on the Features and Options page where it should read [WOW Characters] you just see []

In posts everything shows up right except for the link. The link comes out as...

http://www.wowarmory.com/character-sheet.xml?r="realm name"&n="characters name"

For now I'm going to assume that's because the Realm settings aren't saving.

I compared the installation instructions at http://custom.simplemachines.org/mods/index.php?action=parse;mod=1208;attach=72404;smf_version=1.1.6 to my actual files and everything seems to match so I'm at a loss.

*Garou looks confused*

Sorry I forgot to mention that on install
Quote./Sources/ModSettings.php     Test failed
./Themes/default/Profile.template.php    Test failed
I installed anyway and hand edited those files. There was one line missing in each the rest of the code was intact.

Night09

QuoteI got 1.1.6 running ok but the default realm has a problem and wont use the database data to finish the armory link.

I got a post up here for any ideas but no replies to it yet lol so working to sort that as we speak.

Its running ok otherwise apart from everyone has to specify the server they're on for armory to be right.If it cant be resolved ill write the option out and make it a user only option to fill it in but hopefully it wont have to be done.If its fixed today ill sub it today so its soon as I can I will.

This is all irrelivant now and the final release does not have this issue.
Did the database entry install properly since this is where the info is saved.(FTP into phpadmin to find out for sure its there)

QuoteI installed anyway and hand edited those files. There was one line missing in each the rest of the code was intact.

What do you mean by a line is missing ? A line of code ? You might need to move the wow Character code in the 2 files to another position if you already have edits in these files for other mods.

Have you checked on the default theme as this should give you a better idea if its installed as well.(database wise)

Garou

I just thought to check the Data Base and no for some reason it didn't create the DB files. Was coming back to mention that. I guess Ill have to hand create those as well. Wonder what went wrong there, as this is the first mod not to enter the DB data. /shurg

As for the missing part... well the 'install with errors" left out the parts it couldn't find.

For instance where its looking to do this...

$context['sub_template'] = 'show_settings';

$subActions = array(

'basic' => 'ModifyBasicSettings',
'wowchar' => 'ModifyWoWCharSettings',


It couldnt because couple of other Mods installed their info before 'basic' => 'ModifyBasicSettings', So that was a pretty basic fix. I just had to enter the 'wowchar' after the basic line. Nothing drastic there, I'm use to it because a lot of mod installs are messed up that way.


Night09

Yes the first fix you show is right.

The profile code is split into 2 blocks of code on install if you check so both will need inserting manually. If you look for the code it was searching for on install but didn't find it will give you an idea where to edit the file then.

Likely your other mods changes have made it so it cant find the right points like the modsettings.php did.

Also make sure post info in the themes settings is set to show on left or you wont see characters in posts.

FatMagic

#9
I'm getting the EXACT same error that Garou got above:

QuoteUsing the the wowdk_114v1 theme I get the message "An Error Has Occurred! Unable to load the 'wowchar' template When I try to go to the edit profile page. On the admin page there is no text even on the Features and Options page where it should read [WOW Characters] you just see []

I installed it into a wowdk_114v1 theme... SMF is 1.1.6 -- just need some advice as how to get it up and running.
I'm sure I have to dig around in the code... but just don't know where to start.

Thanks!

Night09

There appears to be an issue with wowdk_114v1 theme. You will need to add the 2 blocks of code manually into the profile template and create the database entry so it can save the settings.Look for the points it is searching for then manually insert the code into the profile.template.php.You may have to place it after other mods changes to the file.

Did you get an error showing up on install the same as Garou ?

It only appears to be this theme with the issue,could you possibly upgrade to wowdk_115 or 6 to get round this issue? I know it may not be possible because of other forum modifications but its an option.

I have not got a copy of wowdk_114v1 to hand and I am struggling to get it since I had a crash on the drive it was stored on.If possible can someone attach this version then I can resolve this easier for all by repairing the problem it has.

FatMagic

#11
Thanks for the reply -- I will upgrade to wowdk_115 and see if that solves the problem... if not, I'll try the manual route. I will post back with my results shortly...

P.S. -- how do I install to a wowdk_116 installation? Manually? Or does the WoWChar installer work for wowdk_116?

FatMagic

I think there is something wrong with my Database entry... all the sections appear properly now... but just with no text. Where is it supposed to pull the labels for those sections? I also noticed the dropdowns are empty as well... but when I look at the code, the Class/Race options are visibly there... but not populating the dropdowns for some reason.

Where in the database is the information supposed to be stored? How can I know if it's not working?

Oh, and i'm doing this on 116 now.

FatMagic

OK this isn't even working on the Default theme.... I think I need to backtrack and see what's happening. Maybe time to do a fresh install.

Garou

After I went in  and modified all the code by hand I got it to work under the 114 theme, except it still wont read from the default realm settings. That said the custom realm works just fine so I just informed my users to make sure they fill that in when they fill out the form.  It may not work the way its supposed to but its still usable. /shrug

FatMagic, if you are using Tiny Portal you must use the 114 theme as the 115 hasn't been ported over to use their custom codes. As for the 116 I'm not sure and didn't even know that it was released yet. Ill have to go check. as for it not working at all for you now...

Have you added other mods? Did you change any of the code in the default even by accident? Ive made that mistake a time or two when porting Mods to another theme. Occasionally I get sloppy and paste into the wrong file. LOL

FatMagic

Garou,

Thanks for the reply -- I will try what you are suggesting. I will use the 114 Theme to try and make it work. I think there is even a TP version of the theme out there as well.... i'll see if that helps.

And yes I think I have other mods in there. The 1.1.6 update for SMF, and a ShoutBox. I think that's all. Should I just go back to step 1 with my templates, and try from there? I think I may have to :-/

Night09

When you first go to install this mod, what files are actually showing up as error to you ?

FatMagic

#17
OK so I started all over.... fresh SMF install. Only package I applied was the 1.1.6 SMF update. I installed the WoWDK114 Theme as well. BUT using the DEFAULT theme, I installed WoW Characters 1.9.0 -- and it applies with NO errors at all. But there is still no text on the Admin or Profile section... I see [] and that is all. See images below...

Here are images of what I see:
http://img374.imageshack.us/my.php?image=wowchar1ea4.jpg
http://img374.imageshack.us/my.php?image=wowchar2cb7.jpg
http://img356.imageshack.us/my.php?image=wowchar3zu8.jpg
http://img374.imageshack.us/my.php?image=wowchar4rz4.jpg

I want to get this right before I make any more changes. So what changes do I need to make by hand to get the descriptions to show up in the Admin & Profile section?

Night09

Check Themes/default/languages/modifications.english contains the following text string entries:

//WoW Characters
         
$txt['ctitletxt'] = 'You can add your World of Warcraft characters on this page. This information will be displayed throughout the forum. If you are not comfortable with sharing some information, simply skip it - nothing here is required.';
         
$txt['blood_Elf'] = 'Blood Elf';
$txt['draenei'] = 'Draenei';
$txt['dwarf'] = 'Dwarf';
$txt['gnome'] = 'Gnome';
$txt['human'] = 'Human';
$txt['night_Elf'] = 'Night Elf';
$txt['orc'] = 'Orc';
$txt['tauren'] = 'Tauren';
$txt['troll'] = 'Troll';
$txt['undead'] = 'Undead';

$txt['deathknight'] = 'Death Knight';         
$txt['druid'] = 'Druid';
$txt['hunter'] = 'Hunter';
$txt['mage'] = 'Mage';
$txt['paladin'] = 'Paladin';
$txt['priest'] = 'Priest';
$txt['rogue'] = 'Rogue';
$txt['shaman'] = 'Shaman';
$txt['warlock'] = 'Warlock';
$txt['warrior'] = 'Warrior';

$txt['chartitle'] = 'Character Profile Settings';
$txt['cname'] = 'Character Name';
$txt['clevel'] = 'Character Level';
$txt['cguild'] = 'Character Guild';
$txt['crace'] = 'Character Race';
$txt['cgender'] = 'Character Gender';
$txt['cclass'] = 'Character Class';
$txt['crealm'] = 'Character Realm';
$txt['character'] = 'Character';

$txt['male'] = 'Male';
$txt['female'] = 'Female';

$txt['wowchar'] = 'WOW Characters';
$txt['wowchar_defaultRealmName'] = 'Default realm Name';
$txt['wowchar_allowCustomRealm'] = 'Allow custom realm?';
$txt['wowchar_europeanRealm'] = 'European realm (default North American)?';


If it is not there that will possibly be why they show blank.Make sure the php closer is at the bottom of the file
Quote?> 

Its possible the closer isnt there or in the wrong place.Let me know if this has helped to cure the blanks for you.

FatMagic

HEre is what is in the "Modifications.english.php" file:

<?php
// Version: 1.1; Modifications

//WoW Characters

$txt['ctitletxt'] = 'You can add your World of Warcraft characters on this page. This information will be displayed throughout the forum. If you are not comfortable with sharing some information, simply skip it - nothing here is required.';

$txt['blood_Elf'] = 'Blood Elf';
$txt['draenei'] = 'Draenei';
$txt['dwarf'] = 'Dwarf';
$txt['gnome'] = 'Gnome';
$txt['human'] = 'Human';
$txt['night_Elf'] = 'Night Elf';
$txt['orc'] = 'Orc';
$txt['tauren'] = 'Tauren';
$txt['troll'] = 'Troll';
$txt['undead'] = 'Undead';

$txt['deathknight'] = 'Death Knight';
$txt['druid'] = 'Druid';
$txt['hunter'] = 'Hunter';
$txt['mage'] = 'Mage';
$txt['paladin'] = 'Paladin';
$txt['priest'] = 'Priest';
$txt['rogue'] = 'Rogue';
$txt['shaman'] = 'Shaman';
$txt['warlock'] = 'Warlock';
$txt['warrior'] = 'Warrior';

$txt['chartitle'] = 'Character Profile Settings';
$txt['cname'] = 'Character Name';
$txt['clevel'] = 'Character Level';
$txt['cguild'] = 'Character Guild';
$txt['crace'] = 'Character Race';
$txt['cgender'] = 'Character Gender';
$txt['cclass'] = 'Character Class';
$txt['crealm'] = 'Character Realm';
$txt['character'] = 'Character';

$txt['male'] = 'Male';
$txt['female'] = 'Female';

$txt['wowchar'] = 'WOW Characters';
$txt['wowchar_defaultRealmName'] = 'Default realm Name';
$txt['wowchar_allowCustomRealm'] = 'Allow custom realm?';
$txt['wowchar_europeanRealm'] = 'European realm (default North American)?';

?>


That was there from the base install... but hasn't cured the problem yet. Does it have anything to do with the 1.1.6 SMF install?

Advertisement: