<?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=2616" rel="self" type="application/rss+xml" />
		<title><![CDATA[FluxBB Forums / Integrating with my own login]]></title>
		<link>http://fluxbb.org/forums/viewtopic.php?id=2616</link>
		<description><![CDATA[The most recent posts in Integrating with my own login.]]></description>
		<lastBuildDate>Tue, 03 Feb 2009 10:06:05 +0000</lastBuildDate>
		<generator>FluxBB 1.4.8</generator>
		<item>
			<title><![CDATA[Re: Integrating with my own login]]></title>
			<link>http://fluxbb.org/forums/viewtopic.php?pid=21115#p21115</link>
			<description><![CDATA[<p>Then you should probably register users in both databases. You should be able to check for the user being logged in with the above script. I just fixed it.</p><p>For logging in, look at <a href="http://fluxbb.org/trac/browser/fluxbb/trunk/upload/login.php">this file (login.php)</a> from line 38-86.</p>]]></description>
			<author><![CDATA[dummy@example.com (Franz)]]></author>
			<pubDate>Tue, 03 Feb 2009 10:06:05 +0000</pubDate>
			<guid>http://fluxbb.org/forums/viewtopic.php?pid=21115#p21115</guid>
		</item>
		<item>
			<title><![CDATA[Re: Integrating with my own login]]></title>
			<link>http://fluxbb.org/forums/viewtopic.php?pid=21113#p21113</link>
			<description><![CDATA[<p>Note of clarification to lie2815: </p><div class="quotebox"><blockquote><div><p>To check if the user is logged in, do something like the following..</p></div></blockquote></div><p>Actually I want the exact opposite. The user will *not* login from FluxBB. The user will login from our website&#039;s usual login. On the FluxBB page, I simply want FluxBB to know that the user logged in. </p><p>This could happen in one of the following ways: </p><p>1. When user logs in on our usual interface, we also in the background log him into FluxBB. This automation might work well (and user table across our database and FluxBB&#039;s database can be synced). </p><p>2. Or, just &quot;spoof&quot; FluxBB into thinking that a user has logged in by setting the right cookies -- no munging around with user tables and stuff like that. </p><p>Thanks for any thoughts.</p>]]></description>
			<author><![CDATA[dummy@example.com (erick_p)]]></author>
			<pubDate>Tue, 03 Feb 2009 04:12:18 +0000</pubDate>
			<guid>http://fluxbb.org/forums/viewtopic.php?pid=21113#p21113</guid>
		</item>
		<item>
			<title><![CDATA[Re: Integrating with my own login]]></title>
			<link>http://fluxbb.org/forums/viewtopic.php?pid=21112#p21112</link>
			<description><![CDATA[<p>Thanks for this. But we already have a login system working and cannot touch it. It&#039;s a highly secure website. </p><p>The forum will have to make use of that login system instead. </p><p>As I said, I don&#039;t mind populating the FluxBB database with my own user information, and when a new user registers, FluxBB will get a user too. Would this help? </p><p>What I am looking for is to perhaps to edit some code in FluxBB&#039;s login.php which makes use of our system login. We already have cookies set for the user. How can I set the same cookies for FluxBB, or make sure that FluxBB check the same cookies? When a user logs in, we set all these cookies in one go: for us, and for FluxBB.&#160; </p><p>Your post is quite useful as it gives me some starting points to look at: common.php and login.php, but I guess I am afraid I might break some functionality in FluxBB, so I was just wondering the exact variables that may need to be set to achieve the above.&#160; </p><p>Welcome any thoughts. And btw, I&#039;m loving this fork of punbb.</p>]]></description>
			<author><![CDATA[dummy@example.com (erick_p)]]></author>
			<pubDate>Tue, 03 Feb 2009 00:24:50 +0000</pubDate>
			<guid>http://fluxbb.org/forums/viewtopic.php?pid=21112#p21112</guid>
		</item>
		<item>
			<title><![CDATA[Re: Integrating with my own login]]></title>
			<link>http://fluxbb.org/forums/viewtopic.php?pid=21110#p21110</link>
			<description><![CDATA[<p>You should use FluxBB&#039;s user table.</p><p>I hope you have a login script already set up. If not, look at FluxBB&#039;s login.php.</p><p>To check if the user is logged in, do something like the following:</p><div class="codebox"><pre><code>define(&#039;FORUM_ROOT&#039;, &#039;/path/to/your/fluxbb/root&#039;);
include FORUM_ROOT.&#039;include/functions.php&#039;;

$my_user = array();
cookie_login($my_user);

if ($my_user[&#039;is_guest&#039;])
     echo &#039;not logged in&#039;;
else
     echo &#039;logged in&#039;;</code></pre></div><p>Hope that helps.</p><br /><p>EDIT: Added include file.<br />EDIT2: Fixed include file and function name.</p>]]></description>
			<author><![CDATA[dummy@example.com (Franz)]]></author>
			<pubDate>Mon, 02 Feb 2009 15:53:49 +0000</pubDate>
			<guid>http://fluxbb.org/forums/viewtopic.php?pid=21110#p21110</guid>
		</item>
		<item>
			<title><![CDATA[Integrating with my own login]]></title>
			<link>http://fluxbb.org/forums/viewtopic.php?pid=21108#p21108</link>
			<description><![CDATA[<p>Hi. I tried searching for this but nothing relevant came up. </p><p>I already have a login for my site. I would like punbb to follow the same. So I wish to add perhaps a file in the header or something that checks for my website&#039;s login, and if a user is found, then it sets the FluxBB cookies or whatever so that FluxBB *thinks* that the user is logged in.</p><p>If needed, I can also update FluxBB user db with info of my own db, so it shows them as registered users. I also store user id, and password in md5. We don&#039;t have too many hashes and stuff like that. </p><p>Based on the above, is there any plugin/extension, or some set of instructions to integrate FluxBB on to the existing registered users? For PunBB, I found some suggestions here (vague to me) -- </p><p><a href="http://punbb.informer.com/forums/topic/17973/login-integration-logging-in-on-an-existing-site-and-punbb/">http://punbb.informer.com/forums/topic/ … and-punbb/</a></p><p>Wonder if the same will work for FluxBB too? </p><p>Thanks!</p>]]></description>
			<author><![CDATA[dummy@example.com (erick_p)]]></author>
			<pubDate>Mon, 02 Feb 2009 14:54:20 +0000</pubDate>
			<guid>http://fluxbb.org/forums/viewtopic.php?pid=21108#p21108</guid>
		</item>
	</channel>
</rss>

