vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   New Posting Features - Diceroller (https://vborg.vbsupport.ru/showthread.php?t=187261)

PntSingularity 08-26-2008 04:40 PM

I have added a note regarding the issue and will have it fixed asap. I'll see about adding those security tokens as well. Oh and there will be quite a few other improvements in the next update as well.

EDIT
Nevermind, I had left the "improved" code too effed up. Pardon the French.
I haven't been working on it for a while due to that I've reinstalled my webserver from scratch (on which I run my test installation that I develope on).

This means I won't be able to fix this due to that I simply haven't got the time anymore (well, for now anyways. never say never).
Instead I'm posting a manual fix you will have to apply to get it working properly.

I'm sorry to do this but I'll also have to discontinue the support for this product. I will still answer any questions and try to help as time allows me, but can't promise anything.


Quote:

Originally Posted by koxito (Post 1606929)
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



koxito 08-26-2008 06:33 PM

Thank you so much, with this i can make it work!. if you want to, i can post the places in the templates where the security tokken must be placed, so anyone can run this in Vb3.7!!!

¿In what plugin i must add the improvement?

Thank you very much

PntSingularity 08-27-2008 02:21 AM

Quote:

Originally Posted by koxito (Post 1607559)
Thank you so much, with this i can make it work!. if you want to, i can post the places in the templates where the security tokken must be placed, so anyone can run this in Vb3.7!!!

Feel free to do so. ;) Thanks.
Quote:

?In what plugin i must add the improvement?

Thank you very much
Like I said, the one that's connected to the Postbit Display Complete hook.
The plugin is simply called "Diceroller". I'm attaching a picture as well.

PGAmerica 08-27-2008 03:24 PM

So, is this compatible with 3.7.3? Or is there a security token issue?

PGAmerica 08-27-2008 03:43 PM

I just confirmed this. This mod does NOT work with 3.7.xx. It caused a Security Token error when rolling the dice.

It is too bad. Ths mod looked promising. Can this be fixed?

Additional Suggested Features:
  • ACP control. Not just editing the plugin, but actual menu driven options.
  • Usergroup permissions - I only want my RPG Moderators to be able to use the dice
  • Forum permissions - I only want the dice to show up in the gaming forums.
This is defiantly an awesome mod with great potential. I would be willing to pay for it, if these things were done.

PntSingularity 08-28-2008 03:21 AM

Quote:

Originally Posted by PGAmerica (Post 1608284)
I just confirmed this. This mod does NOT work with 3.7.xx. It caused a Security Token error when rolling the dice.

It is too bad. Ths mod looked promising. Can this be fixed?

Additional Suggested Features:

ACP control. Not just editing the plugin, but actual menu driven options.

I feel the config-plugin is easy enough to configure, do you really need it more graphical?
Quote:

Usergroup permissions - I only want my RPG Moderators to be able to use the dice
Forum permissions - I only want the dice to show up in the gaming forums.[/LIST]This is defiantly an awesome mod with great potential. I would be willing to pay for it, if these things were done.
The last suggestions I feel are great ideas however.

My spare-time is very limited at the moment, and that's why I made this unsupported. But I'll put those things (even the admin options if you really want them) on my to-do list for when I get the time. What I won't do however is charge anyone money for it. ;)

DL_Ashe 08-28-2008 04:35 AM

Quote:

Originally Posted by PGAmerica (Post 1608284)
I just confirmed this. This mod does NOT work with 3.7.xx. It caused a Security Token error when rolling the dice.

Actually it does, and rather well, might I add. All you need to do is:
(1) Follow PntSingularity's concise instructions at the top to install the product
(2) Apply the minor code change to the postbit display hook
(3) Apply the security token code changes as per this thread: https://vborg.vbsupport.ru/showthread.php?t=177013

Now I'm brand new to administering a vBulletin (only been doing it for a few weeks), and I could work all of this out easily, so you should breeze through it PGAmerica. :)

