|
| |
|
|
CelticDragon
Posts: 227 Joined: 11/14/2003 From: Dublin, Ireland Status: offline
|
I'm lazy - is there an easy way to do this? - 4/27/2006 5:22:55
Hi guys... I'm trying to get a standard "designed by [my company]" link in the footer of every site I do (They are all my sites so I'm not spamming) and have it point to a standard page with links to other sites. I am planning on using the css file I have on my company site to make sure the look of all the pages is the same but what I'd really like to do is be able to update one file say on my site and have that be drawn from all the other pages on the other sites.... Is it possible to do this without frames as this will not help my linking, or maybe this is not a good idea? I know that one of our competitors has this done on every site their webdesigner has done and they feature very highly in searches.... Am I just going to have to get up off my A$$ and copy each page to each site when I update one? Thanks for reading... Stephen
_____________________________
I Lost My Stuff - If you lost it, someone found it!
|
|
|
|
Tailslide
Posts: 6290 Joined: 5/10/2005 From: Out here on the raggedy edge Status: offline
|
RE: I'm lazy - is there an easy way to do this? - 4/27/2006 5:35:57
You could use includes - either PHP or SSI. It would mean initially writing in the include call into every page but once done, you could just edit the include file in future and it would update to all the other pages.
_____________________________
"My strategy is so simple an idiot could have devised it" Little Blue Plane Web Design | Blood, Sweat & Rust - A Land Rover restoration project
|
|
|
|
CelticDragon
Posts: 227 Joined: 11/14/2003 From: Dublin, Ireland Status: offline
|
RE: I'm lazy - is there an easy way to do this? - 4/27/2006 5:59:12
Hey guys... did a quick search and got some info... I'm now trying to use a .php file with this code only
<head>
<? include(" http://www.jigsawenterprises.com/index.htm" ) ?>
</head>
But I'm getting the error message
Warning: main( http://www.mydomain.com/index.htm): failed to open stream: No such file or directory in /home/c33009/public_html/jigsaw-enterprises.php on line 3
Warning: main(): Failed opening ' http://www.mydomain.com/index.htm' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/c33009/public_html/jigsaw-enterprises.php on line 3
_____________________________
I Lost My Stuff - If you lost it, someone found it!
|
|
|
|
CelticDragon
Posts: 227 Joined: 11/14/2003 From: Dublin, Ireland Status: offline
|
RE: I'm lazy - is there an easy way to do this? - 4/27/2006 6:23:39
I don't want to have the signature pointing to my site, I want it to point to a page on the host site with all our details. I want to be able to update that page remotely on all my sites, for example when I change the description of the link or add another site it will automatically have all my sites pointing to the new site or reworded links...
_____________________________
I Lost My Stuff - If you lost it, someone found it!
|
|
|
|
Tailslide
Posts: 6290 Joined: 5/10/2005 From: Out here on the raggedy edge Status: offline
|
RE: I'm lazy - is there an easy way to do this? - 4/27/2006 7:01:27
With PHP what you'd want to try including would be just a txt file with your link in it - nothing else at all - literally just <a href="whatever">Site by Celtic Dragon</a> No other markup or code of any sort.
_____________________________
"My strategy is so simple an idiot could have devised it" Little Blue Plane Web Design | Blood, Sweat & Rust - A Land Rover restoration project
|
|
|
|
Tailslide
Posts: 6290 Joined: 5/10/2005 From: Out here on the raggedy edge Status: offline
|
RE: I'm lazy - is there an easy way to do this? - 4/27/2006 8:35:26
Yeah you could do that. Just have the markup you want to appear in the txt file be it a list of links or whatever. A list of links is probably best semantically plus you could style it how ever you want on the page where it appears.
_____________________________
"My strategy is so simple an idiot could have devised it" Little Blue Plane Web Design | Blood, Sweat & Rust - A Land Rover restoration project
|
|
|
|
CelticDragon
Posts: 227 Joined: 11/14/2003 From: Dublin, Ireland Status: offline
|
RE: I'm lazy - is there an easy way to do this? - 4/27/2006 8:48:34
So what would I have in the by-me.htm page and the mainsite.com/info.htm pages? php include code or what? I tried to do a test as you can see above and it's giving me an error...
_____________________________
I Lost My Stuff - If you lost it, someone found it!
|
|
|
|
Tailslide
Posts: 6290 Joined: 5/10/2005 From: Out here on the raggedy edge Status: offline
|
RE: I'm lazy - is there an easy way to do this? - 4/27/2006 8:57:27
Ok so in your text file you'd have just: <ul>
<li><a href="yoursite.com">Site by Celtic Dragon</a></li>
<li><a href="site1.com">Site1.com</a></li>
<li><a href="site2.com">Site2.com</a></li>
<li><a href="site3.com">Site3.com</a></li>
<li><a href="site4.com">Site4.com coming soon!</a></li>
</ul> nothing else at all. Save it as footerlinks.txt Then in your other sites you'd add:
<?php include( "http://www.celticdragon.com/footerlinks.txt" ); ?>
See if that works.
_____________________________
"My strategy is so simple an idiot could have devised it" Little Blue Plane Web Design | Blood, Sweat & Rust - A Land Rover restoration project
|
|
|
|
CelticDragon
Posts: 227 Joined: 11/14/2003 From: Dublin, Ireland Status: offline
|
RE: I'm lazy - is there an easy way to do this? - 4/27/2006 9:33:48
You sir are a genius, a God amongst mere mortals... King/Queen {delete as applicable} to all who you survey.... em, cheers, it works perfectly! :D
< Message edited by CelticDragon -- 4/28/2006 7:45:35 >
_____________________________
I Lost My Stuff - If you lost it, someone found it!
|
|
|
|
dpf
Posts: 7126 Joined: 11/12/2003 From: India-napolis Status: offline
|
RE: I'm lazy - is there an easy way to do this? - 4/27/2006 12:10:33
quote:
King Queen
_____________________________
Dan
|
|
|
|
CelticDragon
Posts: 227 Joined: 11/14/2003 From: Dublin, Ireland Status: offline
|
RE: I'm lazy - is there an easy way to do this? - 4/28/2006 7:46:11
cheers! It's hard to tell sometimes! :D
_____________________________
I Lost My Stuff - If you lost it, someone found it!
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts
|
|
|