Forum plugin to auto link set numbers
Posted 05 March 2013 - 11:42 PM
Does anyone know if it would it be possible to create a plugin for this forum that detected set numbers in posts and converted the set numbers to links to the set. Maybe to rebrickable, for example?
Posted 06 March 2013 - 12:06 AM
I'll move this to Website & Forums.
Posted 06 March 2013 - 12:15 AM
You might be safe by only replacing a sequence of 4 or 5 digits surrounded by white space or punctuation.
Posted 06 March 2013 - 12:40 AM
Something like that for LEGO set numbers would be pretty handy, IMHO.
Posted 06 March 2013 - 01:02 AM
Site Guidelines | Eurobricks FAQ | Visual User Guide
Posted 06 March 2013 - 01:34 AM
Info about 'bookmarklets' can be found here: http://en.wikipedia....iki/Bookmarklet
Info about GreaseMonkey can be found here: http://en.wikipedia....ki/Greasemonkey
Is it perfect? No.
Does it incorrectly match prices, piece counts, and years? Yes.
Are there other 'false positives'? Yes.
But... it works well enough for me.
Edit: This forum didn't like the code that I tried to include. Go to the JSFiddle Page to see the code.
Edited by Splat, 06 March 2013 - 01:40 AM.
Posted 06 March 2013 - 03:05 AM
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users