PntSingularity: I want to commend you for this mod. It's excellent and works seamlessly for the gamers on the PbP subforum of my forums. In my opinion, this is honestly the best dice roller for vBulletin that I've seen and in the day since I've added, I've had rave reviews from my members, all of whom I've directed back to this thread and yourself, since you deserve all due praise for your work.

Whilst a minor point only, at some point if you ever have time (and granted you only stated above that your free time is practically zilch), if you could add a modifier to the roller? I'm no coder... hell I barely even know what I'm doing with administering my forum at times!

So that when someone clicks on Roll, the page displays:
Description:
Dice: xx d: xx m: xx (ie. +5)

It's a minor point and something I wish I could work out myself... but like I said I'm very new to this. :o

PntSingularity 08-28-2008 03:33 PM

Thanks. :)


Regarding the modifier. I've actually already implemented modifiers into 1.003. I just haven't gotten around to actually finishing that version due to lack of time (I just started a course at a university).

I've also been working on another version of the dice roller (the one I'm using on my site) which supports rolls such as "1d6+3*(5-2)*2d8-1d5" in one click!
However this is far from perfected and I never really wrote that version for the general public, which means it lacks in customizability both for the user and admin.
Another thing that I improved with this other version is that the separate dice are stored in a single column rather than on separate rows in their on table within the MySQL database, which should improve performance if the database gets very large.

So, I might attempt to perfect the improved version I run on my site while implementing the customizability from this version and at the same time adding the extra features requested.
Though this WILL take time. I've got to read The Nicomachean Ethics this weekend and it's 300+ pages... :eek:


Btw, it's funny that my mod seems to get so much more attention now that I have less time to work with it...

Quote:

Originally Posted by DL_Ashe (Post 1608745)
Actually it does, and rather well, might I add. All you need to do is:
(1) Follow PntSingularity's concise instructions at the top to install the product
(2) Apply the minor code change to the postbit display hook
(3) Apply the security token code changes as per this thread: https://vborg.vbsupport.ru/showthread.php?t=177013

Now I'm brand new to administering a vBulletin (only been doing it for a few weeks), and I could work all of this out easily, so you should breeze through it PGAmerica. :)

PntSingularity: I want to commend you for this mod. It's excellent and works seamlessly for the gamers on the PbP subforum of my forums. In my opinion, this is honestly the best dice roller for vBulletin that I've seen and in the day since I've added, I've had rave reviews from my members, all of whom I've directed back to this thread and yourself, since you deserve all due praise for your work.

Whilst a minor point only, at some point if you ever have time (and granted you only stated above that your free time is practically zilch), if you could add a modifier to the roller? I'm no coder... hell I barely even know what I'm doing with administering my forum at times!

So that when someone clicks on Roll, the page displays:
Description:
Dice: xx d: xx m: xx (ie. +5)

It's a minor point and something I wish I could work out myself... but like I said I'm very new to this. :o


PGAmerica 08-28-2008 09:46 PM

Quote:

Originally Posted by DL_Ashe (Post 1608745)
(3) Apply the security token code changes as per this thread: https://vborg.vbsupport.ru/showthread.php?t=177013

OK, I did all the rest, but I am lost on the security token thing. There is no file to edit, unless you mean the xml file. Is it a template edit? Which template or plugin code and where do I add this?

Quote:

Originally Posted by DL_Ashe (Post 1608745)
Now I'm brand new to administering a vBulletin (only been doing it for a few weeks), and I could work all of this out easily, so you should breeze through it PGAmerica.

I have been running a vbulletin for years as well, but I am no programmer. I can follow instructions, but am lost when it comes to figuring this out on my own.

Any help would be appreciated.

PGAmerica 08-28-2008 10:20 PM

Nevermind, I figured it out.

Edit the "roll_addform" template and add
Code:

<input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />
Just after

Code:

<form action="editpost.php?do=rolldice&amp;p=$drthispost" method="post">


All times are GMT. The time now is 05:54 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.01210 seconds
  • Memory Usage 1,779KB
  • 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_html_printable
  • (9)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (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