<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[PunBB Forums - 4 forums in one database]]></title>
	<link rel="self" href="http://punbb.informer.com/forums/feed/atom/topic/8755/"/>
	<updated>2009-03-24T08:00:31Z</updated>
	<generator>PunBB</generator>
	<id>http://punbb.informer.com/forums/topic/8755/4-forums-in-one-database/</id>
		<entry>
			<title type="html"><![CDATA[Re: 4 forums in one database]]></title>
			<link rel="alternate" href="http://punbb.informer.com/forums/post/126042/#p126042"/>
			<content type="html"><![CDATA[<p>I did nothing, i don&#039;t work them</p>]]></content>
			<author>
				<name><![CDATA[lovekieu]]></name>
				<uri>http://punbb.informer.com/forums/user/15148/</uri>
			</author>
			<updated>2009-03-24T08:00:31Z</updated>
			<id>http://punbb.informer.com/forums/post/126042/#p126042</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: 4 forums in one database]]></title>
			<link rel="alternate" href="http://punbb.informer.com/forums/post/117007/#p117007"/>
			<content type="html"><![CDATA[<p>this works in the new version? (1.3)</p>]]></content>
			<author>
				<name><![CDATA[Xavier77]]></name>
				<uri>http://punbb.informer.com/forums/user/13378/</uri>
			</author>
			<updated>2008-07-29T16:21:35Z</updated>
			<id>http://punbb.informer.com/forums/post/117007/#p117007</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: 4 forums in one database]]></title>
			<link rel="alternate" href="http://punbb.informer.com/forums/post/116066/#p116066"/>
			<content type="html"><![CDATA[<p>How would I do this, if I have two seperate databases, i.e.</p><p>mudkips1</p><p>mudkips2</p><p>mudkips1(main)</p><p>Would I do this?</p><p>$sql = str_replace($this-&gt;prefix .&quot;users&quot;, &quot;mudkips1_users&quot;, $sql);</p>]]></content>
			<author>
				<name><![CDATA[xsdmx]]></name>
				<uri>http://punbb.informer.com/forums/user/12044/</uri>
			</author>
			<updated>2008-06-25T03:48:31Z</updated>
			<id>http://punbb.informer.com/forums/post/116066/#p116066</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: 4 forums in one database]]></title>
			<link rel="alternate" href="http://punbb.informer.com/forums/post/95852/#p95852"/>
			<content type="html"><![CDATA[<div class="quotebox"><cite>flx wrote:</cite><blockquote><p>you have to search your whole punbb folder for<br />$db-&gt;prefix.&#039;users<br />then change the prefixes</p></blockquote></div><p>it&#039;s working ?</p>]]></content>
			<author>
				<name><![CDATA[cedced]]></name>
				<uri>http://punbb.informer.com/forums/user/10548/</uri>
			</author>
			<updated>2007-06-07T05:05:53Z</updated>
			<id>http://punbb.informer.com/forums/post/95852/#p95852</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: 4 forums in one database]]></title>
			<link rel="alternate" href="http://punbb.informer.com/forums/post/95620/#p95620"/>
			<content type="html"><![CDATA[<p>Now that this has been dragged back up, <img src="http://punbb.informer.com/forums/img/smilies/big_smile.png" width="15" height="15" alt="big_smile" /> just to double check, those str_replace lines would need to go after:</p><p>function query($sql, $unbuffered = false)<br />{</p><p>in the db script?</p><br /><p>Cheers,</p><p>Matt</p>]]></content>
			<author>
				<name><![CDATA[MattF]]></name>
				<uri>http://punbb.informer.com/forums/user/9938/</uri>
			</author>
			<updated>2007-06-03T19:31:40Z</updated>
			<id>http://punbb.informer.com/forums/post/95620/#p95620</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: 4 forums in one database]]></title>
			<link rel="alternate" href="http://punbb.informer.com/forums/post/86842/#p86842"/>
			<content type="html"><![CDATA[<p>Thank you.&nbsp; I had not looked up the comand.&nbsp; I understand.<br />Cheers,</p>]]></content>
			<author>
				<name><![CDATA[twohawks]]></name>
				<uri>http://punbb.informer.com/forums/user/8442/</uri>
			</author>
			<updated>2007-02-09T00:12:06Z</updated>
			<id>http://punbb.informer.com/forums/post/86842/#p86842</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: 4 forums in one database]]></title>
			<link rel="alternate" href="http://punbb.informer.com/forums/post/86837/#p86837"/>
			<content type="html"><![CDATA[<p>If you&#039;re replacing a set string, ditch the ereg. Really.<br /></p><div class="codebox"><pre><code>$sql = str_replace($this-&gt;prefix .&quot;users&quot;, &quot;MAINFORUMPREFIXusers&quot;, $sql);
$sql = str_replace($this-&gt;prefix .&quot;groups&quot;, &quot;MAINFORUMPREFIXgroups&quot;, $sql);
$sql = str_replace($this-&gt;prefix .&quot;online&quot;, &quot;MAINFORUMPREFIXonline&quot;, $sql);
$sql = str_replace($this-&gt;prefix .&quot;forum_perms&quot;, &quot;MAINFORUMPREFIXforum_perms&quot;, $sql);
$sql = str_replace($this-&gt;prefix .&quot;reports&quot;, &quot;MAINFORUMPREFIXreports&quot;, $sql);</code></pre></div>]]></content>
			<author>
				<name><![CDATA[elbekko]]></name>
				<uri>http://punbb.informer.com/forums/user/3935/</uri>
			</author>
			<updated>2007-02-08T22:03:24Z</updated>
			<id>http://punbb.informer.com/forums/post/86837/#p86837</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: 4 forums in one database]]></title>
			<link rel="alternate" href="http://punbb.informer.com/forums/post/86835/#p86835"/>
			<content type="html"><![CDATA[<p>Followup to Tobi&#039;s method:<br />&nbsp; &nbsp;I am working on an archive method (or two, see here: <a href="http://www.punres.org/viewtopic.php?pid=13630">http://www.punres.org/viewtopic.php?pid=13630</a> )<br />and using Tobi&#039;s method for utilizing the &quot;main&quot; forum&#039;s user database for the &quot;archive&quot; forum.&nbsp; </p><p>I found it works most completely if&nbsp; I add the following lines at Line 76:<br /></p><div class="codebox"><pre><code>        $sql = ereg_replace($this-&gt;prefix .&quot;users&quot;, &quot;MAINFORUMPREFIXusers&quot;, $sql);
        $sql = ereg_replace($this-&gt;prefix .&quot;groups&quot;, &quot;MAINFORUMPREFIXgroups&quot;, $sql);
        $sql = ereg_replace($this-&gt;prefix .&quot;online&quot;, &quot;MAINFORUMPREFIXonline&quot;, $sql);
        $sql = ereg_replace($this-&gt;prefix .&quot;forum_perms&quot;, &quot;MAINFORUMPREFIXforum_perms&quot;, $sql);
        $sql = ereg_replace($this-&gt;prefix .&quot;reports&quot;, &quot;MAINFORUMPREFIXreports&quot;, $sql);</code></pre></div><p>I am sure it can be re-written to be less code, but the idea is it allows for seemingly unequivocal (comprehensive) management of the users and their permissions from a single (the main) forum.&nbsp; </p><p>Since I am using the code I thought it would be useful to post this here.<br />Cheers,</p>]]></content>
			<author>
				<name><![CDATA[twohawks]]></name>
				<uri>http://punbb.informer.com/forums/user/8442/</uri>
			</author>
			<updated>2007-02-08T21:46:02Z</updated>
			<id>http://punbb.informer.com/forums/post/86835/#p86835</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: 4 forums in one database]]></title>
			<link rel="alternate" href="http://punbb.informer.com/forums/post/81450/#p81450"/>
			<content type="html"><![CDATA[<p>Gday all,</p><p>Tobi you posted this,<br /></p><div class="quotebox"><blockquote><p>Something like</p><p>Code:<br />$sql = ereg_replace($this-&gt;prefix .&quot;users&quot;, &quot;YOURTABLEusers&quot;, $sql);<br />Should work .<br />It must be placed in line 76 of include/dblayers/mysql.php</p><p>Replace YOURTABLE with the prefix of the usertable that you want to use.</p></blockquote></div><p>dbplyers dosnt exist on my installation, im running the latest version, any solution? </p><p>Cheers, james</p>]]></content>
			<author>
				<name><![CDATA[zemond]]></name>
				<uri>http://punbb.informer.com/forums/user/8931/</uri>
			</author>
			<updated>2006-11-15T05:06:27Z</updated>
			<id>http://punbb.informer.com/forums/post/81450/#p81450</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: 4 forums in one database]]></title>
			<link rel="alternate" href="http://punbb.informer.com/forums/post/70457/#p70457"/>
			<content type="html"><![CDATA[<p>I did nothing. I had to change all my plans and work with only one forum.</p>]]></content>
			<author>
				<name><![CDATA[erinther]]></name>
				<uri>http://punbb.informer.com/forums/user/4977/</uri>
			</author>
			<updated>2006-06-08T20:09:54Z</updated>
			<id>http://punbb.informer.com/forums/post/70457/#p70457</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: 4 forums in one database]]></title>
			<link rel="alternate" href="http://punbb.informer.com/forums/post/70201/#p70201"/>
			<content type="html"><![CDATA[<p>did u set the each config.php cookie to the same thing? <br />&lt;?php</p><p>$db_type = &#039;mysql&#039;;<br />$db_host = &#039;localhost&#039;;<br />$db_name = &#039;name_forum&#039;;<br />$db_username = &#039;name_forum&#039;;<br />$db_password = &#039;bigmama&#039;;<br />$db_prefix = &#039;&#039;;<br />$p_connect = false;</p><p>$cookie_name = &#039;punbb_cookie&#039;;<br />$cookie_domain = &#039;&#039;;<br />$cookie_path = &#039;/&#039;;<br />$cookie_secure = 0;<br />$cookie_seed = &#039;275be39a&#039;; &lt;---------------------------did u set then all to the same thing?</p><p>define(&#039;PUN&#039;, 1);</p>]]></content>
			<author>
				<name><![CDATA[quaker]]></name>
				<uri>http://punbb.informer.com/forums/user/6504/</uri>
			</author>
			<updated>2006-06-05T20:33:41Z</updated>
			<id>http://punbb.informer.com/forums/post/70201/#p70201</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: 4 forums in one database]]></title>
			<link rel="alternate" href="http://punbb.informer.com/forums/post/68860/#p68860"/>
			<content type="html"><![CDATA[<p>I know that this is an old topic, but could you tell us what happened with you forums?<br />u got all the users registered for all forums but still thye have to login for each is that right?</p>]]></content>
			<author>
				<name><![CDATA[FhdQa]]></name>
				<uri>http://punbb.informer.com/forums/user/6194/</uri>
			</author>
			<updated>2006-05-22T08:16:16Z</updated>
			<id>http://punbb.informer.com/forums/post/68860/#p68860</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: 4 forums in one database]]></title>
			<link rel="alternate" href="http://punbb.informer.com/forums/post/51995/#p51995"/>
			<content type="html"><![CDATA[<p>I tried the do what FLX said, but it was no help. I did not work...</p>]]></content>
			<author>
				<name><![CDATA[erinther]]></name>
				<uri>http://punbb.informer.com/forums/user/4977/</uri>
			</author>
			<updated>2005-09-15T20:06:00Z</updated>
			<id>http://punbb.informer.com/forums/post/51995/#p51995</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: 4 forums in one database]]></title>
			<link rel="alternate" href="http://punbb.informer.com/forums/post/51952/#p51952"/>
			<content type="html"><![CDATA[<p>yes. I mean that mod. But if we had some mod for creating sub-category, then I was possible to include all my forums in only one.By the way, is there any sub-category mod for punbb?</p>]]></content>
			<author>
				<name><![CDATA[erinther]]></name>
				<uri>http://punbb.informer.com/forums/user/4977/</uri>
			</author>
			<updated>2005-09-15T02:05:56Z</updated>
			<id>http://punbb.informer.com/forums/post/51952/#p51952</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: 4 forums in one database]]></title>
			<link rel="alternate" href="http://punbb.informer.com/forums/post/51951/#p51951"/>
			<content type="html"><![CDATA[<p>You mean something like <a href="http://www.punres.org/desc.php?pid=105">this</a>?</p>]]></content>
			<author>
				<name><![CDATA[Smartys]]></name>
				<uri>http://punbb.informer.com/forums/user/1209/</uri>
			</author>
			<updated>2005-09-15T01:55:03Z</updated>
			<id>http://punbb.informer.com/forums/post/51951/#p51951</id>
		</entry>
</feed>
