<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[PunBB Forums — How do I]]></title>
		<link>https://punbb.informer.com/forums/topic/8593/how-do-i/</link>
		<atom:link href="https://punbb.informer.com/forums/feed/rss/topic/8593/" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in How do I.]]></description>
		<lastBuildDate>Thu, 20 Oct 2005 00:05:19 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: How do I]]></title>
			<link>https://punbb.informer.com/forums/post/54779/#p54779</link>
			<description><![CDATA[<p>Ok, guys I accomplished it with a little brute force programming</p><p>I added a new parameter to config.php&nbsp; $db_user_prefix=&quot;xyz&quot;;</p><p>And did a search and replace like this</p><p>&#039;.$user_db_prefix.&#039;users </p><p>&#039;.$db-&gt;prefix.&#039;users </p><br /><p>manualy edited viewtopic.php</p><p>and it works !&nbsp; [Atleast as of I know, it works]</p><br /><p>thanks for all the comments</p><p>After reading the post backwards, I realized that, what I did is exactly what Smartys suggested. thanks</p>]]></description>
			<author><![CDATA[null@example.com (druvans)]]></author>
			<pubDate>Thu, 20 Oct 2005 00:05:19 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/54779/#p54779</guid>
		</item>
		<item>
			<title><![CDATA[Re: How do I]]></title>
			<link>https://punbb.informer.com/forums/post/52913/#p52913</link>
			<description><![CDATA[<div class="quotebox"><cite>Smartys wrote:</cite><blockquote><p>Except that&#039;s not the kind of thing 99% of people would want or need at any point, so it wouldn&#039;t get implemented like that <img src="https://punbb.informer.com/forums/img/smilies/tongue.png" width="15" height="15" alt="tongue" /><br />But what you&#039;re suggesting is basically what I suggested, except you&#039;re having another variable be the prefix rather then hardcoding it into the files, which is fine as well</p></blockquote></div><p>Many thanks for the reply ... <img src="https://punbb.informer.com/forums/img/smilies/big_smile.png" width="15" height="15" alt="big_smile" /></p><p>I have done some more digging (and this thread <a href="http://punbb.org/forums/viewtopic.php?id=8755">http://punbb.org/forums/viewtopic.php?id=8755</a> - thanks to Connorhd) and the following seems to work.</p><p>To test it, I installed 2 forums, one in the <strong>/master</strong> directory with <strong>master_</strong> as the prefix, the other in the <strong>/slave</strong> directory with the <strong>slave_</strong> prefix. Both were installed in the same MySql database.</p><p>On line 76 of <strong>/includes/dblayer/mysql.php</strong> file of the /slave forum, I added the 2 following lines to point the slave user and group sql queries to the master user and group tables.<br /><span style="color: blue"><br />&nbsp; &nbsp;$sql = ereg_replace($this-&gt;prefix .&quot;users&quot;, &quot;master_users&quot;, $sql);<br />&nbsp; &nbsp;$sql = ereg_replace($this-&gt;prefix .&quot;groups&quot;, &quot;master_groups&quot;, $sql);<br /></span><br />There are the obvious cookie problems to overcome, but keeping the cookie_name, domain and seed the same across the master and slave forums seemed to do the trick.</p><p>The avatar directory would also need to be shared, perhaps a directory outside of both forums.</p><p>I will need to check through all the other tables to determine what else needs to be shared, but this seems a pretty good start.</p><p>Cheers, Ian</p>]]></description>
			<author><![CDATA[null@example.com (ianpullinger)]]></author>
			<pubDate>Tue, 27 Sep 2005 09:56:24 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/52913/#p52913</guid>
		</item>
		<item>
			<title><![CDATA[Re: How do I]]></title>
			<link>https://punbb.informer.com/forums/post/52899/#p52899</link>
			<description><![CDATA[<p>set three different group, one group see all, other see one part, and the other see another part, the only problem is that i am aware of is that u can have differnt defaul skin for each skin, [i am not sure] but if they do, ur in luck</p>]]></description>
			<author><![CDATA[null@example.com (Speechless)]]></author>
			<pubDate>Tue, 27 Sep 2005 01:51:22 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/52899/#p52899</guid>
		</item>
		<item>
			<title><![CDATA[Re: How do I]]></title>
			<link>https://punbb.informer.com/forums/post/52895/#p52895</link>
			<description><![CDATA[<p>Except that&#039;s not the kind of thing 99% of people would want or need at any point, so it wouldn&#039;t get implemented like that <img src="https://punbb.informer.com/forums/img/smilies/tongue.png" width="15" height="15" alt="tongue" /><br />But what you&#039;re suggesting is basically what I suggested, except you&#039;re having another variable be the prefix rather then hardcoding it into the files, which is fine as well</p>]]></description>
			<author><![CDATA[null@example.com (Smartys)]]></author>
			<pubDate>Mon, 26 Sep 2005 22:57:06 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/52895/#p52895</guid>
		</item>
		<item>
			<title><![CDATA[Re: How do I]]></title>
			<link>https://punbb.informer.com/forums/post/52894/#p52894</link>
			<description><![CDATA[<div class="quotebox"><cite>Smartys wrote:</cite><blockquote><p>The alternative is to rewrite all calls to &#039;.$db-&gt;prefix.&#039;users to a hardcoded prefix in one of the boards</p></blockquote></div><p>Would an alternative be that during installation, the install script asked for 2 prefixes, one for the user tables and one for the forum tables. Then, all references in the code to the user prefix can be changed to reflect the new user prefix, therefore supporting the requirement for multiple forums with a single shared user table in a single database. I have not scanned the punbb code to determine the feasibility of this, so I may be &#039;off target&#039;.</p><p>Cheers, Ian</p>]]></description>
			<author><![CDATA[null@example.com (ianpullinger)]]></author>
			<pubDate>Mon, 26 Sep 2005 22:53:21 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/52894/#p52894</guid>
		</item>
		<item>
			<title><![CDATA[Re: How do I]]></title>
			<link>https://punbb.informer.com/forums/post/50718/#p50718</link>
			<description><![CDATA[<p>Well, that&#039;s a bit difficult to do <img src="https://punbb.informer.com/forums/img/smilies/tongue.png" width="15" height="15" alt="tongue" /><br />I would insert the same data in both databases on registration. And when you log in, log them into both. And in profile.php, all profile updates would have to be rewritten to update both <img src="https://punbb.informer.com/forums/img/smilies/tongue.png" width="15" height="15" alt="tongue" /><br />The alternative is to rewrite all calls to &#039;.$db-&gt;prefix.&#039;users to a hardcoded prefix in one of the boards</p>]]></description>
			<author><![CDATA[null@example.com (Smartys)]]></author>
			<pubDate>Thu, 01 Sep 2005 12:36:58 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/50718/#p50718</guid>
		</item>
		<item>
			<title><![CDATA[Re: How do I]]></title>
			<link>https://punbb.informer.com/forums/post/50717/#p50717</link>
			<description><![CDATA[<div class="quotebox"><cite>Smartys wrote:</cite><blockquote><p>You want to use the same user table, but have nothing else the same?</p></blockquote></div><p>yes</p>]]></description>
			<author><![CDATA[null@example.com (druvans)]]></author>
			<pubDate>Thu, 01 Sep 2005 12:34:22 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/50717/#p50717</guid>
		</item>
		<item>
			<title><![CDATA[Re: How do I]]></title>
			<link>https://punbb.informer.com/forums/post/50538/#p50538</link>
			<description><![CDATA[<p>You want to use the same user table, but have nothing else the same?</p>]]></description>
			<author><![CDATA[null@example.com (Smartys)]]></author>
			<pubDate>Mon, 29 Aug 2005 21:10:03 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/50538/#p50538</guid>
		</item>
		<item>
			<title><![CDATA[How do I]]></title>
			<link>https://punbb.informer.com/forums/post/50535/#p50535</link>
			<description><![CDATA[<p>How do I do this ?</p><p>I want to add 1 more forum to my site, I want use same the database[atleast the authentication], But I want the title and themes to be different.</p><p> The topics should be mutaly exclusive</p>]]></description>
			<author><![CDATA[null@example.com (druvans)]]></author>
			<pubDate>Mon, 29 Aug 2005 20:06:19 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/50535/#p50535</guid>
		</item>
	</channel>
</rss>
