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

Reply
 
Thread Tools
Optimize BBCodes and BBCodeImages in Editor Details »»
Optimize BBCodes and BBCodeImages in Editor
Version: 1.1, by Coroner Coroner is offline
Developer Last Online: Dec 2011 Show Printable Version Email this Page

Category: BB Code Enhancements - Version: 3.8.1 Rating:
Released: 03-04-2009 Last Update: 03-04-2009 Installs: 56
DB Changes
Code Changes Translations  
No support by the author.

What does vBulletin do with BB Codes ?
vB simply adds any BBCode that used an image to the standard images inside the editor.
What happend, when I have a lot of BB Codes ?
My Editor width, grows wider and wider *g

What does this mod do ?
It allows you to optimize your custom BBCodes.


That means:
  • add a separator after an image (if the BB Code used it)
  • enable/disable a custom BBCode
  • arranges the BB Code Images inside the editor
  • new in v1.1 enter a sortorder for BB Codes
See Images for what I mean.
I've added three fields to the database table "bbcode".
They called: "active", "separator" and "sortorder".

After installing the Product, all avaible custom BB Codes will become active.

Attention:
You need to edit 3 files (there are no HOOKs to do that).
After editing the files, go into the AdminCP, click on BB Codes, click on edit and save it. That's only for caching the BBCodes.

For editing the files, rename the READ.ME.txt into READ.ME.html.
And follow the instructions.

Edit changes for v1.1 are marked with red color in the READ.ME

Download Now

File Type: xml product-bbcode_optimize.xml (2.2 KB, 390 views)
File Type: txt READ.ME.txt (20.5 KB, 473 views)

Screenshots

File Type: gif normal_editor.gif (11.1 KB, 0 views)
File Type: gif normal_editor_with_bb.gif (14.9 KB, 0 views)
File Type: gif optimized_editor.gif (16.7 KB, 0 views)
File Type: gif optimized_editor_with_sep.gif (24.8 KB, 0 views)
File Type: jpg admincp.jpg (118.1 KB, 0 views)
File Type: jpg admincp_bbcode.jpg (52.5 KB, 0 views)
File Type: jpg sortorder.jpg (76.9 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 03-10-2009, 07:44 AM
Coroner Coroner is offline
 
Join Date: Feb 2008
Location: Germany
Posts: 797
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

@powersilie:
You only have 5 custom BBCodes. The custom BBCodes starts now in the 3rd line (your 1st is the "think" BBCode. For testing set it to 3 and you will see, that it works.
1st and 2nd line are the vBulletin BBCodes.

@Raptor:
The seperator is a vB images (6x20 px), the editor images should have a dimension of (21x20 px). Take a look at the first vB BBCodes (B, I, U). the Seperator is after underline. you placed a seperator after you fist one (better do it after the third, too).

Cheers
Coroner
Reply With Quote
  #13  
Old 03-10-2009, 09:08 AM
powersilie powersilie is offline
 
Join Date: Dec 2008
Posts: 43
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi Coroner!

Silly me! It was a logical error of mine

Thanks a lot, of course it works!

Greetings
Karin
Reply With Quote
  #14  
Old 04-10-2009, 08:18 PM
Fulmega's Avatar
Fulmega Fulmega is offline
 
Join Date: Jun 2007
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks Coroner, installed and working perfectly

Installed
Reply With Quote
  #15  
Old 04-10-2009, 09:07 PM
dvbusuario's Avatar
dvbusuario dvbusuario is offline
 
Join Date: Oct 2007
Posts: 153
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Install, very good hack!

Nominated!

Thank you.
Reply With Quote
  #16  
Old 05-15-2009, 03:20 PM
11Uriel11 11Uriel11 is offline
 
Join Date: Apr 2009
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

great mod, Installed, but now I need bbcode for my forum.
Reply With Quote
  #17  
Old 06-30-2009, 09:27 AM
powersilie powersilie is offline
 
Join Date: Dec 2008
Posts: 43
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Raptor View Post
seems to work fine however the seperator option adds a large blank space after the seperator. Other than that wotrks great - just what I needed

Thanks in advance

I also have this problem. I place the separator after the second and the fourth too, but it looks like this pic.

greez
Karin
Reply With Quote
  #18  
Old 06-30-2009, 12:45 PM
Coroner Coroner is offline
 
Join Date: Feb 2008
Location: Germany
Posts: 797
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Could you pls post a picture ?
Reply With Quote
  #19  
Old 07-01-2009, 12:01 PM
powersilie powersilie is offline
 
Join Date: Dec 2008
Posts: 43
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hallo!

It's exactly the same pic like that from "Raptor" in posting nr. 9 ->

https://vborg.vbsupport.ru/showpost....47&postcount=9

A separator after each image is not possible. And if I do not place any separator, they are very close.

greetings
Karin
Reply With Quote
  #20  
Old 07-02-2009, 04:50 PM
Coroner Coroner is offline
 
Join Date: Feb 2008
Location: Germany
Posts: 797
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok, In the line above, find the seperators. I think, when all seperators blocking each other, this looks better
Reply With Quote
  #21  
Old 07-02-2009, 10:42 PM
Sayid Sayid is offline
 
Join Date: Jan 2009
Posts: 143
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I was looking for this

It should already be a default option in vb script..

installed and nominated
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 11:17 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.04728 seconds
  • Memory Usage 2,338KB
  • Queries Executed 26 (?)
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
  • (1)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
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (9)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)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_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
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • 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