Helpful Information
 
 
Category: vBulletin 3.5
Import/Export BBCodes

Description
- Import/Export BBCodes using XML files

Installation
- Upload "bbcodes_impex.php" to your admincp folder
- Upload "cpnav_ieb.xml" to your includes/xml folder

The link should appear under "Custom BBCodes" in the AdminCP

Great Idea! Wonder how you got this one ;)

when I was doing the export custom templates ;) before you suggested it on vb.com heh

Wow, great idea! This should be standard on vB. (Hint, Hint ;) )

great hack ..... installed.

havent tested this with beta 4

On beta 4

Looks like it's got a bug.

Imported your strike, scratch and frame codes, they wouldn't parse.

So I exported one of my custom codes that was working, imported it, and now it doesn't parse as well.

*EDIT* odd, they work now... the three of yours, but the sign doesn't work..

Going to test some more to see if I can find out what the bug is hehe


*EDIT AGAIN*

Found the bug.

When you import it first lists the bbcode in the bbcode manager with the replacement text being the example. If you edit the bbcode added, and then click save, it then works.

As for why it's doing this... no clue hehe, but it works... if you edit the bbcode and click save after you import on beta 4.

I would love to Import/Export all custom BBCodes at once, not just selecting one by one each time.

I would love to Import/Export all custom BBCodes at once, not just selecting one by one each time.

ill look into the problems cyricx posted and ill look into this

to be honest tho, I just didnt make that way because then you can choose the bbcodes you want to install. im supposing you are importing bbcodes between forums tho?


edit: oh and how about sharing some bbcodes??? you can use this thread :)

Hello,

i have run this hack on a vBulletin 3.7.

Can i have the permission to publish the new Version?


Greeting Indy

Sorry for my english, i from Germany

Hello, yes you have my permission :) good luck

Thanks,

make the following changes and the Hack run on a vBulletin 3.7

bbcodes_impex.php


find: (line 36)

foreach ($bbcodescache AS $this) {
if ($_REQUEST['bbcodeid'] == $this['bbcodeid']) {
$bbcode = $this;
}
}

replace with:

foreach ($bbcodescache AS $zeile) {
if ($_REQUEST['bbcodeid'] == $zeile['bbcodeid']) {
$bbcode = $zeile;
}
}


find: (line 200)

else {

//check existing
foreach ($bbcodescache AS $this) {
if ($bbcodetag == $this['bbcodetag'] && $twoparams == $this['twoparams']) {ieb_print_stop_back("The bbcode [$bbcodetag] already exists.");}
}

replace with:

else {

//check existing
foreach ($bbcodescache AS $zeile) {
if ($bbcodetag == $zeile['bbcodetag'] && $twoparams == $zeile['twoparams']) {ieb_print_stop_back("The bbcode [$bbcodetag] already exists.");}
}


find: (line 44)

$xml = new XMLexporter();

replace with:

$xml = new XMLexporter($vbulletin);

That's the end of it.

Now the hack run on vBulletin 3.6.x and 3.7.x.

Greeting Indy

FYI - I have updated this to the newest VB version: http://www.vbulletin.org/forum/showthread.php?t=270888

Great mod. :up:










privacy (GDPR)