Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons
Using only BBCODE to have a dice roller - NO database changes Details »»
Using only BBCODE to have a dice roller - NO database changes
Version: 1.00, by Renmiri Renmiri is offline
Developer Last Online: May 2008 Show Printable Version Email this Page

Version: 3.5.4 Rating:
Released: 03-18-2007 Last Update: 03-18-2007 Installs: 10
Uses Plugins
 
No support by the author.

My forum is dedicated to Final Fantasy fans and one of the games has a very fun minigame called Blitzball that we enjoy. To make the game work we need dice. I could have installed the Dice Roller Hack but I opted to just create a new bbcode instead.


Installation:

1) Download my plugin, import into vB

2) Create 1 BBCode
Quote:
Tag: dices
Replacement: nada
Example: [dices=1]6[/dices]
Description: rolls x dices each with y faces [dices=x]y[/dices]
Use option: yes
3) unzip the diceblue.zip images, upload all images in there to your forum images folder

4) Enjoy!

Using it
Write [dices=x]y[/dices] whenever you need x dices of y faces rolled
See it working here

Known issues:
n/a

Credit to
The BB code was inspired by the Dice Roller Hack and the dice images came from there too

Supporters / CoAuthors

Show Your Support

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

Comments
  #2  
Old 03-19-2007, 10:16 AM
s0b s0b is offline
 
Join Date: Oct 2006
Posts: 65
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

GREAT!! I was using the 'RPG dado' but it was inestable.

Very much thanks!
Reply With Quote
  #3  
Old 03-19-2007, 08:12 PM
Renmiri Renmiri is offline
 
Join Date: Jul 2006
Location: Chicago, USA
Posts: 140
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You are quite welcome!

This should be very stable and fast since it only uses default BB code handling.
Reply With Quote
  #4  
Old 03-20-2007, 04:30 PM
OrangeFlea OrangeFlea is offline
 
Join Date: Aug 2004
Posts: 208
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What's the highest single roll possible? I plan to run contests so 100 would be good. If there are no pics to correspond with such a high number, is there a way to omit the images and just have the rolls displayed as text?
Reply With Quote
  #5  
Old 03-30-2007, 03:19 AM
Renmiri Renmiri is offline
 
Join Date: Jul 2006
Location: Chicago, USA
Posts: 140
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No limit for highest single roll, 100 will work easily.

Right now there is no option to bypass the pictures but I had another older version with no pics. I can post it here later.
Reply With Quote
  #6  
Old 04-14-2007, 04:03 AM
thincom2000 thincom2000 is offline
 
Join Date: May 2006
Location: Bronx, NY
Posts: 1,205
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is great, except if someone edits their post, or a post is not cached or is uncachable for some reason, the dice result does not remain the same. I foresee probable cheating and complaining members...

This could be avoided by:
Not allowing posts containing the [dice] bb-code to be edited. The post content could then be modified to contain the dice results instead of the bb-code, preventing re-rolls when post caching is disabled, or when the cache is rebuilt.
Reply With Quote
  #7  
Old 05-06-2007, 02:13 AM
Renmiri Renmiri is offline
 
Join Date: Jul 2006
Location: Chicago, USA
Posts: 140
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well, yeah, mine is a pretty simple implementation of the dice hack. The complete dice hack with security and such is at
https://vborg.vbsupport.ru/showthrea...071#post959071
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 10:29 AM.


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.05496 seconds
  • Memory Usage 2,249KB
  • Queries Executed 21 (?)
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_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (6)postbit
  • (7)postbit_onlinestatus
  • (7)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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete