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

Reply
 
Thread Tools
Diceroller Details »»
Diceroller
Version: 1.002, by PntSingularity PntSingularity is offline
Developer Last Online: Oct 2008 Show Printable Version Email this Page

Category: New Posting Features - Version: 3.6.8 Rating:
Released: 08-04-2008 Last Update: 08-08-2008 Installs: 10
DB Changes Uses Plugins Auto-Templates
Re-useable Code Translations Is in Beta Stage  
No support by the author.

Diceroller by PointSingularity, originally written for 2d4.org
Version 1.002


This feature adds the functionality to post dice rolls. The rolls are associated with posts but cannot be edited even if the post can.

No longer supported.

WARNING!!
It has been brought to my attention that a bug causes a MySQL error when using the pm system!

To fix this, edit the plugin that's connected to the postbit display complete hook and add at the very top:
Code:
if (!empty($post['postid'])) {
then add at the very bottom:
Code:
}

CHANGELOG

1.002
*Moved the dice roller itself into a more discreet area. Now works well with either postbit or postbit_legacy!
*Added user option in the user cp for appearance (forum default, full, compatibility mode). Appearance can be enforced in the settings, disabling the user cp options and overriding any personal settings already set.
*Added settings variable for main width.
*Changed the font-size in a few places to make it look a bit more discreet.
*Made the separate rolls lists collapsable.
*Removed the nevershowfulllist function since it was completely pointless due to the newly collapsable lists.
*Fixed bug that would claim description title was too long even if it wasn't when certain characters were entered.
*Design fixes and reorganizing. The border now looks like the rest of the postbit's.
*Added "roll" button.
*Added code for clearing up memory after database queries.
*Dice are now sorted by result (rolls are still sorted by id).
*Connected to template hooks to further simplify the installation process.
*Moved all of diceroller.php into the main plugin.

1.001
*Fixed counter error when dice list is in tooltip mode.
*Added complete vBulletin Language/Phrase support.
*Added low-profile mode. This will display entries as plain text, which is excellent if you want an uber-lite look or want better browser support since this turns off the java features.
*Sorting sorted out. ;p Lists now sort with the newest entry on top in vertical lists and the newest at the end in horizontal (tooltips and low-profile mode).
*Reorganized data and simplified installation process.
--Notes: If upgrading, remove everything except the database and reinstall, following the new installation process.



UPGRADE INSTRUCTIONS
From v1.001
Upgrade within vBulletin using the new product-diceroller.xml. Be sure to check "allow overwrite" or upgrade won't work. Then upload the roll.gif image into the /buttons directory. Finally revert your template changes you made for the last version (they are no longer needed) and delete diceroller.php (it's not needed anymore either).

From v1.0
Do NOT upgrade from v1.0. Instead delete the old templates, uninstall the plugins, etc. manually! You can keep the database if you'd like as that has not been changed.
Version 1.001 comes with a proper installer and is upgradable.


INSTALLATION INSTRUCTIONS
1. Upload and put roll.gif to your theme's "button" folder on the webserver (or make your own button ).
2. Import the product file product-diceroller.xml.
DONE!


CHANGE SETTINGS:
There's no addition to the admin cp, instead you can edit the settings by adjusting the values in the plugin called "Diceroller Settings". Be careful though!

ALSO IMPORTANT: Be sure to have plugins enabled in vBulletin or this won't work.


KNOWN ISSUES

v1.002
*Quote-box gets dropped down, leaving the title where it should be, if the dice roller is in the way.

Show Your Support

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

Comments
  #2  
Old 08-05-2008, 08:13 AM
M-Tuning's Avatar
M-Tuning M-Tuning is offline
 
Join Date: Jul 2005
Location: Winschoten (NL)
Posts: 275
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What is the purpose of this?
Reply With Quote
  #3  
Old 08-05-2008, 08:41 AM
Mike-D Mike-D is offline
 
Join Date: Jan 2006
Location: Cologne / Germany
Posts: 270
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
3. Import diceroller.sql into your database
Just because some few members doesn't know how to handle phpMyAdmin I'd put the SQL Code via <installcode>...</installcode><uninstallcode>...</uninstallcode> in your Product. Makes it more easier

Quote:
Originally Posted by M-Tuning View Post
What is the purpose of this?
Hmm... good question. Just wondering too
Reply With Quote
  #4  
