Make a donation

Author Topic: New Post Filters  (Read 11167 times)

Offline th3_f15t

  • Just look at my post count
  • ******
  • Thank You
  • -Given: 66
  • -Receive: 183
  • Posts: 2676
  • My Ride: http://www.mk5golfgti.co.uk/forum/index.php/topic,101525.0.html
New Post Filters
« on: December 19, 2014, 12:21:16 pm »
Bit of a long shot, but is there a way of implementing some sort of auto-check on new posts to search for a selection of key words or phrases? Thinking that if it's possible, set it up so that when people post the same old "what mods do I choose" or "what are common problems", the forum itself can suggest a sticky post/relevant section to search in?

Might help the moderators out and reduce the number of repeated discussions on the forum...

Moving over to Flickr, sorry for the broken picture links!

Offline rich83

  • Just look at my post count
  • ******
  • Thank You
  • -Given: 165
  • -Receive: 802
  • Posts: 13444
    • MK5 Golf GTI
  • My Ride: https://www.mk5golfgti.co.uk/forum/index.php?PHPSESSID=nomh0ca8jk6j2jbrqvk9k46pdv&/topic,19740.0.html
Re: New Post Filters
« Reply #1 on: December 19, 2014, 12:57:04 pm »
Would probably be quite hard to implement so that it was actually any use...

@dazza ??

Offline dazza

  • Admin
  • Just look at my post count
  • *
  • Thank You
  • -Given: 90
  • -Receive: 190
  • Posts: 2133
  • Coding Boffin
    • Email
  • My Ride: https://www.mk5golfgti.co.uk/forum/index.php?PHPSESSID=nomh0ca8jk6j2jbrqvk9k46pdv&/topic,90967.msg917089.html#msg917089
Re: New Post Filters
« Reply #2 on: December 19, 2014, 02:53:47 pm »
It may be possible to add an ajax search to the topic title so as you type it will bring up topics with similar titles.

05 | Tornado Red | DSG

Offline dazza

  • Admin
  • Just look at my post count
  • *
  • Thank You
  • -Given: 90
  • -Receive: 190
  • Posts: 2133
  • Coding Boffin
    • Email
  • My Ride: https://www.mk5golfgti.co.uk/forum/index.php?PHPSESSID=nomh0ca8jk6j2jbrqvk9k46pdv&/topic,90967.msg917089.html#msg917089
Re: New Post Filters
« Reply #3 on: December 19, 2014, 05:45:25 pm »
OK i found a mod but the search function is sh*t.

It also adds similar topics to the bottom of topic page. (can be removed) not looked at the relevance of these.

I've rebuilt the search using boolean search function but it ignores certain words (what where etc)
So if you type "what are the common problems" it will only match the text in red

@th3_f15t A bit of testing please.

@rich83 you can also disable it from certain boards and limit results to the current board

05 | Tornado Red | DSG

Offline rich83

  • Just look at my post count
  • ******
  • Thank You
  • -Given: 165
  • -Receive: 802
  • Posts: 13444
    • MK5 Golf GTI
  • My Ride: https://www.mk5golfgti.co.uk/forum/index.php?PHPSESSID=nomh0ca8jk6j2jbrqvk9k46pdv&/topic,19740.0.html
Re: New Post Filters
« Reply #4 on: December 19, 2014, 06:35:14 pm »
Extra server load. Not sure the posts at the bottom of the pages are really much help.

Offline dazza

  • Admin
  • Just look at my post count
  • *
  • Thank You
  • -Given: 90
  • -Receive: 190
  • Posts: 2133
  • Coding Boffin
    • Email
  • My Ride: https://www.mk5golfgti.co.uk/forum/index.php?PHPSESSID=nomh0ca8jk6j2jbrqvk9k46pdv&/topic,90967.msg917089.html#msg917089
Re: New Post Filters
« Reply #5 on: December 19, 2014, 06:42:46 pm »
ok and the related topics as you type?

05 | Tornado Red | DSG

Offline rich83

  • Just look at my post count
  • ******
  • Thank You
  • -Given: 165
  • -Receive: 802
  • Posts: 13444
    • MK5 Golf GTI
  • My Ride: https://www.mk5golfgti.co.uk/forum/index.php?PHPSESSID=nomh0ca8jk6j2jbrqvk9k46pdv&/topic,19740.0.html
Re: New Post Filters
« Reply #6 on: December 19, 2014, 06:46:55 pm »
ok and the related topics as you type?

Yeah that's cool. Looks a bit messy but its a nice feature.

Offline dazza

  • Admin
  • Just look at my post count
  • *
  • Thank You
  • -Given: 90
  • -Receive: 190
  • Posts: 2133
  • Coding Boffin
    • Email
  • My Ride: https://www.mk5golfgti.co.uk/forum/index.php?PHPSESSID=nomh0ca8jk6j2jbrqvk9k46pdv&/topic,90967.msg917089.html#msg917089
