View Full Version : Multiple Option BBCode
Andreas
06-22-2005, 10:00 PM
<font size="3">Multiple Option BBCode</font>
Description
This Hack allows you to create custom BBCodes with multiple parameters
instead of just one, eg. {option1}, {option2} and so on can be used.
Installation
Files to modify: 1
Difficulty: Medium
History
0.1 Initial Release
0.2 Update for Beta 3
Due to Code changes in Beta 3 this Hack is now a Plugin.
1.0.0 Packaged as a product
Fixed a few minor bugs (preview not wroking, etc.)
Compatibility
This modification is compatible with vBuleltin 3.5.X, 3.6.X, 3.7.X and 3.8.X
Please only click Install if you actually have installed/are using this Hack, and click Uninstall whan you don't use it any longer!
does this also work on vb3.0.7 ?? Would be great!
Andreas
06-23-2005, 10:12 AM
No. This is for 3.5 only.
Chris M
06-23-2005, 11:08 AM
Nice one Kirby :)
Hacks like this should be standard on vB ;)
Satan
I concur with Chris up there :) This type of thing should be stand :D
Good job!
TruthElixirX
06-26-2005, 05:24 AM
Heh. I foooled the vb 3.0.5 set-up into recognizing multiple options without touching any code, templare , or table. nothin modified..I don't know how I did it either.
Great hack. Will install when I gt my testboardup.
Andreas
06-28-2005, 07:25 PM
Heh. I foooled the vb 3.0.5 set-up into recognizing multiple options without touching any code, templare , or table. nothin modified..I don't know how I did it either.
3.0.5?
Thats a pretty old Version ...
Anyway, if you are able to find out how you did that - let me know :)
Update for Beta 3
The Code has partly changed in Beta 3, this Hack does not fully work any longer (well, it does - but the Code to search for has changed a bit).
As there are new possibilities in Beta 3, it's a Plugin now :)
Boofo
07-28-2005, 12:17 AM
Looks like the code to find has been changed again on RC 1. ;)
Kirk Y
07-28-2005, 01:36 AM
Are you planning on Porting this mod to RC1 and on until the Gold release, Kirby?
Andreas
07-28-2005, 06:11 AM
Looks like the code to find has been changed again on RC 1. ;)
This is a Plugin ... ?
Boofo
07-28-2005, 06:34 AM
This is a Plugin ... ?
Per your fisrt post in this thread:
Due to Code changes in Beta 3 this Hack is now a Plugin.
Andreas
07-28-2005, 06:35 AM
Yes. So what are you talking about "Looks like the code to find has been changed again on RC 1"?
There is no Code to search for.
Boofo
07-28-2005, 06:36 AM
Per your fisrt post in this thread:
Scratch that. I didn't see the two sets of instuctions in the readme file. My goof. Sorry. ;)
diades
09-13-2005, 09:27 PM
Hi
As there are new possibilities in Beta 3, it's a Plugin now
I have just installed this via the upload plugin panel but it has no effect (I tried with your example of box) on vb2.5 RC3. in fact the page just shows (the source code)
<div style="border:{option1}px solid {option2};">Hi</div>
Is this plugin ok for 3.5 RC3?
utw-Mephisto
09-14-2005, 03:54 PM
First, you have a ";" too much, but 2nd, even without, I get just the text and not box nor red text (3.5 RC2)
utw-Mephisto
09-14-2005, 04:10 PM
<i>edit</i>
Ok, I got it working, but the box goes over the whole page and not just around the text ;(
Andreas
09-14-2005, 04:17 PM
That's what div is supposed to do :)
Princeton
09-14-2005, 04:22 PM
First, you have a ";" too much, but 2nd, even without, I get just the text and not box nor red text (3.5 RC2)
try using the bbcode on a post ... for some reason the bbcode manager is not displaying the outcome on my end (maybe the same thing is happening to you)*
* I've been having this problem even before I tried this plugin.
Princeton
09-14-2005, 04:27 PM
edit
Ok, I got it working, but the box goes over the whole page and not just around the text ;(
use <span>
utw-Mephisto
09-14-2005, 04:28 PM
As I said, I got it working above (yepp, I just did not see it in the manager).
Cyricx
10-06-2005, 03:47 PM
Looks like the code changed alot in vb3.5 gold?
Looks like they took out the str_replace?
Andreas
10-06-2005, 08:00 PM
Installation Beta 3 & Up
------------------------
Upload/Install the Plugin from multioptionbb.xml
So what are you talking about?
sub_ubi
11-01-2005, 11:22 PM
Installing now, hope it works!
Edit: It works very well, thank you for your time and effort.
Xplorer4x4
11-02-2005, 04:49 AM
Kirby(sorry but I gotta call you that) I think I would need this hack in order to properley code this into one BBCode
http://www.w3schools.com/tags/tag_option.asp
How might I code this in the add BBCode section?
Thanks again Kirby.
Xplorer4x4
11-03-2005, 05:38 AM
Also can you add a third screen shot to show the outcome of your tags as I think your example may be the code I need.
Xplorer4x4
11-12-2005, 06:49 PM
*bump*
Lea Verou
11-13-2005, 01:35 AM
Andreas please tell those guys over at Jelsoft to make this a default option! :p
Quillz
12-17-2005, 10:15 PM
Just added it. Works great.
its really really nice....can u pls provide a klikable button & smart box image too?
yet not i download it......
for sure i will install it....
Pls
Thnx
its really really nice....can u pls provide a klikable button & smart box image too?
yet not i download it......
for sure i will install it....
More over...i got a tools bar...with huge option if i submit it...can u have a look on that....to optimize with 3.52 ?
Trust most of us will be gratefull.
Pls
Thnx
YOimYO
01-19-2006, 12:14 PM
ok. I have installed it. It did not mess with my custom bbcodes at all :D
anyhow.
Could I please get some instructions on setting up the options ?
(option 1) (option 2 )
where do i define what the option is ?
thx :)
Xplorer4x4
01-19-2006, 12:29 PM
ok. I have installed it. It did not mess with my custom bbcodes at all :D
anyhow.
Could I please get some instructions on setting up the options ?
(option 1) (option 2 )
where do i define what the option is ?
thx :)
Good luck I been waiting for 2 months how to set up one particular set of BBC Code.
Andreas
01-19-2006, 02:15 PM
Just take a look at the screenshots, it's pretty straight-forward.
cclaerhout
02-22-2006, 01:06 PM
This hack is working very well except in vBa CMPS. All {option X} values are not filled when the html code is read.
lightwave
02-27-2006, 08:07 PM
:eek: I waited for this since I know what BBCodes are... I'm SO grateful Andreas. *hammers the Install link*
Finally I can use some fancy BBcode stuff x3 (I assume it works with javascript too?).
cclaerhout
04-06-2006, 05:24 PM
This hack is working very well except in vBa CMPS. All {option X} values are not filled when the html code is read.
Any solution ?:bunny:
cclaerhout
05-14-2006, 03:42 PM
Any solution ?:bunny:
Bump :)
cclaerhout
05-31-2006, 10:15 AM
Last up :(
kalleball
10-27-2006, 02:11 PM
does this work on 3.6.x? i can't seem to find anything like it anywhere...
C Braithwaite
12-03-2006, 10:38 AM
what is the format for the bbcode? is mytag=opt1;op2 .. or mytag=opt1 opt2
etc etc ?
sub_ubi
03-30-2007, 12:27 AM
The format is mytag=opt1|opt2|opt3
This works fine on 3.6.x
However, it's not compatible with PHP5. If you use it on a server with php5 you will get this error:
Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /includes/class_bbcode.php(2341) : eval()'d code on line 7
To make it compatible with PHP5, go to your plugin manager and in,
bbcode_fetch_tags
replace
$replace = array_merge($param, explode('|', $options));
with
$replace = array_merge((array)$param, (array)explode('|', $options));
and it will work fine.
scarex80
09-08-2007, 06:19 AM
I tried to install the plugin on my 3.6.8 test forum; as I'm running on 5.X php I've applied the fix sub_ubi reported, but doesn't work. {option1} {option2} are not resolved :(
scarex80
09-10-2007, 11:53 AM
Up?
Andreas
09-19-2007, 12:41 PM
Except for the array_merge() bug already reported it works fine with PHP 5 and vBulletin 3.6.X
scarex80
09-19-2007, 09:22 PM
Nothing, I've tried also on a 3.6.7 I import the xml plugin file contained in the zip, I applied the fix for php5 but my custom bbcode
prova
with this function of test
{option1}<sup>{param}</sup>{option2} produce this
{option1}prova{option2}, with prova obviously formatted as sup html tag.
Webnower
03-21-2008, 04:34 AM
Does this work on 3.7 RC1?
Raw Sugar
04-23-2008, 04:33 PM
I'd love to use this one! But I'm running on 3.6.8... any plans on making it compatible with other versions??
vgevolution
05-26-2008, 09:47 PM
This might break the editor images for bbcodes that use options.
Here's the error in the console:
Warning: reference to undefined property vbphrase.enter_tag_option
Source File: /forums/clientscript/vbulletin_textedit.js?v=368
Line: 1007
Error: str has no properties
Source File: /forums/clientscript/vbulletin_global.js?v=368
Line: 1611
Any fix for this, or am I looking at the wrong code? I did remove the plugins, and I'm still having the problem, so it might not be this addon.
Andreas
05-02-2009, 11:53 AM
Except for the array_merge() bug (which has already been mentionened and had a pathch posted) this does work with 3.5, 3.6, 3.7 and 3.8 - just tested it with 3.8.2 - not that bad for code that is almost 4 years old :)
Anyway, I'll release an update that fixes some small issues (WYSIWYG editor, Test not wrikng in ACP, etc.)
Oblivion Knight
07-16-2009, 09:09 AM
Anyway, I'll release an update that fixes some small issues (WYSIWYG editor, Test not wrikng in ACP, etc.)Just thought I'd give a little nudge on this, if you have time.. :up:
Possibly with vBadvanced CMPS support too, please (earlier reported not working)? ^__^;
Andreas
Will you be updating this to ver 4.0+ any time soon :)
Thanks!
Theda
03-24-2010, 06:48 PM
really wanting this for 4.0.x...
dibbz
06-12-2010, 10:08 PM
This is holding me back from upgrading to vb4 cms.. it is a great plugin to make rich content.
ArchAngelz
07-22-2010, 09:13 AM
Anyone knows if there's an equivalent for this for vb4?
countersweet
09-28-2010, 11:21 PM
+1 for vbulletin 4
Dylan Leblanc
10-30-2010, 11:39 AM
The format is mytag=opt1|opt2|opt3
This works fine on 3.6.x
However, it's not compatible with PHP5. If you use it on a server with php5 you will get this error:
To make it compatible with PHP5, go to your plugin manager and in,
bbcode_fetch_tags
replace
with
and it will work fine.
Wow, thank you for that! It works now. :)
+ another one for vB 4 version please!!
Kirschtorte
01-20-2011, 05:01 PM
Hallo Andreas,
ich habe nur eine kleine Frage.
In einem deiner Kommentare schriebst du zu "Multiple Options BBCode":
Anyway, I'll release an update that fixes some small issues (WYSIWYG editor, Test not wrikng in ACP, etc.)
Bezieht sich das auf vB4 oder auch auf 3.8.x?
Falls auch auf 3.8.x, zu wann kann man denn mit einem Update rechnen?
Gru?,
Andy
sub_ubi
04-17-2012, 04:29 AM
Would love to have this on 4.1!
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.