Extension talk:Eval
Doesn't seem to work
editThis extension doesn't seem to work.
When I downloaded the extension:
- my computer saved the php file as index.php, I had to change the name to eval
- Several characters in the file were mangled.
I get:
Fatal error: Cannot redeclare strpbrk() in /home/igotthec/public_html/extensions/eval.php on line 28
Odessaukrain 18:35, 16 July 2008 (UTC)
- I have the same problem. Anyone knows why? -- MichaelSchoenitzer 12:06, 2 May 2009 (UTC)
- OK, I fixed it! Do the following:
- Replace all mentions of strpbrk through one other term (must of course be the same)
- Delete the line "?>" at the end of the script.
- Then it's working again! -- MichaelSchoenitzer 12:18, 2 May 2009 (UTC)
Multiple extensions having this name?
editThere is an extension Eval in svn, providing a Special:Eval page. Its description links here but I doubt that it is the same as is being described here. At least the are likely pretty different versions. I've only had a chance to very briefly look at it, so I cannot provide any details atm. --Purodha Blissenbach 10:33, 14 August 2008 (UTC)
Moved 3 year old anticipated work on this extension to talk page
editthis was written three years ago:
==Extensions==
The following extensions are anticipated, if you want to collaborate, your aid will be welcome.
- Negative scientific notation (#e-#);
- Logical functions:
- And (&)
- Or inclusive (|)
- Or exclusive
- Negation (!)
- At the moment, it process all the text as wiki. I will process only the text between the { and }
Doesn't seem to work in Mediawiki 1.19 with semantic bundle extension
editI tried this but it didn't work.
I would really love to have an eval function of some kind to work in conjunction with the Semantic extension and templates.
For example I want to do something like this within a template:
{{#show: user:{{{userID}}}|? user has email}}
Trouble is that the template parameter {{{userID}}} does not get evaluated before the execution of #show. I would want an eval that worked like this:
{{#show: user:<eval>{{{userID}}}</eval>|? user has email}}
Anybody know how to conquer this problem?