Lyften Bloggie - v1.1 Entry Date and Group Access Level - ...

Items per page:

Showing 1-10 of 13 items

I was experiencing a group access level problem which could be resolved with the trick by denho by editing the administrator/components/com_lyftenbloggie/models/entry.xml
From: <param name="Access" type="access" size="20" default="0" label="Access Level" description="DETAILACCESS" />
To: <param name="access" type="access" size="20" default="0" label="Access Level" description="DETAILACCESS" />

I still got a problem with the date which causes a new access level problem in addition.
When writing a new entry and not manually selecting a publish date, the entry is automatically set to November 1999. I don't know if this is intended. I thought the current date and time would be standard. Anyway, when the date shows 1999 with group access "guest", everyone can read it.

If I manually set the date to the current date and time, no guest can see the new entry. The user has to be registered and logged in to view the entry while the access level is still set to "guest".

I'm using Lyftenbloggie 1.1.0b and Joomla 1.5.20.

Similar problem existed in older versions of LyftenBloggie.
When edited an entry from the frontend then the publish date set (no matter what was there) to November 1999.

[wabugi 11 Aug 2010 10:27:09]

I still got a problem with the date which causes a new access level problem in addition.
When writing a new entry and not manually selecting a publish date, the entry is automatically set to November 1999. I don't know if this is intended. I thought the current date and time would be standard. Anyway, when the date shows 1999 with group access "guest", everyone can read it.
I'm using Lyftenbloggie 1.1.0b and Joomla 1.5.20.
Is there a solution for the problem that works? I found an old thread with a solution but the codechanges must have been limited to a much older version of lyftenbloggie.
Hello,
You have to modify the file lyftenbloggie.php located in components/com_lyftenbloggie/models

Line 273 :
replace    $created     = $row->created;
by            $row->created = $result->created;

Regards,
Works!
Many thanks :)
Strange thing. The date is displayed correctly when watching the blog. When switching to a single entry, the date is again 1999. Is there another code to be changed?
Took me a long time going through threads and I hope this helps everyone! Inspired by this thread: http://www.lyften.com/support/forums/2-lyften-bloggie/275-solution-edit-post-date.html#post-758

Locate components\com_lyftenbloggie\models\lyftenbloggie.php

lines 272/273

Replace

        $row->text     = $row->introtext;
        $created     = $row->created;

with

        $row->created = $result->created;
        $row->created_by = $result->created_by;

Working so far. Hope it will help you too.

Mark



[wabugi 24 Aug 2010 09:12:40]

Strange thing. The date is displayed correctly when watching the blog. When switching to a single entry, the date is again 1999. Is there another code to be changed?
Thanks for your answer.

When making the additional change, the result looks as follows:
On the blog page, the date is still correctly displayed (bacause I already made one of the changes before), but the author's name is now gone.
On the single entry page, nothing has changed.

Are there maybe some different codes responsible for the single entry?

Edit:
I have just recognized, that after making the changes and switching back to the old ones, the date for all entries on the blog page has been set to september 1st (today).
I have been watching the behaviour of lyftenbloggie for 2 days now.

All entries, no matter when they have been published, are always displaying the current date as publish date. That means, that it currently displays september 3rd and will tomorrow display september 4th. Very strange.

All entries on the single entry page are still displaying November 30, 1999 as publish date.

---

I had a look into the sql tables. It seems, that lyftenbloggie saves the date as 0000-00-00 00:00:00. That should be the problem then.
Lyften just saves the date when it's manually entered during the posting process. But then, only registered users can see the posts.

I thought I already fixed the access issues... :(
From my observations, the fix posted by marckix is incorrect and actually cause the publish date to always showup as today.  This happens because $result is not defined, so it defaults to 0, which causes the created date to default to today.  I would take that out.

What I also observed is when you enter a entry in the backend and set the post date to today, everything is entered correctly, but it does not show up on the front end for 1 hour.  I do not know if this is a joomla bug but it certainly seems so because the timestamp being used to gather the information is off by 1 hour and it is retrieved from joomla.  To fix that bug, and have the post show up immediately, I edited

www/components/com_lyftenbloggie/models/lyftenbloggie.php around line121, after
  $now  = $jnow->toMySQL();
add
  $now = date('Y-m-d H:i:s');

This grabs the current date from your server through php instead of through joomla.


The final problem I saw is when you enter a post on the backend and do not set the postdate 0000-00-00 00:00:00 is automatically entered in the database causing the post date to be nov 1999.  By default I would want the post date to be at the time I am entering the post (without having to set the post date).  So to get that solution, I modified

www/components/administrator/com_lyftenbloggie/framework/core/entry.php around line 375, after
  if ($isNew)
  {
add
    if(empty($this->_entry->created)) $this->_entry->created = date('Y-m-d h:i:s');

that sets the post date to now if it is not set.

Goodluck



Items per page:

Showing 1-10 of 13 items