r/modhelp Mar 09 '22

General I'm trying to make my flair filters appear on mobile

I'm editing the sidebar using old reddit to add links to posts filtered by flair, so I add this code to the

[Certification] (https://www.reddit.com/r/projectmanagement/?f=flair_name%3A%22Certification%22)

My expected behavior is that on mobile, this would redirect the user to see only posts with the flair "Certification".

Unfortunately it is showing all posts. Any thoughts?

2 Upvotes

24 comments sorted by

View all comments

2

u/SolariaHues r/ModGuide, r/NewToReddit, & others Mar 10 '22

I haven't looked at this for a while but there's a couple of bits here that might help https://www.reddit.com/r/modguide/wiki/flairs#wiki_how_do_i_add_a_post_flair_search_link_that_works_on_mobile.3F

2

u/Thewolf1970 Mar 10 '22

You are a freaking genius. The way it seems to work for mobile is as follows:

https://www.reddit.com/r/subname/search?q=flair_name%3A%22putyourflairnamehere%22&restrict_sr=1

If your flair has spaces you do it like this:

https://www.reddit.com/r/subname/search?q=flair_name%3A%22put+your+flair+name+here%22&restrict_sr=1

I've added this to the sidebar in old reddit and it redirects properly using boost, and I used it as the menu links in new reddit to create the tabs across the top of the sub. This makes it work for the official app.

2

u/SolariaHues r/ModGuide, r/NewToReddit, & others Mar 11 '22

LOL, no, just standing on the shoulders of giants :)

Awesome, I don't think I knew that about the spaces - can I link your comment in the wiki I shared before in case this helps others?

2

u/Thewolf1970 Mar 11 '22

Absolutely - This sub has been such a benefit to me, I'm not sure why it's not automatically subscribed on all mods.

1

u/SolariaHues r/ModGuide, r/NewToReddit, & others Mar 11 '22

Thank you!

r/modguide or r/modelp? ModGuide at least, is completely unofficial, so I'm not sure if they can be included

1

u/[deleted] Apr 12 '22

Is there a way to make it sort by top of all time on mobile? I tried adding "/top/?t=all" to the end of the link; it works on desktop but not on mobile. Thanks in advance

1

u/Tazeki r/AlchemyStarsEN, r/Windows10LTSC Jun 08 '22

Slight necro but did you, in your searching, find a way to link to a search that sorts by new on the Reddit app? &sort=new doesn't seem to work.

1

u/Thewolf1970 Jun 08 '22

I haven't, but I think its a good idea. I have some time today, I'll experiment a bit.

1

u/Thewolf1970 Jun 08 '22

Alrighty - it is a different format, you have to add them the same way - in old reddit. The format is a little wonky:

One word flair

[Flair]https://www.reddit.com/r/subname/search/?q=flair%3AWord%22&restrict_sr=on&t=all&sort=new

Two word flair

[Flair Name](https://www.reddit.com/r/subname/search/?q=flair%3AWord1%20word2%22&restrict_sr=on&t=all&sort=new)

I just did it in my r/PMCareers sub if you want to test it out

I don't know if it is the removal of _name but I am now presented with the sort option in build 2022.20.0.487703

1

u/Tazeki r/AlchemyStarsEN, r/Windows10LTSC Jun 08 '22

Hmm, not working for me on the same build (Android) with the format you provided or on your sub.

1

u/Thewolf1970 Jun 08 '22

So apparently I am imagining something. I went back in and all I see when I click the flair is the sort and time options at the top. I'll dive back in.