1

Topic: View Forum on Index except Topics

Hi all,

I wonder if there is a way to make a forum visible on the index page of a forum but no topics is shown in that forum when entering the viewforum.php for a specific usergroug?

I know that there is an option in the administration that can be modified for each forum (Read, Add posts and Add Threads), but disabling the 'Read' options for a specific usergrup makes the forum invisible on the index page too.

فهد

2

Re: View Forum on Index except Topics

I think this topic is in the wrong forum. Can anybody move it to Feature Request or Mod forum, please?

فهد

3

Re: View Forum on Index except Topics

ZZZzzz...

فهد

Re: View Forum on Index except Topics

Moved to Modifications wink

5

Re: View Forum on Index except Topics

Well while waiting for a reply, I thought a bout another important question:
How can I let a forum visible and its vieforum is also visible but nobody can view a single topic?

فهد

6 (edited by selce 2008-06-25 11:24)

Re: View Forum on Index except Topics

up, i want it too --> http://punbb.informer.com/forums/viewtopic.php?id=17917

please so long time waiting for this!

7

Re: View Forum on Index except Topics

fhdQa dou you have any new idea about this? I want it too.

8

Re: View Forum on Index except Topics

I found a solution to show all forums in index and not see topics if user group don't have permission (similar to phpbb view forum option), i dont know how secure is it

open index.php and search

$result = $db->query('SELECT c.id AS cid, c.cat_name, f.id AS fid, f.forum_name, f.forum_desc, f.redirect_url, f.moderators, f.num_topics, f.num_posts, f.last_post, f.last_post_id, f.last_poster FROM '.$db->prefix.'categories AS c INNER JOIN '.$db->prefix.'forums AS f ON c.id=f.cat_id LEFT JOIN '.$db->prefix.'forum_perms AS fp ON (fp.forum_id=f.id AND fp.group_id='.$pun_user['g_id'].') WHERE fp.read_forum IS NULL OR fp.read_forum=1 ORDER BY c.disp_position, c.id, f.disp_position', true) or error('Unable to fetch category/forum list', __FILE__, __LINE__, $db->error());

change to

$result = $db->query('SELECT c.id AS cid, c.cat_name, f.id AS fid, f.forum_name, f.forum_desc, f.redirect_url, f.moderators, f.num_topics, f.num_posts, f.last_post, f.last_post_id, f.last_poster FROM '.$db->prefix.'categories AS c INNER JOIN '.$db->prefix.'forums AS f ON c.id=f.cat_id LEFT JOIN '.$db->prefix.'forum_perms AS fp ON (fp.forum_id=f.id AND fp.group_id='.$pun_user['g_id'].') WHERE fp.read_forum IS NULL OR fp.read_forum=1 OR fp.read_forum=0 ORDER BY c.disp_position, c.id, f.disp_position', true) or error('Unable to fetch category/forum list', __FILE__, __LINE__, $db->error());

Now it say 'Bad request' when user group don't have permission to see private forum, I need to change message to 'No permission' in this case...