[pLog-svn] r2239 - plog/trunk/class/dao/userdata
Oscar Renalias
phunkphorce at gmail.com
Wed Jun 15 19:42:53 GMT 2005
http://devel.plogworld.net/ is now running integrated with the phpbb2
user data from forums.plogworld.net, try and see for yourselves :) Log
in to http://devel.plogworld.net/admin.php with the same username and
password that you use in the forums, it should work right away and you
should get a new blog created for you (in case you haven't got any
yet)
Let me know if there's any problem, but I think that at this point the
phpbb2 integration can be used as the reference implementation for
other integrations (mambo and ldap come now to my mind) If anybody is
interested in implementing other user data providers, please go ahead.
Oscar
On 6/15/05, oscar at devel.plogworld.net <oscar at devel.plogworld.net> wrote:
> Author: oscar
> Date: 2005-06-15 19:22:52 +0000 (Wed, 15 Jun 2005)
> New Revision: 2239
>
> Modified:
> plog/trunk/class/dao/userdata/phpbb2userdataprovider.class.php
> Log:
> this seems to work fine now!
>
>
> Modified: plog/trunk/class/dao/userdata/phpbb2userdataprovider.class.php
> ===================================================================
> --- plog/trunk/class/dao/userdata/phpbb2userdataprovider.class.php 2005-06-15 17:23:09 UTC (rev 2238)
> +++ plog/trunk/class/dao/userdata/phpbb2userdataprovider.class.php 2005-06-15 19:22:52 UTC (rev 2239)
> @@ -118,6 +118,8 @@
> include_once( PLOG_CLASS_PATH."class/dao/userpermissions.class.php" );
>
> $query = "SELECT * FROM ".$this->_phpbbprefix."users WHERE user_id = '".Db::qstr( $userid )."'";
> +
> +//print("user__id = $userid");
>
> $result = $this->_dbc->Execute( $query );
>
> @@ -158,7 +160,7 @@
> $article = new Article( $articleTopic,
> $articleText,
> Array( $catId ),
> - $this->_ownerId,
> + $row["user_id"],
> $newBlogId,
> POST_STATUS_PUBLISHED,
> 0,
> @@ -175,7 +177,7 @@
> include_once( PLOG_CLASS_PATH."class/dao/userpermissions.class.php" );
>
> $plogPhpBB2Data = $this->getpLogPHPBBUserData( $row["user_id"] );
> -
> +
> $row["user"] = $row["username"];
> $row["password"] = $row["user_password"];
> $row["email"] = $row["user_email"];
> @@ -203,6 +205,9 @@
> $this->phpBB2AddBlog( $row );
> $userInfo->setBlogs( $this->getUsersBlogs( $userInfo->getId()));
> }
> + else {
> + $this->log->debug("he already has one!!!");
> + }
> }
> else {
> $userInfo = BaseUserDataProvider::_mapUserInfoObject( $row );
>
> _______________________________________________
> pLog-svn mailing list
> pLog-svn at devel.plogworld.net
> http://devel.plogworld.net/mailman/listinfo/plog-svn
>
More information about the pLog-svn
mailing list