The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
WoW Character BBCode Details »» | |||||||||||||||||||||||||
This is a continuation of the project, https://vborg.vbsupport.ru/showthread.php?t=160418 . I have made several modifications to the original authors code and several have asked for my modifications.
Because of this and the original authors lack of updating the original modification, I have decided to upload this package for all to use. All credit goes to the original author(s) of the utility as i have only cleaned up the code and packaged it for easy usage. WARNING! This is very beta at this time. I have added the product now to force myself to update and maintain the plugin and to share it with the rest of my fellow World of Warcraft webmasters Installation
Changelog
Usage Using the character code is easy enough, [char]CHARACTER[/char] if default realm option is set and character links is on same realm. For characters not on the same realm as the default, [char=SERVER]CHARACTER[/char] For example, [char=Vek'nilash]Azaril[/char] Or, if you want to link a character profile from another locale (i.e. EU realms) , you simply add EU- before the server name. [char=EU-Vek'nilash]Azaril[/char] The same thing applies to linking US realm characters from a EU default forum. See a working example at http://www.dramaloot.com/index.php?id=officer_cl (This is a vbadvanced custom page using the BBCode page type). Added German translation for what i currently have localized. Provided by jluerken http://www.wow-relaxed.de Show Your Support
|
Comments |
#62
|
||||
|
||||
Quote:
Change that line to my post above, ( https://vborg.vbsupport.ru/showpost....5&postcount=56 ) change the @mkdir($path ,0777,true); to @mkdir($path ,0777); That should fix the problem. |
#63
|
||||
|
||||
yup appears to have fixed it looking good thanks
|
#64
|
||||
|
||||
I also added this into my postbit but there's a much easier way of doing it than the one listed above.
Create a custom profile field for users called whatever you like in my case i called it wow main char. (field11) user puts in the name of their wow char there. Then i just edited the postbit_legacy and added in the following Code:
<if condition="$post[field11]"> <br /> <strong>WoW Char:</strong> <a style="cursor: pointer;" href="http://eu.wowarmory.com/character-sheet.xml?r=Al%27Akir&n=$post[field11]" target="new" onmouseover="ajax_showTooltip("http://www.furious-angels.com/ajax.php?do=wowcharcode&server=Al'Akir&char=$post[field11]",this); return false" onmouseout="ajax_hideTooltip()">$post[field11]</a> </if> |
#65
|
|||
|
|||
I apologize if I missed this, but our guild resides on a server with an apostrophe (Kael'thas) and I'm having issues:
The Armory pulls up those urls as: character-sheet.xml?r=Kael%27thas&n=CHARNAME not as: character-sheet.xml?r=Kael'thas&n=CHARNAME (ok well it does, sometimes, but the program doesn't give me information in mouseovers unless it's pulling up the top one, which is changed to the bottom or one with a released apostrophe on a refresh.) So at this point I either get a very gimped version with only the username and guild and nothing more, and then on refresh of a thread I get absolutely nothing, a hang-up, or an armory error regarding the server not being found. This would be nice to play around with, anyone have any further thoughts? I've played around a bit and haven't been able to find a work-around. |
#66
|
||||
|
||||
I'm on Al'Akir also with the apostrophe and it worked fine setting the default to Al'Akir in the admin options you dont need to put the %27 in yourself just list the server name with the apostrophe and it should work it out its self when it does the armoury request.
yours not showing data could be armoury time out. |
#67
|
|||
|
|||
Yes, it seems the Armory crapped out for a good portion of the time before my raid. It worked fine after the raid ended, I apologize. What bizarre errors it was giving me, it definitely threw me for a loop there.
Thanks again, works great. |
#68
|
||||
|
||||
Quote:
the reason why the ' doesnt work is because of the javascript code in the HTML to call the ajax.php file to get the info from armory and display it. HTML Code:
onmouseover='ajax_showTooltip("http://www.dramaloot.com/forums/ajax.php?do=wowcharcode&server=Vek'nilash&char=Dragontaru",this); return false' |
#69
|
||||
|
||||
Quote:
|
#70
|
||||
|
||||
Quote:
I have the base classes that retreive and save the character information into the database. Everything is saved and will be in 2 tables (one for basic character information such as name, class, realm, etc and the other table is for all other stats). Now i'm going to have to takle the hardest part, which is retreiving that information from the database. I havent fully decided how to retrive that info. I know i'll have a subclass for each character class that will gather class specific details, but what to do about hybrid classes (such as a druid, which fits into dps caster, melee, tank, healer) , im not yet sure. The planned usage of these classes will be something like, $armory = new character(character, server, locale); $armory->character_process(); $armory->get_stats("basic"); $armory->get_stats("melee","defense"); $armory->character_class; // would be the characters class $armory->character_spec; // would be an array of points spent in the tree + the main trees name $armory->health; // health, obviously $armory->secondary; //rage or mana Then for things like, crit you would have $armory->crit_chance['melee']['perc']; // % crit chance, main hand melee $armory->crit_chance['offhand']['value']; // crit rating (off hand). $armory->crit_chance['spell']['perc']; // Returns %% of whatever your main specs crit chance is. i.e. if your link a mage and he's a frost mage but fire crit is 30% and frost crit is 28%, it will return 28% Everything from the armory XML page will be available. This will be a seperate include and will be available for use in any addon that you want to get armory character data from. With the new class methods, i'll be able to allow a better degree of customization. It may take a bit longer than planned, since i only really have one day a week to work on coding this. |
#71
|
|||
|
|||
This thing is really great and i thank you for your work.
The problem i have is that like any other BBCode Manipulation (e.g. Itemstats) the things break on editing. This makes it nearly unusable as i think. I am currently thinking about a way to not edit the [char]Beherit[/char] in the Cache to the new Link Code, but to parse and replace thise links on the fly via javascript. So that the code keeps [char]Beherit[/char] which also can be edited but on pageload the javascript replaces [char]*[/char] to the needed htmlCode. Is there another way? |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|