Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.7 > vBulletin 3.7 Add-ons

Reply
 
Thread Tools
WoW Character BBCode Details »»
WoW Character BBCode
Version: 0.4.9b, by sweede sweede is offline
Developer Last Online: Jun 2014 Show Printable Version Email this Page

Category: Miscellaneous Hacks - Version: 3.7.x Rating:
Released: 02-01-2008 Last Update: 11-24-2008 Installs: 94
DB Changes Uses Plugins Template Edits
Re-useable Code Additional Files Translations Is in Beta Stage  
No support by the author.

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
  1. Uninstall your existing WoW Char Code installation. I have changed the product ID itself and it may not update everything correctly.
  2. Remove the clientscript/ajax_tooltip and clientscript/phparmory folders if they exist
  3. Upload the contents of the "Upload" Folder to the ROOT directory of your forums (for example, if you have your forums installed in /home/mydir/public_html/forums , you would unzip into that folder.)
  4. Import the product/product-WoWCharBBCode-?.??.xml file

Changelog
  • 0.4.9b
    • Added basic Death Knight support
    • Fixed problem with characters with no professions (common with Death Knights)
  • 0.4.9a
    • Fixed a minor issue with realms in spaces in the name
  • 0.4.9
    • Added wysiwyg support
  • 0.4.8a
    • Fixed a php parse error in functions_wowcharcode.php. you do not need to download the entire zip file, just replace your existing functions_wowcharcode.php file with the attached .php file
  • 0.4.8
  • 0.4.7a
    • Removed some left over debugging statements and info in the product and php file.
  • 0.4.7
    • Changed the backend armory code.
    • Updated caching to not cache Armory results that end up as errors
    • Added character class, race and professions as vbphrases.
    • Added KR and TW Armory locales. (, etc)
    • Some minor fixes.
  • 0.4.4
    • Added Icon caching to help with slow armory. Images are cached by default in the armory folder. chmod this folder to 777 and icons will be automaticly cached to this folder.
    • You can now use the variable $wowchar_code in the postbit (or postbit_legacy) to display the character tooltip in a post.
  • 0.4.3 Fixed issue with rebuilding post cache.
  • 0.4.2 Added option to show/hide realm if a default realm is set.
  • 0.4.1 Fixed an issue if the character doesnt have armory data, Only change is in functions_wowcharcode.php file.
  • 0.4
    • All Character stat text are now phrases. you will find a new Phrase Type in the Phrase Manager ( WoW BBCode Phrases )
    • Added default realm option so one does not need to use the [char=server] option when specifying characters on own realm.
    • Customized the stat display per class and on some specs (such as feral v.s. resto druids). see an example at http://www.dramaloot.com/forums/showthread.php?p=19271
  • 0.3
    • Armory Caching works for both US and EU armorys.
    • Removed un-used files.
    • Put the majority of the codes HTML creation as templates and use vbulletins ajax.php and hooks.
    • Added options for default locale (armory) to use (currently EU and US armories).
    • Added option to disable caching of the Armory (i use it to test armory retrieval)
    • Added ability to specify what armory the character / realm you would like, see usage notes below.
  • 0.2
    • Armory Caching never actually worked properly, this should now be fixed.
    • Remove the includes/functions_wow3bbcode.php file. This has been replaced by a plugin.
    • Remove the clientscript/phparmory/config.php file. This isnt needed.
    • Major updates to phparmory.php
    • Minor Plugin changes + code cleanup.
ToDo
  • New tooltip javascript
  • New character sheet.
  • Create easy to modify interface for character stats to be displayed in tooltip.


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

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 02-05-2008, 04:58 AM
Caerydd's Avatar
Caerydd Caerydd is offline
 
Join Date: Mar 2006
Location: UK
Posts: 191
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

vur nice again, thanks for all you hard work
Reply With Quote
  #13  
Old 02-06-2008, 04:44 PM
CremeEgg CremeEgg is offline
 
Join Date: Mar 2006
Location: Bradford, UK
Posts: 30
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The tooltips say "Heath"

EDIT: Fixed it to Health for you.
Reply With Quote
  #14  
Old 02-06-2008, 06:57 PM
sweede's Avatar
sweede sweede is offline
 
Join Date: Jan 2007
Posts: 391
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks , with my next release of this i'm going to change all of the hard-coded text to phrases along with options to select what stats to show in the mouseover.
Reply With Quote
  #15  
Old 02-07-2008, 01:23 PM
CremeEgg CremeEgg is offline
 
