The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
bbCode Mod - Itemstats for EQDKP WoW
My vBulletin is used for a hardcore World of Warcraft guild (PC Game). There is currently a mod for phpBB that allows you to link items that are acquired in the game. Here are the directions for installing this mod:
Quote:
I am assuming I can do the same thing in vBulletin as VB parses the same type of "BB Code" used for phpBB. Is there anywhere or anyfile in VB that includes the code for parsing for BB and if so, is the same exact parsing as phpBB uses or do i need to find a workaround. n.b. i udnerstand this is a mod and i have asked the people who created this mod how to do it for vbulletin, but thye are very slow to responding. if there is a similarity between the bbcodes of phpBB and vb than i can do a workaround. if no one knows how to do this, its cool, ill just wait for a response from the creators of this mod fyi: here is the dev post: http://forums.eqdkp.com/index.php?showtopic=1768 |
#2
|
|||
|
|||
I needed it so I managed to get it to work on my vbulletin 3.5.0
file : class_bbcode.php add (right at the start) PHP Code:
hook : bbcode_parse_complete php code : PHP Code:
Code:
<link rel="stylesheet" href="itemstats/templates/itemstats.css" type="text/css"> <script type="text/javascript" src="itemstats/overlib/overlib.js"><!-- overLIB (c) Erik Bosrup --></script> and it's done |
#3
|
||||
|
||||
You repost this into the hacks forum.
|
#4
|
|||
|
|||
by add module do u mean in vBAnvaced? can u give me a little more detail in making this "module"? THanks!
fyi im using vB 3.0 |
#5
|
|||
|
|||
i don't know if modules are already in vb 3.0, what the module does is adding some php code somewhere in a file at some hook without editing the original file.
to do this manually you have to open class_bbcode.php, find function do_parse, find return $text; inside the function, and add $text = itemstats_parse($text); just before the return |
#6
|
|||
|
|||
ok figured it out:
Code:
// ###################### Start bbcodeparse2 ####################### function parse_bbcode2($bbcode, $dohtml, $dobbimagecode, $dosmilies, $dobbcode, $iswysiwyg = 0, $donl2br = 1) WOOT! its sick FYI: this is how to do it for v.308 |
#7
|
|||
|
|||
so you got it working ?
|
#8
|
|||
|
|||
I can't get it to work on VB 3.08 running win2k3 IIS 6.0
It goes to a white page everytime no matter what you do. Even after hours of creating a test.php file and testing it just on a single line of text. I'm assuming you got this to work on Apache/Linux setup as all the item stat files are unix paths. ?? |
#9
|
|||
|
|||
everything works fine for me, but...
if there is no other bbcode in the same post he will not parse the [item][/item] tags. any ideas? |
#10
|
||||
|
||||
I'm experiencing some weird problems with this.
The tags will be properly parsed in preview and when I'm redirected back to the post after submitting it. But on subsequent reloads of the page, the link will be not be parsed. I've been out of the vBulletin-game for a long time now, so I haven't had a chance to properly familiarize myself with the code yet. It seems to be a problem with the postcache or something. Is there a cleaner way to implement this functionality in vB3.5? |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|