Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[[+last_createdon]] issue in /chunks/post/disboardpost.chunk.tpl #35

Open
squarou opened this issue Sep 4, 2015 · 2 comments
Open

[[+last_createdon]] issue in /chunks/post/disboardpost.chunk.tpl #35

squarou opened this issue Sep 4, 2015 · 2 comments

Comments

@squarou
Copy link

squarou commented Sep 4, 2015

[[+last_createdon]] isn't showing anything in /chunks/post/disboardpost.chunk.tpl
Changed it to [[+post_last_on]]

I had to add in this line core/components/discuss/controllers/web/messages/index.class.php on line 105 :

$threadArray['post_last_on'] = strftime($this->discuss->dateFormat,strtotime($threadArray['post_last_on']));

And now can use this [[+post_last_on:ago]] in core/components/discuss/themes/sfpapa/chunks/post/disboardpost.chunk.tpl

@Nuan8
Copy link

Nuan8 commented Sep 6, 2015

Wow cool, and just to be clear, I think this is related to the "Last Post" made by a user, which can be seen in the profile view but was broken and no data was displayed.

If this is truly fixed this is pretty big. The profile info was always one of the bigger problems with discuss. Not as fundamental as a few, but pretty obviously a problem. Most problems just the admin or manager must worry about, but with this one it is clear there are problems.

I imagine the profile being really cool, with different info in different places (including site info, not all personal). Maybe one day...

@mintnl
Copy link

mintnl commented Nov 26, 2015

Hi Squarou, i don't see any placeholder by the name of [[+last_createdon]]...
Just [[+createdon]], which actually works.
:ago addition only works for me (Dutch localized) when the dateformat is like "%Y-%m-%d %H:%M:%S" in the system-settings of discuss. look for discuss.date_format.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants