Is there a SQL Query to create an Attachments Badge

badge

(Channing Hinton) #1

I’m looking to create a downloads page that basically shows every post with an attachment. Is there some sort of SQL Query I can run via a badge that basically scrubs every post via regex or some other method, for attachments (html tags that would denote attached files images, classes, etc) and assigns itself to that post?


(Sam Saffron) #2

This seems like a pretty big abuse of “badges” I will be getting to “advanced search” in the next couple of months and will keep this in mind. The “correct” way would be a “search string” that finds posts with attachements.