ph4824
06-22-2004, 09:25 AM
I want to add a domain name search box on my website but have no idea where to get this code from or if it's simple enough to do. Can anyone help please?
Thanks
Paul.
Thanks
Paul.
![]() | View Full Version : Domain Search Box On Website - How to? ph4824 06-22-2004, 09:25 AM I want to add a domain name search box on my website but have no idea where to get this code from or if it's simple enough to do. Can anyone help please? Thanks Paul. dgaussin 06-22-2004, 09:30 AM You need a whois script to check the domain name availability. Take a look at http://www.mattsscripts.co.uk/mwhois.htm Not difficult to install and maintain. David. GordonH 06-22-2004, 11:06 AM http://www.webwho.co.uk This is a simple one script install. It doesn't come any easier than this. You can hack it about to do other things quite easily. I have a version with prices displayed according to which extension it is and links to domain ordering scripts, plus the ability to set the whois server port. You can easily change the headers and footers as they are embedde din the script as html. Its a really nice bit of coding and uses less memory and processing power than things like cdomain. ph4824 06-22-2004, 11:26 AM Thats a great little scrpt, however I am a designer and code really gets me lost. I have spent a couple of hours with the script to no avail. I want to search box to replace the graphic I currently use to link me to another site. Does anyone want to help me out? GordonH 06-22-2004, 11:27 AM Just install the script, run it, copy the html from the search box it generates and oaste that into your page, first changing the form action to point to where the script actually is. ph4824 06-22-2004, 11:31 AM Yep sounds easy, but not to me, I need help with that? GordonH 06-22-2004, 11:35 AM do you have a URL where the script is running from? If I have that I can make you the HTML and paste it in here. ph4824 06-22-2004, 11:39 AM Can we chat via MSN? my username is support[@]phmultimedia.com GordonH 06-22-2004, 11:45 AM I have added you to my list but I just started my shift so am a bit busy. ph4824 06-22-2004, 11:47 AM OK maybe chat later. I have got the script to run but don't understand what you mean about copying the code to integrate it into my own website? I've just realised the time so I will follow this up later. - thanks for you help so far. GordonH 06-22-2004, 11:54 AM Look at the html source for the page the script generates and copy everything between the <form> tags including the form tags themselves. Paste that into a page. Bashar 06-22-2004, 01:52 PM have a look at phpwhois.com nice one too ph4824 06-23-2004, 05:36 AM Originally posted by GordonH Look at the html source for the page the script generates and copy everything between the <form> tags including the form tags themselves. Paste that into a page. I've managed to get it running - REMOVED - this is only a test sample of course. However, I would like the results to be displayed within my website design rather thqan an a seperate blank page. I am not using frames so how can this be done please? MOD EDIT: Please read the forum Rules (http://www.webhostingtalk.com/misc.php?s=&action=forum-rules) its not allowed tp public advertise your own company pages Bashar 06-23-2004, 05:50 AM you may want to run IFRAME into your website and include that page inside it so it doesn't jump into new page. check the programming forum (http://www.webhostingtalk.com/forumdisplay.php?s=&forumid=37) or WebDesign forum (http://www.webhostingtalk.com/forumdisplay.php?s=&forumid=43) for more info :) GordonH 06-23-2004, 05:55 AM Can you email me the page address and I will email you back witht he code. You shoul dbe able to hook into the script by html. Thats what I do. One script, but many pages with little forms for checking domains. ph4824 06-23-2004, 06:57 AM Originally posted by GordonH Can you email me the page address and I will email you back witht he code. You shoul dbe able to hook into the script by html. Thats what I do. One script, but many pages with little forms for checking domains. REMOVED Paul. MOD EDIT: Please read the forum Rules (http://www.webhostingtalk.com/misc.php?s=&action=forum-rules) its not allowed tp public advertise your own company pages GordonH 06-23-2004, 07:05 AM Thats working fine. You already took the html from the script and put it in the page. ph4824 06-23-2004, 07:11 AM Originally posted by GordonH Thats working fine. You already took the html from the script and put it in the page. Yes its working fine but I like the way you have customised yours, much better. Can you tell me how you edited the cgi page by making the browser open a new window when domain seach was clicked? and how you added your website style to the cgi page with the domain results? Paul GordonH 06-23-2004, 07:29 AM To open a new window change the form action from: <form name="defaulter" action="webwho.cgi" method="post"> to: <form name="defaulter" action="webwho.cgi" method="post" target="_blank"> To change the headers and footers open the script and look for: sub my_header() { print<<"[HTML]"; You can put any html you like between this and the [HTML] tag further down the page. You can do the same with the footer which starts at: sub my_footer { print<<"[HTML]"; You can change the fonts and colours to match your site in this section: # table colors my $webwhobar="#E0E0E0"; # WebWho bar my $input_area="#E0E0E0"; # Type in the domain my $list_names="#E0E0E0"; # Domain, result, Info my $extras="#FFC6A5"; # Available or Check action my $available="#FFE7C6"; # row of info if available my $unavailable="#FFC6A5"; # Row of info if not available my $errorbox="red"; # server down or not responding row my $details="#FFC6A5"; # Info returned on a single whois # #### PAGE # text colors However, the script I use has various alterations made to it: 1. We have additional variables in the extension arrays for port number and price. The price is then displayed in the results page. 2. The results page has links to the all extension search if the domain is taken. 3. We have a subroutine which bans certain words from registrations (e.g. paypal or escrow). This is stored in an array so its easy to add more when needed. 4. The port number can be defined for each whois server as some of the country level ones use port 44 instead of 43 for their registrar system (not the public whois which they limit access to). 5. The available links link to a second script for selecting payment type and this forwards to the correct order form. There are other changes too. Apart from the layout stuff there are only about 15 lines of the original code left. ph4824 06-23-2004, 08:40 AM Thats great Gordon - thanks. I'm working my way through your advise now and trying to understand the code. What I liked to do is when the search box is clicked a small pop up window appears with the results inside. I have a free script but the pop up window does not scroll and this would be needed. Can you point me to a pop up script that scrolls please? Thanks Paul GordonH 06-23-2004, 08:49 AM Pop up windows rely on javascript and are not really a good thing to have in an ordering process. A window.open command can open a window but you would need to be able to pass the parameters from the form to it. This is possible but not easy. |