NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Web Design Discussion
Reload this Page help with css

Web Design Discussion Discussion of web design techniques, advice, browser issues, software, design firms.

Advanced Search
9 members in live chat ~  
NamePros Design Contests NamePros Design Contests
Forum Sponsorship
Join in on the FUN! You can start an affordable design contest and pick from entries talented members submit or you can enter a design contest for a chance to win CASH PRIZES! What are you waiting for? Get started in the fun TODAY! - Banners, Logos, Mascots, and MORE! (Please READ the design Contest section rules Prior to starting or entering a contest)



Reply
 
LinkBack Thread Tools
Old 02-20-2009, 03:38 PM THREAD STARTER               #1 (permalink)
NamePros Member
Join Date: Jan 2009
Posts: 174
jwahl16 is an unknown quantity at this point
 



help with css


ok so on my website saphiregames.com

if you look at my source code you will see this big long script for a search engine code. is there a way to put this in to css or something so it doesn't take up all that space on my page (it makes editing a hassle)

thanks guys
__________________
DSM Showcase - A website dedicated to DSM performance modifications

For Sale: ProjectClutch.com (Make an offer)
jwahl16 is offline   Reply With Quote
Old 02-23-2009, 04:18 PM   #2 (permalink)
NamePros Regular
 
FathomJH's Avatar
Join Date: Oct 2006
Location: U.S.
Posts: 413
FathomJH is a jewel in the roughFathomJH is a jewel in the roughFathomJH is a jewel in the rough
 



You could insert the code with php by creating a separate file for the search engine code. Then include (aka drop) the file into your main code using <?php include(' '); ?>.
Last edited by FathomJH; 02-23-2009 at 04:19 PM. Reason: none
FathomJH is offline   Reply With Quote
Old 02-24-2009, 07:07 PM THREAD STARTER               #3 (permalink)
NamePros Member
Join Date: Jan 2009
Posts: 174
jwahl16 is an unknown quantity at this point
 



ok this is kind of giberish to me but let me try to figure this out.

i copy code and paste it in to notepade saved as freefind.php or something. then on my site it type in <?php include9'freefind.php');?>

would that be all i need?
__________________
DSM Showcase - A website dedicated to DSM performance modifications

For Sale: ProjectClutch.com (Make an offer)
jwahl16 is offline   Reply With Quote
Old 02-24-2009, 07:37 PM   #4 (permalink)
NamePros Regular
 
FathomJH's Avatar
Join Date: Oct 2006
Location: U.S.
Posts: 413
FathomJH is a jewel in the roughFathomJH is a jewel in the roughFathomJH is a jewel in the rough
 



You got it

Take your code and save it into a file, in your case freefind.php. Then in your regular web file, wherever you want the code to appear, type:

<?php

include( 'freefind.php' );

?>

In order for the code to work, you have to save the file as index.php rather than index.html so the server can recognize the php code. Hope this helps.
FathomJH is offline   Reply With Quote
Old 02-25-2009, 03:46 AM THREAD STARTER               #5 (permalink)
NamePros Member
Join Date: Jan 2009
Posts: 174
jwahl16 is an unknown quantity at this point
 



thanks a lot!
__________________
DSM Showcase - A website dedicated to DSM performance modifications

For Sale: ProjectClutch.com (Make an offer)
jwahl16 is offline   Reply With Quote
Old 02-25-2009, 12:44 PM THREAD STARTER               #6 (permalink)
NamePros Member
Join Date: Jan 2009
Posts: 174
jwahl16 is an unknown quantity at this point
 



ok so i was going to put this in for all my pages. i put it in saphiregames.com/vector-runner.php

i get this error:

Warning: main(freefind.php) [function.main]: failed to open stream: No such file or directory in /home/www/saphiregames.com/vector-runner.php on line 10

Warning: main() [function.include]: Failed opening 'freefind.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/www/saphiregames.com/vector-runner.php on line 10



is that because freefind.php is in a folder within my directory?
__________________
DSM Showcase - A website dedicated to DSM performance modifications

For Sale: ProjectClutch.com (Make an offer)
jwahl16 is offline   Reply With Quote
Old 02-26-2009, 01:44 PM   #7 (permalink)
NamePros Regular
 
FathomJH's Avatar
Join Date: Oct 2006
Location: U.S.
Posts: 413
FathomJH is a jewel in the roughFathomJH is a jewel in the roughFathomJH is a jewel in the rough
 



Sorry about the delayed reply,

It looks like the php interpreter could not open your file. Is freefind.php located in the correct directory? If it's not in the same folder as the file calling it, you'll have to point to it like:

include( 'folder/freefind.php' );
Last edited by FathomJH; 02-26-2009 at 01:45 PM. Reason: moo
FathomJH is offline   Reply With Quote
Old 02-26-2009, 02:01 PM THREAD STARTER               #8 (permalink)
NamePros Member
Join Date: Jan 2009
Posts: 174
jwahl16 is an unknown quantity at this point
 



yeah thats probably it since i put it in a folder called php


EDIT: Thanks so much!! it works!
__________________
DSM Showcase - A website dedicated to DSM performance modifications

For Sale: ProjectClutch.com (Make an offer)
Last edited by jwahl16; 02-26-2009 at 02:10 PM.
jwahl16 is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


 
All times are GMT -7. The time now is 07:53 PM.

Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger