Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.7 > vBulletin 3.7 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Multiple Options in Custom BBCode Details »»
Multiple Options in Custom BBCode
Version: 1.01, by Zamurick X Zamurick X is offline
Developer Last Online: Jun 2010 Show Printable Version Email this Page

Category: BB Code Enhancements - Version: 3.7.2 Rating:
Released: 08-29-2008 Last Update: 08-29-2008 Installs: 15
Uses Plugins
Re-useable Code Translations Is in Beta Stage  
No support by the author.

The first thing you should know is that I didn't write this from scratch, I updated a lot of Andreas' Multiple Option BBCode mod, which is vBulletin 3.5 only.

This allows you to use multiple {option} variables in your custom BBCode via {option1}, {option2}, {option3}, etc.. When setting the custom BBCode example, use a semicolon to separate the options. There is a screenshot attached to help you understand it if you can't already.

There are two more things you must know.
  1. The AdminCP preview does not work when using multiple options. It will work properly in posts, though.
  2. This has been tested on vBulletin 3.7.3 only.

If you have any questions, post and I'll try to answer them. This is my first modification submission, so bare with me.

The plugin XML is attached, enjoy.

Change Log:
08/29/2008: Initial Release.
08/30/2008: Various bug fixes. Options no longer need to be surrounded by HTML to work, and the modification now works when more than one custom BBCode is in use.

Supporters / CoAuthors

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 08-29-2008, 11:09 PM
cheat-master30's Avatar
cheat-master30 cheat-master30 is offline
 
Join Date: Mar 2007
Location: Information Classified
Posts: 1,715
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm going to install this, or at least see if I can mess around with it and make cool vB codes later, so thanks for the release Zamurick!
Reply With Quote
  #3  
Old 08-29-2008, 11:12 PM
Zamurick X Zamurick X is offline
 
Join Date: Dec 2007
Location: Canada (BC)
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No problem. Let me know if you have problems. =]
Reply With Quote
  #4  
Old 08-30-2008, 01:03 AM
xuanhuy238 xuanhuy238 is offline
 
Join Date: Apr 2006
Posts: 31
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i don't like (option),i want use (param)
Reply With Quote
  #5  
Old 08-30-2008, 01:29 AM
Deepdog009's Avatar
Deepdog009 Deepdog009 is offline
 
Join Date: Dec 2004
Location: Almost out of PHP TZone
Posts: 485
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I can use this with my new bbcodes...>>>Beauts<<<
Reply With Quote
  #6  
Old 08-30-2008, 01:33 AM
VadexFX VadexFX is offline
 
Join Date: Aug 2008
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am getting this when I do it, I am using 3.7.3, What Happens is When i do the Code in the Actual post like [TEST=15;230]TEST[/TEST] FIrefox throws that error.
Content Encoding Error

The page you are trying to view cannot be shown because it uses an invalid or unsupported form of compression.


The page you are trying to view cannot be shown because it uses an invalid or unsupported form of compression.

* Please contact the website owners to inform them of this problem.
Reply With Quote
  #7  
Old 08-30-2008, 01:49 AM
VadexFX VadexFX is offline
 
Join Date: Aug 2008
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Here is what I have

Replacement: <embed src="{param}" width="{option1}" height="{option2}"/>

Example:[FLASH=width;height]http://myExamples/test.swf[/FLASH]

BB Code Tag Name: FLASH
Reply With Quote
  #8  
Old 08-30-2008, 02:09 AM
Zamurick X Zamurick X is offline
 
Join Date: Dec 2007
Location: Canada (BC)
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Try setting the replacement to this:
Code:
<object width="{option1}" height="{option2}"><param name="movie" value="{param}"></param><embed src="{param}" width="{option1}" height="{option2}"></embed></object>
Reply With Quote
  #9  
Old 08-30-2008, 02:18 AM
VadexFX VadexFX is offline
 
Join Date: Aug 2008
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Zamurick X View Post
Try setting the replacement to this:
Code:
<object width="{option1}" height="{option2}"><param name="movie" value="{param}"></param><embed src="{param}" width="{option1}" height="{option2}"></embed></object>
nope doesnt work still, this is what I do in the forum I tried all these 4

[flash=150 160]http://mysite.com/example.swf[/flash]
[flash="150 160"]http://mysite.com/example.swf[/flash]
[flash=150;160]http://mysite.com/example.swf[/flash]
[flash="150;160"]http://mysite.com/example.swf[/flash]
Reply With Quote
  #10  
Old 08-30-2008, 02:31 AM
Zamurick X Zamurick X is offline
 
Join Date: Dec 2007
Location: Canada (BC)
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Working on a fix, shouldn't be long.
Reply With Quote
Reply


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:22 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04449 seconds
  • Memory Usage 2,291KB
  • Queries Executed 24 (?)
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
  • (2)bbcode_code
  • (1)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
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)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_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
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • 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