MyBB Community Forums

Full Version: Is there a plugin that doesn't let guests view threads?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Please don't tell me to edit the ACP because that is not what I am looking for. I need a plugin that lets the user access the forum, for example, they can see this: MyBB Community Forums / MyBB Resources / Plugins & Code Modifications / Requests

And that shows the list of threads right? So they go to click on the thread title and then it says they must be registered. Is there such plugin? Thanks!
You have to make manual core file changes. Here is a quick rundown.

###### For the canviewthreads permissions to change
inc/functions_forumlist.php

if($permissions['canviewthreads'] != 1)
{
$hideinfo = true;
}

to

if($permissions['canviewthreads'] != 1)
{
$hideinfo = false;
}


in forumdisplay.php
find $fpermissions['canviewthreads']
alter the appropriate if statements
Thanks Labrocca but I need the titles to be displayed but the thread cannot be opened. Sad
Yes that's what this does. Check out Hackforums.net as a guest.
(2010-05-08, 09:57 PM)labrocca Wrote: [ -> ]Yes that's what this does. Check out Hackforums.net as a guest.

Nice, ok let me try again. I might have done something wrong.
(2010-05-08, 06:33 PM)labrocca Wrote: [ -> ]in forumdisplay.php
find $fpermissions['canviewthreads']
alter the appropriate if statements

So here is the part:

$threadcount = 0;

if($fpermissions['canviewthreads'] != 0)
{
	// How many posts are there?

What do I change it to?
Remove that and also the ending of the IF statement }.

Or just change it something true.

if(1==1)
{
Wow, I am so confused. Hm... Actually, would you mind copying the code I have above and editing it instead of trying to explain to me, as I obviously don't understand PHP coding. Thanks.

Wait, do you mean:

$threadcount = 0;

if(1==1)
{
    // How many posts are there?

is that what it should be?
That looks right.
Ok, I have made the changes and anyone can still view threads: http://grayhatworld.com/
Use babjusi's tutorial. It does what you want and with much less edits.

http://community.mybb.com/thread-58893.html
Pages: 1 2