Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Import / Export BBCodes as XML files (updated by BOP5) Details »»
Import / Export BBCodes as XML files (updated by BOP5)
Version: 1.00, by BirdOPrey5 (Senior Member) BirdOPrey5 is offline
Developer Last Online: Aug 2023 Show Printable Version Email this Page

Category: BB Code Enhancements - Version: 4.x.x Rating:
Released: 09-24-2011 Last Update: Never Installs: 41
Supported
Additional Files  

This mod is based on an original mod released way back in 2005 by Dream. Original mod thread: https://vborg.vbsupport.ru/showthread.php?t=91435 (Marked Re-usable code.)

The purpose of this mod is to give vBulletin the much needed ability to quickly import and export BB Codes as .xml files. Imagine importing a single file rather than going through all the steps of copying & pasting code to install a new BB Code.

The original mod was a good start but it needed serious updating for vBulletin 3.8 & 4.x.

Some changes from the original mod:
  • Had to change a variable name due to a conflict
  • Had to add support for additional BBCode options
  • Had to have the mod refresh the BBCode Cache upon upload of a new BBCode

This mod does not have any product/install XML file.

To install simply upload the two files and refresh/reload your Admin CP page. You will see the new option "Import/Export BBCodes" under "Custom BB Codes" on the side menu.

To upgrade simply overwrite the two files.

To uninstall simply delete the two files.

bbcodes_impex.php - Goes in your admincp directory
cpnav_ieb.xml - Goes in your includes/xml directory

Once installed importing and exporting of BBCodes is fairly self-explanitory.

You can only upload BBCodes saved in this specific XML style.

You can download more BBCodes in this format from:
http://www.qapla.com/mods/forumdispl...-Qapla-BBCodes


Many more wll be added soon.

Tested and working with vBulletin 3.8.7. 4.0.8, and 4.1.5. Expected to work on all vB 3.7, 3.8, and 4.x versions.

Please Mark as Installed if you use this.

Download Now

File Type: zip Import-Export BBCodes by BOP5.zip (6.1 KB, 128 views)

Screenshots

File Type: jpg ImportExport_AdminCP.jpg (105.2 KB, 0 views)

Supporters / CoAuthors

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
4 благодарности(ей) от:
Dr.osamA, mitch84, nacaruncr, yilmaz

Comments
  #12  
Old 09-27-2011, 05:23 PM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Sforums View Post
I am getting error when importing the product:

XML Error: Not well-formed (invalid token) at Line 78

Any ideas what could be the problem? Using 4.1.0 Patch Level 2
As was said there is nothing to import. Please read the instructions.
Reply With Quote
  #13  
Old 09-27-2011, 06:25 PM
Sforums Sforums is offline
 
Join Date: Dec 2010
Posts: 142
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks guys. I must have been half asleep while reading those instructions.
Reply With Quote
  #14  
Old 09-27-2011, 08:28 PM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Sforums View Post
Thanks guys. I must have been half asleep while reading those instructions.
No prob. Please Mark as Installed if you are using this.
Reply With Quote
  #15  
Old 11-18-2011, 07:20 AM
OldSchoolDSL OldSchoolDSL is offline
 
Join Date: Oct 2010
Posts: 1,196
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can't imagine why this isn't getting more attention. A much needed time saver.

Installed and working 4.1.8
Reply With Quote
  #16  
Old 03-08-2012, 04:30 AM
Sarab Sarab is offline
 
Join Date: Oct 2007
Posts: 47
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello,

Great work, thank you =)

I have a question, when I was in vbulletin 3.8 I was using a background bbcode where I put image URL and it make the thread background the image, but since I upgrade to vbulletin 4 it don't work =\

And I'm tired from searching everywhere for anything concern this bbcode but can't find any clue about it =.=

Anyway the replacement code was:
HTML Code:
<div style="width:100%; background-image:url({param});">
And still the old thread with it showing the background, anyway I hope if you can spend minutes to guide me how to fix it ^^"

Best Regards,
Sarab
Reply With Quote
  #17  
Old 03-08-2012, 10:30 AM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sarab,

That replacement code has no closing <div> tag... It is not valid HTML, I can't imagine it ever worked right as it is written- if it did it was probably just some browsers rendering it improperly.

However if you modified the bbcode like this-

Code:
<div style="width:100%; background-image:url({option});">{param}</div>
That would be valid/working code... You would use it like:

[divback="/path/to/image.jpg"]div contents here...[/divback]

You would need to set "Use Option" to YES in the BBCode settings.
Reply With Quote
  #18  
Old 03-08-2012, 11:00 PM
Sarab Sarab is offline
 
Join Date: Oct 2007
Posts: 47
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

BirdOPrey5,

I will cry of happiness T.T

It did work more then just perfect =)
but little note, the wallpaper don't show its full height unless the post contain enough lines, so can I make it independent to the lines?

I see, then maybe when it did not worked we try to fix it and ruin it more and leave it there xD

Really big thanks and I'm really grateful for helping me

Best Regards,
Sarab
Reply With Quote
Благодарность от:
BirdOPrey5
  #19  
Old 03-08-2012, 11:13 PM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You're welcome...

If the background images are all the same height you can try this code- but if they are different heights I'm not sure if that is possible with this type of code.

Code:
<div style="width:100%; height:600px; background-image:url({option});">{param}</div>
That example should make the div 600 pixels high, you can change "600" as necessary.
Reply With Quote
  #20  
Old 03-10-2012, 04:37 AM
Sarab Sarab is offline
 
Join Date: Oct 2007
Posts: 47
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks again =)

I see, no the height differ too much because the majority of user use random image for the background xD

But it's not a big problem since only user who wright a long post use this bbcode usually =)

Very thank you for your super help =D

Best Regards
Sarab
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:51 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.06506 seconds
  • Memory Usage 2,338KB
  • Queries Executed 28 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_code
  • (1)bbcode_html
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (5)post_thanks_box_bit
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (2)post_thanks_postbit
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (2)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete