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 |
#32
|
|||
|
|||
could this be related to needing that cURL thing loaded up? I do not know if i have that.
|
#33
|
|||
|
|||
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. |
#34
|
|||
|
|||
nvm, it magically started working on its own. I have no idea
|
#35
|
||||
|
||||
need more info than that. what character/server are you trying to link, your forum URl, etc.
|
#36
|
|||
|
|||
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. |
#37
|
||||
|
||||
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. // If your server field is 7 and your character field is 8, you would use // $wowchar_server = $post['field7']; // $wowchar_charname = $post['field8']; //////////////////////////////////////////////////////////////////////////////////////// $wowchar_server = $post['field1']; $wowchar_charname = $post['field2']; global $vbulletin; $wowchar_use_default = false; if(!$wowchar_server) { $wowchar_server = $vbulletin->options['wowcharcode_default_realm']; $wowchar_use_default = true; } if($wowchar_charname != false or $server != false) { $wowchar_charname = trim($wowchar_charname); $wowchar_server = trim($wowchar_server); //override default armory URL. preg_match("/(EU|US)-(.*)/", $wowchar_server, $match); if($match[1] == true) { $armory_locale = strtolower($match[1]); $armory_server = $match[2]; } else { $armory_locale = strtolower($vbulletin->options['wowcharcode_locale']); $armory_server = $wowchar_server; } switch($armory_locale) { case 'eu': $armoryurl = 'http://eu.wowarmory.com'; break; case 'us': $armoryurl = 'http://www.wowarmory.com'; break; } //$wowchar_code = "<img src='clientscript/wowbbcode_js/char.gif' border='0' align='middle'>"; $wowchar_code .= "<a href=\"".$armoryurl."/character-sheet.xml?r=".str_replace(" ","+",$armory_server)."&n=".$wowchar_charname."\""; $wowchar_code .= " target=\"new\""; $wowchar_code .= " onmouseover='ajax_showTooltip(\"".$vbulletin->options['bburl']."/ajax.php?do=wowcharcode&server={xserver}&char={charname}\",this);"; $wowchar_code .= " return false' onmouseout='ajax_hideTooltip()'>"; if($vbulletin->options['wowcharcode_display_realm'] == 0 && $wowchar_use_default == true) { $wowchar_code .= "<strong><{charname}></strong></a>"; } else { $wowchar_code .= "<strong><{server}: {charname}></strong></a>"; } $wowchar_server = str_replace("'","'",$wowchar_server); $wowchar_code = str_replace("{xserver}",str_replace(" ","+",$wowchar_server), $wowchar_code); $wowchar_code = str_replace("{server}",$wowchar_server, $wowchar_code); $wowchar_code = str_replace("{charname}",$wowchar_charname, $wowchar_code); } else { $wowchar_code = false; } 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'])) { unset($char['characterinfo']['charactertab']['items']); } |
#38
|
|||
|
|||
You rock!
|
#39
|
|||
|
|||
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. |
#40
|
||||
|
||||
Setting the default realm in the options should have made the user profile field useless.
|
#41
|
|||
|
|||
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. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|