![]() |
Quote:
Be sure you uploaded images of dice to the vBulletin forum images directory into a file named 'dice'. The dice file with the product are the old images and are pretty ugly and only go up to 30. If you want to use more than 30 faces you'll need to make dice for those numbers or download the Blue Dice.zip file that is attached to one of my previous posts (prettier dice and numbered 1-100) |
Quote:
Do you know if that also corrected the problem of having a dice roll in a post that is the first post of a new thread? |
Yes Eq4bits, a button or collaspible menu for rolling dice that automatically inputs the correct bbcode for each roll when a user clicks on it. If collapsible isn't possible, just a single button would work. I could create more than one button to include variations of the roll.
I have also asked for coding help for this in the general forums, since this idea wouldn't necessarily be exclusive to rolling dice. here is the thread I've asked... https://vborg.vbsupport.ru/showthread.php?t=116727 |
Okay, what preset would you like? I'm working on it now
|
cool! for a preset, how about...
[dice=5]6[/dice] if it's just one button If it's a menu.... [dice=1]6[/dice] [dice=2]6[/dice] [dice=3]6[/dice] [dice=4]6[/dice] [dice=5]6[/dice] As long as there is some code to start off I think I can change it to whatever I want later, but for a start those presets would do. Thanks, it'll be great if this works! |
So far I'm not having any luck, like I said I'm no whiz at this but usually given time and a LOT of mistakes I'll eventually figure something out.
It *definiately* doesn't work by just adding a new bbcode via the admincp... I can get the button there, no problem, but it won't execute and show the dice... OH I just thought of something, if you've installed this and the dice pics aren't showing you MAY need to change the permission/ on your image file to 777 and on the dice file to 777 |
I'm still going to continue playing with this to try to get it to work via a button on the editor or a dropdown on the editor, but until then emmy if you don't need to 'store' the results in the d/b and just want your users to roll dice and don't need it to show in a post take a look at this alternative thread https://vborg.vbsupport.ru/showthrea...highlight=dice
|
Well paint me up and call me a liar, Due to some demand from my users and a few holes in my alternate dice roller I use I think I will be coming back and working on this hack some more. I don't know yet if I will release the same one here as on my forum since this one being an extension needs to avoid code edits, but I thank those who have supported people and ried to help them, I will be adding your names to the first post and I'll check the package again on the SQL error.
If your dice are not parsing then it is most likely a plugin issue and you should ensure all plugins are turned on. Making a drop down for the post bit doesn't seem to difficult, Much like using the color code in a modified format, I may look into this when iIrevisit this hack, I may have a new version up in the next few days, depending on my scedual. [[Yes, I am pushing back other work for this as its been something iv been avoiding taking care of at my own site and now its time to tackle it before I get beaten up by disgruntled DM's.]] -Eikinskjaldi- |
Here is a new xml product file :
-SQL error is fixed -Display dice in first post of a new thread is OK (i guess my code can be improved a lot ;) ) Now we all can try to make the version of the hack i've described above :D Here |
Well, here is a preview of "RPG DiceRoller". I still have to work on the user interface.
You want to play a D4 ? [dice=1]4[/dice] You want to play a D6 ? [dice=1]6[/dice] You want to play a D8 ? [dice=1]8[/dice] You want to play a D10 ? [dice=1]10[/dice] You want to play a D12 ? [dice=1]12[/dice] You want to play a D20 ? [dice=1]20[/dice] Other dices won't work because pictures don't exist ;) N.B : Pictures are in png format. To avoid grey line arround them in Internet Explorer 6, you need a png transparency hack (available here). Otherwise i could do a gif release. |
All times are GMT. The time now is 05:08 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|