Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Updating multiple sites with the same content
Old 12-23-2008, 12:43 AM Updating multiple sites with the same content
EditFast's Avatar
Experienced Talker

Posts: 43
Trades: 0
I have one page of content (a links page describing all my sites) that appears on all my sites which are all on the same server. Right now, if I make a change or add a new site, I need to edit each page on every site. I would like to be able to edit one page and have the changes appear on all sites. I assume I need some sort of script to do this but I don't know what language or even if I do need a script. Is this even possible? Any ideas of where to start... or where to start looking?
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
EditFast is offline
Reply With Quote
View Public Profile Visit EditFast's homepage!
 
 
Register now for full access!
Old 12-23-2008, 12:53 AM Re: Updating multiple sites with the same content
Banned

Latest Blog Post:
Oscar: The Bionic Cat
Posts: 237
Trades: 0
its easy to do that using php... something like a global declaration..
bogs is offline
Reply With Quote
View Public Profile Visit bogs's homepage!
 
Old 12-23-2008, 03:59 AM Re: Updating multiple sites with the same content
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,380
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
server side includes
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 12-23-2008, 09:36 AM Re: Updating multiple sites with the same content
EditFast's Avatar
Experienced Talker

Posts: 43
Trades: 0
Quote:
Originally Posted by bogs View Post
its easy to do that using php... something like a global declaration..
Unfortunately, I am not familiar enough with PHP to know what that means or how to use a "Global Declaration". And after a search for "global declaration" I am not much further ahead. If it can update similar pages on multiple sites, then I would be interested in hearing more.
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
EditFast is offline
Reply With Quote
View Public Profile Visit EditFast's homepage!
 
Old 12-23-2008, 09:37 AM Re: Updating multiple sites with the same content
EditFast's Avatar
Experienced Talker

Posts: 43
Trades: 0
Quote:
Originally Posted by chrishirst View Post
From the link you provided above it seems that SSI is for a single site. How can I use it to update pages on multiple sites?
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
EditFast is offline
Reply With Quote
View Public Profile Visit EditFast's homepage!
 
Old 12-23-2008, 12:02 PM Re: Updating multiple sites with the same content
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,380
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
PHP can include HTML from remote pages, for ASP you'll need to use what amounts to a scraper.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 12-23-2008, 12:16 PM Re: Updating multiple sites with the same content
stevej's Avatar
Professional Multitasker

Posts: 996
Location: Not positive
Trades: 0
I would just do a Server Side Include, or, as I call them, HTML includes.

HTML Code:
<!--#include virtual="path to file/include-file.html" -->
Hope it helps!
- Steve
stevej is offline
Reply With Quote
View Public Profile
 
Old 12-23-2008, 12:24 PM Re: Updating multiple sites with the same content
EditFast's Avatar
Experienced Talker

Posts: 43
Trades: 0
Quote:
Originally Posted by stevej View Post
I would just do a Server Side Include, or, as I call them, HTML includes.

HTML Code:
<!--#include virtual="path to file/include-file.html" -->
Hope it helps!
- Steve
Now we are getting close I think, but how would bring just a part of the page that the info is on. For example, the content is inside an html page but I don't want to import the entire page as it would look odd on another site with a different design so I need to import just part of that page. Do I need to add some markers or something? How would the include then call just that section of the page?
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
EditFast is offline
Reply With Quote
View Public Profile Visit EditFast's homepage!
 
Old 12-23-2008, 12:29 PM Re: Updating multiple sites with the same content
stevej's Avatar
Professional Multitasker

Posts: 996
Location: Not positive
Trades: 0
Well, you don't even need to import a html file. For instance:

HTML Code:
<!--#include virtual="path to file/include-file.txt" -->
It could just be a .txt file.

- Steve

Last edited by stevej; 12-23-2008 at 12:31 PM..
stevej is offline
Reply With Quote
View Public Profile
 
Old 12-23-2008, 12:35 PM Re: Updating multiple sites with the same content
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,380
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
SSI won't work across different sites.

You HAVE to use scripting.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 12-23-2008, 12:45 PM Re: Updating multiple sites with the same content
EditFast's Avatar
Experienced Talker

Posts: 43
Trades: 0
Quote:
Originally Posted by stevej View Post
Well, you don't even need to import a html file. For instance:

HTML Code:
<!--#include virtual="path to file/include-file.txt" -->
It could just be a .txt file.

