<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[PunBB Forums — Sitewide Login/User Status and Info]]></title>
		<link>https://punbb.informer.com/forums/topic/24086/sitewide-loginuser-status-and-info/</link>
		<atom:link href="https://punbb.informer.com/forums/feed/rss/topic/24086/" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Sitewide Login/User Status and Info.]]></description>
		<lastBuildDate>Thu, 29 Sep 2011 07:43:14 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Sitewide Login/User Status and Info]]></title>
			<link>https://punbb.informer.com/forums/post/141400/#p141400</link>
			<description><![CDATA[<div class="quotebox"><cite>reddeth wrote:</cite><blockquote><p>So I&#039;m trying to simply maintain user information across the site (see if the user is logged in, get the username, user id, etc) to unlock a few extra functions without having two registration/login forms. I found the code that says at the beginning of the page I add:</p><div class="codebox"><pre><code>define(&#039;FORUM_ROOT&#039;, &#039;./forum/&#039;);
require FORUM_ROOT.&#039;include/common.php&#039;;</code></pre></div><p>Basically, it&#039;s including the common.php page just fine, but no matter what I do I keep getting the same message of:</p><p>The constant FORUM_ROOT must be defined and point to a valid PunBB installation root directory. </p><p>Despite the fact that FORUM_ROOT _IS_ defined. I&#039;m lost, and I&#039;ve tinkered with this as much as I understand...</p></blockquote></div><p>It depends on where your forum is installed, and you need to use the right relative path.</p><p>For example, this line: tells to look in the <em>current</em> directory/folder for a folder called &quot;forum&quot;<br /></p><div class="codebox"><pre><code>define(&#039;FORUM_ROOT&#039;, &#039;./forum/&#039;);

example folder structure:

www
    current-folder
        forum</code></pre></div><p>Typing in &quot;../forum/&quot; tells the system go up the directory tree one step, then look for a folder called forum&quot;<br />Typing in &quot;/forum/&quot; tells the system go all the way up to the root of the tree, then look for a folder called &quot;forum&quot;</p><p>If your forum isn&#039;t in a sub-directory of your current folder, it won&#039;t find it.</p>]]></description>
			<author><![CDATA[null@example.com (the-golem)]]></author>
			<pubDate>Thu, 29 Sep 2011 07:43:14 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/141400/#p141400</guid>
		</item>
		<item>
			<title><![CDATA[Sitewide Login/User Status and Info]]></title>
			<link>https://punbb.informer.com/forums/post/140004/#p140004</link>
			<description><![CDATA[<p>So I&#039;m trying to simply maintain user information across the site (see if the user is logged in, get the username, user id, etc) to unlock a few extra functions without having two registration/login forms. I found the code that says at the beginning of the page I add:</p><div class="codebox"><pre><code>define(&#039;FORUM_ROOT&#039;, &#039;./forum/&#039;);
require FORUM_ROOT.&#039;include/common.php&#039;;</code></pre></div><p>Basically, it&#039;s including the common.php page just fine, but no matter what I do I keep getting the same message of:</p><p>The constant FORUM_ROOT must be defined and point to a valid PunBB installation root directory. </p><p>Despite the fact that FORUM_ROOT _IS_ defined. I&#039;m lost, and I&#039;ve tinkered with this as much as I understand...</p>]]></description>
			<author><![CDATA[null@example.com (reddeth)]]></author>
			<pubDate>Thu, 28 Apr 2011 03:50:39 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/140004/#p140004</guid>
		</item>
	</channel>
</rss>
