MyBB Codes

Full Version: Only particular group can enter a forum
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
hello,
I want a plug-in by which I can set that which group can enter a particular forum.
Like I have a forum called "Gold tricks". And I made a group of called "Gold Member". I want to set that people belong to the gold member group can only enter the forum and see threads.

other people will only see how many threads are in the forum and latest threads as it shows in index but when they tired to enter the forum a message will be shown like " an error occurred,you are not allowed to enter the forum". Can it be done?
(12-03-2009 09:36 AM)tech2game Wrote: [ -> ]hello,
I want a plug-in by which I can set that which group can enter a particular forum.
Like I have a forum called "Gold tricks". And I made a group of called "Gold Member". I want to set that people belong to the gold member group can only enter the forum and see threads.

other people will only see how many threads are in the forum and latest threads as it shows in index but when they tired to enter the forum a message will be shown like " an error occurred,you are not allowed to enter the forum". Can it be done?

In principle everything can be done Big Grin

From what you describe, can''t you achive that with the permissions system built in Mybb? If that can''t be achived, can you please provide some screenshots of what you mean cos I might have misunderstood you.
The problem is when I use the permission system in mybb and unselect "Can view threads within forum?" for any group the forum will look like this to those group members..screenshot below..

[attachment=13]

But I don't want it like that. I want them to see the thread number also what is posted last or may be "private" written in the last post section. Those who don't have the permission to enter forum I want them to see like this. screenshot below..

[attachment=14]


But when they(those who don't have the permission to enter) will try to enter the forum they will see this like "an error occurred,you don't have the permission to enter".
I attached the Images...
I think I understood what you meant. So, you want those who don''t have permissions to view a forum, to be able to view the topic list inside that forum but not the posts themselves inside the topics? If that is the case, then can you atatch here your forumdisplay.php file?
Here I attached my forumdisplay.php file..
I don't even want them to view the topic list. i just want them to view the number of topic and the last post in forum Index. They can't be able to enter the forum.
Also one suggestion,give a favicon..it will look good.
Ah ok, I misunderstood you then. Try this first. After you set the permissions accordingly, go to Board Settings-Forum Home Options and then set the Hide Private Forums? to No. This will accomplish what you want.
No not working, but can you make this plugin what you mentioned...

(12-03-2009 10:26 AM)babjusi Wrote: [ -> ]So, you want those who don''t have permissions to view a forum, to be able to view the topic list inside that forum but not the posts themselves inside the topics?
(12-03-2009 10:42 AM)tech2game Wrote: [ -> ]No not working, but can you make this plugin what you mentioned...

(12-03-2009 10:26 AM)babjusi Wrote: [ -> ]So, you want those who don''t have permissions to view a forum, to be able to view the topic list inside that forum but not the posts themselves inside the topics?

I will have a look but as I told you yesterday as well it will have to wait a bit. I have 2-3 plugins to release first that I have promissed before to a couple of other members.

Anyway, can you try this as well.

http://www.forumsecurity.eu/showthread.php?tid=33
Can you try this:

Find at the following funnction.forumlist.php file in the /inc/ folder:

PHP Code:[Highlight]
// If this user doesnt have permission to view this forum and we're hiding private forums, skip this forum
            
if($permissions['canview'] != && $mybb->settings['hideprivateforums'] == 1)
            {
                continue;
            } 

And replace it with:

PHP Code:[Highlight]
// If this user doesnt have permission to view this forum and we're hiding private forums, skip this forum
            
if($permissions['canview'] != && $mybb->settings['hideprivateforums'] == && $thread['tid'])
            {
                continue;
            } 
I will surely try this and let you know what happened...
Pages: 1 2
Reference URL's