Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
general-topic
Actual date instead for example 3 days ago
Avatar
Condorino47
Birmingham UK
Member
Free Members
sp_UserOfflineSmall Offline
Nov 25, 2013 - 3:36 am

When looking at the forum front page, I can see under the LAST POST and the USERNAME

Posted 1 days ago or 1month ago etc..

I would really to display instead the actual date and not the XXXXXX ago.

Thanks in advance for suggestions

Antonio

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Nov 25, 2013 - 4:35 am

As Simple:Press is template driven in the same way as WordPress, this will require a small edit to a display template - in this case the spGroupView.php template located in the /templates folder of the SP theme that you are using.

The display function that displays the last post date is (and probably looks like) this:

sp_ForumIndexLastPost('tagClass=spInRowPostLink&nicedate=1&date=0&time=0&stackdate=0', __sp('Last Post'), __sp('No Topics'));

You can set it the way you want it by changing the 'nicedate' value from 1 to 0 (zero meaning off) and the 'date' an 'time' values from 0 to 1 (1 meaning on).

As always we recommend that you create your own SP theme so that any customisation is not lost during a future update. (http://codex.simple-press.com/.....g-a-theme/)

andy-signature.png
YELLOW
SWORDFISH
Avatar
Condorino47
Birmingham UK
Member
Free Members
sp_UserOfflineSmall Offline
Nov 28, 2013 - 12:43 am

Yellow Swordfish said
As Simple:Press is template driven in the same way as WordPress, this will require a small edit to a display template - in this case the spGroupView.php template located in the /templates folder of the SP theme that you are using.

The display function that displays the last post date is (and probably looks like) this:

sp_ForumIndexLastPost('tagClass=spInRowPostLink&nicedate=1&date=0&time=0&stackdate=0', __sp('Last Post'), __sp('No Topics'));

You can set it the way you want it by changing the 'nicedate' value from 1 to 0 (zero meaning off) and the 'date' an 'time' values from 0 to 1 (1 meaning on).

As always we recommend that you create your own SP theme so that any customisation is not lost during a future update. (http://codex.simple-press.com/.....g-a-theme/)

Thank you

The same situation is when I'm looking and all topics listed under a forum:

On the 4th column there is:
First Post - administrator - 2 weeks ago
and on the 5th column :
Last Post - administrator - 2 weeks ago

On both columns I would like to replace the xxxxxxx.ago with actual date as I did spGroupView.phpfor the forum front page.

 Thanks again

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Nov 28, 2013 - 1:16 am

yes... just have to do similar change to those template functions... in sp_ForumView.php template file...

sp_topicindexfirstpost() - (http://codex.simple-press.com/.....firstpost/)

sp_topicindexlastpost() - (http://codex.simple-press.com/.....xlastpost/)

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 620
Members: 17365
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10128
Posts: 79626