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 |
#152
|
|||
|
|||
Quote:
Odd, it works perfectly for me. |
#153
|
|||
|
|||
Is the total amount of dice to be rolled still limited to 5? If not does anyone know what the max is? Also is there a way to disable the images? If say I just wanted it to have numerical outputs?
|
#154
|
||||
|
||||
for disabling images just change the template to your suiting, may require some php skill for variables.
Iv been on vacation and it has sucked and is still sucking but thats the state of things, As for this code crashing a server, nothing iv seen has done so and no where iv set this up has it crashed. As for multiple dice fix, someone posted it earlier, page 1 or 2. |
#155
|
|||
|
|||
Hello all -
I have installed this mod from the source files in the lead post. What I receive when I roll dice from the postbit with any editor (quick, new thread, reply, etc) is the code [dice0] in text in the postbit. This is obviously not the die image, but everything else in the postbit works. (Controls etc.) Can someone validate or post a reply with the latest code and the latest instructions? There are so many files flying through the topic in replies that I can't tell what is current and what isn't. Alternatively if anyone has seen the error I mention, help a brother out as this functionality would make my life much easier as a RPG site admin. Best regards, A note that my beta board is at http://www.sovereignrpg.com/community head to the Ona's workshop forum to see the test failures. |
#156
|
|||
|
|||
Supposedly it's a feature so that you can't cheat, but it would make more sense to have the rolls marked "fixed" if you've edited the post and have the preview button generate a different set of values everytime you press it. So that the previewed rolls and the posted rolls are different.
|
#157
|
|||
|
|||
Update -
It seems as if everything works on my forum with the exception of rendering the die images. Very strange. It's not a matter of custom image forum paths due to my skin as the same behavior happens with default skin. Is there any reason why png files wouldn't render on a VB installation using php? yes I have enabled php in my bbcode area. Thought of that. note this is on a 3.5.4 clean install Best, A Quote:
|
#158
|
|||
|
|||
Did you physically upload the images to your forum(s)/images/dice folder?
I know that sounds like a silly question but some have been under the impression that installing the product puts the images where they are supposed to go..... but you have to ftp/upload the images separately to a dice folder in your vb images file on your server/host server.... I know the png images show up for all my users/members running IE, firefox and mozilla. As to the limitations of number of dice for the 'original' hack being 5.... The only limit I've personally had is for over 9 dice. To change from 5 limit to 9 limit: open the xml file in an editor and FIND Code:
preg_match_all("/\[dice=([1-5])\]([0-9]?[0-9])\[\/dice\]/",$post['message'],$diceresult); Code:
preg_match_all("/\[dice=([1-9])\]([0-9]?[0-9]?[0-9])\[\/dice\]/",$post['message'],$diceresult); |
#159
|
|||
|
|||
The dice images in the Dice zip file only go up to 30, therefore if you are using 'faces' higher than 30 the image will not show up.
A blank blue gif is included in the 'blue' folder (after extracting the dice zip file) and a blank white gif is included in the 'white' folder, depending on which you use, for making numbers higher than 30 for faces 31-100. OR use this attached zip file for blue octagonal dice numbered 1-100 (originally attached to my post as Rukbat on page 3 or 4 of this thread...) they are in gif format hope this helps |
#160
|
|||
|
|||
To answer your question Eq, yes I've uploaded the images.
This is complicated by the fact that I'm on the mac platform, though I've tested using Safari and Firefox and end up with the same end result. I see the php call, but no images. I opted to use RPG dice due to the dice panel. When I tested the original roller in this thread it worked fine. However, when that roller didn't display images I was able to pull the source path from the broken link and find where my issue was. With RPG dice, all I get is [dice0] or [dice1] and with no path I have nothing to go on. Any assistance would be greatly appreciated. Best regards, A |
#161
|
|||
|
|||
Hmmm, no clue, I haven't used the RPG dice thingy. I *did* go to your dice test thread at your site and the images show up in the last few posts on my puter (Windows XP/Mozilla 1.7.13) *but* they are the funky original dice NOT the RPG dice cclaerhout did in the png format.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|