Advertisement:

Author Topic: Dice Roller  (Read 77674 times)

Offline Kyrna

  • Jr. Member
  • **
  • Posts: 104
  • Gender: Female
Re: Dice Roller
« Reply #40 on: September 24, 2009, 08:50:32 AM »
Right, two new updates today.

1. Limits on the numbers and types of dice, just to curtail possible abuse.

2. As stated, rendering is pushed through the [blockquote] tag, but if you try and use that tag outside of dice rolls - it gives you a warning :)
I will install the update as soon as I get home - thanks! :)

Offline Kyrna

  • Jr. Member
  • **
  • Posts: 104
  • Gender: Female
Re: Dice Roller
« Reply #41 on: September 24, 2009, 09:51:34 PM »
The update works great! It'll take me awhile to get used to the way it makes the blockquotes look but but that's just me. :)

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 71,980
    • StoryBB/StoryBB on GitHub
Re: Dice Roller
« Reply #42 on: September 24, 2009, 09:57:41 PM »
Well, you can change it to look how you want by editing the definition in Subs.php - in the <div style="..."> bit and it'll roll that look out to all of them next time.
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.

Offline Kyrna

  • Jr. Member
  • **
  • Posts: 104
  • Gender: Female
Re: Dice Roller
« Reply #43 on: September 24, 2009, 10:20:18 PM »
Well, you can change it to look how you want by editing the definition in Subs.php - in the <div style="..."> bit and it'll roll that look out to all of them next time.
I don't yet know php but if it still bothers me by the time I learn it (which is doubtful), I'll change it. :)

Honestly, I'm just thrilled with this mod. It has given me no trouble at all and has my users very happy!

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 71,980
    • StoryBB/StoryBB on GitHub
Re: Dice Roller
« Reply #44 on: September 24, 2009, 10:32:37 PM »
It's not a huge deal to change - just let me know how you'd like it to look and I can talk you through the changes.
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.

Offline Kyrna

  • Jr. Member
  • **
  • Posts: 104
  • Gender: Female
Re: Dice Roller
« Reply #45 on: September 24, 2009, 10:34:12 PM »
It's not a huge deal to change - just let me know how you'd like it to look and I can talk you through the changes.
As soon as I get through my 1600 page study guide for my license - well, and the exam. :)

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 71,980
    • StoryBB/StoryBB on GitHub
Re: Dice Roller
« Reply #46 on: September 24, 2009, 10:36:51 PM »
:o

Been too long since I took any exams, I've forgotten what it's like to study for one. Good luck :)
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.

Offline hither

  • Semi-Newbie
  • *
  • Posts: 17
Re: Dice Roller
« Reply #47 on: September 28, 2009, 12:41:08 AM »
Great mod, it works great so far.

I have one important question though.

How do you style the output?

The rolled dice box seems to end up w/no style applied (or it's grabbing some kind of default form the browser maybe).

Code and quote are working fine but I can't find in the style.css how to style it?

It's a bit of a problem as I can barely see the rolls.

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 71,980
    • StoryBB/StoryBB on GitHub
Re: Dice Roller
« Reply #48 on: September 28, 2009, 03:13:19 AM »
It isn't in style.css to style it, it's built into the changes applied to Subs.php, meaning you have to edit that.

Open Subs.php, look for this:
Code: [Select]
array(
'tag' => 'blockquote',
'before' => '<div style="font-size:x-small; background-color:#ffffff; margin:5px 20px; border:1px dashed black; filter:alpha(opacity=50); opacity:0.5;">',
'after' => '</div>',
),

Change the contents of the div's style attribute.
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.

Offline hither

  • Semi-Newbie
  • *
  • Posts: 17
Re: Dice Roller
« Reply #49 on: September 28, 2009, 03:16:43 AM »
thanks mate!

Offline Kyrna

  • Jr. Member
  • **
  • Posts: 104
  • Gender: Female
Re: Dice Roller
« Reply #50 on: October 13, 2009, 09:20:59 PM »
Here's a possible graphic for a post reply button. I discovered pretty quickly that I couldn't do a white d6 so I had to settle for a black one. Feel free to use it if you'd like but you may find someone with a better graphic. It wouldn't hurt my feelings. :)

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 71,980
    • StoryBB/StoryBB on GitHub
