Topic: PHP Help: User NOT Viewing Topic
I am trying to run some PHP code whenever the user is NOT viewing an individual topic(viewtopic.php). So the code will be run everywhere EXCEPT topics.
Example in English/PHP:
<?php if "User is NOT viewing an individual topic" ?>
<------My block of code--------->
<?php endif; ?>
"My block of code" is a PHP file in my include/user folder, I then call it with <pun_include "mycode.php"> in my main.tpl
I appreciate any help, and if there is a better way of doing this let me know.
Thank You