Join Date: Mar 2006
Location: Bradford, UK
Posts: 30
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by sweede View Post
Thanks , with my next release of this i'm going to change all of the hard-coded text to phrases along with options to select what stats to show in the mouseover.
That would be ace, as a Ret Paladin I can't see any Dmg stats on mine atm.
Reply With Quote
  #16  
Old 02-07-2008, 05:46 PM
Caerydd's Avatar
Caerydd Caerydd is offline
 
Join Date: Mar 2006
Location: UK
Posts: 191
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Confirmed as working on 3.6.8 RL2 in Firefox for Mac
Reply With Quote
  #17  
Old 02-07-2008, 06:58 PM
sweede's Avatar
sweede sweede is offline
 
Join Date: Jan 2007
Posts: 391
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Right now im working on making the stats display customizable through the options interface.

For some of the classes that have different types of stats (i.e. paladins , druids and to some extent warriors) , you will be able to choose whats shown based on spec. for example, feral druids dont really care about +healing stats, spirit, etc and resto are vise-versa.

You will have defaults, such as str, agi, stam, int and spirit. Whats actually displayed is based on class. Some classes such as a mage, you wont see str, agi or armor. Other classes like a rogue, you wont see int, spirit. Classes such as a druid, you will see all of the stats.

The other customizable options will be similar to the stat dropdown in the character frame.
Spell, Defenses, Ranged, and Melee
Reply With Quote
  #18  
Old 02-07-2008, 08:00 PM
Caerydd's Avatar
Caerydd Caerydd is offline
 
Join Date: Mar 2006
Location: UK
Posts: 191
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sounds fantastic
Reply With Quote
  #19  
Old 02-10-2008, 08:01 PM
Caerydd's Avatar
Caerydd Caerydd is offline
 
Join Date: Mar 2006
Location: UK
Posts: 191
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Updates working great!


Is it possible to add in the various critical strike ratings and things?

Also, suggest chaning 'mana regen while casting' to 'MP5' as most casters should know the difference

EDIT:

Okay, for non 'default' server character, am getting this error after upgrading to 4

Code:
Warning: Invalid argument supplied foreach() in includes/functions_wowcharbbcode.php on line 180
It pulls the character level, race, spec and class, but nothing else. The character is an inactive, lowish level character - so obviously there is no data to pull, and for most characters this won't be an issue

[char=Steamwheedle Cartel]Qialynna[/char]
Reply With Quote
  #20  
Old 02-10-2008, 08:29 PM
sweede's Avatar
sweede sweede is offline
 
Join Date: Jan 2007
Posts: 391
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Caerydd View Post
Updates working great!


Is it possible to add in the various critical strike ratings and things?

Also, suggest chaning 'mana regen while casting' to 'MP5' as most casters should know the difference

EDIT:

Okay, for non 'default' server character, am getting this error after upgrading to 4

Code:
Warning: Invalid argument supplied foreach() in includes/functions_wowcharbbcode.php on line 180
It pulls the character level, race, spec and class, but nothing else. The character is an inactive, lowish level character - so obviously there is no data to pull, and for most characters this won't be an issue

[char=Steamwheedle Cartel]Qialynna[/char]
you shouldnt have a file named functions_wowcharbbcode.php. Remove that file and use the file in the zip file instead.

There could also be a "Stale" plugin thats causing the problem.

In the admin CP, go to maintenance -> Execute SQL query ( you must be listed as the superadmin in the config.php file), and enter the following in the manual query

select title from PREFIXplugin WHERE phpcode like "%wowcharbbcode%"

