PDA

View Full Version : Multiple Option BBCode


Andreas
23 Jun 2005, 03:38
Multiple Option BBCode

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!

waza
23 Jun 2005, 08:51
does this also work on vb3.0.7 ?? Would be great!

Andreas
23 Jun 2005, 11:12
No. This is for 3.5 only.

Chris M
23 Jun 2005, 12:08
Nice one Kirby :)

Hacks like this should be standard on vB ;)

Satan

Dan
23 Jun 2005, 12:11
I concur with Chris up there :) This type of thing should be stand :D

Good job!

TruthElixirX
26 Jun 2005, 06:24
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
28 Jun 2005, 20:25
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
28 Jul 2005, 01:17
Looks like the code to find has been changed again on RC 1. ;)

Kirk Y
28 Jul 2005, 02:36
Are you planning on Porting this mod to RC1 and on until the Gold release, Kirby?

Andreas
28 Jul 2005, 07:11
Looks like the code to find has been changed again on RC 1. ;)
This is a Plugin ... ?

Boofo
28 Jul 2005, 07:34
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
28 Jul 2005, 07:35
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
28 Jul 2005, 07:36
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
13 Sep 2005, 22:27
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)


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



Is this plugin ok for 3.5 RC3?

utw-Mephisto
14 Sep 2005, 16:54
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
14 Sep 2005, 17:10
edit

Ok, I got it working, but the box goes over the whole page and not just around the text ;(

Andreas
14 Sep 2005, 17:17
That's what div is supposed to do :)

Princeton
14 Sep 2005, 17:22
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
14 Sep 2005, 17:27
edit

Ok, I got it working, but the box goes over the whole page and not just around the text ;(

use <span>

utw-Mephisto
14 Sep 2005, 17:28
As I said, I got it working above (yepp, I just did not see it in the manager).

Cyricx
06 Oct 2005, 16:47
Looks like the code changed alot in vb3.5 gold?

Looks like they took out the str_replace?

Andreas
06 Oct 2005, 21:00
Installation Beta 3 & Up
------------------------
Upload/Install the Plugin from multioptionbb.xml

So what are you talking about?

sub_ubi
02 Nov 2005, 00:22
Installing now, hope it works!

Edit: It works very well, thank you for your time and effort.

Xplorer4x4
02 Nov 2005, 05:49
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
03 Nov 2005, 06:38
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
12 Nov 2005, 19:49
*bump*

Michelle
13 Nov 2005, 02:35
Andreas please tell those guys over at Jelsoft to make this a default option! :p

Quillz
17 Dec 2005, 23:15
Just added it. Works great.

Zia
18 Dec 2005, 10:54
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

Zia
18 Dec 2005, 10:55
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
19 Jan 2006, 13:14
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
19 Jan 2006, 13:29
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
19 Jan 2006, 15:15
Just take a look at the screenshots, it's pretty straight-forward.

cclaerhout
22 Feb 2006, 14:06
This hack is working very well except in vBa CMPS. All {option X} values are not filled when the html code is read.

lightwave
27 Feb 2006, 21:07
: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
06 Apr 2006, 18:24
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
14 May 2006, 16:42
Any solution ?:bunny:
Bump :)

cclaerhout
31 May 2006, 11:15
Last up :(

kalleball
27 Oct 2006, 15:11
does this work on 3.6.x? i can't seem to find anything like it anywhere...

C Braithwaite
03 Dec 2006, 11:38
what is the format for the bbcode? is mytag=opt1;op2 .. or mytag=opt1 opt2

etc etc ?

sub_ubi
30 Mar 2007, 01:27
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
08 Sep 2007, 07:19
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
10 Sep 2007, 12:53
Up?

Andreas
19 Sep 2007, 13:41
Except for the array_merge() bug already reported it works fine with PHP 5 and vBulletin 3.6.X

scarex80
19 Sep 2007, 22:22
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
21 Mar 2008, 05:34
Does this work on 3.7 RC1?

ancient cries
23 Apr 2008, 17:33
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
26 May 2008, 22:47
This might break the editor images for bbcodes that use options.

Here's the error in the console:



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



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
02 May 2009, 12:53
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
16 Jul 2009, 10:09
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)? ^__^;

Brew
28 Feb 2010, 19:13
Andreas

Will you be updating this to ver 4.0+ any time soon :)

Thanks!