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
Post time display
Avatar
Conrad_Farlow
Sheffield, UK
Member
Free Members
sp_UserOfflineSmall Offline
Aug 9, 2011 - 3:08 am

No need to apologise Andy, seen the message from Steve about his availability.

Lee it works, I also added

add_filter('sph_ForumIndexLastPost', 'stack_date_time');

Which also works. I must admit I don't get the sph_ prefix though.

Avatar
Conrad_Farlow
Sheffield, UK
Member
Free Members
sp_UserOfflineSmall Offline
Aug 9, 2011 - 3:16 am

Oh one other thing, which is list view? I know Group view which is the first page, Forum view which gives a list of topics and topic view which shows a list of posts for that topic but I don't know what list view is [Image Can Not Be Found]

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Aug 9, 2011 - 4:10 am

The prefix 'sph' is our identification for an SP filter or action hook.

The List View is used for a few things: The new post list whether displayed on the front page (Group View) or from any of the post list popups. It is also used for search results. And was actually used in the iForum theme to show the topic list.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Aug 10, 2011 - 12:22 pm

All date/times are now stackable if the date/time options are used instead of the nicedate option.

The exception is the List View. Haven't decided about that one yet...

andy-signature.png
YELLOW
SWORDFISH
Avatar
Lee H
Coastal New England (USA)
Member
Free Members
sp_UserOfflineSmall Offline
Aug 10, 2011 - 4:23 pm

Nice! I'll have to check it out if and when I get a chance to svn up.

Avatar
Conrad_Farlow
Sheffield, UK
Member
Free Members
sp_UserOfflineSmall Offline
Aug 10, 2011 - 7:18 pm

Right so how do I do the stack? Do I have to still use a filter?

Avatar
Lee H
Coastal New England (USA)
Member
Free Members
sp_UserOfflineSmall Offline
Aug 10, 2011 - 8:08 pm

The new argument is called "stackdate". The default is 0. If changed to 1 the hypen we talked about earlier will vanish and be replaced with a linebreak (br tag).

Here's a example from earlier with the stackdate arg included:

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

Will have a linebreak.

No stackdate arg, or arg of stackdate=0 will result in a hypen and all in one line.

Avatar
Conrad_Farlow
Sheffield, UK
Member
Free Members
sp_UserOfflineSmall Offline
Aug 11, 2011 - 3:05 am

Yes that works great thanks a lot Lee, and of course Andy!

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Aug 11, 2011 - 4:10 am

You're welcome. These are the kinds of things we can add easily and the more we get in before we release the better for everyone.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Conrad_Farlow
Sheffield, UK
Member
Free Members
sp_UserOfflineSmall Offline
Aug 11, 2011 - 4:52 am

I agree Andy and now I know what list view is 🙂

I have a question, it's to do with these code modifications and my theme but as it is pertinent to the time display I'll put it here.

What is the best way of ensuring that I keep these slight customisations but keep the code up to date? I'm sure that there is probably some way of easily doing this using svn but I don't know how. I suppose what I want to do is check in your files from the default theme into my theme and compare the differences in an editor. There must be some clever and elegant way of doing this I suspect.

Obviously this is absolutely none urgent!

Conrad

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