Cable Forum

Cable Forum (https://www.cableforum.uk/board/index.php)
-   Internet Discussion (https://www.cableforum.uk/board/forumdisplay.php?f=25)
-   -   Website search function (https://www.cableforum.uk/board/showthread.php?t=21669)

printerman 20-12-2004 14:16

Website search function
 
Hi,
i'm designing my works website. Its my first web design and its slow going but i'm getting there. We are a bit skint (very skint!) at present and can't afford someone to do it for us so i said i'd do it. I'm getting along fine but i don't know html so i'm using an editor to do it. What i really want is to be able to add a search function which sits at the side of the left hand page in the middle. I don't want any adverts, popups, little logos on the bottom of the seach function. I just want search and a box. End of......
Can someone please help me get some brownie points and tell me where i can get one for free. All the ones i've come accross have adds with them.

Thanks in advance of any help

altis 20-12-2004 14:27

Re: Website search function
 
You can use Google and limit the search to one particular site viz:

http://www.google.co.uk/search?q=pri...bleforum.co.uk

printerman 20-12-2004 14:56

Re: Website search function
 
Thats GREAT!!! Sorry i don't like being spoonfed but how do i get this via my own webpage....? I like what its doing but i don't know how to do it.?

altis 20-12-2004 15:12

Re: Website search function
 
Can you run any server-side scripts, like PHP, or are you restricted to just client-side stuff, like Javascript?

printerman 20-12-2004 15:29

Re: Website search function
 
I'm sorry i have no idea....i'm just doing the site content and design ....who and how its hosted is beyond me. I know this doesn't help but its really all i know.

altis 20-12-2004 15:37

Re: Website search function
 
Looks like you'll have to stick to Javascript then. This is a shame 'cos not all browsers have Javascript enabled. Because it can do nasty things - like fiddle with your registry :eek: - Javascript is often disabled within many organisations.

Anyway, give me a while and I'll try to work something out....

printerman 20-12-2004 15:45

Re: Website search function
 
thats great...thankyou very much.

themelon 20-12-2004 15:52

Re: Website search function
 
For ease of use jobbies I generally use this from google.

It may only work if you site has been crawled by google spiders though:

Just replace 'www.cableforum.co.uk' with whatever your site is:

<HTML>
<BODY>
<FORM method=Get action="http://www.google.com/search">
<TABLE bgcolor="#FFFFFF">
<tr>
<td>
<INPUT TYPE=text name=q size=25 maxlength=255 value=""><INPUT type=submit name=btnG VALUE="Search">
<input type=hidden name=domains value="http://www.cableforum.co.uk"><br>
<input type=radio name=sitesearch value="">World Wide Web<input type=radio name=sitesearch value="http://www.cableforum.co.uk" checked> Your website
</td>
</tr>
</TABLE>
</FORM>
</BODY>
</HTML>

Position it where you want on the page, you can play around with the number currently '25' to make the text box smaller.

You can play around with the formatting to your hearts content once its inserted in a table or div. It depends exactly what your size requirements are. :)

printerman 20-12-2004 16:26

Re: Website search function
 
Thats fantastic!! I've edited it so...


<HTML>
<BODY>
<FORM method=Get action="http://www.google.com/search">
<TABLE bgcolor="#FFFFFF">
<tr>
<td>
<INPUT TYPE=text name=q size=15 maxlength=255 value="">
<INPUT type=submit name=btnG VALUE="Search">
<input type=hidden name=domains value="<A href="http://www.mywebsite.com"><br">http://www.mywebsite.com"><br>
</td>
</tr>
</TABLE>
</FORM>
</BODY>
</HTML>
Am i right in thinknig this will search MY SITE ONLY.
Very simple for some but completely new to me!! Thankyou very!!! MUCH!

daxx 20-12-2004 16:34

Re: Website search function
 
hint: do a few searches yourself to get the google spider to go along and trawl the new site for info before you 'go live', alternatively post the link on here and no doubt a few of us will 'help you along'

themelon 20-12-2004 16:45

Re: Website search function
 
Quote:

Originally Posted by printerman
Thats fantastic!! I've edited it so...


Am i right in thinknig this will search MY SITE ONLY.
Very simple for some but completely new to me!! Thankyou very!!! MUCH!

Just having a look, dont think the above will work. See if I can fix it :)

Caspar 20-12-2004 16:53

Re: Website search function
 
Ive just PM'd you printerman ;)

themelon 20-12-2004 16:58

Re: Website search function
 
This should do it

<FORM ACTION="http://www.google.com/search" method=get>
<div align="center">
Find in this site:
<br>
<input type="hidden" name="output" value="myresults">
<input type="hidden" name="sitesearch" value="www.cableforum.co.uk">
<input type=text name=q size=10>
<input type=submit value="Search" name="submit">
<br>
</font></div>
</FORM>

MetaWraith 20-12-2004 17:35

Re: Website search function
 
Complete instructions for how to add Google to your own pages
http://www.google.com/searchcode.html

printerman 20-12-2004 19:36

Re: Website search function
 
Thats great. I'll try it again tomorrow when i'm at work ..i'll let you know how i get on.....

printerman 21-12-2004 08:21

Re: Website search function
 
Thanks caspar thats a very nice offer. Works very busy but the fact the firm is a bit skint is making me look at the roles different people have in the place and there value to our employee( if you say what i'm saying). I'd love to say yes, but i can get a lot of brownie points for doing this (especially that my boss the production manager has handed in his notice this morning!, a complete coincidence) and now there is a new position going.



Thanks again for the offer and any future help you might want to give is much appreciated.

Thanks again and have a good xmas!

ikthius 21-12-2004 08:25

Re: Website search function
 
I think the google suggestion is best, I personally tried it ages ago, but it did not work for my site, maybe I never had enough hits.

ik

printerman 21-12-2004 09:07

Re: Website search function
 
Thankyou all very much for your help....


Can i ask one more question?!

If i want to use pictures whats the best format (bmp, jpeg) and also what is the best quality to use..i read somewhere that after a certain point it doesn't get any better it just takes longer to load
Thanks again.

altis 21-12-2004 09:59

Re: Website search function
 
Try this thread:

http://www.cableforum.co.uk/board/showthread.php?t=6064

ikthius 21-12-2004 13:14

Re: Website search function
 
jpegs, are probably the best to load, they are quick, BMPs are slow because they are larger in kilobytes

ik

printerman 22-12-2004 16:55

Re: Website search function
 
I'm sorry!!!! I know i'm being a pest but i need more help....i'm cracking along great guns thanks to all your help....small file sizes for pictures etc....very help!
I need another favour.....i'm after a customer enquiry box....just a box about the same size as i'm typing in right now. With send button on the bottom.....i know i'm always after freebies but i just can't do it...i've tried to edit the other search function themelon did for me but i don't know what i'm doing. I was going to say this will be the last thing i need but i know i'd be lying 'cos there is bound to be something else.

Thanks guys and gals.

ikthius 22-12-2004 17:07

Re: Website search function
 
you can make a text area in html, and you can make the buttons and submit, but where will you be submitting the text to?

ik

ikthius 22-12-2004 17:10

Re: Website search function
 
the bits you change in themellons post I have highleighted red change them to your webpages home do not forget the last / e.g. www.woskf.co.uk/

<HTML>
<BODY>
<FORM method=Get action="http://www.google.com/search">
<TABLE bgcolor="#FFFFFF">
<tr>
<td>
<INPUT TYPE=text name=q size=25 maxlength=255 value=""><INPUT type=submit name=btnG VALUE="Search">
<input type=hidden name=domains value="http://www.cableforum.co.uk"><br>
<input type=radio name=sitesearch value="">World Wide Web<input type=radio name=sitesearch value="http://www.cableforum.co.uk" checked> Name of Your website
</td>
</tr>
</TABLE>
</FORM>
</BODY>
</HTML>

printerman 22-12-2004 17:40

Re: Website search function
 
I'll be submitting it as an email to our sales department.

Mr_love_monkey 22-12-2004 17:48

Re: Website search function
 
you're going to need formmail, or php or something like that to do that

printerman 22-12-2004 19:33

Re: Website search function
 
Ah! Okay, thanks for the info....i've been trying to stay away from having our email address directly on our website, so that we don't get spam.....if i have it as a link (an icon or something) will the spam software still be able to see the address as source code or will it be less likely to attract spam?

ikthius 22-12-2004 20:18

Re: Website search function
 
some spider type programs can search websites for such addresses, and spam through them.

ik

printerman 22-12-2004 22:17

Re: Website search function
 
hmmm, so you are saying i'm going to get spam whatever i do?

ikthius 22-12-2004 23:10

Re: Website search function
 
if you put your website up, you may get spammed, but I haven't yet, and my site has been up for 1 year now.

but I get spam to my ntl account which I hardly ever give out.

ik

printerman 07-01-2005 08:47

Re: Website help again!
 
Hi all,
I showed the site i'd/we'd put together to my boss and he's very pleased so thank you all very much.I know i'm a pest BUT i have another little problem! My page has 8 hyperlinks along the top of the page. When you click a link it changes from black to our company colour(blueish). The first link on the far left is obvoiusly black to start with but this link takes you back to the home page (index.html) which is my opening page (if you see what i mean). Right, when you click one of the other 7 links the first one changes colour. I guess its soemthing to do with the coding as it leaves the first page but i don't want it turning blue when i haven't clicked on it.

Wheoowww,, hope that makes sense.

Remeber i'm using a editor(webplus) which isn't great but i can't code html so i'm doing the best i can..

Thanks in advance for any help all...when this site is finished and up, i'll post a link so you can see my/(YOUR) work...and please don't tear me apart too much.

bob_a_builder 07-01-2005 09:17

Re: Website search function
 
I think you'll find the link to the home page on the subsequent pages is changing colour because its now become a 'visited' link

To control the colours of your hyperlinks you will need to use a stylesheet to force your requirments on the <A tags

something like this
<style>
A:link {color: Blue; Text-decoration: underline; }
A:visited {color: Blue; Text-decoration: underline; }
A:active {color: Red; Text-decoration: underline; }
A:hover {color: Red; Text-decoration: underline; }
</style>

ikthius 07-01-2005 09:34

Re: Website search function
 
yeah, you have colours for link, visited link and active link, you could change the colours to suit, but I personally think it is good to have these colours seperate because it lets people know where they have been before/at

ik
EDIT: I look forward to your link

printerman 19-01-2005 14:09

Re: Website
 
Hello again!
still at it.....! Is there anyway i can make my page centre when a display is on a higher resolution....my actual display is 800x600 but when i up it to 1024x768 my page is on the left.....How can i make it centre so it still looks nice.?

Thanks in advance all!

Richard M 19-01-2005 14:21

Re: Website search function
 
You could use the following CSS code (put it in the <head>) but IE does not support it due to poor CSS support, virtually all new browsers do though:
Code:

<style type="text/css">
html>body {
    width: 800px;
    margin-left: auto;
    margin-right: auto;
    }
</style>


ikthius 19-01-2005 22:09

Re: Website search function
 
or use html and put a center tag at the start of the body:
<body>
<center>

your other tags and info

</center>
</body>

Bifta 19-01-2005 22:11

Re: Website search function
 
Quote:

Originally Posted by ikthius
or use html and put a center tag at the start of the body:
<body>
<center>

your other tags and info

</center>
</body>

The <center> tag is deprecated, you should use <div align=center>content here</div>

printerman 23-03-2005 12:06

Re: Website
 
Well,
i know its taken a while but i'm there...finished.....took bl**dy ages but there you go, when you are doing it for free for a few hours per day thats how long it takes (well me anyway). Now i'm ready to go.
I'm waiting for the password from my boss to our webspace host so i can actually post it up.
Now what.?! How do i make us appear in search engine 'searches'.?

When its up i'll post the link so you can look if you want. PLEASE don't take the p**s too much. Its my first EVER website design in the world EVER!

Thanks to everyone who helped me along the way....much appreciated.

G

Millay 23-03-2005 12:28

Re: Website search function
 
The first place to submit it to is www.dmoz.org then by having a link on here will help it get picked up by search engines. basically the more places that link to it the better.

It can and probably willtake a couple of months before it turns up in the search engines.

printerman 31-03-2005 16:53

Re: Website search function
 
Right!!! I really am finished now.....Both of my directors have agreed that it is good enough to put up. There are a few things i don't like that they do (i'm right of course!), but nevermind.

Anyway..I'm with Easily.co.uk. I've published my site to a webfolder( due to easily not supporting FTP) and i'm going to upload the files (one at a time it seems is the only way with easily!).

I've NEVER done this before (the website or the uploading)...does any one have any tips(for the uploading only.......i'm going to start doing it at 9ish tomorrow morning!
Thanks all.
P.

ikthius 31-03-2005 23:33

Re: Website search function
 
yes get filezilla and use that to upload your files.

as long as your web site links ok offline, it should link ok online.

if any files are in a folder put that folder online.

as long as you ahve the username and password for the webspace, all you have to do in an ftp program is drag and drop files from one side (your computer) to the other side (the internet space)

ik

printerman 01-04-2005 09:13

Re: Website search function
 
Right guys its up,but i have a little problem... Along the bottom i had a small scrolling message. It was associated with a proscroll.class code or something. I've uploaded all of the required files but i just get a grey bar along the bottom....Can anyone tell me why it happened and how to fix it...


The address is www.aci-solutions.net
__________________

Fixed it.........any way...like i've mentioned a thousand times! Its my first site so any constructive criticism would be nice, but please don't just slag me off!!!!


Thanks All for your help along the way!

P.

ikthius 01-04-2005 10:54

Re: Website search function
 
1 Attachment(s)
printerman,

I had a look, and I hope that there is no april fool on my part, cause everytime I access your site, my browser crashes, no other site does this.

it takes over all tabs, and stops them responding.

but I did see a small part of your site, I noticed that you have a very bad thing on your site, called a MARQUEE they are not liked very much.

and I have noticed this with Firefox: pics covering links, I have attached an image.

ik

printerman 01-04-2005 14:06

Re: Website search function
 
Okay. Thankyou for the info....yes firefox does have something strange going on. I've tried it with the scrolling text and without and it is just the same....hummm tricky one this.....also tried exporting as an html 2 and not html 4 and it is still the same.......any ideas?


All times are GMT. The time now is 05:15.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
All Posts and Content are © Cable Forum