- Steve
But this cannot be used across multiple sites, can it?
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
EditFast is offline
Reply With Quote
View Public Profile Visit EditFast's homepage!
 
Old 12-23-2008, 12:54 PM Re: Updating multiple sites with the same content
stevej's Avatar
Professional Multitasker

Posts: 996
Location: Not positive
Trades: 0
What do you mean? You could put the code on multiple sites, and then change the one text file.

- Steve
stevej is offline
Reply With Quote
View Public Profile
 
Old 12-23-2008, 12:57 PM Re: Updating multiple sites with the same content
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,380
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Which would however mean uploading or syncing the text file to multiple sites, which is what EditFast is trying to avoid.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 12-23-2008, 01:24 PM Re: Updating multiple sites with the same content
EditFast's Avatar
Experienced Talker

Posts: 43
Trades: 0
Quote:
Originally Posted by stevej View Post
What do you mean? You could put the code on multiple sites, and then change the one text file.

- Steve
So, if the txt file I want to use is on "mainsite.com" would this work:


site2.com
<!--#include virtual="http://mainsite.com/include-file.txt" -->

and this

site3.com
<!--#include virtual="http://mainsite.com/include-file.txt" -->
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
EditFast is offline
Reply With Quote
View Public Profile Visit EditFast's homepage!
 
Old 12-23-2008, 01:26 PM Re: Updating multiple sites with the same content
stevej's Avatar
Professional Multitasker

Posts: 996
Location: Not positive
Trades: 0
Quote:
So, if the txt file I want to use is on "mainsite.com" would this work:


site2.com
<!--#include virtual="http://mainsite.com/include-file.txt" -->

and this

site3.com
<!--#include virtual="http://mainsite.com/include-file.txt" -->
Yep, that would[edit]SHOULD[/edit] work.
- Steve

Last edited by stevej; 12-23-2008 at 09:25 PM..
stevej is offline
Reply With Quote
View Public Profile
 
Old 12-23-2008, 01:29 PM Re: Updating multiple sites with the same content
The-Pixel's Avatar
I <3 Pixel's

Posts: 888
Name: Lindi Wheaton
Location: In Photoshop
Trades: 0
Quote:
Originally Posted by chrishirst View Post
Very nice article, thanks for sharing.
__________________
The-Pixel

Please login or register to view this content. Registration is FREE
:: iPhone Apps, Pre-Made Templates, Widgets, Menus, etc.

Please login or register to view this content. Registration is FREE
:: Web Design / Development, Business Cards, Logo Designs, etc.
The-Pixel is offline
Reply With Quote
View Public Profile Visit The-Pixel's homepage!
 
Old 12-23-2008, 01:30 PM Re: Updating multiple sites with the same content
EditFast's Avatar
Experienced Talker

Posts: 43
Trades: 0
Quote:
Originally Posted by stevej View Post
Yep, that would work.
- Steve
Well, that's it then. I will try it out later today and let you know if it works (or if it doesn't). Thanks very much for your help, Steve, and everyone here. It is appreciated.
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
EditFast is offline
Reply With Quote
View Public Profile Visit EditFast's homepage!
 
Old 12-23-2008, 08:31 PM Re: Updating multiple sites with the same content
opensourcer's Avatar
Average Talker

Posts: 16
Trades: 0
A quick and easy way without using scripting is to use iframe to include those information on every page.
You still have to edit all the pages. Or use one of those editor that can search and replace across files.
opensourcer is offline
Reply With Quote
View Public Profile Visit opensourcer's homepage!
 
Old 12-23-2008, 08:48 PM Re: Updating multiple sites with the same content
EditFast's Avatar
Experienced Talker

Posts: 43
Trades: 0
Quote:
Originally Posted by stevej View Post
Yep, that would work.
- Steve
Steve, I can't seem to get this to work. I used <!--#include virtual="http://gvls.com/aboutus.txt" --> on this page: http://gvls.com/english/aboutus.htm

I uploaded the txt file to the root directory but it does nopt show up even though the filke being called is on the same site. What am I doing wriong?
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
EditFast is offline
Reply With Quote
View Public Profile Visit EditFast's homepage!
 
Old 12-23-2008, 08:50 PM Re: Updating multiple sites with the same content
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,380
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
post #10!!!!!
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Reply     « Reply to Updating multiple sites with the same content

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 4.31120 seconds with 12 queries