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
Date/Time of post display
Avatar
SPQC
Member
Free Members
sp_UserOfflineSmall Offline
Feb 2, 2012 - 5:39 pm

I see it shows on 2 lines so I looked for the sp_PostIndexUserDate function and found it in sp-topic-view-functions.php and there is the option already built in to have it on the same line seprated with a dash.  If I take this route and change stackdate to 0, this will get overwritten on next update, right?

 

When people change these options here and there from default, do they must write all of them down somewhere and after every update they must edit all files again or is there a config file somewhere that keep all those changes safe from future updates?

Avatar
Brandon
U.S.
SP Wrangler
Free Members
sp_UserOfflineSmall Offline
Feb 2, 2012 - 6:19 pm

You can tell it to stack or not the date from where the function is called using an argument.

For example from your theme's spTopicView.php file it has

sp_PostIndexUserDate('tagClass=spPostUserDate spCenter');

Add the stackdate 0

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

That way you don't have to edit the core files just your theme. It is recommended that you create your own theme and not edit an existing one.

That way your changes won't be overwritten on an update. You could write down your changes and compare them to any updates but I prefer a text editor that can compare 2 text files so I don't have to remember or write anything down.

Avatar
SPQC
Member
Free Members
sp_UserOfflineSmall Offline
Feb 2, 2012 - 9:12 pm

Awesome!  I like that!  smile

 

Just in case anyone is trying the same, I had to move the &stackdate with spCenter, otherwise centering was not done.  So it gives :

 

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

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Feb 2, 2012 - 11:02 pm

yes, your implementation is correct...

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