<br><br><div class="gmail_quote">On Fri, Feb 5, 2010 at 8:24 PM, Peter Bowers <span dir="ltr"><<a href="mailto:pbowers@pobox.com">pbowers@pobox.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Thu, Feb 4, 2010 at 8:59 PM, edwin marte <<a href="mailto:edwin.marte@leidba.com">edwin.marte@leidba.com</a>> wrote:<br>
> Ok, I found that the result {Dec is coming from my tests. The Group I am<br>
> using is named Decisiones (spanish) so the problem is that substr in not<br>
> evaluating {Test.{$?page}$:date} . is only seeing the expression as Plain<br>
> Text ( it should be {Tes for our porpuses.)<br>
><br>
> Anyway or ideas on making substr evaluate correctly ?<br>
<br>
This is a problem with httpvariables that has been reported before<br>
(multiple times, I believe?) on this list with suggested fixes.<br>
<br>
<a href="http://www.mail-archive.com/pmwiki-users@pmichaud.com/msg12611.html" target="_blank">http://www.mail-archive.com/pmwiki-users@pmichaud.com/msg12611.html</a><br>
<a href="http://www.mail-archive.com/pmwiki-users@pmichaud.com/msg12610.html" target="_blank">http://www.mail-archive.com/pmwiki-users@pmichaud.com/msg12610.html</a><br>
<br>
Basically the GET variables are supposed to be interpolated once<br>
before PTVs and once after. But because of the name of the markup<br>
(simple typo) it only gets evaluated *after* PTVs and thus<br>
{Test.0001$:date} cannot be interpolated.<br>
<br>
If you want to fix it, here's what to change in httpvariables.php:<br>
<br>
Note these 2 Markup calls are almost identical. Specifically the<br>
*name* of the markup (the first argument) is identical -<br>
'{$?!|@~var}<br>
<br>
This (having the same name for 2 rules) doesn't work as expected.<br>
<br>
===(snip)===<br>
# {$?!|@~var} http variable substitutions before {$var}<br>
Markup('{$?|!@~var}', '<{$var}',<br>
'/\\{\\$([\\?\\!\\|@~])(\\w+)\\}/e',<br>
"HttpVariables(\$pagename, PSS('$1'), PSS('$2'))");<br>
<br>
# {$?!|@~var} http variable substitutions after {$var}<br>
Markup('{$?|!@~var}', '>{$var}',<br>
'/\\{\\$([\\?\\!\\|@~])(\\w+)\\}/e',<br>
"HttpVariables(\$pagename, PSS('$1'), PSS('$2'))");<br>
===(snip)===<br>
<br>
Change one of the names in your copy of httpvariables -- just add an<br>
"x" to the end of one of them (doesn't matter what the change is or<br>
which one is changed -- just make sure it doesn't step on the name of<br>
another rule...)<br>
<br>
I think that will solve your problem and leave you without having to<br>
use the custom action...<br>
<font color="#888888"><br>
-Peter<br></font></blockquote><div><br>Thanks Peter, I overlooked those posted of the list. I should have seen them.<br><br>I will give a try.<br><br>Regards,<br>Edwin <br></div></div><br>