<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="http://fluxbb.org/forums/extern.php?action=feed&amp;type=rss&amp;tid=3072" rel="self" type="application/rss+xml" />
		<title><![CDATA[FluxBB Forums / Create / Share a Topic in More Than One prefixed-Forum]]></title>
		<link>http://fluxbb.org/forums/viewtopic.php?id=3072</link>
		<description><![CDATA[The most recent posts in Create / Share a Topic in More Than One prefixed-Forum.]]></description>
		<lastBuildDate>Tue, 21 Jul 2009 22:39:42 +0000</lastBuildDate>
		<generator>FluxBB 1.4.8</generator>
		<item>
			<title><![CDATA[Re: Create / Share a Topic in More Than One prefixed-Forum]]></title>
			<link>http://fluxbb.org/forums/viewtopic.php?pid=24566#p24566</link>
			<description><![CDATA[<div class="quotebox"><cite>lie2815 wrote:</cite><blockquote><div><p>You&#039;re gonna have quite big queries...</p></div></blockquote></div><p>You must mean because we are now querying all the forums on the other BBS, yes?<br />I don&#039;t think so.&#160; &#160;If I am not mistaken... isn&#039;t it true that the only times any forum is queried is &quot;where this user has permissions&quot; to access it in some way? <br />If true, then it should be no different than, say, adding another native forum.&#160; <br />(refer to section 7 under idea #3)</p><p>In the case of when the admin is setting permissions ...this is easily addressed by simply including a list of other BBS&#039; for the admin to select from if he/she so chooses to go there (as opposed to polling them all whenever entering the permissions section).</p><div class="quotebox"><cite>lie2815 wrote:</cite><blockquote><div><p>Also, this still does not solve the problem with, say, user IDs.<br />Let&#039;s assume there are two users with the same ID, but from different boards (pre1 and pre2). Both have permission to post in pre1_forum with ID 1. And they do. How would you know which user you are referring to?</p></div></blockquote></div><p>Ah... I am tagging the ID&#039;s so they are always unique.&#160; And its configured so that any BBS only deals with its native users.<br />Under &quot;Proposed Requirements&quot; initial list you will note...<br />&quot;1 function for always pointing users_table calls/references to the native users table&quot;</p><p>Take a careful look again at #6 thru #8.</p><p>In 8a + 8b I discuss how this should work.<br />...&quot;parse only group_ids properly encoded to &#039;thisBBS&#039;&quot;.... means as far as <em>any</em> BBS is concerned it is only dealing with its own users, whether in the domestic table or even in cases where they are added into a foreign permissions table (see #6).</p><p>I don&#039;t (yet) see a flaw in the logic, or maybe it is not explained clearly enough there ...or I am missing something?&#160; If you are spotting something there can you be more specific (so I can study it)?</p><p>Good to hear from you.&#160; Thanks for checking in.</p>]]></description>
			<author><![CDATA[dummy@example.com (twohawks)]]></author>
			<pubDate>Tue, 21 Jul 2009 22:39:42 +0000</pubDate>
			<guid>http://fluxbb.org/forums/viewtopic.php?pid=24566#p24566</guid>
		</item>
		<item>
			<title><![CDATA[Re: Create / Share a Topic in More Than One prefixed-Forum]]></title>
			<link>http://fluxbb.org/forums/viewtopic.php?pid=24459#p24459</link>
			<description><![CDATA[<p>You&#039;re gonna have quite big queries...</p><p>Also, this still does not solve the problem with, say, user IDs.<br />Let&#039;s assume there are two users with the same ID, but from different boards (pre1 and pre2). Both have permission to post in pre1_forum with ID 1. And they do. How would you know which user you are referring to?</p>]]></description>
			<author><![CDATA[dummy@example.com (Franz)]]></author>
			<pubDate>Sun, 19 Jul 2009 12:24:37 +0000</pubDate>
			<guid>http://fluxbb.org/forums/viewtopic.php?pid=24459#p24459</guid>
		</item>
		<item>
			<title><![CDATA[Re: Create / Share a Topic in More Than One prefixed-Forum]]></title>
			<link>http://fluxbb.org/forums/viewtopic.php?pid=24427#p24427</link>
			<description><![CDATA[<p>Thanks Matt.</p><p>The &#039;Short&#039; Plot for the 3rd idea might go something like...</p><p>1) - Write code that allows the current bbs to &#039;see&#039; <em>all</em> other bbs&#039; forums, period (don&#039;t even bother with coding for directly filtering forums --&gt;&gt; the code <em>already exists</em>!).</p><p>2) - Set <em>permissions</em> for users to read/post forums as usual, ...include ability (write code) for admin to also select forums from all other bbs&#039;s.</p><p>3) - Then when current user/visitor is online, your bbs lists the forums he/she has permissions to view - just as always...</p><p>Since permissions are (already built for) filtering/managing what forums are made available to view, we do not need other code to directly filter/manage display of foreign forums (as most of our discussion has seemed to focus on).</p><p>Instead, All we have to do is facilitate the db_function to allow queries to address <em>all</em> forums (in all bbs&#039;s), and simply let permissions filter forum/post listings in the normal way.</p><p>Post #28 focuses on explaining a proposal for how that might be accomplished using, primarily, a tweak to the config file and to the db_function handler.</p>]]></description>
			<author><![CDATA[dummy@example.com (twohawks)]]></author>
			<pubDate>Sat, 18 Jul 2009 04:48:11 +0000</pubDate>
			<guid>http://fluxbb.org/forums/viewtopic.php?pid=24427#p24427</guid>
		</item>
		<item>
			<title><![CDATA[Re: Create / Share a Topic in More Than One prefixed-Forum]]></title>
			<link>http://fluxbb.org/forums/viewtopic.php?pid=24426#p24426</link>
			<description><![CDATA[<div class="quotebox"><cite>twohawks wrote:</cite><blockquote><div><p>Well I hope I didn&#039;t unwittingly disrespect anyone by coming out with post #28 up there (not a peep since).</p></div></blockquote></div><p>Not at all. <img src="http://fluxbb.org/forums/img/smilies/smile.png" width="15" height="15" alt="smile" /> I personally just haven&#039;t mentioned anything further because I&#039;ve completely lost the plot now. <img src="http://fluxbb.org/forums/img/smilies/big_smile.png" width="15" height="15" alt="big_smile" /></p>]]></description>
			<author><![CDATA[dummy@example.com (MattF)]]></author>
			<pubDate>Sat, 18 Jul 2009 03:09:25 +0000</pubDate>
			<guid>http://fluxbb.org/forums/viewtopic.php?pid=24426#p24426</guid>
		</item>
		<item>
			<title><![CDATA[Re: Create / Share a Topic in More Than One prefixed-Forum]]></title>
			<link>http://fluxbb.org/forums/viewtopic.php?pid=24425#p24425</link>
			<description><![CDATA[<p>Well I hope I didn&#039;t unwittingly disrespect anyone by coming out with post #28 up there (not a peep since).&#160; </p><p>Anyway, its going to be a bit of time before I can work on this, so I would appreciate it if this thread is not closed ...I will be back when I get going on this project.</p><p>Meantime, if anyone has a notion to glance through post #28 (Idea #3) and let me know if you spot any glaring problem in that logic, I would greatly appreciate it.&#160; Short of any major &#039;bombs&#039; I think it is the one makes best sense for a tryout.</p><p>Thank you to you folks who have dropped in and offered comments and help churn up ideas.&#160; <br />Cheers,</p>]]></description>
			<author><![CDATA[dummy@example.com (twohawks)]]></author>
			<pubDate>Sat, 18 Jul 2009 02:00:12 +0000</pubDate>
			<guid>http://fluxbb.org/forums/viewtopic.php?pid=24425#p24425</guid>
		</item>
		<item>
			<title><![CDATA[Re: Create / Share a Topic in More Than One prefixed-Forum]]></title>
			<link>http://fluxbb.org/forums/viewtopic.php?pid=24299#p24299</link>
			<description><![CDATA[<p>C&#039;mon folks... new idea #3 (post 28 above).<br />Its not all that long... and its comprehensive.</p><p>Is that the better way to go?.., or did I grossly overlook something (in the logic)?</p>]]></description>
			<author><![CDATA[dummy@example.com (twohawks)]]></author>
			<pubDate>Fri, 10 Jul 2009 19:03:21 +0000</pubDate>
			<guid>http://fluxbb.org/forums/viewtopic.php?pid=24299#p24299</guid>
		</item>
		<item>
			<title><![CDATA[Re: Create / Share a Topic in More Than One prefixed-Forum]]></title>
			<link>http://fluxbb.org/forums/viewtopic.php?pid=24269#p24269</link>
			<description><![CDATA[<p>ADDENDUM to IDEA #3<br /><strong>Assigning prefixes unique id&#039;s for use in some of the new functions.</strong></p><p>• If it helps, at some point maybe we add 1 simple table that is universally accessed by all installed BBS&#039;s ...that is used for storing the BBS member&#039;s collection prefix_id&#039;s.&#160; This table has/needs no prefix (I think).</p><p>• So after we have added a prefix at any BBS config file, at any BBS there is a function that runs that <br /> - checks its own config file prefix list against this shared table<br /> - if the value is not in there, it gets added<br /> - the table assigns an auto-incrementing unique id value to the new prefix<br />...that can then be used by any new function we write for managing foreign table access or whatever.</p><p>What for...<br />Importantly, rather than having to create and track encoded group_ids on the fly, we can use this id to create unique integers for foreign storage of our native group_ids.</p><p>So for instance, <br /> - the new table assigns prefix_id values starting at 1,000,000.&#160; The auto-increment step is set to 1,000,000 as well.<br /> - when a group_id encoding function runs, it performs a table lookup for its own prefix_id<br /> - an addition is performed between the prefix_id and the current (native) group_id being handled<br /> - the result is the new group_id that gets stored for &#039;thisBBS&#039; in a foreign &#039;thatBBS&#039; table.</p><p>Now all the various BBS&#039; group_id&#039;s should be safely and uniquely stored in an automated fashion at any BBS.</p>]]></description>
			<author><![CDATA[dummy@example.com (twohawks)]]></author>
			<pubDate>Wed, 08 Jul 2009 18:53:43 +0000</pubDate>
			<guid>http://fluxbb.org/forums/viewtopic.php?pid=24269#p24269</guid>
		</item>
		<item>
			<title><![CDATA[Re: Create / Share a Topic in More Than One prefixed-Forum]]></title>
			<link>http://fluxbb.org/forums/viewtopic.php?pid=24268#p24268</link>
			<description><![CDATA[<p>All Righty Then... ready for this?...<br />------------------------------------------------------------<br /><strong>**NEW <span class="bbu">IDEA #3</span> ***</strong>&#160; &#160; ..... (BETTER????)</p><p>Okay, now wait a minute..., maybe we&#039;re making this more difficult than it really is.<br />The only time a forum is listed or accessed on any page is when a user has permission to interact with it (read/post/whatever) - right?<br />So instead of having the admin ever select a foreign forum(s), or worrying about managing/controlling listing of forums at all....<br />...why couldn&#039;t we do it strictly via managing permissions?</p><p> ***Just give the admin ability to assign forum permissions for a resident group within any one (&#039;this&#039;)BBS ...to any other (&#039;that&#039;)BBS throughout the collective?</p><p>PROPOSED REQUIREMENTS:<br />1 edit in config.php that changes prefix var to an array, and give it more prefixes,<br />1 db_class adjustment for handling prefixes from the variable array,<br />1 plugin for admin_forums.php to provide utility for setting native group permissions to foreign forums<br />1 function for encoding native group_ids for foreign storage<br />1 function for decoding native group_ids retrieved from foreign storage<br />1 function for always pointing users_table calls/references to the native users table</p><p>WHAT IT LOOKS LIKE:<br /><strong>1)</strong> edit config.php file $prefix to be an array value, and add your other BBS&#039;s prefixes to it<br /><strong>2)</strong> edit the db class to handle the prefix array value accordingly (so now all queries will run fully on native and listed foreign BBS&#039;s),<br /><strong>3)</strong> create a plugin for admin_forums.php to pull in and list foreign forums (per the config file prefixes entered),<br /><strong>4)</strong> when admin clicks &#039;edit&#039; for setting group permissions for a foreign forum, we have the usual list of native users in &#039;thisBBS&#039; come up.</p><p><span style="color: maroon">Now isn&#039;t it here where the crucial part comes in?...</span><br /><strong>5)</strong> When permission is assigned for a group, say to Read, the 1/0 value gets stored in the forum_perms table where the associated forum_id is referenced.<br /><em>***In this case</em> we would naturally be addressing the foreign &#039;thatBBS&#039;s forum_perms table and not the native one because we selected a foreign forum for assigning permissions.***<br />-------------------------<br />Now, we cannot enter our native group_ids because there could be a conflict....<br />===========================<br />So, we need to make sure our group_ids from here at &#039;thisBBS&#039; have unique number assignments to those in &#039;thatBBS&#039; table where they will get stored.</p><p>Following then from #5, What if we simply...<br /><strong>6)</strong> When clicking submit (to assign the permissions), everything is entered into the foreign forum_perms table as usual, <br />....except we augment/encode our *group_id that is being sent* in a way that makes it unique to &#039;thatBBS&#039;s native table (similar to the logic in my last [the 2nd] idea).</p><p>For now I am going to limit this to two BBS&#039;s, and so in this case when our group_id is entered into the foreign forum_perms table we are going to have the code augment our native group_id to, say, a negative number.&#160; So if our native group_id is 22, then the one entered &#039;over there&#039; is -22. <br />===========================<br /><strong>7)</strong> So now, when visiting any pages at &#039;thisBBS&#039;, ...when the code gets to running query actions for the foreign BBS it will be addressing only those foreign tables, <br />...and its going to check access/availability to any of those forums based on permissions lookup in the foreign BBS&#039;s forum_perms table...<br />...so we need to let our query know to parse only group_ids properly encoded to &#039;thisBBS&#039; (where we are querying from)....</p><p><strong>8a)</strong> So We use a single function wrapper for identifying and then parsing all our &#039;thisBBS&#039; group_id values present in the foreign forum_perms table ...for use in our foreign queries, (i.e., we correct gid/g_id variable references so they function &quot;just like normal&quot; <span class="bbu">without having to edit any queries directly</span>).</p><p><strong>8b)</strong> We are going to need another function for always pointing any users_table references to only the native users_table, and never the foreign one.</p><br /><p>THAT SHOULD DO IT.<br />Well quite possibly anyway.&#160; <br />*Probably have to build a/some shunt(s) so we don&#039;t interact with the foreign tables for things like adding users, etc... don&#039;t know, I haven&#039;t dug that deep yet.&#160; May be as easy as not applying it in certain places... <br />BUT If its true that controlling users and groups references are the key to all things (tables) in the BBS, then it seems a method based in this logic should provide an elegant solution.&#160; <br />==================================================================<br />***If this logic is sound, then it would seem that any query would run as normally as it ever would, even handling our permissions for accessing a foreign forum by obtaining the permission info right from within the foreign table; </p><p>...i.e.:&#160; no code needed for cross table special case management mumbo-jumbo (i.e., no editing queries), no fiddling with forum_ids, no added tables, no edited table structures...<br />We use just about everything just as it is <span style="color: maroon">...all is accomplished by essentially and simply storing our group_ids in an encoded fashion in the foreign group_id table, and allowing our db class to simply address all BBS&#039;s in a very natural fashion.</span></p><p>DID I MISS ANYTHING?<br />WOULDN&#039;T THIS WORK?<br />WHAT DO YOU THINK ABOUT THIS IDEA/METHOD FOR TACKLING THIS PROBLEM?</p>]]></description>
			<author><![CDATA[dummy@example.com (twohawks)]]></author>
			<pubDate>Wed, 08 Jul 2009 18:01:14 +0000</pubDate>
			<guid>http://fluxbb.org/forums/viewtopic.php?pid=24268#p24268</guid>
		</item>
		<item>
			<title><![CDATA[Re: Create / Share a Topic in More Than One prefixed-Forum]]></title>
			<link>http://fluxbb.org/forums/viewtopic.php?pid=24250#p24250</link>
			<description><![CDATA[<p>I may well have forgotten to mention that bit earlier. What&#039;s in the mind and what actually ends up being typed sometimes bear little resemblance. <img src="http://fluxbb.org/forums/img/smilies/big_smile.png" width="15" height="15" alt="big_smile" /></p><p>Keep us updated on your progress. <img src="http://fluxbb.org/forums/img/smilies/smile.png" width="15" height="15" alt="smile" /> This multi-database query stuff is something I&#039;ve been planning to get around to for quite awhile now, (due to the shonky cross database method which exists for PgSQL), but never actually done so yet due to always getting sidetracked. <img src="http://fluxbb.org/forums/img/smilies/big_smile.png" width="15" height="15" alt="big_smile" /></p>]]></description>
			<author><![CDATA[dummy@example.com (MattF)]]></author>
			<pubDate>Wed, 08 Jul 2009 09:27:25 +0000</pubDate>
			<guid>http://fluxbb.org/forums/viewtopic.php?pid=24250#p24250</guid>
		</item>
		<item>
			<title><![CDATA[Re: Create / Share a Topic in More Than One prefixed-Forum]]></title>
			<link>http://fluxbb.org/forums/viewtopic.php?pid=24240#p24240</link>
			<description><![CDATA[<p>HA! - - That was a &quot;good okay&quot;, my man!&#160; Just soaking it in.&#160; </p><p>Actually, I <em>have</em> been working up logic for scenarios based on your method both without <em>and</em> with the table you mention, its just that I don&#039;t think you had mentioned creating a table <em>before</em>, ...but I am pretty sure I am following you.</p><p>Actually, I am having a major brainwave (heads-up)... but I am waiting to see what further comments, questions, and criticism may follow first (before I presume to shift gears).</p><p>I am very grateful for all the feedback and ideas that are being offered here (you, r2, + lie2... ) -- each thing has been very compelling.&#160; Nothing&#039;s been wasted on this end.&#160; I hope the final result will reflect that.</p><p>Cheers,</p>]]></description>
			<author><![CDATA[dummy@example.com (twohawks)]]></author>
			<pubDate>Wed, 08 Jul 2009 04:32:40 +0000</pubDate>
			<guid>http://fluxbb.org/forums/viewtopic.php?pid=24240#p24240</guid>
		</item>
		<item>
			<title><![CDATA[Re: Create / Share a Topic in More Than One prefixed-Forum]]></title>
			<link>http://fluxbb.org/forums/viewtopic.php?pid=24238#p24238</link>
			<description><![CDATA[<p>Is that a good or bad okay? <img src="http://fluxbb.org/forums/img/smilies/big_smile.png" width="15" height="15" alt="big_smile" /></p><p>In it&#039;s simplest form, (explanation wise), you create a forum on both BBS&#039;s. One will contain all of the content, the other will just be a placeholder as such. However, the fact that you have two physical forums allows the use of the permissions table locally on both BBS&#039;s, so you have granular control of whom can access from where. When you connect to the forum on the local machine, (when editing, posting, viewing etc.), it&#039;s connecting to the remote DB for the content of that forum, but checking the local permissions tables for the local placeholder forum which was created.</p>]]></description>
			<author><![CDATA[dummy@example.com (MattF)]]></author>
			<pubDate>Wed, 08 Jul 2009 03:45:36 +0000</pubDate>
			<guid>http://fluxbb.org/forums/viewtopic.php?pid=24238#p24238</guid>
		</item>
		<item>
			<title><![CDATA[Re: Create / Share a Topic in More Than One prefixed-Forum]]></title>
			<link>http://fluxbb.org/forums/viewtopic.php?pid=24237#p24237</link>
			<description><![CDATA[<p>@Matt:&#160; Oh, okay.</p>]]></description>
			<author><![CDATA[dummy@example.com (twohawks)]]></author>
			<pubDate>Wed, 08 Jul 2009 03:18:39 +0000</pubDate>
			<guid>http://fluxbb.org/forums/viewtopic.php?pid=24237#p24237</guid>
		</item>
		<item>
			<title><![CDATA[Re: Create / Share a Topic in More Than One prefixed-Forum]]></title>
			<link>http://fluxbb.org/forums/viewtopic.php?pid=24236#p24236</link>
			<description><![CDATA[<p>The permissions part is the simplest part. <img src="http://fluxbb.org/forums/img/smilies/big_smile.png" width="15" height="15" alt="big_smile" /> You do actually create a native forum and set the necessary permissions on that forum locally. However, you will never actually be referencing that forums content in the local table but rather the remote table, so you have the local permissions but the remote content. As soon as you reference that local forum id, that&#039;s when the wrapper kicks in.</p>]]></description>
			<author><![CDATA[dummy@example.com (MattF)]]></author>
			<pubDate>Wed, 08 Jul 2009 00:46:44 +0000</pubDate>
			<guid>http://fluxbb.org/forums/viewtopic.php?pid=24236#p24236</guid>
		</item>
		<item>
			<title><![CDATA[Re: Create / Share a Topic in More Than One prefixed-Forum]]></title>
			<link>http://fluxbb.org/forums/viewtopic.php?pid=24235#p24235</link>
			<description><![CDATA[<div class="quotebox"><cite>lie2815 wrote:</cite><blockquote><div><p>Nontheless, there still is the problems with users etc. Since users from both installs can post in that particular forum, you would have to use both forum tables in that query.</p></div></blockquote></div><p>In my second idea there is only ever one -native- forum table that is used, so normal native permissons may be applied without issue.</p><p>Matt&#039;s method appears to always reference the foreign table directly, so it is also dealing with &quot;only one table&quot;, but because no unique records are being setup locally for the foreign forum there is no natural way (I have yet figured) to set native permissions for that. (a little more clarity appears below)</p><p>And if you meant BBS tables, I think I addressed this in the last post.</p><div class="quotebox"><cite>lie2815 wrote:</cite><blockquote><div><p> A more elegant and admin-friendly solution would be what, I think, Matt suggested: to have the possibility to let the admin mark a forum as a foreign forum. Ok, you would still have to add one column to the database table, but that&#039;s probably not avoidable completely and still better than messing up the existing stuff.&#160; So, everytime we have a query for a forum, it is first checked whether that forum is a foreign forum. If yes, we fetch the db prefix and so on...</p></div></blockquote></div><p>Matt&#039;s ideas have been critically inspiring for me (thank you, Matt!).<br />I think Matt&#039;s suggestion implies you do <em>not</em> need to edit or add any tables.&#160; No column is added in the native forum table, and that no, the <em>admin</em> doesn&#039;t mark or choose foreign forums, you/me the coder set this manually in the config file.</p><p>------------------------------------------------------------<br />I am currently walking down some relevant scenario(s) using Matt&#039;s base ideas...<br />I think it best to wait on posting those, but it may do well to mention a couple things for clarity...</p><p><strong>1) This line of reasoning appears to take off from my original [first post] suggestion, and requires that we first enter foreign BBS prefixes and forum_ids into the/a config file.&#160; </strong><br /> -- the admin doesn&#039;t have to choose foreign forums through an interface, they will simply and selectively be made available through Matt&#039;s &quot;require&quot;, and<br /> -- no forum table entries are made,<br /> -- no special column for said &quot;alt&quot; flag is created because alt is set when running the code on any given page.</p><p><strong>2) Upon view/post/edit/etc_xx.php page load, Matt&#039;s &quot;require&quot; pulls the foreign forums referencing in.</strong></p><br /><p><strong>3) A wrapper function is setup to facilitate running queries with the foreign prefix + forums references (so queries run first natively, and then run wrapped).</strong>&#160; This could probably be done without wrapping each code instance, but implementing it somehow globally (say, at the db class). </p><p>This is how I am understanding and working on Matt&#039;s ideas.<br />I have worked up two or three (logical) method scenarios, and they look very compellingly simple and elegant, but I am wrestling slightly with permissions issues with this method.&#160; &#160;<br />However, there may be a method thats somewhat a cross between Matt&#039;s idea and my (the second) idea that can tame this issue, while also removing the need for the database hacks proposed in my 2nd idea ;^)</p><p>I want to keep this short for now, so there you go. If still relevant, I will share these 2 method workups later in the conversaton.</p>]]></description>
			<author><![CDATA[dummy@example.com (twohawks)]]></author>
			<pubDate>Tue, 07 Jul 2009 23:27:31 +0000</pubDate>
			<guid>http://fluxbb.org/forums/viewtopic.php?pid=24235#p24235</guid>
		</item>
		<item>
			<title><![CDATA[Re: Create / Share a Topic in More Than One prefixed-Forum]]></title>
			<link>http://fluxbb.org/forums/viewtopic.php?pid=24234#p24234</link>
			<description><![CDATA[<p>I apologize for the long post[s] (and to you, as well, Smartys)... I have been &quot;told&quot; before.<br />I am trying to be sure that clear complete info is included so the whole picture becomes readily apparent.<br />I will try harder to be as succinct as possible...</p><div class="quotebox"><cite>lie2815 wrote:</cite><blockquote><div><p>Since users from both installs can post in that particular forum, you would have to use both forum tables in that query.</p></div></blockquote></div><p>Nope. Think about it... when users at &#039;thisBBS&#039; are accessing a forum, permissions management has nothing to do with anyone at any other BBS. Same thing applies over at &#039;thatBBS&#039;.<br />The BBS doesn&#039;t care about managing foreign permissions. (see next)</p><div class="quotebox"><cite>lie2815 wrote:</cite><blockquote><div><p>Where would the decimal value come from?</p></div></blockquote></div><p>Described in 3rd Section --&gt; &quot;NEW IDEA&quot; / &#039;Details&#039;&#160; / at #1. &quot;Create a Method for the Admin to choose...&quot; foreign forums with a checkbox.</p><p><span style="color: maroon"><strong>To Re-Summarize My/The 2nd idea (skippable):</strong></span><br /> - In 3.1: in config.php any foriegn BBS prefix identifier-labels are manually assigned into a new array variable. Those get &#039;parsed&#039; into a new table where they are given numeric labels.&#160; Those will later be pulled for use. <br /> - In 3.2: Admin_forums.php plugin pulls in full foreignBBS forums into a list (based on new table data from 3.1) The admin is provided selecting via checkboxes.<br /> - That foreign forum list has all the needed identification info including a numeric value that identifies a foreign BBS (in place of its prefix name ;^), and then also each foreign forum id number.<br /> - When a foreign forum is selected, a query runs and the forums_table update runs in the usual way creating a &#039;f_id&#039;..., <br /> - A new function takes and tweaks that auto-assigned value into the new/unique &#039;identifier code&#039; **using the foreign prefix + f_id numbers obtained above, and replaces the auto-generated f_id.</p><p>Lastly, since the forums are now included in the natural way (in the native forums table), permissions assignment can be handled normally.<br /> - admin logs into &#039;thatBBS&#039;, creates a forum, sets permissions for her users there, etc...<br /> - admin logs into &#039;thisBBS&#039;, picks a &#039;thatBBS forum, sets permissions as usual for her users here.</p><p>The BBS will only ever use its native prefix.&#160; Non-natives are always handled via an identifier-code.&#160; So when viewing and posting, the added db query function discovers and then parses any foreign identifier codes in order to query the correct tables.</p><br /><div class="quotebox"><cite>lie2815 wrote:</cite><blockquote><div><p>A decimal is not a valid integer.</p></div></blockquote></div><p>Hmmm... yeah, you are right.&#160; However, I was reading somewhere that sql will allow decimals to be placed into the Integer value structured records, ...I have to sort out if thats true.<br />That made me think, hey, the table always auto-updates one full ineger value, but we can change any value to a unique code by adding a fractional-decimal number.&#160; In this way there could always be full id-separation between foreign and native ...and right there within the native forum table.</p><p>If that won&#039;t work, then I think I would have to either...<br />1) create a new foreign forums table... but that would then change the method and require editing lots of queries, <br />OR<br />2) insert those new identifier numbers as integers either starting at some ridiculously high level (say 1,000,000,000), or using negative values,&#160; might do just as well.</p><br /><p>...I am still pondering a couple other points you brought up...<br />Really appreciate these ideas and this feedback.</p>]]></description>
			<author><![CDATA[dummy@example.com (twohawks)]]></author>
			<pubDate>Tue, 07 Jul 2009 19:56:09 +0000</pubDate>
			<guid>http://fluxbb.org/forums/viewtopic.php?pid=24234#p24234</guid>
		</item>
	</channel>
</rss>