Re: Dice Roller
« Reply #51 on: October 31, 2009, 08:17:30 PM »
I finally got round to adding this, though unfortunately I didn't use that image; once I added it into the backgrounds for the post box (especially on RC2) it just didn't look right.

But I'm pleased to say it has been added now into version 1.3 which also has RC2 compatibility :)
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.

Offline Sabbi

  • Semi-Newbie
  • *
  • Posts: 15
Re: Dice Roller
« Reply #52 on: December 08, 2009, 07:16:21 PM »
Hi =D  First off, I loooove this mod, it's been wonderful to use so far besides one little thing.

Second is the one little thing. ^^;  For some reason, when someone uses the code in the quick reply box and then previews their post, it changes the [roll] tags to the [blockquote] tags instead of the roll tags in the post box. If the author doesn't think to check the tags in their post because they showed up alright in the preview... It awkwardly looks like they were trying to cheat.

Is this only happening on my forum? We're running 1.1.11 with the latest version of the mod available and I've gotten the error to happen repeatedly.

Thanks for the mod and your help Arantor~! <3 (It really is wonderful... My forum users are just silly about not doublechecking their tags.)

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 71,980
    • StoryBB/StoryBB on GitHub
Re: Dice Roller
« Reply #53 on: December 09, 2009, 05:46:09 AM »
Hmm, I think that's down to how I implemented the anti-cheating mechanism.

I'm also not sure there's a nice way around it without either removing/watering down the anti-cheat, or massively re-engineering the post system. I'll play around with it though and see what I can come up with.
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.

Offline mpaese

  • Newbie
  • *
  • Posts: 2
Re: Dice Roller
« Reply #54 on: January 01, 2010, 10:25:27 PM »
Hi, Arantor
I've loved your mod, because I need it a long time ago.
But I'm having just a little problem.
When I post something, with or without Dice Roll, admin or not admin, instead forum shows last post, it goes directly to the index page. Post is ok, but after posting, system is not working as it should be...
Do you have some idea what's going on?
Thanks for your time. ^^
And happy new year!

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 71,980
    • StoryBB/StoryBB on GitHub
Re: Dice Roller
« Reply #55 on: January 01, 2010, 10:28:17 PM »
So if you uninstall the mod, does it work as it should do?

Is "return to this message after posting" ticked?
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.

Offline mpaese

  • Newbie
  • *
  • Posts: 2
Re: Dice Roller
« Reply #56 on: January 02, 2010, 12:19:00 PM »
So if you uninstall the mod, does it work as it should do?

Is "return to this message after posting" ticked?
Ooooops...
Ok... I'm a loser... LOL.

Sorry to make you think about this... but my language didn't the 'return to this message' translated, and I've never thought about it... oh, gosh...

Thanks for your attention again. ^^

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 71,980
    • StoryBB/StoryBB on GitHub
Re: Dice Roller
« Reply #57 on: January 02, 2010, 12:32:05 PM »
No worries - just worth checking whether it's an issue in the mod or not before I start any code tracking; I do some funky stuff in the post system to attempt to prevent cheating but occasionally it can mess up.
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.

Offline THE BRA1N

  • Jr. Member
  • **
  • Posts: 133
  • Gender: Male
    • The Third Rail Forum
Re: Dice Roller
« Reply #58 on: January 23, 2010, 09:09:14 PM »
Where do you edit the text color inside of the blockquote or whatever it is? Mine is nearly invisible no matter which background i change it to in the subs.php line.

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 71,980
    • StoryBB/StoryBB on GitHub
Re: Dice Roller
« Reply #59 on: January 23, 2010, 09:16:33 PM »
The Subs.php line is the ONLY place where it is set. If it's not being updated, that would imply you're editing the wrong file, or you're doing something weird.

Can I see an example please?
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.