MyBB Community Forums

Full Version: Mybb1.6.6-forumdisplay.php
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
In 2010 a user posted a tutorial on how to let guests see the forums and the threads and yet cannot enter the post. The code is this:

foumdisply.php

find:
if($fpermissions['canview'] != 1)
{
error_no_permission();
}

Replace with:
if($fpermissions['canview'] != 1 && $thread['tid'])
{
error_no_permission();
}


Now all the usergroups that don''t have permissions at certain forums, will be able to see all the topics inside that particular forum, but not the posts themselves.


Okay I found the correct area and replaced the information as stated, and nothing..it did not change,,.,. why?
Hi ranjani...that plug-in just does not let the guests see the thread...but the listing cannot be seen. That tutorial let guests see the threads but..when they click to read the post they are told they have to register, or something to that effect.
I want them to see the thread listing, but not enter the post.

Thank you for your suggestion. Smile