GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   i need some basic html/php help here.... (https://gfy.com/showthread.php?t=315352)

MrIzzz 06-20-2004 02:44 PM

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

candyflip 06-20-2004 02:46 PM

You can use an ad server like phpAdsNew. That might be overkill for one banner, but it's an option.

http://www.phpadsnew.com

newbreed 06-20-2004 02:47 PM

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

BradM 06-20-2004 02:48 PM

PHP Code:

 <? include("file.php"); ?>

Make a file called file.php (or whatever you want for a naming convention) and put the code there ytou want

include that code on every page you want the banner

MrIzzz 06-20-2004 02:50 PM

hmmmmmmmm

i'm working with just html pages.

is there some sort of global include i could use? maybe

AgentCash 06-20-2004 02:52 PM

PHP Code:

<?
header("Location: http://yourlink.com");
?>

upload file to http://www.yourdomain.com/sponsor.php

upload banner to http://www.yourdomain.com/banner.gif

Link sites with
PHP Code:

<a href="http://www.yourdomain.com/sponsor.php"><img src="http://www.yourdomain.com/banner.gif" border=0></a

when it comes time to change, upload different banner of same name and edit the php file.

BradM 06-20-2004 02:52 PM

if your host enabled it you may be able to use SSI.

<!-- #include file="included.html" -->

newbreed 06-20-2004 02:53 PM

Quote:

Originally posted by MrIzzz
hmmmmmmmm

i'm working with just html pages.

is there some sort of global include i could use? maybe

If you are using an editor like Dreamweaver you could do a 'find and replace', for example, find the table code you have in place now, copy it into the F&R dialogue, change the code in "replace with" and choose the folder with all of your pages in it. That would fix all the pages in that folder to the new code set.

BradM 06-20-2004 02:54 PM

Quote:

Originally posted by newbreed
If you are using an editor like Dreamweaver you could do a 'find and replace', for example, find the table code you have in place now, copy it into the F&R dialogue, change the code in "replace with" and choose the folder with all of your pages in it. That would fix all the pages in that folder to the new code set.
Yeah. See you WILL need to put the code on all your pages manually in some way shape or form... so above is good

Tom_PMs 06-20-2004 02:57 PM

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

MrIzzz 06-20-2004 02:58 PM

another question...



some one mentioned to me using iframe across all the sites.

your opinions on this?

Nbritte 06-20-2004 03:02 PM

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

Tom_PMs 06-20-2004 03:04 PM

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