Extension talk:Eval

From mediawiki.org
Latest comment: 14 years ago by MichaelSchoenitzer in topic Doesn't seem to work

Doesn't seem to work[edit]

This extension doesn't seem to work.

When I downloaded the extension:

  1. my computer saved the php file as index.php, I had to change the name to eval
  2. 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)Reply

I have the same problem. Anyone knows why? -- MichaelSchoenitzer 12:06, 2 May 2009 (UTC)Reply
OK, I fixed it! Do the following:
  1. Replace all mentions of strpbrk through one other term (must of course be the same)
  2. Delete the line "?>" at the end of the script.
Then it's working again! -- MichaelSchoenitzer 12:18, 2 May 2009 (UTC)Reply

Multiple extensions having this name?[edit]

There 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)Reply

Moved 3 year old anticipated work on this extension to talk page[edit]

this 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 }

69.138.183.85 17:00, 18 April 2009 (UTC)Reply

Doesn't seem to work in Mediawiki 1.19 with semantic bundle extension[edit]

I 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?