[pLog-svn] resource addition.

ma'moon soosas at gmail.com
Sun May 14 10:05:08 GMT 2006


thats right, but if i do have this problem, then theres a big possibility
that others having the problem as well, so, is there anyway to perform a
check after the installation has been completed to see if this is a fresh
installation, if it is, then there would be no need to pick a random blog we
only need to pick the first blog, otherwise, we would have a random blog
selected from a set that contains MORE than ONE blog, i think if we did it
this way we would avoid this problem AND it would make much more sense to
pick a blog from a bunch but not from a set that contains a SINGLE blog, but
there'll be one drawback which is that everytime the summary page "or what
ever pages" calls this script it will perform this check, even though that i
guiss that it won't be that big overhead doing so.
and about the editpost problem, the older version also sufferes from it, if
you want to edit a post that contains a resource the same thing with the
same resoults happen, no matter what the editor to use, the problem is the
same in HTMLarea and tinyMCE even that i do not believe that the ediotrs
have anything to do with it.

Regards

On 5/14/06, Jon Daley <plogworld at jon.limedaley.com> wrote:
>
> On Sun, 14 May 2006, ma'moon wrote:
> > and about the the error in
> > (*/class/summary/action/summarydefaultaction.class.php) at line *79*,
> when
> > the system first run, i mean directly after the installation process, at
> > that line its going to pick a random Blog, but at that moment there
> would be
> > no blogs at all except the BlogMaster's blog "if i am not wrong !!!" so
> why
> > to pick a "random" blog at the moment that we only have "one" blog
> activated
> > in the whole system,
>         Correct.  But, as long as there is one, it is okay to pick a
> random blog from that list.  ie. I am thinking of a number between 1 and
> 1, what number do you guess I am thinking of?  1! good guess.  You can
> argue if that is the most efficient way to do it, and I think the code is
> a bit strange myself, but I haven't looked at it for more than a minute or
> two, so that might be the best way to do whatever it is trying to do.
>
> > also at that line and according to the PHP manual array_pop(),
> > *array_pop()* pops and returns the last value of the array, shortening
> > the array by one element. If array is empty (or is not an array), *NULL*
> > will be returned !!! and that might be the reason behind having this
> > error " if i am not wrong !!! ".
>         True - if there aren't any active blogs, you would get an error
> there.  I think it would be a different error than the one you got though.
> _______________________________________________
> pLog-svn mailing list
> pLog-svn at devel.lifetype.net
> http://devel.lifetype.net/mailman/listinfo/plog-svn
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http:// devel.lifetype.net/pipermail/plog-svn/attachments/20060514/e5aa5142/attachment.html


More information about the pLog-svn mailing list