Mobile app version of vmapp.org
Login or Join
Kaufman445

: Keep header across sites We have a site, which has a main site served by Google Sites and a custom made forum running on a dedicated server. Now we want to use the header from Google Sites

@Kaufman445

Posted in: #Headers #Html #WebsiteDesign

We have a site, which has a main site served by Google Sites and a custom made forum running on a dedicated server. Now we want to use the header from Google Sites also on the forum, so it feels like the same site. I first tried creating an IFrame on the main site and placing the forum inside this IFrame. This looked nice, but I did not find a way to make direct links. The URL always was Open-Org.com no matter which topic on the forum one clicked at.

I have thought about simply copying the relevant HTML code, but this means that I have to recopy it every time the header on the main page changes. Is there a nicer way to do such a thing? It must be a problem that many sites needs to solve.

If what I am describing is unclear, there are more specific information here.

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Kaufman445

1 Comments

Sorted by latest first Latest Oldest Best

 

@Pope3001725

On your dedicated server create and run a script that retrieves the HTML of a page from your site hosted at Google Sites. Have it parse that file to retrieve the header HTML. Then have the script update the header file for your forum.

Tips:


You will make your life a lot easier if you use comments to delimit where the header ends so the parse knows where to stop.
Before parsing the text check the last modified time of the file. If it hasn't changed then don't bother parsing it.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme