• Welcome to Simple Machines Community Forum. Please login or sign up.
October 20, 2021, 03:04:37 AM

News:

Check out the SMF Function DB!


Dice Roller

Started by Colin, July 30, 2009, 09:52:06 PM

Previous topic - Next topic

THE BRA1N

It's being updated, i just dont see where to change the color of the main text either in the Subs.php or index.css files. Right now it blends with the background too much.


Arantor

You edit that one line, add a color: declaration to it.
No good deed goes unpunished
All helpful urges should be circumvented

THE BRA1N

Quote from: Arantor on January 23, 2010, 10:06:54 PM
You edit that one line, add a color: declaration to it.

That worked like a charm! Thx.

lordevil

Quote from: Arantor 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:
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.
Thank you, I have been looking for this for days. I didnt even know the mod had a link to this page. I thought that was just text :duh: Thanks a million!

eolith

I had the color issue as well, grey on grey, so i changed the background to #780000, and it looks great.

Succubus Evaligan

Yuri Goddess

Lordmiller

Having what appears to be a cross issue between this mod and TinyPortal Beta 5:


I had this mod already installed to 2.0 RC3, then installed TP Beta 5 everything works for both mods, except if I try to upload a file into the TP download manager I get this error after entering all the data and hitting the save/send button:

Quote
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 's Die Roller Ap', '

', 'http://rpgfreelancers.org/smf/tp-downloads/icons/blan'; at line 3
File: /home/celedor/public_html/smf/Sources/TPdlmanager.php
Line: 221

Any clue what the syntax it's referring to as being for use next to "die roller ap"?

Arantor

That's nothing to do with this mod; there are no changes whatsoever in TPdlmanager.php on account of the last version I did I hadn't used TP at all. I'd be asking TP about it.
No good deed goes unpunished
All helpful urges should be circumvented

Lordmiller

Only asked here due to the reference, your answer cuts many of the possible problems off the table. thanks.

cubex

July 20, 2010, 05:27:55 AM #69 Last Edit: July 21, 2010, 12:43:09 AM by cubex
Thank you very much for this mod
Now I can play World of Darkness using Play-by-Post with my friends  ;D

I want to ask, how to delete the "Total" at the end of the result?

Thanks!

Ryanteck

is there a way to stop it from rolling the same number more than once

eolith

Any chance of getting this upgraded for RC4? It's a great mod our forum was about to use in a RP session.

Thanks!

eolith

nevermind, it works if you just mod the install xml file to add ", 2.0 RC4" wherever you see "2.0 RC3". Worked like a charm.

Sabbi

Quote from: Sabbi on December 08, 2009, 07:16:21 PMFor 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.

Quote from: Arantor 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.


Just wondering, has there been anything further to work around this issue?  Forgot to warn new members about it recently, which made me think of it.   :-[

Ellion Cold

How can i put this on a 2.0RC5 forum?

Paine

To install in 2.0 RC5 edit the package-info.xml file.
Replace:
<install for="2.0 RC2, 2.0 RC3">
With:
<install for="2.0 RC2, 2.0 RC3, 2.0 RC5">

Replace:
<uninstall for="2.0 RC2, 2.0 RC3">
With:
<uninstall for="2.0 RC2, 2.0 RC3, 2.0 RC5">

Arantor

Or, you can save yourself the hassle and go to Admin > Packages > Browse Packages > Advanced and enter 2.0 RC3 in the box provided.
No good deed goes unpunished
All helpful urges should be circumvented

MacTrom

I have it installed and working in 2.0. I'm new to MODS, so this was my first. After banging my head against the various ways to install I finally just made the version modification and FTPd it onto my server. Then after testing it, I modified the Subs to make the text/background look better.

Now if I can just get an improvement to add die together like Invisible Castle does:

1d10+1d6+1d4

Then I'd be ecstatic.

-Mac

inusun

I created a new install file for the 2.0 version and added a reference in the package-info. If the author would be so kind as to add this information to the mod package. Everyone could easily install this mod into their 2.0 version of smf.

MacTrom

Quote from: MacTrom on July 07, 2011, 03:06:59 PM

Now if I can just get an improvement to add die together like Invisible Castle does:

1d10+1d6+1d4

Then I'd be ecstatic.

-Mac

I figured out where the code was and did some splicing to make it accept mixed die rolls by adding in two additional configurations. Now rolling a d6 and d8 together and getting a total can be done by: 1d6&1d8. I can also subtract with 1d10#1d4 to get the difference between them. I presume that as long as I keep this just on my site, that there is no legal conflicts.

-Mac

Advertisement: