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:
Info for hackers:
You may modify, improve, upgrade, redistribute this hack, include it
in another hack or yours or translate it provided you do it free of
charge and you distribute it in www.vbulletin.org at least, there is no
need to pm me asking for permission.
This hack rolls a Graphic based dice roll in your post and features multiple dice rolls per post. The images are fully editable by those who know how and I must agree that I very much think they need an overhaul, so go for it.
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:
04/29/06
Added new dice images which where provided by Rukbat.
Are all your tables in the vb database for your forum prefixed with mouldyskull?
My first thought when looking at the error message you show is that the '.' (period) between mouldyskull & thread should be a '_' (underscore).
Do you have access to phpMyAdmin to where you can go add the dice fields manually?
>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
Nice !!. If I want 6 face dice only, how to disable other buttons ???
It's a common interface for administering your databases (I guess that's the best way to 'splain it)... Regardless... however you can get in to actually 'view' your vb database tables, go there.
view the structure of the ***_thread and ***_post tables to be sure the 'dice' field was added.
If not you need to add a field to each table and in both cases name the field 'dice' set them to mediumtxt and NOT NULL.
It's a common interface for administering your databases (I guess that's the best way to 'splain it)... Regardless... however you can get in to actually 'view' your vb database tables, go there.
view the structure of the ***_thread and ***_post tables to be sure the 'dice' field was added.
If not you need to add a field to each table and in both cases name the field 'dice' set them to mediumtxt and NOT NULL.
Is there a place I can download/install this application for viewing my DB's?
Well I'm pretty sure I don't have an admincp from my host, I might try and install it though... Any other thoughts on how this could possibly be fixed?