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 |
#12
|
|||
|
|||
Now that I'm not so tired I thought of another question regarding my error message above. What MySQL d/b changes were made? Which table needs new fields and what would the names be to look for to be sure they are there?
EDIT 9:07 CDT Okay, I went into phpMyAdmin and checked my forum tables '******_thread' and '******_post' and neither table has a 'dice' field. so do I edit the xml file and change Code:
<codes> <code version="1.0"> <installcode>ALTER TABLE `thread` ADD `dice` MEDIUMTEXT NOT NULL ; ALTER TABLE '******_' ADD 'dice' MEDIUMTEXT NOT NULL ;</installcode> <uninstallcode /> </code> </codes> Code:
<codes> <code version="1.0"> <installcode>ALTER TABLE `******_thread` ADD `dice` MEDIUMTEXT NOT NULL ; ALTER TABLE '******_post' ADD dice mediumtext not null;</installcode> <uninstallcode /> </code> </codes> EDIT: 9:46am CDT That didn't work, BUT, once i went in to phpMyAdmin and added the fields to the two tables it works GREAT! so I guess there's something in the code in the xml file that didn't actually ALTER my tables.... or was there something else in the xml file that i didn't find where I should have typed in the name of the d/b? I assumed since it was imported/installed using the vB AdminCP that it would 'know' that was the d/b to alter the tables in...... |
#13
|
|||
|
|||
I'm working on making some new images for the die, playing with colors
examples below |
#14
|
||||
|
||||
I got this error
Quote:
|
#15
|
|||
|
|||
Ziki-set,
I was having the same problem. For some reason the installer isn't altering your forum database tables (_thread & _post). You need to go into your database and physically add the 'dice' field (mediumtext not null) to those two tables. That fixed the problem for me. Also, before installing I corrected some wording in the xml file to correct 'dices' to 'die' because it 'bugged' me: FIND Code:
<td><smallfont><b>Dice roll with $dicesno dices of $dicesfaces faces: $dicepoints points</b></smallfont></td> Code:
<td><smallfont><b>Dice roll with $dicesno die of $dicesfaces faces: $dicepoints points</b></smallfont></td> FIND Code:
if ($faces[$i] >= 2 && $faces[$i] <= 30) Code:
if ($faces[$i] >= 2 && $faces[$i] <= 100) Hope this helps EDIT: 3:30pm CDT hmmmm, that works up to '99' faces but can't get it to work for '100'..... *wanders off to ponder a bit* EDIT: 3:47pm CDT got it to work FIND: Code:
preg_match_all("/\[dice=([1-5])\]([0-9]?[0-9])\[\/dice\]/",$post['message'],$diceresult); Code:
preg_match_all("/\[dice=([1-5])\]([0-9]?[0-9]?[0-9])\[\/dice\]/",$post['message'],$diceresult); |
#16
|
||||
|
||||
Ya, the install code seems to be errored, I'll work on it and upload the right installer, Thanks rukbat for posting the little mods for others. I might have messed that part up as well.
EDIT: Upload XML fixed with the correct queries. Sorry about that. |
#17
|
||||
|
||||
Now it doesn't show the dices.I imported it and it doesn't show the dices but only the [dice=2]5[/dice]
|
#18
|
|||
|
|||
Did you FTP the dice images into a 'dice' folder in images at your site?
Also, go into your PlugIn Manager in your vB admincp, look to be sure all the plug-ins for 'Dice Roller' are checked as 'active'. Did you 'unistall' via product manager before installing again? |
#19
|
|||
|
|||
oops also, you can't create a thread with a post that includes a dice roll
only replies can include the dice roll easy solution: create a new thread i.e. title: dice roller test text in post: this thread is to test the dice rollersubmit the new thread then post a reply/quick reply to it, including the dice roll bbcode |
#20
|
||||
|
||||
Yes, I need to find the right place to inser the code for the first post, I looked in my quick porting of the hack but didn't find it. It's as simple a fix as inserting the code before the first post is output.
|
#21
|
|||
|
|||
Don't know how high you would be able to go, but here's one vote for more than 5 dice.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|