MyBB Community Forums

Full Version: Guest Permission - Show Thread Lists But No Permission To Open
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
How do I set permission to Guests as to let them View the Threads List, in a particular Category/Forum but does not allow them to open the thread.

Just to give them the idea, that the thread does exist inside a category/forum, only, they won't be able to open them.

Same permission should be given to "Awaiting activation" users.

I tried to customize it, trial and error. But what it actually does currently is hide all the threads in the category/forum. If I give them permission to view the threads, they do can also open the thread itself. And that's not what I wanted.

I just want them (Guest and Awaiting activation user) to be able to click on the forums under a category, display the threads, but they can't open each thread unless they are registered and activated.

Is this possible?
(2011-05-22, 10:50 AM)AJS Wrote: [ -> ]You'll need a plugin - http://mods.mybb.com/view/guest-s-can-t-view-threads

I have tried that one before but I don't know how to make it work for 1.6.3. There's an instruction on how to make it compatible but I just couldn't find the string to change.
AFAIK, you don't have to change anything, it should just work with 1.6.3
You mean guest can see the topic but not the post? try this http://community.mybb.com/thread-58893.html it'll shows the number of thread and post but they cant see what inside it.
(2011-05-24, 01:06 AM)airborne Wrote: [ -> ]You mean guest can see the topic but not the post? try this http://community.mybb.com/thread-58893.html it'll shows the number of thread and post but they cant see what inside it.

that is what I'm looking for.
but it doesn't work anymore. the codes to search is not in forumdisplay.php anymore.
the other guide still doesn't work. I can't find "Guest (Not Loggin in) setting". I did custom permissions same as his guide but in the end, it displays everything to guest. Sad

Maybe it does work for older version of myBB.
(2011-05-22, 10:50 AM)AJS Wrote: [ -> ]You'll need a plugin - http://mods.mybb.com/view/guest-s-can-t-view-threads

(2011-05-24, 12:43 AM)- G33K - Wrote: [ -> ]AFAIK, you don't have to change anything, it should just work with 1.6.3

Hi Support Teams,
It works. Smile
For Guest. How do I customize this to make it work with "Awaiting activation" user also?

There must be a way to make this work also for "Awaiting activation" users, and not just for guest.
Looking at this code:
function gcvt_thread()
{
	global $db, $mybb,$lang, $thread;

                	if($mybb->user['uid'] == 0)
                	{
                    	error("Guests and users awaiting for activation cannot view threads.","Error");
                	}
		
		
	
	$lang->send_thread = "";
}

It's understandable that the userid for guest is 0. I wonder what's the userid for "Awaiting activation" users so that I can try to add it in the IF statement.
~update~
the plugin itself is useless if it's viewed via portal.php
the plugin itself is also useless if it's viewed via syndication.php
Awaiting Activation is GID 5. I don't know if it'll work but you can try putting 0,5?

As for the portal, you'll probably need a separate plugin for that unless you edit the other plugin to work on it.