2010-05-20, 01:37 AM
2010-05-20, 02:34 AM
No need to do all those edits, reverse them and just do this single edit.
Open: showthread.php
Find:
Replace With:
Save & Upload
This will allow guests to see the forums and topic list but when they click on the topic link itself they are prompted with the "no permission error".
The variable $mybb->user['uid'] means "Member's user ID", putting the ! in front of it means "user id has no value".
Hope this helps.
Open: showthread.php
Find:
if($forumpermissions['canview'] != 1 || $forumpermissions['canviewthreads'] != 1)
{
error_no_permission();
}
Replace With:
if($forumpermissions['canview'] != 1 || $forumpermissions['canviewthreads'] != 1 || !$mybb->user['uid'])
{
error_no_permission();
}
Save & Upload
This will allow guests to see the forums and topic list but when they click on the topic link itself they are prompted with the "no permission error".
The variable $mybb->user['uid'] means "Member's user ID", putting the ! in front of it means "user id has no value".
Hope this helps.
2010-05-20, 04:17 AM
Also, after using the method in in -Calypso-'s post, you need to go to Admin CP > Configuration > Forum Home Posts and "Hide Private Forums?" should be set to No. After that, go ahead and disable "Can view" for guests in the forum permissions.
2010-05-20, 05:09 AM
If you disable "Can View" for guests then they won't be able to see the forum titles or topic titles will they? I may have misunderstood what he was asking for.
2010-05-20, 08:49 AM
They'll get a message to login or register if they try to view a thread.