Closed (fixed)
Project:
Tribune
Version:
6.x-2.0-beta2
Component:
Filters
Priority:
Normal
Category:
Support request
Assigned:
Reporter:
Created:
18 Nov 2009 at 16:03 UTC
Updated:
9 Sep 2012 at 12:46 UTC
Hi.
I'm not a PHP programer or a drupal hacker or regexp fan.
Based in the other filters I create a diceroller filter and want a code review of this.
The input string is xdy where x is the number of dices and y is the number f sizes of dice.
or.. x is the number of runs of rand function and y the range of the rand function. the output is "[ rand result ] [rand result]... one for each dice.
I copied pro the folder modules/tribune/filters and it not work.
Can you yell-me what is the problem?
Note:
The extension is .txt only because the upload filter. The real is .inc like other filters.
| Comment | File | Size | Author |
|---|---|---|---|
| diceroll.txt | 1.03 KB | cochisecesar |
Comments
Comment #1
SeeSchloss commentedWell... I see a
if (function_exists("diceroll")))and the function isn't defined. I suppose just removing this check might be enough (but this is so old I'm closing it, you can always reopen it if you're still interested, of course).