<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[PunBB Forums - Guest access]]></title>
		<link>http://punbb.informer.com/forums/topic/20241/guest-access/</link>
		<description><![CDATA[The most recent posts in Guest access.]]></description>
		<lastBuildDate>Sun, 16 Nov 2008 15:17:48 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Guest access]]></title>
			<link>http://punbb.informer.com/forums/post/119413/#p119413</link>
			<description><![CDATA[<p>Sorry, I don&#039;t know of any links, BUT I learned extension coding with a blank extension template because it&#039;s self-explaining. Here you go:<br /></p><div class="codebox"><pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
&lt;!DOCTYPE extension SYSTEM &quot;ext-1.0.dtd&quot;&gt;

&lt;extension engine=&quot;1.0&quot;&gt;
    &lt;id&gt;Same as folder&#039;s name I.e.: pun_pm&lt;/id&gt;
    &lt;title&gt;Extension name&lt;/title&gt;
    &lt;version&gt;Extension version&lt;/version&gt;
    &lt;description&gt;Extension description&lt;/description&gt;
    &lt;author&gt;Your name&lt;/author&gt;
    
    &lt;minversion&gt;1.3&lt;/minversion&gt;
    &lt;maxtestedon&gt;1.3&lt;/maxtestedon&gt;
    
    &lt;install&gt;
        &lt;![CDATA[
//Code to run when installing
        ]]&gt;
    &lt;/install&gt;
    
    &lt;uninstall&gt;
        &lt;![CDATA[
//Code to run when uninstalling
        ]]&gt;
    &lt;/uninstall&gt;
    
    &lt;hooks&gt;
        &lt;hook id=&quot;hook_name&quot;&gt;
            &lt;![CDATA[
//Code to run when forum script reaches hook
            ]]&gt;
        &lt;/hook&gt;
    &lt;/hooks&gt;
&lt;/extension&gt;</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (Garciat)]]></author>
			<pubDate>Sun, 16 Nov 2008 15:17:48 +0000</pubDate>
			<guid>http://punbb.informer.com/forums/post/119413/#p119413</guid>
		</item>
		<item>
			<title><![CDATA[Re: Guest access]]></title>
			<link>http://punbb.informer.com/forums/post/119411/#p119411</link>
			<description><![CDATA[<div class="quotebox"><cite>Garciat wrote:</cite><blockquote><p>I could make an extension (with turn on/off), or you could just add this to <strong>Line 23</strong> on &#039;<strong>header.php</strong>&#039;:<br /></p><div class="codebox"><pre><code>if($forum_user[&#039;is_guest&#039;]) header(&quot;Location: &quot;.forum_link($forum_url[&#039;login&#039;]));</code></pre></div></blockquote></div><p>Thanks for this, I think i&#039;ll add this code line into the header.php file.&nbsp; I may see if I can write an extension or this as it would be good practice.&nbsp; Do you know of any threads etc that could help me write an extension ?</p><p>Bach.</p>]]></description>
			<author><![CDATA[dummy@example.com (bach)]]></author>
			<pubDate>Sun, 16 Nov 2008 14:58:21 +0000</pubDate>
			<guid>http://punbb.informer.com/forums/post/119411/#p119411</guid>
		</item>
		<item>
			<title><![CDATA[Re: Guest access]]></title>
			<link>http://punbb.informer.com/forums/post/119406/#p119406</link>
			<description><![CDATA[<p>I could make an extension (with turn on/off), or you could just add this to <strong>Line 23</strong> on &#039;<strong>header.php</strong>&#039;:<br /></p><div class="codebox"><pre><code>if($forum_user[&#039;is_guest&#039;]) header(&quot;Location: &quot;.forum_link($forum_url[&#039;login&#039;]));</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (Garciat)]]></author>
			<pubDate>Sun, 16 Nov 2008 14:48:59 +0000</pubDate>
			<guid>http://punbb.informer.com/forums/post/119406/#p119406</guid>
		</item>
		<item>
			<title><![CDATA[Re: Guest access]]></title>
			<link>http://punbb.informer.com/forums/post/119402/#p119402</link>
			<description><![CDATA[<div class="quotebox"><cite>Garciat wrote:</cite><blockquote><p>So, you want to force all guests to login or register?</p></blockquote></div><p>Yeah,<br />First thing I want people to see is login or register.&nbsp; I was looking for some information on the coding just so I can understand it.</p><p>Cheers</p>]]></description>
			<author><![CDATA[dummy@example.com (bach)]]></author>
			<pubDate>Sun, 16 Nov 2008 13:09:36 +0000</pubDate>
			<guid>http://punbb.informer.com/forums/post/119402/#p119402</guid>
		</item>
		<item>
			<title><![CDATA[Re: Guest access]]></title>
			<link>http://punbb.informer.com/forums/post/119377/#p119377</link>
			<description><![CDATA[<p>So, you want to force all guests to login or register?</p>]]></description>
			<author><![CDATA[dummy@example.com (Garciat)]]></author>
			<pubDate>Sat, 15 Nov 2008 18:55:02 +0000</pubDate>
			<guid>http://punbb.informer.com/forums/post/119377/#p119377</guid>
		</item>
		<item>
			<title><![CDATA[Re: Guest access]]></title>
			<link>http://punbb.informer.com/forums/post/119368/#p119368</link>
			<description><![CDATA[<div class="quotebox"><cite>Garciat wrote:</cite><blockquote><div class="quotebox"><cite>bach wrote:</cite><blockquote><p>Thanks, how do you go about installing this add-on</p><p>Do you just upload them to the server, or is there a process I should follow.&nbsp; couldn&#039;t see anything on the extension forum.</p></blockquote></div><ol class="decimal"><li><p>Download the file</p></li><li><p>Unzip the file into your extensions folder (you should see the extension&#039;s folder there)</p></li><li><p>Go to <strong>Administration &gt; Extensions</strong></p></li><li><p>Install the extension</p></li><li><p>Enjoy <img src="http://punbb.informer.com/forums/img/smilies/smile.png" width="15" height="15" alt="smile" /></p></li></ol></blockquote></div><p>I have installed the extension and it works <img src="http://punbb.informer.com/forums/img/smilies/big_smile.png" width="15" height="15" alt="big_smile" /></p><p>What I was thinking is rather than having this for the login page can this be on the index page, so a user needs to login or register ?</p>]]></description>
			<author><![CDATA[dummy@example.com (bach)]]></author>
			<pubDate>Sat, 15 Nov 2008 16:29:35 +0000</pubDate>
			<guid>http://punbb.informer.com/forums/post/119368/#p119368</guid>
		</item>
		<item>
			<title><![CDATA[Re: Guest access]]></title>
			<link>http://punbb.informer.com/forums/post/119322/#p119322</link>
			<description><![CDATA[<div class="quotebox"><cite>Garciat wrote:</cite><blockquote><p>I just tried enabling/disabling it and it works <img src="http://punbb.informer.com/forums/img/smilies/smile.png" width="15" height="15" alt="smile" /></p></blockquote></div><p>Ah, yes. It must work.<br />Sorry, I&#039;ve a hard day <img src="http://punbb.informer.com/forums/img/smilies/smile.png" width="15" height="15" alt="smile" /><br />Was I right when I told about permissons for writting a file? <img src="http://punbb.informer.com/forums/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></description>
			<author><![CDATA[dummy@example.com (Parpalak)]]></author>
			<pubDate>Fri, 14 Nov 2008 17:04:45 +0000</pubDate>
			<guid>http://punbb.informer.com/forums/post/119322/#p119322</guid>
		</item>
		<item>
			<title><![CDATA[Re: Guest access]]></title>
			<link>http://punbb.informer.com/forums/post/119317/#p119317</link>
			<description><![CDATA[<div class="quotebox"><cite>bach wrote:</cite><blockquote><p>Thanks, how do you go about installing this add-on</p><p>Do you just upload them to the server, or is there a process I should follow.&nbsp; couldn&#039;t see anything on the extension forum.</p></blockquote></div><ol class="decimal"><li><p>Download the file</p></li><li><p>Unzip the file into your extensions folder (you should see the extension&#039;s folder there)</p></li><li><p>Go to <strong>Administration &gt; Extensions</strong></p></li><li><p>Install the extension</p></li><li><p>Enjoy <img src="http://punbb.informer.com/forums/img/smilies/smile.png" width="15" height="15" alt="smile" /></p></li></ol>]]></description>
			<author><![CDATA[dummy@example.com (Garciat)]]></author>
			<pubDate>Fri, 14 Nov 2008 15:49:45 +0000</pubDate>
			<guid>http://punbb.informer.com/forums/post/119317/#p119317</guid>
		</item>
		<item>
			<title><![CDATA[Re: Guest access]]></title>
			<link>http://punbb.informer.com/forums/post/119316/#p119316</link>
			<description><![CDATA[<p>I just tried enabling/disabling it and it works <img src="http://punbb.informer.com/forums/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></description>
			<author><![CDATA[dummy@example.com (Garciat)]]></author>
			<pubDate>Fri, 14 Nov 2008 15:47:12 +0000</pubDate>
			<guid>http://punbb.informer.com/forums/post/119316/#p119316</guid>
		</item>
		<item>
			<title><![CDATA[Re: Guest access]]></title>
			<link>http://punbb.informer.com/forums/post/119315/#p119315</link>
			<description><![CDATA[<div class="quotebox"><cite>bach wrote:</cite><blockquote><p>Thanks, how do you go about installing this add-on</p><p>Do you just upload them to the server, or is there a process I should follow.&nbsp; couldn&#039;t see anything on the extension forum.</p></blockquote></div><p>See instructions: <a href="http://punbb.informer.com/wiki/1.3_usage#installing_an_extension_for_punbb_1.3">http://punbb.informer.com/wiki/1.3_usag &#133; _punbb_1.3</a></p>]]></description>
			<author><![CDATA[dummy@example.com (Parpalak)]]></author>
			<pubDate>Fri, 14 Nov 2008 15:41:56 +0000</pubDate>
			<guid>http://punbb.informer.com/forums/post/119315/#p119315</guid>
		</item>
		<item>
			<title><![CDATA[Re: Guest access]]></title>
			<link>http://punbb.informer.com/forums/post/119314/#p119314</link>
			<description><![CDATA[<div class="quotebox"><cite>Garciat wrote:</cite><blockquote><p>Install this extension: <a href="http://garciat.us.to/code/punbb/extensions/small_login.zip">http://garciat.us.to/code/punbb/extensi &#133; _login.zip</a></p></blockquote></div><p>Nice <img src="http://punbb.informer.com/forums/img/smilies/smile.png" width="15" height="15" alt="smile" /></p><p>But I would make it in another way.<br />No install and uninstall section, only &#039;hd_template_loaded&#039; hook:</p><div class="codebox"><pre><code>if (FORUM_PAGE == &#039;login&#039;)
    $tpl_main =
&#039;&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Strict//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd&quot;&gt;

&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot; &lt;!-- forum_local --&gt;&gt;
&lt;head&gt;
&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=utf-8&quot; /&gt;
&lt;!-- forum_head --&gt;
&lt;/head&gt;
&lt;body&gt;

&lt;div id=&quot;brd-wrap&quot; class=&quot;brd&quot;&gt;
&lt;div &lt;!-- forum_page --&gt;&gt;

&lt;div class=&quot;hr&quot;&gt;&lt;hr /&gt;&lt;/div&gt;

&lt;div id=&quot;brd-main&quot;&gt;
    &lt;!-- forum_main --&gt;
&lt;/div&gt;

&lt;div class=&quot;hr&quot;&gt;&lt;hr /&gt;&lt;/div&gt;

&lt;/div&gt;
&lt;/div&gt;

&lt;/body&gt;
&lt;/html&gt;
&#039;;</code></pre></div><p>We avoid writting files and some other problems when extension is disabled (see <a href="http://fluxbb.org/wiki/developing_extensions#extensions_must_be_able_to_be_disabled">http://fluxbb.org/wiki/developing_exten &#133; e_disabled</a>).</p><p>I don&#039;t know whether it will work or not, but looking at your code I think it should <img src="http://punbb.informer.com/forums/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></description>
			<author><![CDATA[dummy@example.com (Parpalak)]]></author>
			<pubDate>Fri, 14 Nov 2008 15:37:39 +0000</pubDate>
			<guid>http://punbb.informer.com/forums/post/119314/#p119314</guid>
		</item>
		<item>
			<title><![CDATA[Re: Guest access]]></title>
			<link>http://punbb.informer.com/forums/post/119261/#p119261</link>
			<description><![CDATA[<p>Thanks, how do you go about installing this add-on</p><p>Do you just upload them to the server, or is there a process I should follow.&nbsp; couldn&#039;t see anything on the extension forum.</p>]]></description>
			<author><![CDATA[dummy@example.com (bach)]]></author>
			<pubDate>Thu, 13 Nov 2008 12:38:20 +0000</pubDate>
			<guid>http://punbb.informer.com/forums/post/119261/#p119261</guid>
		</item>
		<item>
			<title><![CDATA[Re: Guest access]]></title>
			<link>http://punbb.informer.com/forums/post/119260/#p119260</link>
			<description><![CDATA[<p>Install this extension: <a href="http://garciat.us.to/code/punbb/small_login.zip">http://garciat.us.to/code/punbb/small_login.zip</a></p>]]></description>
			<author><![CDATA[dummy@example.com (Garciat)]]></author>
			<pubDate>Thu, 13 Nov 2008 12:31:49 +0000</pubDate>
			<guid>http://punbb.informer.com/forums/post/119260/#p119260</guid>
		</item>
		<item>
			<title><![CDATA[Re: Guest access]]></title>
			<link>http://punbb.informer.com/forums/post/119250/#p119250</link>
			<description><![CDATA[<div class="quotebox"><cite>Garciat wrote:</cite><blockquote><p>This is as far as I could go with only making a &#039;login.tpl&#039;:</p><p><a href="http://garciat.us.to/punbb/login.php">http://garciat.us.to/punbb/login.php</a></p><p>If you want your forum to look that way, let me know.</p></blockquote></div><p>That great, how does one go about greating that?</p><p>With regard to the Guest login, I do not want any guest to be able to login/access the forum.&nbsp; This is one reason for the restricted first page. <img src="http://punbb.informer.com/forums/img/smilies/smile.png" width="15" height="15" alt="smile" /></p><p>Regards</p>]]></description>
			<author><![CDATA[dummy@example.com (bach)]]></author>
			<pubDate>Thu, 13 Nov 2008 09:07:11 +0000</pubDate>
			<guid>http://punbb.informer.com/forums/post/119250/#p119250</guid>
		</item>
		<item>
			<title><![CDATA[Re: Guest access]]></title>
			<link>http://punbb.informer.com/forums/post/119238/#p119238</link>
			<description><![CDATA[<p>I have also managed to create an extension that forces guests to log in.</p><p>If you&#039;re interested, let me know.</p>]]></description>
			<author><![CDATA[dummy@example.com (Garciat)]]></author>
			<pubDate>Thu, 13 Nov 2008 03:56:38 +0000</pubDate>
			<guid>http://punbb.informer.com/forums/post/119238/#p119238</guid>
		</item>
	</channel>
</rss>
