vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Import/Export BBCodes (https://vborg.vbsupport.ru/showthread.php?t=91435)

Dream 06-30-2005 09:00 PM

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

Andreas 07-01-2005 04:25 AM

Great Idea! Wonder how you got this one ;)

Dream 07-01-2005 04:27 AM

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

Kirk Y 07-03-2005 03:00 AM

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

Barakat 07-13-2005 04:19 PM

great hack ..... installed.

Dream 07-13-2005 04:49 PM

havent tested this with beta 4

Cyricx 07-20-2005 04:39 PM

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.

uae 07-21-2005 04:38 AM

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

Dream 07-21-2005 04:52 AM

Quote:

Originally Posted by uae
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 :)

MDK-Indy 06-18-2008 12:23 AM

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

Dream 06-18-2008 12:32 AM

Hello, yes you have my permission :) good luck

MDK-Indy 06-18-2008 12:54 AM

Thanks,

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

bbcodes_impex.php


find: (line 36)

PHP Code:

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



replace with:


PHP Code:

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


find: (line 200)

PHP Code:

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:


PHP Code:

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)

PHP Code:

    $xml = new XMLexporter(); 



replace with:

PHP Code:

    $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

BirdOPrey5 09-25-2011 01:50 PM

FYI - I have updated this to the newest VB version: https://vborg.vbsupport.ru/showthread.php?t=270888

Great mod. :up:


All times are GMT. The time now is 04:42 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
  • Page Generation 0.01496 seconds
  • Memory Usage 1,749KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (6)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (13)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete