[pLog-svn] resource addition.

ma'moon soosas at gmail.com
Sun May 14 11:12:33 GMT 2006


i found the solution !!! and its working perfectly, the following lins of
code should be altered (" i'am not sure if thats right but it worked
perefectly for me !!!") :
**instead of having the following:
{
$randomBlog = array_pop( $blogs->getAllBlogs( BLOG_STATUS_ACTIVE,
ALL_BLOG_CATEGORIES, "", 1, 1) );
}
i replaced with :
{
$tmp = $blogs->getAllBlogs( BLOG_STATUS_ACTIVE, ALL_BLOG_CATEGORIES, "", 1,
1);
$randomBlog = array_pop( $tmp );
}
on line *79* in file (*/class/summary/action/summarydefaultaction.class.php)

my PHP version is (5.0.5) runing with apache2 web server, and MySQL
4.1.12RDMS under Ubuntu server.
may be this thing is PHP version related matter, i'am not sure of that, but
it worked for me.

On 5/14/06, Jon Daley <plogworld at jon.limedaley.com> wrote:
>
> On Sun, 14 May 2006, ma'moon wrote:
> > 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.
>         I don't understand what you are saying.  You can't just pick
> blogId=1, because maybe that blog doesn't exist, etc.  We just need any
> old blog to get a requestgenerator object.  I don't know how you would
> detect a "fresh" installation in the summary, and why that would make any
> difference.
>         As a side-note, it appears that the url variable gets overwritten
> in the index.template anyway - probably that should be changed?
>
> > 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.
>         Can you try changing the two xhtml conversion settings?
> _______________________________________________
> 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/a441b1e6/attachment-0001.html


More information about the pLog-svn mailing list