Jump to content

Advert via Geocities Style ad's


monkeytooth

Recommended Posts

Alright.. I host a couple peoples sites and I do it free for them cause they are friends and family.. However I did tell them when I gave them the space that I would add some banners or something to try and offset the diffrence of my cost.. They were ok with this, Problem is they update there pages and what not, and don't readd banner code, or just remove it cause they think they can cause they are a friend or family memeber..

 

So what I wanna do if at all possible is Just force it in to there pages like a geocities advert so they don't even have to worry about the adding in the code, nor do I worry about them removing it on me..

 

I host my sites and theirs on godaddy. unix based hosting.. Is there a way to do this with php and or .htaccess or something? And if so how?

Link to comment
Share on other sites

Alright checked it out, and googled it some more.. deffinately sounds like a good solution for me generally speaking..

 

Problem is I can't find anything for .htaccess specificly.. I am mostly finding things involved on the physical server side of things like the actual .conf files for the server and setting them up accordingly..

 

I don't know a superb ammount about .htaccess so Im trying to figure out how to impliment whole concept of auto_prepend_file into an .htaccess file.. the next question on that same note is how would I only work it for specific directorys and files contained within

 

Meaning outside of the root folder which contains my main site I have a single folder that I contain all my other sites in, as well as the friends and family sites.. but thing is I don't want to effect all the sites just most of them.. But I think while typing I answered my own question as I know you have to throw the .htaccess file in the root folder of the site in question.. so how would I set that up? anyone

Link to comment
Share on other sites

Since there family why not somethink simple m8.........

 

 

banner.php

<?php

if(file_exists("user_banner.php")){

include("user_banner.php");

}else{

	echo "<center><font color='red'>SORRY MY WEB SITE BANNER NOT HERE SORRY<BR>
	NO WEB SITE PAGE WILL BE DISPLAYED!<BR>
	PLEASE CONTACT ME!</font></center>";
}
?>

 

 

user_banner.php

<?php
echo"
<table align='center' border='4' bordercolor='black' >
<tr>
<td>
<font size='10' color='red' align='center'>REDARROWS BANNER</font>
</tr>
</td>
</table>
";
?>

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.