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
  #82  
Old 03-07-2008, 10:04 PM
sweede's Avatar
sweede sweede is offline
 
Join Date: Jan 2007
Posts: 391
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

you need to give me more information than just "it doesnt work". What character/realm locale (eu/us) are you trying to link.

Something like that is most likely that the character isn't found in the armory.
Reply With Quote
  #83  
Old 03-08-2008, 02:25 PM
Mother_Dee Mother_Dee is offline
 
Join Date: Jul 2007
Location: Wisconsin
Posts: 66
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm now getting the blank black box with "Level:" for all the mouseovers on my frontpage module. It appears it's because of an Armory issue, though it's super frustrating right now because half the time it's working and half the time it looks like I have a massively broken mod (not your fault here.)

Possibility on caching data perhaps or something along those lines for when the PoS we know as the WoW Armory is broken (which is a lot, I'm afraid.)

Here's a screenie of what has been happening on and off recently:

http://img299.imageshack.us/img299/8...ererrorae1.jpg
Reply With Quote
  #84  
Old 03-16-2008, 10:01 PM
ssslippy ssslippy is offline
 
Join Date: Jan 2006
Posts: 877
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is a creative way of doing this but wouldnt it be better with a bbcode? It currently breaks whenever you edit a post.
Reply With Quote
  #85  
Old 03-21-2008, 08:10 PM
Deepdog009's Avatar
Deepdog009 Deepdog009 is offline
 
Join Date: Dec 2004
Location: Almost out of PHP TZone
Posts: 485
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great update Sweede...

I've been traveling allot and haven't had the time to update anything...

keep the ball rolling...

If I come across anything new I shall feed it your way...


Good Luck 2 ya
Reply With Quote
  #86  
Old 03-25-2008, 10:19 AM
sweede's Avatar
sweede sweede is offline
 
Join Date: Jan 2007
Posts: 391
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ssslippy View Post
This is a creative way of doing this but wouldnt it be better with a bbcode? It currently breaks whenever you edit a post.
I personally never was a fan of a plugin that required the users to do more than upload an XML file and maybe a couple php files.

Expecting every user to enter the bbcode exactly right every time would be foolish on my part. I would rather spend time supporting actual problems in my code than making sure that every user that says "it doesnt work" has their bbcode setup properly first.

I may have a solution that would satisfy all of us though.
Reply With Quote
  #87  
Old 03-25-2008, 10:50 AM
sweede's Avatar
sweede sweede is offline
 
Join Date: Jan 2007
Posts: 391
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by sweede View Post
I personally never was a fan of a plugin that required the users to do more than upload an XML file and maybe a couple php files.

Expecting every user to enter the bbcode exactly right every time would be foolish on my part. I would rather spend time supporting actual problems in my code than making sure that every user that says "it doesnt work" has their bbcode setup properly first.

I may have a solution that would satisfy all of us though.
After reveiwing the bbcode option (I would insert the following as an SQL statement during installation,
Code:
INSERT INTO `vb3_bbcode` VALUES ('','char','<a href="http://www.wowarmory.com/character-sheet.xml?r=%2$s&amp;n=%1$s" target="new" 
onmouseover=\'ajax_showTooltip("ajax.php?do=wowcharcode&amp;server=%2$s&amp;char=%1$s",this);
 return false\' onmouseout=\'ajax_hideTooltip()\'><strong>&lt;%2$s: %1$s&gt;</strong></a>'
'[char=Vek'nilash]Dragontaru[/char]',
'Character BB Code',1,
'Character Code Tag','',1)
I have found that this solution would not work at this time.
The problem is when a server with a ' in it, such as vek'nilash. Vbulletin doesnt escape the param/option variables to work within javascript (changing them to their character code equivelent)

Also using the bbcode in this way does not allow you to setup your "default realm" in an easy and simple manner, and several other planned options.
Reply With Quote
  #88  
Old 03-26-2008, 05:32 PM
maevonee maevonee is offline
 
Join Date: Jun 2005
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Heres a link to my forum so you can see the problem im having. Please if you could help me fix it I would really appreciate it!

http://www.guilddarkstorm.com/forum/showthread.php?t=86
Reply With Quote
  #89  
Old 03-26-2008, 10:08 PM
Mother_Dee Mother_Dee is offline
 
Join Date: Jul 2007
Location: Wisconsin
Posts: 66
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yesterday, while spending 8+ hours on emergency Sunwell site work due to a Blizzard ninja major content patch, my front page module with the Officers listed gave me only the small black box with Level: inside.

Today, it works fine again. I never know which days the data pulls and which it does not. It's boggling. Regardless, when it DOES work it's very, very nice!

Misc. daily rant not relating to this thread: I despise Blizzard's PoS Armory.
Reply With Quote
  #90  
Old 03-29-2008, 12:51 AM
robertfels robertfels is offline
 
Join Date: Oct 2005
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've got it. There is an error with the char code of this product.

Solution - Create an new BBCode:
Title:
What you want

Tag:
armory (IMPORTANT: NOT char)

Code:
<a href="http://eu.wowarmory.com/character-sheet.xml?r=Aegwynn&n={param}" target="new" onmouseover='ajax_showTooltip("ajax.php?do=wowchar code&server=Aegwynn&char={param}",this); return false' onmouseout='ajax_hideTooltip()'><strong>&lt;{param }&gt;</strong></a>

Example:
[armory]Klappzwerg[/armory]

Description:
What you want

{option} usage:
OFF

Remove Tag If Empty:
No

Disable BB Code....:
Yes

Disable Smileys....:
Yes

Disable Word Wrapping:
Yes

Change the realm in the code to your default code. With this code its not possible to use another server, but i think you have a guild and your frinds are on the same. If you want it with other server, you should create a second BBCode with {option} enabled and then try to insert that.

Have fun!
Reply With Quote
  #91  
Old 03-29-2008, 10:34 AM
sweede's Avatar
sweede sweede is offline
 
Join Date: Jan 2007
Posts: 391
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I will try to update today with a version that will email the forum admin a whole bunch of error related stuff when you mouse over a tooltip. you can then forward those to me and i can see what i need to fix to either prevent these silly errors or create work arounds and do some real error handeling.

working 12hrs + raid + sleep has taken a lot of my time away from fully supporting this (and my other) product.
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 01:13 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04830 seconds
  • Memory Usage 2,320KB
  • 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
  • (1)bbcode_code
  • (2)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
  • (4)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