Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Dice Roller Hack [BBCode] Details »»
Dice Roller Hack [BBCode]
Version: 1.00, by Eikinskjaldi Eikinskjaldi is offline
Developer Last Online: Jul 2023 Show Printable Version Email this Page

Version: 3.5.4 Rating:
Released: 04-24-2006 Last Update: 05-29-2006 Installs: 51
DB Changes Uses Plugins Template Edits
Additional Files  
No support by the author.

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:
Info for hackers:
You may modify, improve, upgrade, redistribute this hack, include it
in another hack or yours or translate it provided you do it free of
charge and you distribute it in www.vbulletin.org at least, there is no
need to pm me asking for permission.
This hack rolls a Graphic based dice roll in your post and features multiple dice rolls per post. The images are fully editable by those who know how and I must agree that I very much think they need an overhaul, so go for it.

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:
  • 04/29/06
    • Added new dice images which where provided by Rukbat.

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

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #192  
Old 09-13-2009, 11:30 AM
Najoh Najoh is offline
 
Join Date: Aug 2009
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How to sort the results after a dice roll in a topic ?
Reply With Quote
  #193  
Old 02-02-2010, 08:55 AM
DL_Ashe DL_Ashe is offline
 
Join Date: Aug 2008
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Has anyone managed to (or would be able to) get tuxz0r's diceroller working on vb4.0.1? My only dilemma ever since I upgraded... is I can't finding a working diceroller anymore for my forums. :erm:

tuxz0r's just bombs out when I try to import it, stating that the vbulletin_thread table no longer exists. I'm guessing it's an issue with differentiating tables b/w vb3 and vb4.. maybe?
Reply With Quote
  #194  
Old 02-02-2010, 03:11 PM
Eq4bits Eq4bits is offline
 
Join Date: May 2006
Posts: 468
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I was hoping this would be updated to work with vB4 as well. I miss my dice!
You could *try* going into phpMyAdmin and creating the table yourself, but I doubt the product would work anyway since vB code and phrases and such has changed so much from 3.x versions. (
Reply With Quote
  #195  
Old 04-15-2010, 04:12 PM
Schmidtrock Schmidtrock is offline
 
Join Date: Aug 2009
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Working in 3.8.5 thanks !
Reply With Quote
  #196  
Old 06-16-2010, 07:28 AM
mahz mahz is offline
 
Join Date: Mar 2006
Posts: 36
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by DL_Ashe View Post
Has anyone managed to (or would be able to) get tuxz0r's diceroller working on vb4.0.1? My only dilemma ever since I upgraded... is I can't finding a working diceroller anymore for my forums. :erm:

tuxz0r's just bombs out when I try to import it, stating that the vbulletin_thread table no longer exists. I'm guessing it's an issue with differentiating tables b/w vb3 and vb4.. maybe?
Just installed Tuxz0r's lovely hack and works like a charm on vB 3.8.5 EXCEPT for the first post of the thread. Looking at a post on the other page of this thread, it appears some other people have the same problem.

Can anyone resolve this?
Reply With Quote
  #197  
Old 06-16-2010, 07:53 PM
mahz mahz is offline
 
Join Date: Mar 2006
Posts: 36
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Here's a demo of Tuxz0r's BBCode dice: http://roleplayerguild.com/f3/new-dice-system-52860/. I wanted to contact him but his website isn't online anymore.

I chose it because the AdX+B notation is more useful for play-by-post roleplaying. I also like the minimalism of just text output.

To make the dice rolls stand out though, I added some left padding to the roll so I could stick a dice image in there as a background.

Screenshot:


Simple line of CSS:
HTML Code:
.diceroll {
padding-left: 20px;
background: url('http://IMAGE-URL.gif') no-repeat;
}
I just took a dice image off Google, shrunk it, and changed the background. Here's the image on a white bg:


You'll need to shrink it more to fully display inline with the text of the dice roll unless you add
HTML Code:
display: block;
height: 23px;
to the CSS i provided above.

The BBCode still doesn't work in the initial post of a thread, unfortunately. My understanding of vBulletin coding is very limited but I'll try to fix it. I know the guys working on the original hack in this thread fixed theirs, so I'll see if I can cross compare the hacks and see what I can change.

Thanks for everyone's contributions to this thread. I enjoyed reading yall's collaboration.

Here's a link to Tuxz0r's hack: https://vborg.vbsupport.ru/showpost....&postcount=167
Reply With Quote
  #198  
Old 02-10-2011, 04:41 PM
Freeze1992 Freeze1992 is offline
 
Join Date: Feb 2011
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I installed the rpg dice mod and put the dice folder on the ftp in de image folder
but i get this error i guese im just stupid but what to do
Warning: fetch_template() calls should be replaced by the vB_Template class. Template name: dice_menu in [path]/includes/functions.php on line 4055
Reply With Quote
  #199  
Old 02-03-2013, 07:56 PM
ravenscape's Avatar
ravenscape ravenscape is offline
 
Join Date: Mar 2008
Posts: 43
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The product didn't install any bbcodes. I tried the original and TuxZor's version. What's the replacement text supposed to be?
Reply With Quote
  #200  
Old 04-12-2013, 06:05 AM
AramisErak AramisErak is offline
 
Join Date: Apr 2013
Location: Alaska
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by tuxz0r View Post
This hack is very similar to something I had done in phpMyChat and wanted to implement on my vBulletin boards to help the Play-by-Post gaming forums. However, I didn't really have a need for displaying cute dice images or limiting myself on the number of rolls or faces. Plus, the dice roller I'm using in my chat uses the standard AdX+B notation where

This is installed and working on vBulletin 3.5.4 on my forums.
Installed on 3.8.4, works fine, except for when quoted...

The interesting effect of quotes is to that the quoted roll# markers show the rolls associated with the rest of the post, not the rolls of the original nor simple placeholders.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 04:26 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05330 seconds
  • Memory Usage 2,307KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_html
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete