![]() |
WoW Character BBCode
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 |
Great job cleaning up the install. I wasn't getting the ajax mouse-over with the original. I get it now but it doesn't contain any data.
|
Ya, what i did was called "Not testing before releasing" , partially due to my wife wanting me to come out to the living room and watch Monk with her :)
But I'll have it fixed here shortly. |
Awesome :)
|
This should be considerably better to use.
One thing to note though, is that if your forums are not in your web document root and you are using vbadvanced (i.e. you have example.com/index.php which is your VBAdvanced Portal and example.com/forums/ is your vb forum itself), you will have to upload the clientscript folder twice (once in the web root and once in the forum root). I will fix this later. |
Is there a specific web service that needs to be running other than cURL? Attached is what the mouse-over looks like for me. The link takes me to the correct armory site. This is with the same with the .1 version and the .2 version.
|
You just need cURL. I'll be adding in nicer ways to handle mis-information in case armory is down or something else goes wrong today.
Oh, i see what your problem could be, your host doesnt have short_open_tags on (ASP style, Code:
<?=$var;?> Code:
<?php echo $var ?> |
Pulls character info, spec, and trade skills now! I'll have my host turn on short_open_tags. Your response time on this is amazing btw. I appreciate your help.
Edit: Uploaded the old char.php after turning on short_open_tags and it works like a charm. Looking forward to the improvements you have listed on your to-do list. |
I'm also on 3.6.8 RL2, so I'll be able to confirm if this version works on 3.6.8 tomorrow. We're an EU guild though ;)
|
Quote:
|
vur nice :) again, thanks for all you hard work
|
The tooltips say "Heath" ;)
EDIT: Fixed it to Health for you. |
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.
|
Quote:
|
Confirmed as working on 3.6.8 RL2 in Firefox for Mac :)
|
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 |
Sounds fantastic :)
|
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 [char=Steamwheedle Cartel]Qialynna[/char] |
Quote:
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 ?) |
Quote:
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"> |
okay, I typed out the functions file name, it doesn't have 'bb' in it and the line number was 801 *facepalm* late night code tweaking for the LOSE. Should have screenied it rather than transcribing it
Tried the sql query and came up with 0 results Code:
Warning: Invalid argument supplied foreach() in includes/functions_wowcharcode.php on line 801 Quote:
One of my guildies was working on making our own/local version of the guild roster, but I think they're a bit overwhelmed by vbulleting atm, so I haven't seen anything of it, or the crafting database we're making. |
Quote:
Other things i have planned to do include some type of guild roster, a raid calander (update/rewrite the one listed on this site) and a built in loot tracking system using either EPGP, NRT or something else (non point DKP though). |
The character you're linking doesnt have any professions listed?
I guess thats my fault for not checking first There'll be an update in 30 minutes or so. -- Updated functions_wowcharcode.php |
works perfectly now. Thanks for the quick update! And just noticed my request about mp5 was silly, as it's all phrased. *is blind*
Sounds like you're headed for a complete WoW Package there, pretty awesome :) I currently use farcaster's event attendance & event forums for raid sign ups, as it lets us do RP events and things as well, and my server means fopen_url has made the WoW version unusable >> I think loot tracking is more important to us than dkp itself - we use suicide kings, so people just use the mod to find out where they are, but 'latest loot' would be a nice addition to the raid section of our site (small area that has upcoming events, screenshots, latest threads and latest raid news all in one spot.) Anyways, this is getting off topic now, so I'll stop rambling. :D |
Installed!
Question.. Is there a way to not display the server? So it just says the Name of the character. Our forums are for our guild only so the default server is always the same.. would just like to display the Character name. This looks awesome btw. |
Quote:
Same here. Thanks! |
Quote:
|
Thanks for the fix! Great mod!
|
Fixed the issue where if you rebuilt your post cache you'll lose your the [char] tag links.
|
Sorry, i'm definitly a novice here.
I've got everything loaded up where it needs to be, (i think) however when i mouse over my name it says "loading" and eventually just shows that it can't load the picture or any data. any ideas? |
Quote:
|
I have confirmed I have curl installed, so that can't be it. I had one of my more knowledgable guys look over it, and he contends that i've installed it according to the instructions
One of my admins says that it isn't pulling the xml into the database. It does add a row for my character, but never populates it with any data. |
nvm, it magically started working on its own. I have no idea :D
|
need more info than that. what character/server are you trying to link, your forum URl, etc.
|
we got it all working, its www.free-collective.us.
it just began working on its own, maybe armory lag? What I'd really like to do is get this added to the postbit using a custom profile field. That would be slick. |
Quote:
HookLocation: postbit_display_start title : WoW Char Postbit PHP code is as follows Code:
// Change the Field2 to whatever custom profile field your have setup in the admincp. Save The variable $wowchar_code is now avialable to use in the postbit (or postbit_legacy). The output is something like "<Vek'nilash: Azaril>" It where ever you see fit. The other error, you can fix it by opening up the functions_wowcharcode.php and replacing line 743 Code:
unset($char['characterinfo']['charactertab']['items']); Code:
if(is_array($char['characterinfo']['charactertab']['items'])) |
You rock!
|
That worked perfectly, i just set it up.
Thanks again! As an added option, that maybe your users will want to add, I made the char_server option a non-editable user field, eliminating a step for the users. |
Quote:
|
Anyone else having the trouble of the character picture not loading when the pop up stats show on a character. v4.3. It will pull the character info up but no pics.
you can see what I mean in my signature here.. http://deathdealers.wowtvc.com/member.php?u=1 (if it works from this link please tell me.. Ive tried it from home and at work.. still no pics) version 4.2 worked fine but for some reason it isnt showing the pics anymore. |
All times are GMT. The time now is 08:02 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|