News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

WoW Characters 1.9.0

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

Previous topic - Next topic

FatMagic

GOT IT! I forgot to change from English-UTF8 to just plain English! Now for more testing....

Night09

QuoteGOT IT! I forgot to change from English-UTF8 to just plain English! Now for more testing

When I originally rewrote the mod I had to remove utf8 to make the language files compatable for translation before the mod team would approve it.Turn off utf8 for sure,this may cure the issue now since the faults are based round text.

I will add this to the description text now I think about this.

FatMagic

#22
OK! So I've tested it a bit. It works except the "#" sign in the Armory link (which is mentioned above by a previous poster). I can easily fix this.

And then I changed over to the WoWDK114 theme.... and I ran into problems. When I try to access the WoW Characters on my personal profile, it says "An Error Has Occurred! Unable to load the 'wowchar' template." So I'm kinda back where I was before, but I think I might be more successful in fixing it since it's a "base" install. So what was the solution for fixing that again?

And in the Admin / Features + Layouts section, the words are all gone again... must be missing in the Language file I assume. So i'll check on that.

OH! And if you want the TinyPortal WoWDK 114 Theme i'm using, here it is: http://www.lionsofjudah.us/wowdk_114v1.zip

Night09

Thanks for that link, I will look at this now and see what the issue is and post back.

FatMagic

No problem. I look forward to seeing what you find out....

And also, even though it is a TinyPortal Theme, I don't have TinyPortal installed currently. But I'm using it so when I DO turn on TinyPortal, it will work. So it's just a base install of SMF 1.1.6 + WoWDK 114 + WoW Char 1.9.0

Night09

Right can you uninstall what you have now and use the attached zip and let me know if this has fixed all the WoWDK 114 issues.

I have just made some changes for WoWDK 114 and also to remove the # from the US urls.

You need to be sure WoWDK 114+ Have post data set to left in the settings for the theme so characters show in posts correctly.

Try this as a fresh install and all should be fine.



FatMagic

Excellent, I will try this build and see how it goes. Thank you so much for editing it.

And is there a way to make the post data set to the left easily? Or will I have to modify this by hand?

Night09

In the theme settings on wowdk it is a built in option you can set. You dont need to make any edits or the likes for this.

Go to Admin > current theme (wowdk) and look for 'Posters information position' halfway down and set from default to left.

Thats all you need to do to set it ;)

FatMagic

Ok! So I did a totally fresh install again, and I got further than last time. The install was flawless. It works right off the bat on the Default template -- but something strange also happened. Only the FIRST character was showing up on the "left side post" instead of all 3 that I created. But in my actual Profile, it shows all 3 characters.. but on the left side forum post, it's only showing the first one.

2nd, I then loaded the WoWDK theme - and all the text is showing up! YES! And the Admin/Feature+Options section works great.... but the Personal Profile area is still throwing "An Error Has Occurred! Unable to load the 'wowchar' template." again.... was there something I need to do manually to make that work? Oh, and even though it doesn't load the wowchar template, it still shows my first character that I added in the default template.

So we're almost there!! :)

Night09

QuoteOnly the FIRST character was showing up on the "left side post" instead of all 3 that I created

That is a small change I made to the code after someone else mentioned it and can be set back pretty easy.

Quote2nd, I then loaded the WoWDK theme - and all the text is showing up! YES! And the Admin/Feature+Options section works great.... but the Personal Profile area is still throwing "An Error Has Occurred! Unable to load the 'wowchar' template." again.... was there something I need to do manually to make that work? Oh, and even though it doesn't load the wowchar template, it still shows my first character that I added in the default template.

Im on a default install with 114 and the profile page is displaying correctly to me and shows all 5 characters I set. Im just trying to see why it hasnt shown up correctly for you.

FatMagic

What calls up the WoWChar template? Is there a setting I can check to see if it's missing?

Night09

The profile template should have 2 blocks of code to call up from.Check in your 114 theme that it has put them into profile.template.php as that is directly responsible for the display of info there when you look at profile.

FatMagic

Ok great... i'll check into that now :)

FatMagic

#33
Ok so those 2 bits of code were NOT on the 114 profile.template.php -- and the 2nd block of code keeps causing it to throw an error:

QuoteTemplate Parse Error!
There was a problem loading the /Themes/wowdk_114v1/Profile.template.php template or language file. Please check the syntax and try again - remember, single quotes (') often have to be escaped with a slash (\). To see more specific error information from PHP, try accessing the file directly.

You may want to try to refresh this page or use the default theme.
syntax error, unexpected T_STRING, expecting ',' or ';'

And this only happens when adding the 2nd block of code. The 1st block of code actually causes the Profile to show up CORRECT -- but then it doesn't show the characters on the "Summary" (because the 2nd block is missing).

I'm trying to trace this... but haven't found the problem yet.

EDIT:
Well... i removed the 2nd block... and it now seems to be working!? I have no idea... haha.

Night09

The second block error may just be down to its exact position in the template,I will add a template here from a working install for you to see if this resolves the problem completely.This template is from my test forum and is correctly showing characters in the profile page.

FatMagic

#35
Oh... i'm sorry, I think I meant the first block in the file. That's the one causing the issue. The 2nd block (at the bottom of the file) is working just fine. So I removed the first block, and kept the 2nd block -- and it doesn't seem to show on my personal profile. Hrm.

Night09

QuoteSO do I even need that first block of code?

It needs both to operate correctly,does the attachment cure the problem it had ?

FatMagic

YES IT DID! WAHOO!
Nightbre -- you are the best :)

Thank you so much for putting up me.
I will be back if something goes wrong :-p

P.S. -- Is there a way to make it show 3 profiles without having to uninstall it and reinstall again? It's so touchy I don't want to break it again :)

Night09

#38
To make the wowdk show more profiles in posts open the following themedir/wowdk_114v1/Display.template.php

Search for the wow code block
    //WoW Character Names - Show Characters in Post
            //Armory Base URL
            if ($modSettings['wowchar_europeanRealm'] == '0') {
                //North America and Oceania Servers
                $armory_url = "http://armory.worldofwarcraft.com/character-sheet.xml?r=";
            } else {
                //European Servers
                $armory_url = "http://armory.wow-europe.com/character-sheet.xml?r=";
            }

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


Change the number 1 to a number 5 like this (Bottom line shown)

//WoW Character Names - Show Characters in Post
             //Armory Base URL
             if ($modSettings['wowchar_europeanRealm'] == '0') {
                 //North America and Oceania Servers
                 $armory_url = "http://armory.worldofwarcraft.com/character-sheet.xml?r=";
             } else {
                 //European Servers
                 $armory_url = "http://armory.wow-europe.com/character-sheet.xml?r=";
             }

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


It will then let it display up to 5 characters in posts then.

QuoteThank you so much for putting up me.
I will be back if something goes wrong :-p

Its feedback like this that helps me to make the next release better overall  ;)
And I just got ganked in silverpine writing this on my alt hehe  :P

FatMagic

Ooops! Sorry :-p

Thank you again for the time and effort... it just looks awesome, and I can't wait to get my forums up and running full production :)
I will keep checking back for an update for WOTLK :)

Advertisement: