![]() |
Optimize BBCodes and BBCodeImages in Editor
1 Attachment(s)
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:
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 |
A small explanation 'bout the Images (left -> right)
|
Another very very quick edit:
BB Codes can have a sort order. Usefull for arranging the icons inside the editor |
great mod .... *installed*
|
Good work, thank you :up:
installed |
I forgott a changing in the READ.ME.
This will show the BB Codes (do='modify') in your sortorder. search for: Code:
$bbcodes = $db->query_read("SELECT * FROM " . TABLE_PREFIX . "bbcode"); Code:
$bbcodes = $db->query_read("SELECT * FROM " . TABLE_PREFIX . "bbcode ORDER BY sortorder ASC"); search for: Code:
$bbcodes = $db->query_read_slave("SELECT * FROM " . TABLE_PREFIX . "bbcode ORDER BY bbcodetag, twoparams"); Code:
$bbcodes = $db->query_read_slave("SELECT * FROM " . TABLE_PREFIX . "bbcode WHERE active=1 ORDER BY bbcodetag, twoparams"); |
Thank You so much, it's a great mod! *Installed*
The only thing is, first after install I wanted 16 icons in one row. But then I changed to 18, but it doesn't change any more. Now there are 16 icons in one row and it will not change to 18 or something else.... I don't know which mistake I did. Greetings Karin |
Umm, the function to do an "image wrap" is in the functions_editor.php
PHP Code:
You also can say: PHP Code:
|
1 Attachment(s)
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 |
Hallo Coroner!
I'm sorry, it doesn't work for me. I tried it with "20"and "18", but the wrap ist after 16 images (my first decision). https://vborg.vbsupport.ru/external/2009/03/43.png Greetings Karin |
All times are GMT. The time now is 03:10 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|