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
Any way to change anchors?
Avatar
kvr28
Member
Free Members
sp_UserOfflineSmall Offline
Dec 3, 2014 - 1:04 pm

right now when you click on recent post link it will take you directly to that post, is there a way where instead say I have display set at 8 posts per topic and there are 12 posts, if the link to latest post is clicked, it will take you to the top of page 2 instead of to post number 12?

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Dec 3, 2014 - 3:10 pm

Currently no way at all I am afraid.

We could introduce a filter for you to use so that the url fragment could be removed but then it would be across the board and imposed everywhere. If you would like to do that it can be arranged.

andy-signature.png
YELLOW
SWORDFISH
Avatar
kvr28
Member
Free Members
sp_UserOfflineSmall Offline
Dec 3, 2014 - 3:12 pm

I would like to try it and see how it works, thanks yellow

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Dec 3, 2014 - 8:26 pm

the filter would be available in the next version 5.5.3...

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Dec 4, 2014 - 6:29 am

The filter will simply be called 'sph_forum_url' and the only parameter is the constructed url being requested. So it would be a simple matter to remove the post ID fragment and then return the massaged url. This will be in the 5.5.3 release.

andy-signature.png
YELLOW
SWORDFISH
Avatar
kvr28
Member
Free Members
sp_UserOfflineSmall Offline
Dec 4, 2014 - 3:30 pm

sweet, thanks!

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Dec 4, 2014 - 4:52 pm

You're welcome.
Shout nearer the time if you need advice on how to use it if you still want to. Again a custom or child theme would be useful for this.

andy-signature.png
YELLOW
SWORDFISH
Avatar
kvr28
Member
Free Members
sp_UserOfflineSmall Offline
Dec 19, 2014 - 2:42 am

where would I find this filter? and what would I do with it?

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Dec 19, 2014 - 8:25 am

I will have to come back to this later today. Struggling with it a bit as I am starting to think that WordPress might not load anythiung early enough to catch this. But will investigate further later.

andy-signature.png
YELLOW
SWORDFISH
Avatar
kvr28
Member
Free Members
sp_UserOfflineSmall Offline
Dec 19, 2014 - 8:29 am

sweet, thank-you

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: 643
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 616
Members: 17343
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10117
Posts: 79590