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)
-   -   Using only BBCODE to have a dice roller - NO database changes (https://vborg.vbsupport.ru/showthread.php?t=142475)

Renmiri 03-18-2007 10:00 PM

Using only BBCODE to have a dice roller - NO database changes
 
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 :D

s0b 03-19-2007 10:16 AM

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

Very much thanks!

Renmiri 03-19-2007 08:12 PM

You are quite welcome!

This should be very stable and fast since it only uses default BB code handling.

OrangeFlea 03-20-2007 04:30 PM

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?

Renmiri 03-30-2007 03:19 AM

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.

thincom2000 04-14-2007 04:03 AM

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.

Renmiri 05-06-2007 02:13 AM

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


All times are GMT. The time now is 07:32 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.00969 seconds
  • Memory Usage 1,720KB
  • 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_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete