vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Multiple Option BBCode (https://vborg.vbsupport.ru/showthread.php?t=90869)

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:

Quote:

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
Quote:

$replace = array_merge($param, explode('|', $options));
with

Quote:

$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

[test=uno|due]prova[/test]

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:

Code:

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

Quote:

Originally Posted by Andreas (Post 1802973)
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 02-28-2010 06:13 PM

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

Quote:

Originally Posted by sub_ubi (Post 1215745)
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":

Quote:

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!


All times are GMT. The time now is 11:51 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
  • Page Generation 0.01141 seconds
  • Memory Usage 1,755KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (18)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete