Just
What Should I
Change?
|
|
|
|
|
|
Line
to look
for:
|
-
|
Why
it's
important:
|
.
|
In our Example
above:
|
name =
|
This is the name
of your Sherlock
plug-in that everyone
will see.
If you see two
of these lines,
delete one, and enter
the name of your
Sherlock plug-in into
the other one.
|
.
|
Our
Example has
two "name=" lines. we
remove the line:
NAME="">
...and
use the other line to
enter a name for our
plug-in.
|
Note!
If you came here from
Part 5,
click
here
to return.
|
|
|
|
|
action
=
|
This line
must have a
complete web site
address
(URL)
within the
quotes.
(What
webmasters refer to
as an "absolute"
link.)
|
.
|
In
our Example, a
complete URL has
already been
given.
|
How
do I
determine
the
URL?
|
Here's a
couple of
ways:
Use the
web site
address your
wrote down
in Step
2a:
- Try
inserting
the web
site's
address
into the
"ACTION="
line.
Example:
- "ACTION=/search.cgi"
would
become:
- "ACTION="http://www.website.com/search.cgi"
where:
"http://www.website.com"
is the
address
you
wrote
down.
Finish
modifying
your
Sherlock
plug-in, and
then run it:
If it
doesn't
work, try
this:
- Run
a search
at the
web site
(Step
2c),
but this
time
watch the
area of
your
browser
where you
type in
the web
site
address
(URL): As
you
submit
the
search,
the
address
will
change.
Part of
this
address
contains
the
information
we need
for our
plug-in.
- Example:
Let's
say
the
web
site's
address
is:
"http://www.website.com/"
But:
Just
as you
hit
the
"Search"
button
on the
web
page,
you
notice
that
the
web
site's
address
suddenly
became
much
longer:
"http://www.website.com/search/text_search.cgi?
&q=&p=20&back=none&strng=imac&search=go"
The
address
(URL)
we
need
to put
into
our
plug-in's
"ACTION="
line
is:
"http://www.website.com/search/text_search.cgi"
...and
finished
line
in our
plug-in
would
be:
ACTION="http://www.website.com/search/text_search.cgi"
|
|
|
|
|
|
">"
character
|
"issp_builder"
sometimes adds an
extra one of
these:
Remove it, or the
plug-in won't
work.
|
.
|
In
our Example,
it was removed when
we removed the line:
NAME="">
|
|
|
|
|
INPUT
=
|
One of the
"INPUT" lines
corresponds to the
little box at the web
site where you type
in your search
request.
For your plug-in to
work, you must
determine which
"INPUT" line it is
and add the word
"user" to that
line.
|
.
|
After
looking at the
"INPUT" lines in our
Example, the
line to modify
is:
<input
type=text size=15
name=query>
We
change it to:
<input type=text
size=15 name=query
user>
|
How
do I
determine
which INPUT
line to
modify?
|
Here's
one
way:
|
- Review
all
the
"<INPUT"
lines
in
your
plug-in.
- Look
for
something
that
might
obviously
indicate
it's
where
the
search
strategy
is
entered.
Some
examples:
|
name=query
|
(or
some
other
name
that
looks
obvious)
|
|
size=22
|
(or
some
other
size)
|
|
value="imac"
|
(or
the
search
strategy
you
ran
in
Step
6)
|
|
Haven't
found
it?
Don't
worry,
it's
not
as
easy
as
you
think.
|
Here's
another
way:
|
- Launch
a
Web
Page
Creation
program
(like
Filemaker/Claris
Home
Page
or
Adobe's
PageMill)
- Open
the
HTML
"Input
Page"
you
saved
in
Step
2c,
and
use
the
program
to
view
the
page
in
"Edit
Page"
mode.
- Find
the
"search
box"
and
select
the
little
white
box
where
you
type
in
your
search
request.
- Now
use
the
program
to
view
the
page
in
"Source",
"HTML
Source"
or
"Page
Source"
mode.
- An
"<INPUT"
line
should
be
highlighted:
Find
this
line
in
the
plug-in
&
change
it.
|
When
you've
found
the
line
you
need
to
change,
here's
how
to
change
it:
|
If
the
line:
|
Then:
|
...has
"value=..."
|
Replace
"value=..."
with
"user"
|
...does
not
have
"value=..."
|
Add
the
word
"user"
to
the
end
of
the
line.
|
|
|
|
|
|
|
|
"# --- Choose
ONE..."
|
It's a list of
search options: You
must select only
one.
To do this, look at
the Source
(or
HTML)
of the web
page.
Tip!
|
You
can write a
Sherlock
plug-in for
each
option! Just
be sure to
give each
plug-in a
unique NAME.
This lets
you use
Sherlock to
search
multiple
options
simultaneously.
|
|
.
|
In
our Example,
there are seven
"INPUT" lines to
choose
from.
From
looking at the HTML
of the web site, we
discover
that:
<INPUT name=qtype
value=0>
corresponds
to searching the
"web". We decide to
choose this option
for our
plug-in.
|
|
|
How
do I select
which
"option" to
use?
|
Remember
the "Input
File" you
saved back
in Step
2a?
Here's where
you'll need
it!
- Open
the file
in a Web
Browser.
- View
the
page's
Source,
or
HTML.
(In
Netscape,
it's
View-->Page
Source)
- Scroll
down the
file (or
use
"Find")
to locate
the first
"INPUT"
line of
the group
you need
to select
from.
- Read
them over
&
select
one of
them.
- Return
to your
Sherlock
plug-in,
look for
that same
group of
lines,
and
remove
all of
the
"INPUT"
lines
except
the one
you
selected.
|
|
|