![]() |
i need some basic html/php help here....
i wanna put a banner across all of my sites, but i do not want to have to manually place it in each site and have to change it manually each time i change the banner.
is there a basic html solution to this? an include? some .php? someone have a minute to help me out with this |
You can use an ad server like phpAdsNew. That might be overkill for one banner, but it's an option.
http://www.phpadsnew.com |
If your current pages are in .php already, design your header and call it "header.php". Then include "header.php" in you pages .php code at the top.
This will make each pace with the 'include' in it pull the header.php file and include it. This is a simple explanation, hit me up for more details if you need them! Bill |
PHP Code:
include that code on every page you want the banner |
hmmmmmmmm
i'm working with just html pages. is there some sort of global include i could use? maybe |
PHP Code:
upload banner to http://www.yourdomain.com/banner.gif Link sites with PHP Code:
|
if your host enabled it you may be able to use SSI.
<!-- #include file="included.html" --> |
Quote:
|
Quote:
|
If you want to do it from multiple subfolders though and use SSI, then you should use include=virtual instead of include=file I believe. That way, you could keep the code with the banner in your root folder.
You could get your host to setup a global alias to a folder as well, but I think the SSI include=virtual is easiest. This is all presuming you dont wanna enable parsing of html files for php code, lol. :eyecrazy |
another question...
some one mentioned to me using iframe across all the sites. your opinions on this? |
Install the apache module mod_layout
use and htaccess file to turn it on. create a page with the header and footer information to change the banners over the entire site you just edit the header/footer file |
I dont care for frames at all personally.
I once made a little script that I call from htaccess that parses all html files requested, and if it finds a certain sponsor code, it replaces it, THEN serves it to the browser. But I wouldnt use something like that permanently as it would be alot of work for apache sorta, lol. :) I needed to swap too many links when the sponsor tanked. The ultimate motivation to work :winkwink: |
All times are GMT -7. The time now is 12:56 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123