Not Solved PHP in Templates and Template Conditionals
Not Solved
I have the same problem as  DjPrison above.

This code works fine in 1.6.* for everybody but in 1.8.9 it doesn't:
<if !empty($user['fid5']) then><div class="Profilfelder" width="170px"><b>ALTER</b></div>
<?php echo $parser->parse_message(htmlspecialchars_decode($user['fid5']),array('allow_mycode'=>1));
?></if>
 
Usually this error is screened but:
Quote:Fatal error: Call to a member function parse_message() on a non-object in .../memberlist.php(428) : eval()'d code(7) : eval()'d code on line 1

I also think that it might be connected to the "->" bit because the if-part alone works and I can also use random words to echo However I can't think of a workaround for the parse-bit I need the mycode to be parsed...

Any ideas?  Huh


Side note/fun fact:
I have found two random accounts where the code works and no error is displayed (meaning i log into the account an can view the memberlist with no problem). Those two accounts are in no way different from the others where it doesn't work (same usergroup, same rights, same entries in the profilefields...) so i'm running out of ideas there, too.
Reply


Messages In This Thread
RE: PHP in Templates and Template Conditionals - by Senya - 2017-01-05, 08:44 AM
RE: Template conditionals - by expat - 2015-01-31, 05:28 AM

Forum Jump:


Users browsing this thread: 70 Guest(s)