Jump to content


Forum plugin to auto link set numbers


6 replies to this topic

#1 paulrobinson

paulrobinson

    Posts: 13
    Joined: 26-October 12
    Member: 32700

Posted 05 March 2013 - 11:42 PM

It's very common to refer to sets by there number. This is great for accuracy and it's concise, but most people don't know all the sets by number. What I normally do is google for the set to see which it is; but this is a hassle.

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?

Paul.

#2 Rufus

Rufus

  • Schnell! Schnell! Kartoffelkopf!


    Posts: 5039
    Joined: 15-July 09
    Member: 6705
    Country: England

Posted 06 March 2013 - 12:06 AM

I can't answer about whether a plugin would detect the numbers automatically, but it might run into problems with numbers in links etc.  You can always use the Set Index;   It isn't complete, but most sets are in there, I think.

[sdex]<set number>[/sdex]

Like this:

8448

I'll move this to Website & Forums.

#3 paulrobinson

paulrobinson

    Posts: 13
    Joined: 26-October 12
    Member: 32700

Posted 06 March 2013 - 12:15 AM

That looks handy. The only problem is that it relies on the poster to use it.

You might be safe by only replacing a sequence of 4 or 5 digits surrounded by white space or punctuation.

#4 dhc6twinotter

dhc6twinotter

    Posts: 1375
    Joined: 02-May 10
    Member: 10485
    Country: USA

Posted 06 March 2013 - 12:40 AM

Sounds like a good idea to me.  The aviation forum I frequent uses something similar to label airport codes.   If I place my cursor over the airport code, like LAX, then the name of the airport will appear above the airport code, which in this case, would be Los Angeles International Airport.  It's a nice feature, especially when somebody is using the airport code for some obscure airport that I've never heard of.

Something like that for LEGO set numbers would be pretty handy, IMHO.

#5 Fugazi

Fugazi

  • Welcome to Eurobricks. How can I help you?


    Posts: 3930
    Joined: 08-January 10
    Member: 8966
    Country: Canada

Posted 06 March 2013 - 01:02 AM

This has been discussed before, and as Rufus mentioned one of the concerns raised was how the software can tell when a number is a LEGO set number, and not something else (part ID, price, number of pieces, etc). I see no easy way to automate this feature without poster input (a special code to identify authentic set numbers). :look:
New Member? Read This | Questions? Need Help? Ask Here
Site Guidelines | Eurobricks FAQ | Visual User Guide

#6 Splat

Splat

    Posts: 381
    Joined: 20-August 10
    Member: 12710
    Country: MO, USA (ex AU)

Posted 06 March 2013 - 01:34 AM

While waiting for Eurobricks to implement something like this, I developed my own little 'bookmarklet' that I use.  It searches for numbers within posts, and add the set thumbnail image, as well as links to a larger image, Brickset, Bricklink, and Peeron.  I do have to activate it on each page that I visit, but I tend to find that there are only certain posts that tend to have lost of set numbers mentioned.  This could also be turned into a GreaseMonkey script so that it runs automatically.

The Javascript can be found here: http://jsfiddle.net/J9ALL/3/

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.  :sweet:


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.


#7 Someonenamedjon

Someonenamedjon

    Posts: 659
    Joined: 14-February 13
    Member: 39757
    Country: USA

Posted 06 March 2013 - 03:05 AM

Looks like a great ideal! Now i can know the sets people are referring to. :tongue:
-Jon



Reply to this topic



  


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users