<br><br><div class="gmail_quote">On Fri, Feb 5, 2010 at 8:24 PM, Peter Bowers <span dir="ltr">&lt;<a href="mailto:pbowers@pobox.com">pbowers@pobox.com</a>&gt;</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 &lt;<a href="mailto:edwin.marte@leidba.com">edwin.marte@leidba.com</a>&gt; wrote:<br>
&gt; Ok, I found that the result {Dec   is coming from my tests. The Group I am<br>
&gt; using is named Decisiones (spanish) so the problem is that substr in not<br>
&gt; evaluating {Test.{$?page}$:date} . is only  seeing the  expression as Plain<br>
&gt; Text ( it should be {Tes for our porpuses.)<br>
&gt;<br>
&gt; 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&#39;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>
&#39;{$?!|@~var}<br>
<br>
This (having the same name for 2 rules) doesn&#39;t work as expected.<br>
<br>
===(snip)===<br>
# {$?!|@~var} http variable substitutions before {$var}<br>
Markup(&#39;{$?|!@~var}&#39;, &#39;&lt;{$var}&#39;,<br>
  &#39;/\\{\\$([\\?\\!\\|@~])(\\w+)\\}/e&#39;,<br>
  &quot;HttpVariables(\$pagename, PSS(&#39;$1&#39;), PSS(&#39;$2&#39;))&quot;);<br>
<br>
# {$?!|@~var} http variable substitutions after {$var}<br>
Markup(&#39;{$?|!@~var}&#39;, &#39;&gt;{$var}&#39;,<br>
  &#39;/\\{\\$([\\?\\!\\|@~])(\\w+)\\}/e&#39;,<br>
  &quot;HttpVariables(\$pagename, PSS(&#39;$1&#39;), PSS(&#39;$2&#39;))&quot;);<br>
===(snip)===<br>
<br>
Change one of the names in your copy of httpvariables -- just add an<br>
&quot;x&quot; to the end of one of them (doesn&#39;t matter what the change is or<br>
which one is changed -- just make sure it doesn&#39;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>