Closed Thread Icon

Topic awaiting preservation: Branding 101 Question (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=13022" title="Pages that link to Topic awaiting preservation: Branding 101 Question (Page 1 of 1)" rel="nofollow" >Topic awaiting preservation: Branding 101 Question <span class="small">(Page 1 of 1)</span>\

 
g-ma
Nervous Wreck (II) Inmate

From:
Insane since: Dec 2003

posted posted 12-20-2003 02:15

This should be an easier question than the last.

I have an on-line dynamic directory site that other people wish to use the content from. It would be a form of branding. Currently the header and footer on my site is parsed as an include for the pages I need to brand.

On the site that wishes to use my content they want a search box and then they want the information to come up with their header and footer, not mine. Using the search form how can I change the header and footer include files that come up according to where the information is called from.

Like this site A wishes to do a search and all the results pages come up with site A's header and footer. Same for site B, site C, etc.

The form is a basic keyword and business search that calls php pages. I would need control and am willing to have the header and footer files on my server.

Any ideas on how to code it or can you point me where I might learn how (without 3 years of college, LOL)?

Veneficuz
Paranoid (IV) Inmate

From: A graveyard of dreams
Insane since: Mar 2001

posted posted 12-20-2003 02:57

I would take a look at the $_SERVER['HTTP_REFERER'] variable in php. It tells you from where the user is coming. The variable can be 'faked' to show a page it didn't come from, but I think it is the easiest way (and only way I can think of) to achive the effect you're looking for. So you just add a simple test in the beginning of the page checking where the user is coming from and depending on the results you get add the header and footer.

_________________________
"There are 10 kinds of people; those who know binary, those who don't and those who start counting at zero"
- the Golden Ratio -

Cameron
Bipolar (III) Inmate

From: Brisbane
Insane since: Jan 2003

posted posted 12-20-2003 09:01

You'll also want to setup a session to carry that information from page to page if they only get refered once and you want them to be able to browse within your site and still maintain the correct branding from page to page.

g-ma
Nervous Wreck (II) Inmate

From:
Insane since: Dec 2003

posted posted 12-20-2003 20:09

If anyone is up to it I might be willing to pay for assistance with this project.

« BackwardsOnwards »

Show Forum Drop Down Menu