Old 08-05-2008, 09:01 AM
PntSingularity's Avatar
PntSingularity PntSingularity is offline
 
Join Date: Feb 2007
Posts: 43
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Mike-D View Post
Just because some few members doesn't know how to handle phpMyAdmin I'd put the SQL Code via <installcode>...</installcode><uninstallcode>...</uninstallcode> in your Product. Makes it more easier
Thanks for the tip, I'll get right on that. I apologize for the unuserfriendly install. I'll use the fact that it's my first plugin as an excuse.

Quote:
Originally Posted by M-Tuning View Post
What is the purpose of this?
It's for play-by-post roleplaying.


EDIT:
I'll see about making a better install tomorrow that includes the css and extra templates. It'll also include a slight fix (when using tooltip-view for the separate dice the numbers for each value is the number of the current die in the current post rather than the current roll).
Reply With Quote
  #5  
Old 08-08-2008, 05:09 PM
PntSingularity's Avatar
PntSingularity PntSingularity is offline
 
Join Date: Feb 2007
Posts: 43
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

v1.002 will use template hooks (not sure if I can fit everything into the hooks but I'm trying ) so installation/uninstallation/upgrade will be EVEN EASIER!

I'm also working on making it work better for regular postbit templates.
Reply With Quote
  #6  
Old 08-08-2008, 05:17 PM
Spank Spank is offline
 
Join Date: Jan 2007
Location: Scotland
Posts: 809
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hi I'm not sure what it's supposed to do. What happens when you roll the dice? And will it work for 3.7?
Reply With Quote
  #7  
Old 08-08-2008, 05:30 PM
PntSingularity's Avatar
PntSingularity PntSingularity is offline
 
Join Date: Feb 2007
Posts: 43
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Spank View Post
hi I'm not sure what it's supposed to do. What happens when you roll the dice? And will it work for 3.7?
When you roll dice they will be stored for that specific post in the database, then be displayed for everyone to see when they view the post.
For example, in a play-by-post game I'm supposed to attack a vicious lizardman with my longsword. I make 1d8+3 damage and therefor use the diceroller to roll 1d8. The game master can then verify that I've my damage score is valid.

I'm not sure if it will work with 3.7 as it's written for 3.6.8. However I'd be happy if anyone would test it with that version and give me feedback on this.
Reply With Quote
  #8  
Old 08-08-2008, 08:22 PM
Spank Spank is offline
 
Join Date: Jan 2007
Location: Scotland
Posts: 809
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ah I see, sounds pretty swell. Thanks for explaining ^_^. I'll consult my staff, cos we have a battle roleplaying forum on my site, if it's something they'd like to see I'll install and test it.
Reply With Quote
  #9  
Old 08-09-2008, 02:09 PM
PntSingularity's Avatar
PntSingularity PntSingularity is offline
 
Join Date: Feb 2007
Posts: 43
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

v1.002 is up!
It's still in beta, but I've done some quick tests in IE 7, Firefox 3 and Safari (think it's the latest version) and it seems to run at least.
Unless there are any special requests I think I'm done with adding features and will focus on cleaning up the code and fix any bugs. So expect some minor changes in 1.003.
Reply With Quote
  #10  
Old 08-25-2008, 11:12 PM
koxito koxito is offline
 
Join Date: Jan 2006
Location: Merida Yucatan
Posts: 46
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This works fine in 3.7, but you'll need to add the security token, to all the inputs, i did this very easy.

whatever, i have problems with my PM's Now, i got a database error while viewing my recived..

This is the error:

HTML Code:
Database error in vBulletin 3.7.0:

Invalid SQL:
SELECT * FROM iaroll WHERE postid =  ORDER BY rollid DESC;

MySQL Error   : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ORDER BY rollid DESC' at line 1
Error Number  : 1064
Request Date  : Monday, August 25th 2008 @ 08:00:16 PM
Error Date    : Monday, August 25th 2008 @ 08:00:17 PM
Script        : http://www.ia-family.com/foro/private.php?do=showpm&pmid=32282
Referrer      : http://www.ia-family.com/foro/private.php?
IP Address    : 189.202.19.200
Username      : LuMa-Kun
Classname     : vB_Database
MySQL Version : 5.0.41-community-log
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 11:37 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.04499 seconds
  • Memory Usage 2,308KB
  • Queries Executed 23 (?)
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_code
  • (1)bbcode_html
  • (5)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
  • (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_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