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
Order of Pinned Topics
Avatar
B E Thrower
Member
Free Members
sp_UserOfflineSmall Offline
May 18, 2012 - 4:47 am

Hi 

I have a couple of pinned topic's in a support forum but want one to reside at the top of the forum at all times.

For example I would want a pinned topic of "Known Issues" to stay at the top and then any subsequent pinned topics to display below that.

I can't seem to see an easy way of doing this, I have seen a post regarding ordering of posts stating that the post date defines the order but I would assume that Pinned topics would be slightly different?

if it's not straight forward I'm happy to hard code the "know isses" pinned topic to stay at the top as it will need to be there all the time but would need a little direction of which file and where to place the code.

 

Cheers

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
May 18, 2012 - 4:56 am

Well of course it is easy when there is only one as it will always be at the top. The problem comes when there are more than one being pinned as the one at the very top will always be the one that had the most recent post - and that is the most recent by the post ID not the date of the post (which comes to the same post but is not so easy to manually change). So it's perhaps a little clunky but the way to force one pinned topic to always be at the top when there are more than one is to add a new post to it. So - is that possible in this case?

andy-signature.png
YELLOW
SWORDFISH
Avatar
B E Thrower
Member
Free Members
sp_UserOfflineSmall Offline
May 18, 2012 - 5:07 am

Ok would it then be possible to insert an if statement into the theme?

Along the lines of: If post_Id = X + Pinned place topic at top of group?

 

Cheer

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
May 18, 2012 - 5:19 am

Not quite as easy as that I am afraid.

About the only way I can think of - at least off the cuff - would be to use the filter once the data object has been created that displays the forum view page. This could check if it is page 1, check if it is the correct forum, and then you could re-sort the array of records to bubble a specific one to the top. Bit hairy bet do'able.

But i will give it some more serious thought while I walk the dogs!

andy-signature.png
YELLOW
SWORDFISH
Avatar
B E Thrower
Member
Free Members
sp_UserOfflineSmall Offline
May 18, 2012 - 5:25 am

I didn't think it would be quite that easy Just wishful thinking 🙂 

Might have to put it down as a feature request as I can know a bit of PHP and can tinker to an extent but that sounds out like it's a bit more involved than I can probably do at this moment in time. (time to brush up on my PHP skills I think)

 

Thanks for the reply though and enjoy walking your dogs. 

 

Cheers

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
May 18, 2012 - 6:24 am

I can't think of a better way unless we build in some alternative support to core. Such as (and this is a perhaps of course at the moment) and option to define a pinned topic to ALWAYS be at the top regardless and maybe an option to show pinned topics on every page of a forum instead of just the first page. I will open that up for a discussion here.

andy-signature.png
YELLOW
SWORDFISH
Avatar
B E Thrower
Member
Free Members
sp_UserOfflineSmall Offline
May 18, 2012 - 6:38 am

OK Thanks for your feedback on this, much appricaited. 

Definitely think it would be a nice option to have especially form the perspective of a support forum and would be a nice addition to the tool set you already have.

Thanks again.

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
May 18, 2012 - 6:41 am

Opened to discuss it here.

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: 620
Members: 17365
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10128
Posts: 79626