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
  #22  
Old 07-03-2009, 05:34 PM
accludetuner accludetuner is offline
 
Join Date: Jun 2009
Posts: 75
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I noticed a small discrepancy.

Install instructions say:
Quote:
search for: (function: upgrade bbcode database)
PHP Code:
twoparams '" . $db->escape_string($vbulletin->GPC['twoparams']) . "'
add below:
PHP Code:
`separator` = " . intval ($vbulletin->GPC['bbcode_separator']) . ",
`
active` = " . intval ($vbulletin->GPC['bbcode_active']) . "
but I don't have that line. Closest matching line is:
PHP Code:
if ($db->query_first("SELECT * FROM " TABLE_PREFIX "bbcode WHERE (bbcodetag = '" $db->escape_string($vbulletin->GPC['bbcodetag']) . "' AND twoparams = " $vbulletin->GPC['twoparams'] . ") AND bbcodeid <>  " $vbulletin->GPC['bbcodeid'])) 


A few other small discrepancies, but that's the biggest one and it's keeping me from installing right now

V3.8.2
Reply With Quote
  #23  
Old 07-03-2009, 06:07 PM
Coroner Coroner is offline
 
Join Date: Feb 2008
Location: Germany
Posts: 797
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

in vB3.8.1 there is only one line starting with:

Code:
twoparams = '"
Reply With Quote
  #24  
Old 09-03-2009, 08:03 AM
xyzmary2001 xyzmary2001 is offline
 
Join Date: May 2008
Posts: 62
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Wonderfully mod. Installed and nominated. I was looking for a very long time for this. Just great, and the instructions are so clear that even I, who never tried to edit a php, managed to do it without troubles.
Reply With Quote
  #25  
Old 09-05-2009, 08:32 PM
arauf arauf is offline
 
Join Date: Aug 2005
Posts: 45
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi , im using version 3.8.4 ,i have edited all files installed product but

1- I cant see any "Optimizing BB Codes" anywhere in admin CP.
2- cant understand these steps under instalion.

---------------------------------------------------------------------------------------------------
3. If you are using more than one Language, follow the next Step
4. Languages & Phrases -> Download / Upload Languages
Now choose the Languagefile Add Language (choose Language) -> import
----------------------------------------------------------------------------------------------------

what im importing in language ? and what files in include folder as it mentioned in

How to start:
# Upack the ZIP/RAR File into a folder on your Harddisc.
# Upload all Files of the Folder "upload" incl. all Subfolders onto your Server.
# Now, enter your AdminCP.


I am all confused , any help ?
Reply With Quote
  #26  
Old 09-06-2009, 07:44 AM
Coroner Coroner is offline
 
Join Date: Feb 2008
Location: Germany
Posts: 797
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

1.) You can't ! See under BB Codes

2. + 3. + 4.) Only if you have a multilanguage Forum. That means, more than one language
Reply With Quote
  #27  
Old 09-06-2009, 10:36 AM
EidolonAH EidolonAH is offline
 
Join Date: Apr 2009
Location: London, England
Posts: 178
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Does exactly what it says on the box, nice one, thank you for the share.
Reply With Quote
  #28  
Old 09-06-2009, 02:35 PM
nomoreturn's Avatar
nomoreturn nomoreturn is offline
 
Join Date: Apr 2009
Posts: 345
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Where is the zip file in download there is only xml and read me file where is the zip/rar file
How to start:

Upack the ZIP/RAR File into a folder on your Harddisc.
Upload all Files of the Folder "upload" incl. all Subfolders onto your Server.
Now, enter your AdminCP.
Reply With Quote
  #29  
Old 09-06-2009, 03:29 PM
Coroner Coroner is offline
 
Join Date: Feb 2008
Location: Germany
Posts: 797
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sorry,'bout this. It's my standard text

Ignore it.
Reply With Quote
  #30  
Old 10-06-2009, 09:33 PM
RedHacker RedHacker is offline
 
Join Date: Jan 2009
Posts: 878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It is hard to install
Reply With Quote
  #31  
Old 11-01-2009, 11:44 AM
piratarg piratarg is offline
 
Join Date: Mar 2009
Location: Buenos Aires
Posts: 39
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Very thanks for the mod!
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:03 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.07049 seconds
  • Memory Usage 2,347KB
  • 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_code
  • (3)bbcode_php
  • (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