Php Includes and ad's

Status
Not open for further replies.

Livewire

Abuse Compliance Officer
Staff member
Messages
18,169
Reaction score
216
Points
63
Kindof a weird question that I'm not sure how to word, but I'll give it a shot:

In order to make my site easier to update for x10 ad's I'm rebuilding it so it loads everything in one php file - index.php. However, any extra content (pages for graphics, games, etc) is loaded through php includes found in another folder (root/contentincludes).


If I put the ad code on index.php and deny access to the contentincludes folder, would I still need to put the ad code on any php/html files in the contentincludes folder?


Example:

index.php includes news.php. news.php can't be opened directly due to an .htaccess file denying access to it. index.php has the ads, hence they're displayed on screen. Would news.php still need the ad code?

I'm hoping not, but I'd rather find out now than later.


Current plan: X10Static (easy way to get ad's ready without risking suspension)
 

Derek

Community Support Force
Community Support
Messages
12,882
Reaction score
186
Points
63
Static dont need ads and are you using iframes?
 

Livewire

Abuse Compliance Officer
Staff member
Messages
18,169
Reaction score
216
Points
63
No to the iFrames, and I know static doesn't need ads. I plan on updating to x10Advanced, and I'd rather have the ads working ahead of time :)

Got an example up for the most part too: http://lw90210.x10hosting.com

There's two files in contentincludes; news.php and needads.php. the .htaccess file in that folder denys access to them if you try to view them, but they can still be included (click userbars on the left and it includes needads.php)

Just hoping I don't need ads on anything I put in contentincludes or I'm better off using html instead of php :S
 

TheJeffsta

New Member
Messages
984
Reaction score
0
Points
0
As long as it shows the ad somewhere in index.php an can be viewed all the time when load a link in an iframe (aka either have the ad in the content pages or have it somewhere that isn't changed when loading a different content page.
 

Livewire

Abuse Compliance Officer
Staff member
Messages
18,169
Reaction score
216
Points
63
As long as it shows the ad somewhere in index.php an can be viewed all the time when load a link in an iframe (aka either have the ad in the content pages or have it somewhere that isn't changed when loading a different content page.

Think that answers my question, thanks (it'll be right under the banner at the top, which never changes location, and is present on every page)
 
Status
Not open for further replies.
Top