Re: New Post Filters
« Reply #7 on: December 19, 2014, 06:57:47 pm »
Yeah that's cool. Looks a bit messy but its a nice feature.
Didn't want to waste my time making it look pretty. If its a keeper i will tidy it up a bit.

05 | Tornado Red | DSG

Offline th3_f15t

  • Just look at my post count
  • ******
  • Thank You
  • -Given: 66
  • -Receive: 183
  • Posts: 2676
  • My Ride: http://www.mk5golfgti.co.uk/forum/index.php/topic,101525.0.html
Re: New Post Filters
« Reply #8 on: December 20, 2014, 11:02:41 am »
Been having a play, certainly works well for what I was thinking, hoping it encourages more using of older posts for the newer guys. I don't think it's too untidy, but maybe some other key words (which it didn't recognise) like PCV, DV, GTI ect.

Moving over to Flickr, sorry for the broken picture links!

Offline dazza

  • Admin
  • Just look at my post count
  • *
  • Thank You
  • -Given: 90
  • -Receive: 190
  • Posts: 2133
  • Coding Boffin
    • Email
  • My Ride: https://www.mk5golfgti.co.uk/forum/index.php?PHPSESSID=nomh0ca8jk6j2jbrqvk9k46pdv&/topic,90967.msg917089.html#msg917089
Re: New Post Filters
« Reply #9 on: December 20, 2014, 12:04:29 pm »
With full text search words with 3 or less characters are ignored. On my server i have changes this to include 3 letter words.

I can do this on here if its ok with @rich83 

For now i've hacked in the following PCV, DV, GTI, GT, R32, RS3, RS4, 510, 310, RNS, RCD, DSG, CAM, K03, K04 if there are any others please let me know.
« Last Edit: December 20, 2014, 12:11:21 pm by dazza »

05 | Tornado Red | DSG

Offline rich83

  • Just look at my post count
  • ******
  • Thank You
  • -Given: 165
  • -Receive: 802
  • Posts: 13444
    • MK5 Golf GTI
  • My Ride: https://www.mk5golfgti.co.uk/forum/index.php?PHPSESSID=nomh0ca8jk6j2jbrqvk9k46pdv&/topic,19740.0.html
Re: New Post Filters
« Reply #10 on: December 20, 2014, 12:19:26 pm »
All search terms are fine by me providing the server can handle it.... make the minimum 2 and see what happens.

Offline dazza

  • Admin
  • Just look at my post count
  • *
  • Thank You
  • -Given: 90
  • -Receive: 190
  • Posts: 2133
  • Coding Boffin
    • Email
  • My Ride: https://www.mk5golfgti.co.uk/forum/index.php?PHPSESSID=nomh0ca8jk6j2jbrqvk9k46pdv&/topic,90967.msg917089.html#msg917089
Re: New Post Filters
« Reply #11 on: December 20, 2014, 12:22:31 pm »
All search terms are fine by me providing the server can handle it.... make the minimum 2 and see what happens.
It should not affect the server as the main search is handled by sphinx now. Will set it to 3 and hack in some two letter words.

05 | Tornado Red | DSG

Offline rich83

  • Just look at my post count
  • ******
  • Thank You
  • -Given: 165
  • -Receive: 802
  • Posts: 13444
    • MK5 Golf GTI
  • My Ride: https://www.mk5golfgti.co.uk/forum/index.php?PHPSESSID=nomh0ca8jk6j2jbrqvk9k46pdv&/topic,19740.0.html
Re: New Post Filters
« Reply #12 on: December 20, 2014, 12:30:38 pm »
Doesnt sphinx still run off the VPN though?

Offline dazza

  • Admin
  • Just look at my post count
  • *
  • Thank You
  • -Given: 90
  • -Receive: 190
  • Posts: 2133
  • Coding Boffin
    • Email
  • My Ride: https://www.mk5golfgti.co.uk/forum/index.php?PHPSESSID=nomh0ca8jk6j2jbrqvk9k46pdv&/topic,90967.msg917089.html#msg917089
Re: New Post Filters
« Reply #13 on: December 20, 2014, 01:26:20 pm »
Done.
Hacked in DV and GT are there any other 2 letter words we need to add?

05 | Tornado Red | DSG

Offline th3_f15t

  • Just look at my post count
  • ******
  • Thank You
  • -Given: 66
  • -Receive: 183
  • Posts: 2676
  • My Ride: http://www.mk5golfgti.co.uk/forum/index.php/topic,101525.0.html
Re: New Post Filters
« Reply #14 on: December 20, 2014, 01:58:50 pm »
Not that I can think of and to be honest, only the really common ones need to be in there as other searches that use acronyms will probably be by users who know how to search the forum before posting.

On the subject of server load, it it worth having a clear down of certain sections (like the for sale and general sections) to reduce the amount of posts the servers must search through every time?

Moving over to Flickr, sorry for the broken picture links!