Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 03-26-2004, 02:14 AM   #1
DarkJedi
No Refunds Issued.
 
DarkJedi's Avatar
 
Industry Role:
Join Date: Feb 2001
Location: GFY
Posts: 28,300
HTML gurus, need some help plz

Here's the deal:

I got a website with a lot of pages - 100+
Now what i want to do is be able to easily controll the banner spots on these pages.

What can I do in order not to manually change all the pages each time I need to change the banner ? I need it to be done automatically with a change of 1 file.

I need some PHP code for that ? How exactly is it done ?
DarkJedi is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-26-2004, 02:18 AM   #2
SGS
Confirmed User
 
SGS's Avatar
 
Industry Role:
Join Date: Dec 2002
Location: Mallorca - Nottingham
Posts: 5,176
Take a look at this: http://sourceforge.net/projects/phpadsnew/

We used it for ages with no problems.
__________________
See sig...
SGS is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-26-2004, 02:19 AM   #3
Rorschach
So Fucking Banned
 
Join Date: Aug 2002
Posts: 5,579
PHP Code:
<?php include('path/to/bannerhtml'); ?>
Make a plain text file with just the html for your ad and include it on every page with the above code. You'll need to enable parsing html pages for php includes in your .htaccess.
Rorschach is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-26-2004, 02:21 AM   #4
DarkJedi
No Refunds Issued.
 
DarkJedi's Avatar
 
Industry Role:
Join Date: Feb 2001
Location: GFY
Posts: 28,300
Quote:
Originally posted by Rorschach
PHP Code:
<?php include('path/to/bannerhtml'); ?>
Make a plain text file with just the html for your ad and include it on every page with the above code. You'll need to enable parsing html pages for php includes in your .htaccess.
yeah, thats it.
thanks.
DarkJedi is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-26-2004, 02:25 AM   #5
KraZ
Confirmed User
 
Join Date: Oct 2003
Location: ICQ:: 18822023
Posts: 2,636
You could use a regular SSI include:

<!--#include file="file.html" -->
__________________
Selling MedicalPorn,com and a dozen other gyno & doctor domains here:
http://www.gofuckyourself.com/showthread.php?t=871984
KraZ is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-26-2004, 02:43 AM   #6
DarkJedi
No Refunds Issued.
 
DarkJedi's Avatar
 
Industry Role:
Join Date: Feb 2001
Location: GFY
Posts: 28,300
Quote:
Originally posted by KraZ
You could use a regular SSI include:

<!--#include file="file.html" -->
yeah thats pretty easy too.
DarkJedi is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-26-2004, 04:41 AM   #7
Paul Waters
Confirmed User
 
Paul Waters's Avatar
 
Join Date: Mar 2003
Location: Toronto, Ontario
Posts: 4,402
Name the banner file banner.jpg and code that in every page.

When you want to change the banner rename the old file something else, and rename the new banner file, banner.jpg

KISS!

__________________


Paul
Paul Waters is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-26-2004, 04:43 AM   #8
DarkJedi
No Refunds Issued.
 
DarkJedi's Avatar
 
Industry Role:
Join Date: Feb 2001
Location: GFY
Posts: 28,300
Quote:
Originally posted by Paul Waters
Name the banner file banner.jpg and code that in every page.

When you want to change the banner rename the old file something else, and rename the new banner file, banner.jpg

KISS!





weed much ?
DarkJedi is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-26-2004, 06:14 AM   #9
Weppel
Confirmed User
 
Join Date: Aug 2003
Location: Netherlands
Posts: 2,190
Quote:
Originally posted by Paul Waters
Name the banner file banner.jpg and code that in every page.

When you want to change the banner rename the old file something else, and rename the new banner file, banner.jpg

KISS!

And you wouldn't bother to change the link?
Weppel is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-26-2004, 06:24 AM   #10
Jer
God is Brazilian
 
Join Date: Feb 2001
Location: Brazil
Posts: 10,601
Quote:
Originally posted by Paul Waters
Name the banner file banner.jpg and code that in every page.

When you want to change the banner rename the old file something else, and rename the new banner file, banner.jpg

KISS!

STONED
Jer is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-26-2004, 06:25 AM   #11
CyberTraffic
Confirmed User
 
Join Date: Feb 2004
Location: Traffic Land ~ ICQ:213666533
Posts: 2,187
Quote:
Originally posted by DarkJedi
Here's the deal:

I got a website with a lot of pages - 100+
Now what i want to do is be able to easily controll the banner spots on these pages.

What can I do in order not to manually change all the pages each time I need to change the banner ? I need it to be done automatically with a change of 1 file.

I need some PHP code for that ? How exactly is it done ?
Interesting.
CyberTraffic is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-26-2004, 06:32 AM   #12
DarkJedi
No Refunds Issued.
 
DarkJedi's Avatar
 
Industry Role:
Join Date: Feb 2001
Location: GFY
Posts: 28,300
Quote:
Originally posted by CyberTraffic
Interesting.

POSTBOT
DarkJedi is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-26-2004, 06:37 AM   #13
nastyking
 
Join Date: Nov 2002
Posts: 2,174
phpadnews

or

Name the banner file banner.jpg and code that in every page.

When you want to change the banner rename the old file something else, and rename the new banner file, banner.jpg


__________________
nastyking is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-26-2004, 06:41 AM   #14
Rorschach
So Fucking Banned
 
Join Date: Aug 2002
Posts: 5,579
banner.jpg:

Rorschach is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.