Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons

Reply
 
Thread Tools
Multiple Option BBCode Details »»
Multiple Option BBCode
Version: 1.0.0, by Andreas Andreas is offline
Developer Last Online: Jan 2023 Show Printable Version Email this Page

Version: 3.5.8 Rating:
Released: 06-22-2005 Last Update: 05-08-2009 Installs: 55
Uses Plugins
 
No support by the author.

<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!

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Благодарность от:
xorex

Comments
  #42  
Old 03-30-2007, 12:27 AM
sub_ubi sub_ubi is offline
 
Join Date: Dec 2004
Posts: 177
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #43  
Old 09-08-2007, 06:19 AM
scarex80 scarex80 is offline
 
Join Date: Jul 2007
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #44  
Old 09-10-2007, 11:53 AM
scarex80 scarex80 is offline
 
Join Date: Jul 2007
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Up?
Reply With Quote
  #45  
Old 09-19-2007, 12:41 PM
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Location: Germany
Posts: 6,863
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Except for the array_merge() bug already reported it works fine with PHP 5 and vBulletin 3.6.X
Reply With Quote
  #46  
Old 09-19-2007, 09:22 PM
scarex80 scarex80 is offline
 
Join Date: Jul 2007
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #47  
Old 03-21-2008, 04:34 AM
Webnower Webnower is offline
 
Join Date: Feb 2008
Location: Phoenix, Arizona
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Does this work on 3.7 RC1?
Reply With Quote
  #48  
Old 04-23-2008, 04:33 PM
Raw Sugar Raw Sugar is offline
 
Join Date: Apr 2005
Location: Texas
Posts: 74
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'd love to use this one! But I'm running on 3.6.8... any plans on making it compatible with other versions??
Reply With Quote
  #49  
Old 05-26-2008, 09:47 PM
vgevolution vgevolution is offline
 
Join Date: Nov 2006
Location: Beyond the Looking Glass
Posts: 60
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #50  
Old 05-02-2009, 11:53 AM
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Location: Germany
Posts: 6,863
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.)
Reply With Quote
  #51  
Old 07-16-2009, 09:09 AM
Oblivion Knight's Avatar
Oblivion Knight Oblivion Knight is offline
 
Join Date: May 2002
Location: Sheffield, UK
Posts: 1,757
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Andreas View Post
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)? ^__^;
Reply With Quote
Reply

Thread Tools

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 02:13 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.02433 seconds
  • Memory Usage 2,297KB
  • Queries Executed 27 (?)
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
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (1)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (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_postinfo_query
  • fetch_postinfo
  • 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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete