{last_activity} == ? 
Posted: 14 April 2008 10:14 AM   [ Ignore ]
Member
RankRankRank
Total Posts:  63
Joined  2007-05-31

Just for clarification, is {last_activity} the most recent from any of:

{last_bulletin_date}
{last_comment_date}
{last_email_date}
{last_entry_date}
{last_forum_post_date}
{last_rating_date}
{last_view_bulletins}
{last_visit}

The reason I’m asking is because I’m seeing this:

{last_visit} == April 11th2008
{last_activity} 
== April 14th2008

Now, I’m testing on my admin account and maybe that’s the issue, but I would think that the last_visit date would be more recent (or at the very least the same day).

Also, does user provide a means by which to indicate what weblog and what entry a comment was made to or will this need to be done with a query?

Profile
 
 
Posted: 15 April 2008 06:10 AM   [ Ignore ]   [ # 1 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  701
Joined  2004-03-30

Rating date and last visit are not included in last activity as far as I know.

mk

 Signature 

Mitchell Kimbrough

Profile
 
 
Posted: 15 April 2008 06:47 AM   [ Ignore ]   [ # 2 ]
Member
RankRankRank
Total Posts:  63
Joined  2007-05-31

Thank you

Profile
 
 
Posted: 15 April 2008 09:50 AM   [ Ignore ]   [ # 3 ]
Member
RankRankRank
Total Posts:  63
Joined  2007-05-31

Sorry, I guess I have more questions:

I’m trying to come up with logic that will allow me to return, in addition to the users last_activity, a link to that content.

Simple enough so I thought...

//first determine whether or not activity is entry or comment
{if last_activity == last_comment_date}
// a bunch of stuff
// let's see if activity was an entry
{if:elseif last_activity == last_entry_date}
//some more stuff
{/if}

But it seems my assumption about the value of last_activity_date is incorrect.

My tests are showing me that this value seems not to be exactly the same as
last_comment_date or last_entry_date which obviously makes it impossible to return
either one of these comparisons as true.

So I thought I’d compare down to the minute (thinking maybe the seconds value is what was not equal).

Trouble is, I seem not to be able to apply any date formatting to last_activity other than:

{last_activity format="%F %j%S, %Y"}
//something like this "%Y%d%H%i just returns the entire tag

Here some tests illustrating what I’m seeing:

1) user with admin rights
2) user without admin rights

Any ideas on how I can get this logic working?

Profile
 
 
Posted: 17 April 2008 09:03 AM   [ Ignore ]   [ # 4 ]
Member
RankRankRank
Total Posts:  63
Joined  2007-05-31

Is there anyone who might be able to address this issue?

Profile
 
 
Posted: 17 April 2008 09:32 AM   [ Ignore ]   [ # 5 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  701
Joined  2004-03-30

If you’re only looking to show either last comment or last entry posting and nothing else, you could have a conditional like

{if last_comment_date last_entry_date}
Show last comment
{if
:else}
Show last entry
{
/if}

Otherwise I don’t think we can help. None of this is built into the User module.

mk

 Signature 

Mitchell Kimbrough

Profile