The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Dice Roller Hack [BBCode] Details »» | ||||||||||||||||||||||||||
Dice Roller Hack [BBCode]
RPG Dice is currently a updated version Another updated version Note: Updated package includes only the correct XML. This hack is a port of: Dice Roll for vB3 and permissions was given to port by the following statement. Quote:
The basic bbcode format is: [dice=X]Y[/dice] X - The number of dice to roll, This cannot be larger then 5 currently, this may change later with demand. Y - The number of sides on the dice. so [dice=1]6[/dice] Roll's 1, 6 sided dice. The only limit that I have noticed so far is that dice will not apear correctly when rolled from the create thread editor. I am unsure as to why this is still and am working on this issue. However aside from this it is working as need be. This hack is mainly useful to Game websites that require dice rollers for gambling or roleplaying games. It can add an element of fun to a forum and is adapatable to most dice require situations. If enough demand is displayed I will work on removing the 5 roll limit or making it larger. The current maximum sides one can roll is 30. If you enjoy this hack or have it installed, then please click the install button so that you can remain informed when updates occur. As the original author said, You do not need to ask permission to update or do anything to this hack and can redistribute it if you feel you have made a great contribution to it. If someone does make new dice images and wishes to have them as part of the package then either post here or PM me and I will get them in there with full rights going to the sender for the images. Updates:
This hack was requested from: https://vborg.vbsupport.ru/showthread.php?t=97775 -Eikinskjaldi- Original Screenshots: https://vborg.vbsupport.ru/attachmen...3&d=1078098688 https://vborg.vbsupport.ru/attachmen...4&d=1078098702 Show Your Support
|
Comments |
#112
|
||||
|
||||
The solution is :
For forums ID : Code:
<if condition="in_array($GLOBALS[forumid], array(XX,XX,XX,XX))">THE CODE</if> Code:
<if condition="in_array($bbuserinfo[usergroupid], array(XX,XX,XX,XX))">THE CODE</if> Code:
<if condition="in_array($GLOBALS[forumid], array(XX,XX,XX,XX)) AND in_array($bbuserinfo[usergroupid], array(XX,XX,XX,XX))">THE CODE</if> !in_array instead in_array. |
#113
|
||||
|
||||
I've updated again RPG DICE archive... I've forgot to rename one picture this morning I musn't be awaken.
To make me forgiven, i've uploaded a new blue dice set in option. Click here to see the post |
#114
|
|||
|
|||
cclaerhout, thank you so much! I will try it out. Quick question though, do I need to use an array if it's just one forum I want in there?
|
#115
|
||||
|
||||
Quote:
Just use that syntax : <if condition="in_array($GLOBALS[forumid], array(XX))">THE CODE</if> If you want to add a parameter later, it would be easier with the array syntax. |
#116
|
||||
|
||||
He makes a very good point, its not how id do it for a released hack with options page, but for this hack this is the smart way to go, at least for now, I havn't decided if the re-write will use option pages, maybe.
|
#117
|
|||
|
|||
okay thanks, I'll give it a try!
|
#118
|
||||
|
||||
RPG DICE
Version 2.0 >Credits : -Dice Roll (original script) by Rigel Kentaurus -Ported to vB 3.5 by Eikinskjaldi -RPG version developped by C?dric Claerhout -Thanks to Emmy2 for her help >What does this hack do ? It gives your forum a RPG Dice system. >Is it hard to install ? No at all ! -Download a set of dice (red or blue at the moment) then upload the images to ./images/dice in your main forum directory, you will need to create the dice folder. -Go into ACP and upload the XML through the product manager. -Go to vBulletin options (admincp) and configure RPG Dice. >Is there any bug ? Unfortunately yes. Just one. The user interface dice buttons doen't work with wysiwyg editor. Solution : tell your members to click on the A/A button in the top right corner of the editor. >Functionalities : -(nice )user interface to throw the dice integrated both in classic editor and quickreply -admincp configuration to choose usergroupid and forumid -type of dice : D4, D6, D8, D10, D12 and D20 -Dice pictures in PNG format -installation only requires one xml file thanks to vB product import system |
#119
|
||||
|
||||
I still haven't had my answer to a question i've asked several times above. Can i distribution the french version of this hack on vbulletin-fr.org ?
|
#120
|
||||
|
||||
I said yes a page back....
|
#121
|
|||
|
|||
Quote:
|
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|