[pLog-svn] update to 1.1

Oscar Renalias oscar at renalias.net
Thu Mar 23 07:17:59 GMT 2006


On 3/23/06, Jon Daley <plogworld at jon.limedaley.com> wrote:
>         Whew.  updated one of my installs to 1.1.  The wizard needs some
> work.  I got a bunch of columns that were already created, etc, and had to
> edit the wizard manually to get it to go through.

can you tell us which things didn't work? I didn't have so many
problems with lifetype.net and my personal blog...

>         I have been really busy lately, so haven't had much time for
> lifetype stuff.  I would love to see the wizard do a lot more checking
> before it starts; I have seen a couple web installers lately that look
> quite nice - and check various things before it starts, so it doesn't end
> up screwing up stuff, such that it requires database edits (my db had an
> extra category_id field in the articles table, apparently) etc.

what's wrong with this field? It's not needed anymore... Did the
installer attempt to create it again?

Also, what other things should we check?

>
>         Anyway - things are running alright, though I don't know how the
> new caching stuff works.  I originally copied getBlogInfoByName to
> getBlogInfoByDomain (this is the new subdomain feature thingy), but a
> function is now gone, so I tried to copy it again, but I am not sure what
> to do.  Any help?
>         I think if I made a new column in the table, I could copy it more
> easily, but even then, I am not sure how to assign the cache ids.
> Presumably, I change either the CACHE_BLOGIDBYNAME or the "getId" or both.
>

let's first concentrate on getting the new functionality running and
then we'll worry about the cache :)

For starters, please add a new column if it makes it easier for you
(and faster) to find the right blog(s) based on the domain. Later on
we'll build the cache based on the column.

I believe the missing method is getBlogSettingsFromField, right? If
you make the change above, it won't be needed anyway...

>          function getBlogInfoByDomain( $blogDomain, $extendedInfo = false )
>          {
> //            require_once( PLOG_CLASS_PATH .
> 'class/dao/bloginfo.class.php' );
> //            return( $this->get( "settings", $blogName,
> CACHE_BLOGIDBYNAME, Array( CACHE_BLOGINFOS => "getId" )));
>
>
>              $query = "SELECT id, settings FROM
> ".$this->getPrefix()."blogs";
>              $result = $this->Execute( $query );
>              if( !$result )
>                  return false;
>              if( $result->RecordCount() == 0 )
>                  return false;
>
>              while($row = $result->FetchRow( $result )){
>                  $blogSettings = $this->getBlogSettingsFromField(
> $row["settings"] );
>                  if($blogSettings && $blogSettings->getValue("blog_domain")
> == $blogDomain){
>                      $blogId = $row["id"];
>                      break;
>                  }
>              }
>              $result->Close();
>              if(!isset($blogId))
>                  return false;
>              return $this->getBlogInfo( $blogId, $extendedInfo );
>          }
>
> _______________________________________________
> pLog-svn mailing list
> pLog-svn at devel.lifetype.net
> http://devel.lifetype.net/mailman/listinfo/plog-svn
>


More information about the pLog-svn mailing list