Problem with print_no_permission
I want to not allow a thread to be viewed (I will later add conditionals for certain usergroups). My problem is that EVERY thread cannot be viewed and I cannot figure it out. Any help would be appreciated, thanks.
I have this code in my SHOWTHREAD
<if condition="$threadinfo['threadid'] == 1014">
$includedphp
</if>
And I have made a global_start plugin to include a file with print_no_permission
ob_start();
include('test.php');
$includedphp = ob_get_contents();
ob_end_clean();
Here is my test.php file contents
<?php
print_no_permission();
?>
--------------------------------------------------------------------------------------------------------------------------------
Thing I don't understand is that when I do this code instead on my included test.php file, it does work for outputting the text on just that thread.
<?php
echo "hello";
?>
|