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)

Najoh 09-13-2009 11:30 AM

How to sort the results after a dice roll in a topic ?

DL_Ashe 02-02-2010 08:55 AM

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?

Eq4bits 02-02-2010 03:11 PM

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. :((

Schmidtrock 04-15-2010 04:12 PM

Working in 3.8.5 thanks !

mahz 06-16-2010 07:28 AM

Quote:

Originally Posted by DL_Ashe (Post 1972887)
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?

mahz 06-16-2010 07:53 PM

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:
https://vborg.vbsupport.ru/external/2010/06/52.jpg

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:
https://vborg.vbsupport.ru/external/2010/06/8.gif

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

Freeze1992 02-10-2011 04:41 PM

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

ravenscape 02-03-2013 07:56 PM

The product didn't install any bbcodes. I tried the original and TuxZor's version. What's the replacement text supposed to be?

AramisErak 04-12-2013 06:05 AM

Quote:

Originally Posted by tuxz0r (Post 1017963)
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.


All times are GMT. The time now is 07:37 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.01274 seconds
  • Memory Usage 1,741KB
  • 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_html_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)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