<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[PunBB Forums - View Forum on Index except Topics]]></title>
	<link rel="self" href="http://punbb.informer.com/forums/feed/atom/topic/13937/"/>
	<updated>2008-12-01T17:03:23Z</updated>
	<generator>PunBB</generator>
	<id>http://punbb.informer.com/forums/topic/13937/view-forum-on-index-except-topics/</id>
		<entry>
			<title type="html"><![CDATA[Re: View Forum on Index except Topics]]></title>
			<link rel="alternate" href="http://punbb.informer.com/forums/post/120287/#p120287"/>
			<content type="html"><![CDATA[<p>I found a solution to show all forums in index and not see topics if user group don&#039;t have permission (similar to phpbb view forum option), i dont know how secure is it</p><p>open index.php and search<br /></p><div class="codebox"><pre><code>$result = $db-&gt;query(&#039;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 &#039;.$db-&gt;prefix.&#039;categories AS c INNER JOIN &#039;.$db-&gt;prefix.&#039;forums AS f ON c.id=f.cat_id LEFT JOIN &#039;.$db-&gt;prefix.&#039;forum_perms AS fp ON (fp.forum_id=f.id AND fp.group_id=&#039;.$pun_user[&#039;g_id&#039;].&#039;) WHERE fp.read_forum IS NULL OR fp.read_forum=1 ORDER BY c.disp_position, c.id, f.disp_position&#039;, true) or error(&#039;Unable to fetch category/forum list&#039;, __FILE__, __LINE__, $db-&gt;error());</code></pre></div><p>change to<br /></p><div class="codebox"><pre><code>$result = $db-&gt;query(&#039;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 &#039;.$db-&gt;prefix.&#039;categories AS c INNER JOIN &#039;.$db-&gt;prefix.&#039;forums AS f ON c.id=f.cat_id LEFT JOIN &#039;.$db-&gt;prefix.&#039;forum_perms AS fp ON (fp.forum_id=f.id AND fp.group_id=&#039;.$pun_user[&#039;g_id&#039;].&#039;) 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&#039;, true) or error(&#039;Unable to fetch category/forum list&#039;, __FILE__, __LINE__, $db-&gt;error());</code></pre></div><p>Now it say &#039;Bad request&#039; when user group don&#039;t have permission to see private forum, I need to change message to &#039;No permission&#039; in this case...</p>]]></content>
			<author>
				<name><![CDATA[selce]]></name>
				<uri>http://punbb.informer.com/forums/user/10144/</uri>
			</author>
			<updated>2008-12-01T17:03:23Z</updated>
			<id>http://punbb.informer.com/forums/post/120287/#p120287</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: View Forum on Index except Topics]]></title>
			<link rel="alternate" href="http://punbb.informer.com/forums/post/120283/#p120283"/>
			<content type="html"><![CDATA[<p>fhdQa dou you have any new idea about this? I want it too.</p>]]></content>
			<author>
				<name><![CDATA[selce]]></name>
				<uri>http://punbb.informer.com/forums/user/10144/</uri>
			</author>
			<updated>2008-12-01T15:33:40Z</updated>
			<id>http://punbb.informer.com/forums/post/120283/#p120283</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: View Forum on Index except Topics]]></title>
			<link rel="alternate" href="http://punbb.informer.com/forums/post/116087/#p116087"/>
			<content type="html"><![CDATA[<p>up, i want it too --&gt; <a href="http://punbb.informer.com/forums/viewtopic.php?id=17917">http://punbb.informer.com/forums/viewtopic.php?id=17917</a></p><p>please so long time waiting for this!</p>]]></content>
			<author>
				<name><![CDATA[selce]]></name>
				<uri>http://punbb.informer.com/forums/user/10144/</uri>
			</author>
			<updated>2008-06-25T11:02:27Z</updated>
			<id>http://punbb.informer.com/forums/post/116087/#p116087</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: View Forum on Index except Topics]]></title>
			<link rel="alternate" href="http://punbb.informer.com/forums/post/82308/#p82308"/>
			<content type="html"><![CDATA[<p>Well while waiting for a reply, I thought a bout another important question:<br />How can I let a forum visible and its vieforum is also visible but nobody can view a single topic?</p>]]></content>
			<author>
				<name><![CDATA[FhdQa]]></name>
				<uri>http://punbb.informer.com/forums/user/6194/</uri>
			</author>
			<updated>2006-11-30T22:06:38Z</updated>
			<id>http://punbb.informer.com/forums/post/82308/#p82308</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: View Forum on Index except Topics]]></title>
			<link rel="alternate" href="http://punbb.informer.com/forums/post/82284/#p82284"/>
			<content type="html"><![CDATA[<p>Moved to Modifications <img src="http://punbb.informer.com/forums/img/smilies/wink.png" width="15" height="15" alt="wink" /></p>]]></content>
			<author>
				<name><![CDATA[Smartys]]></name>
				<uri>http://punbb.informer.com/forums/user/1209/</uri>
			</author>
			<updated>2006-11-30T14:11:11Z</updated>
			<id>http://punbb.informer.com/forums/post/82284/#p82284</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: View Forum on Index except Topics]]></title>
			<link rel="alternate" href="http://punbb.informer.com/forums/post/82281/#p82281"/>
			<content type="html"><![CDATA[<p>ZZZzzz...</p>]]></content>
			<author>
				<name><![CDATA[FhdQa]]></name>
				<uri>http://punbb.informer.com/forums/user/6194/</uri>
			</author>
			<updated>2006-11-30T13:33:59Z</updated>
			<id>http://punbb.informer.com/forums/post/82281/#p82281</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: View Forum on Index except Topics]]></title>
			<link rel="alternate" href="http://punbb.informer.com/forums/post/82223/#p82223"/>
			<content type="html"><![CDATA[<p>I think this topic is in the wrong forum. Can anybody move it to Feature Request or Mod forum, please?</p>]]></content>
			<author>
				<name><![CDATA[FhdQa]]></name>
				<uri>http://punbb.informer.com/forums/user/6194/</uri>
			</author>
			<updated>2006-11-29T16:31:28Z</updated>
			<id>http://punbb.informer.com/forums/post/82223/#p82223</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[View Forum on Index except Topics]]></title>
			<link rel="alternate" href="http://punbb.informer.com/forums/post/82204/#p82204"/>
			<content type="html"><![CDATA[<p>Hi all,</p><p>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?</p><p>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 &#039;Read&#039; options for a specific usergrup makes the forum invisible on the index page too.</p>]]></content>
			<author>
				<name><![CDATA[FhdQa]]></name>
				<uri>http://punbb.informer.com/forums/user/6194/</uri>
			</author>
			<updated>2006-11-29T09:02:38Z</updated>
			<id>http://punbb.informer.com/forums/post/82204/#p82204</id>
		</entry>
</feed>
