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

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
  #12  
Old 08-30-2008, 04:20 AM
VadexFX VadexFX is offline
 
Join Date: Aug 2008
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Zamurick X View Post
Working on a fix, shouldn't be long.
All right, Cool Thanks
Reply With Quote
  #13  
Old 08-30-2008, 05:18 AM
Zamurick X Zamurick X is offline
 
Join Date: Dec 2007
Location: Canada (BC)
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Updated.

When I was making this I didn't do enough testing. I assumed it worked properly, but I had only tested it with one custom BBCode installed, and the mod broke when used with more than one.

Should work fine now.
Reply With Quote
  #14  
Old 08-30-2008, 05:27 AM
VadexFX VadexFX is offline
 
Join Date: Aug 2008
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Zamurick X View Post
Updated.

When I was making this I didn't do enough testing. I assumed it worked properly, but I had only tested it with one custom BBCode installed, and the mod broke when used with more than one.

Should work fine now.
It still does the same thing, maybe I just need sleep but I get content Error.
Reply With Quote
  #15  
Old 08-30-2008, 05:43 AM
Zamurick X Zamurick X is offline
 
Join Date: Dec 2007
Location: Canada (BC)
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well you definitely shouldn't be getting a content encoding error.

Try this thread. If that doesn't work, check your .htaccess for anything odd or out of place.

If you still have no luck, make sure the SWF is valid. As a last resort, try Google.
Reply With Quote
  #16  
Old 08-31-2008, 11:37 AM
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Location: Germany
Posts: 6,863
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I never gave permission to re-use my code so I consider this release at least a bit illegal.
Reply With Quote
  #17  
Old 08-31-2008, 08:02 PM
Zamurick X Zamurick X is offline
 
Join Date: Dec 2007
Location: Canada (BC)
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If you'd like I'll take it down. I've never done this kind of thing so I don't really know what I'm doing.
Reply With Quote
  #18  
Old 09-01-2008, 12:57 PM
Fraxter Fraxter is offline
 
Join Date: Jul 2007
Posts: 158
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I don?t see any difference between your mod and the mod from andreas. Andreas mod is working perfectly on 3.7.3, i don?t understand this release?
Reply With Quote
  #19  
Old 09-01-2008, 01:10 PM
Zamurick X Zamurick X is offline
 
Join Date: Dec 2007
Location: Canada (BC)
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Andreas' mod didn't work for me at all, and other people posted on Andreas' thread asking to get it working on X version.
Reply With Quote
  #20  
Old 09-03-2008, 06:44 AM
temporaryins temporaryins is offline
 
Join Date: May 2008
Posts: 26
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just recently installed this. Was wondering if you could make it so a bbcode would still work even if it doesn't have all the options used.

For example, I have the following set up for wowhead tooltips:

<a class="{option2}" href="http://www.wowhead.com/?item={option1}" style="text-decoration:none">{param}</a>

However, I'd like to to work so if someone simply puts something like [item=12345]NameOfItem[/item] instead of [item=12345;q2]NameOfItem[/item], it still shows NameOfItem, but simply as a regularly color'd link.

Currently, it just displays nothing.
Reply With Quote
  #21  
Old 09-03-2008, 11:01 PM
Zamurick X Zamurick X is offline
 
Join Date: Dec 2007
Location: Canada (BC)
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'll work on something to fix that...
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 03:47 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.07370 seconds
  • Memory Usage 2,292KB
  • Queries Executed 26 (?)
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_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
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (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_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