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)

Ziki 05-13-2006 02:02 PM

Wanted to ask same

Eq4bits 05-22-2006 02:34 AM

ugh, some a****** stole my gmail addy and I'm locked out of it... which is the addy I used for my ORIGINAL username here... Rukbat... so if there have been any posts since May 12 attributed to the Rukbat i.d. it is NOT me, they hacked my groups website that I administer AND my static IP also, that's getting reassigned tomorrow, it's been a nightmare getting everything kinda straight.
If anyone has a request for specific colors/shapes of dice for this mod, either post here or pm me with this, my new, username.

Emmy2 05-24-2006 01:33 PM

nice hack!

Is is possible to create a bbcode within a bbcode? Example, if I want to create a bb code called "roll" (and an accompanying button for it), and I want it to automatically roll 5 dice with 1-6 options, how can I do that? Theoretically this is what I want:

my member would type (or hit the roll button and get this): [roll][/roll]

but the code would execute as: [roll][dice=5]6[/dice][/roll]

Anyway to do that? The reason is...my members are low tech and having them input all the variables is too complex. Just want a simple roll button that they can click and it's all set up for them. Can do?

Zowners 05-24-2006 02:54 PM

Quote:

Originally Posted by Rukbat
FIND
Code:

<td><smallfont><b>Dice roll with $dicesno dices of $dicesfaces faces: $dicepoints points</b></smallfont></td>
CHANGE TO
Code:

<td><smallfont><b>Dice roll with $dicesno die of $dicesfaces faces: $dicepoints points</b></smallfont></td>

Where was the database with this code? I assume it's not one of the dice hack databases because I couldn't find them. Found the other two but not the above code

soravok 05-25-2006 09:20 AM

How long do you think it will be before there is a solid/stable version of this dice roller I like it a lot just a few too many minor bugs with it for the time being.

Emmy2 05-25-2006 09:51 PM

can I try another question? I'm trying to simplify the dice roll for my members...trust me, inputting [dice=5]6[/dice] is beyond most of them.

Ideally, it would be great if I could add a clickable button on the quickreply toolbar menu that automatically inserts a pre-determined text string into the reply box (in this case, the actual bbcode I want them to use, which is [dice=5]6[/dice] ... that way they don't have to type it themselves). Is there any way to do this? I've been searching around the net for a few hours and I can't find anything (I'm no coder).

Any help really appreciated.

cclaerhout 05-26-2006 01:26 AM

I think Emmy2 idea is good.

Why not having in the editor tool bar a collpase icon showing a different choice of dice : dice 4 ; dice 6 ; dice 10 ; dice 12 ; dice 20. RPG gamers will love that !

The php code sould also be rewritten.

Because i'm not a php coder, i can't do that. But i've already developped the different dice pictures :) I think you will like them ;)

In the joined archive, you will find png pictures (better for transparency) et adobe psd file.

Tell us if you think you can make our wishes become true :banana:

Zowners 05-26-2006 05:20 AM

I'm still wrestling with the database.

how was ZIKI's problem solved? I don't know where to alter the database and alter it with what.

Eikinskjaldi 05-26-2006 06:29 AM

I personally was in a hurry with this and I have made no plans to work on it. I ported it per request when I had some free time, but as it stands my free time might not be coming back for awhile, iv got 6 projects lined up in my future. So if another coder wants to take and mod this then its free game as I just don't have time for it.

If it doesnt not work for you then you may need to use phpmyadmin and manually add the database iformation, it is all in the install code that can be found in the product by hitting edit. I don't have it handy but it is basic field adding.

Emmy2 05-26-2006 12:09 PM

Zowners, I don't know if this will help you but let me relate my installation experience. I just installed this a few days ago. I noticed in the unzipped file that there were TWO product xml files, named:

Eiken-DiceRoller-0_1
Eiken-DiceRoller-1_0

I assumed the 1_0 was the newer one and tried to import that one. However, I got database errors, the product wasn't installing into the dabatase correctly (maybe like you are getting now). So I UNINSTALLED that one, and installed the other product...the Eiken-DiceRoller-0_1 file. That one worked and the version listed for it in the admin panel is "1.0" (even though the file is named 0_1). I have no idea why there are two files, why one works and one doesn't, but I thought I'd relay that in case you are having the same problem I did.

As for creating a button for the dice roll...I'll go ask in a general coding forum to see if anyone can assist. It's not necessarily just a function of the dice roll, but a button to input ANY pre-defined text into the reply box, so maybe someone can help.


All times are GMT. The time now is 05:09 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.01190 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_code_printable
  • (1)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