To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.publishOpen lugnet.publish in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Publishing / 560
559  |  561
Subject: 
Re: Idea for automatic Lugnet Set Database linking
Newsgroups: 
lugnet.off-topic.geek, lugnet.publish
Date: 
Sun, 11 Jul 1999 07:24:50 GMT
Viewed: 
24 times
  
That's a great idea! I would love to see this!  How about detecting any
three or four digit numbers and linking them to the search page.

just run this every 5-10 min.:

#!/bin/sh
filetmp1=/tmp/hypertmp1
filetmp2=/tmp/hypertmp2
filelist=/tmp/hyperlist
newsroot=/var/news/
#
cd ${newsroot}
du -a > ${filelist}
for f in ${filelist}
do
  sed 's/[0-9][0-9][0-9][0-9]/<a
href=http:\/\/www.lugnet.com\/pause\/search\/?=&><\/a>/g' ${f}
${filetmp1}
  sed 's/[0-9][0-9][0-9]/<a
href=http:\/\/www.lugnet.com\/pause\/search\/?=&><\/a>/g' ${filetmp1} >
${filetmp2}
  mv ${filetmp} ${f}
done

That would be really REALLY cool!

KL

Hari Wiguna wrote:

I was copy pasting URL to Lugnet set database onto my email client when I
realized how HANDY it would be if all LEGO set numbers are automatically
shown as hotlinks to the lugnet set database!

So, you'll be reading a Lugnet posting, and the author mentioned 8880.
This will AUTOMATICALLY appear as a hotlink, click it and a new window will
open with this info
http://www.lugnet.com/pause/search/?query=8880
You continue reading the message while seeing the set info.

This would be an awesome feature in Lugnet's web newsreader.
And I bet it's not really all that difficult to do.
Just search the text (subject and posted message content) for three or four
digit numbers, and add the proper URL to do a set search.

Since this is only performed as a post processing just prior to displaying
on the web newsreader, the message will still be readable by everyone
without the extra gunk.

If Todd wants to get ambitious, he can even verify that those # are real set
# before doing the hotlinking.

Anyone out there on the mozilla group?  How about Outlook Express team?
Same idea can be applied to a stand alone newsreader.

Granted that there will be false links, but I think people would be willing
to NOT click on those.
Also got to be smart enough NOT to create the hotlink if number is ALREADY
part of a URL.

-Hari-



Message has 1 Reply:
  Re: Idea for automatic Lugnet Set Database linking
 
(...) Yikes! -- Kevin, surely you jest! :) Problems with the general approach above: * Iterates over tens of thousands of files every few minutes, rewriting each one whether it needs to or not. Doesn't track which articles have and have not yet been (...) (25 years ago, 11-Jul-99, to lugnet.off-topic.geek, lugnet.publish)

Message is in Reply To:
  Idea for automatic Lugnet Set Database linking
 
I was copy pasting URL to Lugnet set database onto my email client when I realized how HANDY it would be if all LEGO set numbers are automatically shown as hotlinks to the lugnet set database! So, you'll be reading a Lugnet posting, and the author (...) (25 years ago, 11-Jul-99, to lugnet.off-topic.geek, lugnet.publish)

12 Messages in This Thread:







Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact

This Message and its Replies on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR