![]() |
I want to block guests from viewing individual topics. (e.g. A guest enters the forum home page, clicks on a forum, sees the topic titles, click on a topic title, and is then asked to log-in or register.)
I know that there is a similar option in the AdminCP that prevents guests from "viewing other's topics", but it makes each forum appear blank, as if there were no topics at all. :( Hopefully someone can help, as I believe this would be a hack that others would appreciate as well. :) |
All done in your CNTRL panel
User Groups and Permissions Add | Modify Modify forums <-------HERE |
Tweak, please read my post again.
Quote:
showthread.php is really the only thing I don't want guests to see... |
Try this.
In your showthread.php, add the code in red Code:
error_reporting(7); Code:
getforumrules($forum,$getperms); |
Thanks FireFly, but it didn't work. :( Showthread.php only returned this error:
Quote:
|
Oh right, global.php was yet to be included. I'll work something out and post it here. :)
|
Sounds great, thanks! :)
|
Undo all changes. :)
Add the code in red in all 4 places. Code:
include('./global.php'); Code:
eval("dooutput(\"".gettemplate("showpost")."\");"); Code:
require('./global.php'); Code:
getforumrules($forum,$getperms); |
Uh-oh, now I'm getting a new error:
Quote:
|
You dropped one } right before that ### block that says showthread.
(also remove that file) |
All times are GMT. The time now is 01:03 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|