Change Prefix to whatever your table prefix in the config.php file is set to (if it's vbb_ , the sql query would look like select title from vbb_plugin WHERE phpcode like "%wowcharbbcode%")

Note any plugins that are listed (if any), and go back to the Plugin & Products -> Plugin manager and look for the title of that plugin and delete it.


The only plugins you should have listed are:
WoW Char BBCode
WoW Char BBCode Help
WoW Char Code Ajax code
WoW Char Code Language Phrase Cache
WoW Char Code Startup
WoW Char Code Template Cache
WoW Char Code Template Group


Also, make sure that you do not have an old product name (i think it was wowchartest ?)
Reply With Quote
  #21  
Old 02-10-2008, 08:51 PM
sweede's Avatar
sweede sweede is offline
 
Join Date: Jan 2007
Posts: 391
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Caerydd View Post
Is it possible to add in the various critical strike ratings and things?
I had this huge thing typed out on how to add custom data from the armory site ready to go and i was almost done with it and then i realized that i can do it in a much better way.

I'll have to re-write some things first.

I can use any data from an armory page (view source and its all XML)
as an example
HTML Code:
<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet type="text/xsl" href="/layout/character-sheet.xsl"?><page globalSearch="1" lang="en_us" requestUrl="/character-sheet.xml">
  <characterInfo>
    <character battleGroup="Nightfall" charUrl="r=Alterac+Mountains&amp;n=Azrael" class="Rogue" classId="4" faction="Horde" factionId="1" gender="Male" genderId="0" guildName="Syndicate of Shadows" guildUrl="r=Alterac+Mountains&amp;n=Syndicate+of+Shadows&amp;p=1" lastModified="February 5, 2008" level="65" name="Azrael" prefix="" race="Undead" raceId="5" realm="Alterac Mountains" suffix=""/>
    <characterTab>
      <talentSpec treeOne="15" treeThree="0" treeTwo="41"/>
      <buffs/>
      <debuffs/>
      <pvp>
        <lifetimehonorablekills value="1554"/>
        <arenacurrency value="0"/>
      </pvp>
      <professions>
        <skill key="engineering" max="300" name="Engineering" value="244"/>
        <skill key="mining" max="300" name="Mining" value="226"/>
      </professions>
      <title value=""/>
      <knownTitles/>
      <characterBars>
        <health effective="5939"/>
        <secondBar casting="-1" effective="100" notCasting="-1" type="e"/>
      </characterBars>
      <baseStats>
        <strength attack="103" base="86" block="-1" effective="113"/>
        <agility armor="676" attack="328" base="141" critHitPercent="9.37" effective="338"/>
        <stamina base="83" effective="363" health="3450" petBonus="-1"/>
        <intellect base="35" critHitPercent="-1.00" effective="35" mana="-1" petBonus="-1"/>
        <spirit base="59" effective="68" healthRegen="23" manaRegen="-1"/>
        <armor base="2018" effective="2018" percent="19.71" petBonus="-1"/>
      </baseStats>
      <resistances>
        <arcane petBonus="-1" value="0"/>
        <fire petBonus="-1" value="0"/>
        <frost petBonus="-1" value="0"/>
        <holy petBonus="-1" value="0"/>
        <nature petBonus="-1" value="0"/>
        <shadow petBonus="-1" value="10"/>
      </resistances>
      <melee>
        <mainHandDamage dps="117.2" max="347" min="263" percent="0" speed="2.60"/>
        <offHandDamage dps="91.8" max="137" min="102" percent="0" speed="1.30"/>
        <mainHandSpeed hastePercent="0.00" hasteRating="0" value="2.60"/>
        <offHandSpeed hastePercent="0.00" hasteRating="0" value="1.30"/>
        <power base="561" effective="901" increasedDps="64.0"/>
        <hitRating increasedHitPercent="2.78" value="34"/>
        <critChance percent="18.73" plusPercent="4.44" rating="76"/>
        <expertise additional="0" percent="2.50" rating="0" value="10"/>
      </melee>
      <ranged>
        <weaponSkill rating="0" value="281"/>
        <damage dps="100.6" max="197" min="146" percent="0" speed="1.70"/>
        <speed hastePercent="0.00" hasteRating="0" value="1.70"/>
        <power base="393" effective="733" increasedDps="52.0" petAttack="-1.00" petSpell="-1.00"/>
        <hitRating increasedHitPercent="2.78" value="34"/>
        <critChance percent="17.05" plusPercent="4.44" rating="76"/>
      </ranged>
      <spell>
        <bonusDamage>
          <arcane value="0"/>
          <fire value="0"/>
          <frost value="0"/>
          <holy value="0"/>
          <nature value="0"/>
          <shadow value="0"/>
          <petBonus attack="-1" damage="-1" fromType=""/>
        </bonusDamage>
        <bonusHealing value="0"/>
        <hitRating increasedHitPercent="0.00" value="0"/>
        <critChance rating="0">
          <arcane percent="0.00"/>
          <fire percent="0.00"/>
          <frost percent="0.00"/>
          <holy percent="0.00"/>
          <nature percent="0.00"/>
          <shadow percent="0.00"/>
        </critChance>
        <penetration value="0"/>
        <manaRegen casting="0.00" notCasting="0.00"/>
      </spell>
      <defenses>
        <armor base="2018" effective="2018" percent="19.71" petBonus="-1"/>
        <defense decreasePercent="0.00" increasePercent="0.00" plusDefense="0" rating="0" value="320.00"/>
        <dodge increasePercent="1.36" percent="19.91" rating="20"/>
        <parry increasePercent="0.00" percent="9.80" rating="0"/>
        <block increasePercent="0.00" percent="0.00" rating="0"/>
        <resilience damagePercent="0.00" hitPercent="0.00" value="0.00"/>
      </defenses>
      <items>
        <item durability="31" gem0Id="0" gem1Id="0" gem2Id="0" icon="inv_helmet_31" id="31784" maxDurability="50" permanentenchant="0" randomPropertiesId="0" seed="1442833829" slot="0"/>
        <item durability="0" gem0Id="0" gem1Id="0" gem2Id="0" icon="inv_jewelry_necklace_03" id="25914" maxDurability="0" permanentenchant="0" randomPropertiesId="0" seed="270680656" slot="1"/>
        <item durability="37" gem0Id="0" gem1Id="0" gem2Id="0" icon="inv_shoulder_07" id="31148" maxDurability="60" permanentenchant="0" randomPropertiesId="0" seed="892721840" slot="2"/>
        <item durability="0" gem0Id="0" gem1Id="0" gem2Id="0" icon="inv_shirt_black_01" id="3427" maxDurability="0" permanentenchant="0" randomPropertiesId="0" seed="0" slot="3"/>
        <item durability="64" gem0Id="28459" gem1Id="28467" gem2Id="28463" icon="inv_chest_leather_03" id="24396" maxDurability="100" permanentenchant="0" randomPropertiesId="0" seed="1878719127" slot="4"/>
        <item durability="24" gem0Id="28459" gem1Id="28459" gem2Id="0" icon="inv_belt_29" id="24063" maxDurability="35" permanentenchant="0" randomPropertiesId="0" seed="2043929102" slot="5"/>
        <item durability="42" gem0Id="0" gem1Id="0" gem2Id="0" icon="inv_pants_leather_08" id="29939" maxDurability="65" permanentenchant="0" randomPropertiesId="0" seed="911117875" slot="6"/>
        <item durability="31" gem0Id="0" gem1Id="0" gem2Id="0" icon="inv_boots_cloth_05" id="25717" maxDurability="50" permanentenchant="0" randomPropertiesId="0" seed="816862488" slot="7"/>
        <item durability="20" gem0Id="0" gem1Id="0" gem2Id="0" icon="inv_bracer_08" id="25960" maxDurability="30" permanentenchant="0" randomPropertiesId="0" seed="1030569422" slot="8"/>
        <item durability="18" gem0Id="0" gem1Id="0" gem2Id="0" icon="inv_gauntlets_14" id="24712" maxDurability="30" permanentenchant="0" randomPropertiesId="-5" seed="1306001438" slot="9"/>
        <item durability="0" gem0Id="0" gem1Id="0" gem2Id="0" icon="inv_jewelry_ring_04" id="25499" maxDurability="0" permanentenchant="0" randomPropertiesId="0" seed="1418445178" slot="10"/>
        <item durability="0" gem0Id="0" gem1Id="0" gem2Id="0" icon="inv_jewelry_ring_04" id="25926" maxDurability="0" permanentenchant="0" randomPropertiesId="0" seed="1104314345" slot="11"/>
        <item durability="0" gem0Id="0" gem1Id="0" gem2Id="0" icon="inv_datacrystal06" id="28041" maxDurability="0" permanentenchant="0" randomPropertiesId="0" seed="811388986" slot="12"/>
        <item durability="0" gem0Id="0" gem1Id="0" gem2Id="0" icon="inv_jewelry_trinketpvp_02" id="18849" maxDurability="0" permanentenchant="0" randomPropertiesId="0" seed="0" slot="13"/>
        <item durability="0" gem0Id="0" gem1Id="0" gem2Id="0" icon="inv_misc_cape_20" id="25712" maxDurability="0" permanentenchant="0" randomPropertiesId="0" seed="208396522" slot="14"/>
        <item durability="59" gem0Id="0" gem1Id="0" gem2Id="0" icon="inv_sword_63" id="24020" maxDurability="90" permanentenchant="0" randomPropertiesId="0" seed="0" slot="15"/>
        <item durability="41" gem0Id="0" gem1Id="0" gem2Id="0" icon="inv_weapon_shortblade_14" id="31193" maxDurability="65" permanentenchant="0" randomPropertiesId="0" seed="1111220604" slot="16"/>
        <item durability="196" gem0Id="0" gem1Id="0" gem2Id="0" icon="ability_upgrademoonglaive" id="28538" maxDurability="200" permanentenchant="0" randomPropertiesId="-13" seed="309526543" slot="17"/>
        <item durability="0" gem0Id="0" gem1Id="0" gem2Id="0" icon="inv_shirt_guildtabard_01" id="5976" maxDurability="0" permanentenchant="0" randomPropertiesId="0" seed="0" slot="18"/>
      </items>
    </characterTab>
  </characterInfo>
</page>
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 08:44 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.07656 seconds
  • Memory Usage 2,393KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_code
  • (1)bbcode_html
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete