vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Dice Roller Hack [BBCode] (https://vborg.vbsupport.ru/showthread.php?t=113972)

Eq4bits 05-26-2006 04:23 PM

Quote:

Originally Posted by BeaLzeBuB
it doesn't show the dices.I imported it and it doesn't show the dices there is only [dice=1]6[/dice]

Check your 'thread' and 'post' tables in your database to be sure the 'dice' field was added to both tables.

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)

Eq4bits 05-26-2006 04:32 PM

Quote:

Originally Posted by cclaerhout
I think the sql problem shoud be fixed with this new product file.

I'm still thinking the idea suggested above would be great. If each time you want to play dice you have to type the code, members are going to be upset. I'm going to look if i can do it. Anyway we can ask Michelle, the hacker of e-steki Smilie Maker 1.7 to help us ;)

cclaerhout
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?

Emmy2 05-26-2006 04:59 PM

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

Eq4bits 05-26-2006 05:48 PM

Okay, what preset would you like? I'm working on it now

Emmy2 05-26-2006 06:24 PM

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!

Eq4bits 05-27-2006 01:30 AM

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

Eq4bits 05-27-2006 01:35 AM

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

Eikinskjaldi 05-27-2006 05:45 AM

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-

cclaerhout 05-27-2006 09:31 AM

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

cclaerhout 05-27-2006 11:20 AM

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
  • Page Generation 0.01296 seconds
  • Memory Usage 1,742KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete