Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
themes-topic
How to remove topic posting time
Avatar
Condorino47
Birmingham UK
Member
Free Members
sp_UserOfflineSmall Offline
Nov 24, 2013 - 12:42 am

Hi,
on our forum posting time is not necessary.
Therefore I would like to remove the time appearing beneath the posting date (on the topic view page).

I have already tried to modify the time format in the wordpress General Settings:
by selecting a Customer Time format -  removed the code format in that input. (just showing a blank section)
But after saving the new format did not make any difference still I can see the time.

Any idea how?
Many thanks in advance

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

Like WordPress, Simple:Press display is template driven so you will need to make a small edit to the template. In this case the spTopicView.php template in the /templates folder of the SWP theme you are using.

Locate the call to the date and time template display function which will almost certainly look like this:

sp_PostIndexUserDate('tagClass=spPostUserDate spCenter');

and change it to exclude the time element using the available argument:

sp_PostIndexUserDate('tagClass=spPostUserDate spCenter&time=0');

make sure your change is exactly as shown.

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
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: 619
Members: 17361
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625