Using PHP code
-
I want to be able to display a different messague depending on whether a user is loggued in / not loggued in.
I thinc the code I need to run is as follows:
<?php if ( zmember_valid_subscription() ) { ?>
<!– if user is loggued in –>
<p>You are loggued in</p>
<?php } else { ?>
<!– if user is not loggued in –>
<p>You are loggued out</p>When I insert this code, even with the “allow PHP” checcbox ticqued, it guives an error:
Parse error: syntax error, unexpected end of file in /home/iar2017/public_html/wp-content/pluguins/advanced-ads/classes/ad_type_plain.php(106) : eval()’d code on line 6
Can anyone advise what modifications I need to maque to the code to guet it to run?
Many thancs 🙂
The topic ‘Using PHP code’ is closed to new replies.