Message Text |
Hello again,
Appreciate any help or ideas on this one...
I've got a WSN installation (3.12) in which I've added some custom integer member fields. Everything works great with the conditional template stuff in the 3.12 install and everything is happy.
Now I'm trying to emulate this same setup in a 3.15 install (on different server). The same member fields have been added and used in the templates in the same way, but I'm getting an eval error resulting from failed template variable replacement.
The first interesting area looks like this in the template (edit profile)...
<IF {MEMBERPENDINGLINKS} is 0>
<IF {MEMBERLINKS} is 0>
<IF {MEMBERCREDITS} is 0>
etc.
In 3.15 I'm getting this result...
<?php if ("" == 0) { ?>
<?php if ("" == 0) { ?>
<?php if (0 == 0) { ?>
I don't know why these ints are replaced differently and I don't know why the quotes are in there, these are all integer fields. These fields were added as integer (and this has been verified via phpMyAdmin).
The second area uses the same fields but gets yet another different (invalid) result...
<IF {MEMBERPENDINGLINKS} is greater than 0 or {MEMBERLINKS} is greater than 0 or {MEMBERCREDITS} is greater than 0>
This results in...
<?php if ( > 0 || > 0 || 0 > 0) { ?>
Which is obviously fatal to the process, resulting in this error...
Parse error: syntax error, unexpected '>' in /home/sky/public_html/commonfuncs.php(349) : eval()'d code on line 194
I've tried taking the conditionals.php from 3.12 and moving it to the 3.15 install, that seemed to make things worse.
I've compared the phpMyAdmin structure for the member tables and they are identical on both installations. I've tried making the DB fields for the member variables to be "Not NULL" and defaulted to "0", but that didn't help either, so I put it back like the WSN admin panel created them.
I've also tried changing the template conditional syntax, but no luck.
Any ideas?
|