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)

soravok 06-21-2006 04:25 AM

Quote:

Originally Posted by WNxWakko
This mod totally crashed my server.

I strongly advise against this mod until he cleans up all the bad code.


Odd, it works perfectly for me.

soravok 06-21-2006 11:27 PM

Is the total amount of dice to be rolled still limited to 5? If not does anyone know what the max is? Also is there a way to disable the images? If say I just wanted it to have numerical outputs?

Eikinskjaldi 06-22-2006 05:50 AM

for disabling images just change the template to your suiting, may require some php skill for variables.

Iv been on vacation and it has sucked and is still sucking but thats the state of things, As for this code crashing a server, nothing iv seen has done so and no where iv set this up has it crashed.

As for multiple dice fix, someone posted it earlier, page 1 or 2.

Campbell 06-24-2006 01:33 AM

Hello all -

I have installed this mod from the source files in the lead post. What I receive when I roll dice from the postbit with any editor (quick, new thread, reply, etc) is the code [dice0] in text in the postbit. This is obviously not the die image, but everything else in the postbit works. (Controls etc.)

Can someone validate or post a reply with the latest code and the latest instructions? There are so many files flying through the topic in replies that I can't tell what is current and what isn't.

Alternatively if anyone has seen the error I mention, help a brother out as this functionality would make my life much easier as a RPG site admin.

Best regards,
A

note that my beta board is at http://www.sovereignrpg.com/community head to the Ona's workshop forum to see the test failures.

soravok 06-24-2006 08:45 PM

Supposedly it's a feature so that you can't cheat, but it would make more sense to have the rolls marked "fixed" if you've edited the post and have the preview button generate a different set of values everytime you press it. So that the previewed rolls and the posted rolls are different.

Campbell 06-24-2006 11:06 PM

Update -

It seems as if everything works on my forum with the exception of rendering the die images. Very strange. It's not a matter of custom image forum paths due to my skin as the same behavior happens with default skin. Is there any reason why png files wouldn't render on a VB installation using php?

yes I have enabled php in my bbcode area. Thought of that.

note this is on a 3.5.4 clean install

Best,
A


Quote:

Originally Posted by Campbell
Hello all -

I have installed this mod from the source files in the lead post. What I receive when I roll dice from the postbit with any editor (quick, new thread, reply, etc) is the code [dice0] in text in the postbit. This is obviously not the die image, but everything else in the postbit works. (Controls etc.)

Can someone validate or post a reply with the latest code and the latest instructions? There are so many files flying through the topic in replies that I can't tell what is current and what isn't.

Alternatively if anyone has seen the error I mention, help a brother out as this functionality would make my life much easier as a RPG site admin.

Best regards,
A

note that my beta board is at http://www.sovereignrpg.com/community head to the Ona's workshop forum to see the test failures.


Eq4bits 06-25-2006 01:12 AM

Did you physically upload the images to your forum(s)/images/dice folder?
I know that sounds like a silly question but some have been under the impression that installing the product puts the images where they are supposed to go..... but you have to ftp/upload the images separately to a dice folder in your vb images file on your server/host server....

I know the png images show up for all my users/members running IE, firefox and mozilla.

As to the limitations of number of dice for the 'original' hack being 5....
The only limit I've personally had is for over 9 dice. To change from 5 limit to 9 limit:
open the xml file in an editor and
FIND
Code:

preg_match_all("/\[dice=([1-5])\]([0-9]?[0-9])\[\/dice\]/",$post['message'],$diceresult);
CHANGE TO
Code:

preg_match_all("/\[dice=([1-9])\]([0-9]?[0-9]?[0-9])\[\/dice\]/",$post['message'],$diceresult);
before installing/reinstalling/overwriting.

Eq4bits 06-25-2006 01:34 AM

The dice images in the Dice zip file only go up to 30, therefore if you are using 'faces' higher than 30 the image will not show up.

A blank blue gif is included in the 'blue' folder (after extracting the dice zip file) and a blank white gif is included in the 'white' folder, depending on which you use, for making numbers higher than 30 for faces 31-100.

OR use this attached zip file for blue octagonal dice numbered 1-100 (originally attached to my post as Rukbat on page 3 or 4 of this thread...) they are in gif format

hope this helps :D

Campbell 06-25-2006 01:48 AM

To answer your question Eq, yes I've uploaded the images.

This is complicated by the fact that I'm on the mac platform, though I've tested using Safari and Firefox and end up with the same end result. I see the php call, but no images.

I opted to use RPG dice due to the dice panel. When I tested the original roller in this thread it worked fine. However, when that roller didn't display images I was able to pull the source path from the broken link and find where my issue was.

With RPG dice, all I get is [dice0] or [dice1] and with no path I have nothing to go on.

Any assistance would be greatly appreciated.

Best regards,
A

Eq4bits 06-25-2006 01:52 AM

Hmmm, no clue, I haven't used the RPG dice thingy. I *did* go to your dice test thread at your site and the images show up in the last few posts on my puter (Windows XP/Mozilla 1.7.13) *but* they are the funky original dice NOT the RPG dice cclaerhout did in the png format.


All times are GMT. The time now is 10:50 AM.

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.01511 seconds
  • Memory Usage 1,747KB
  • 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
  • (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