|
|
|
|
![]() ![]() |
Mar 18 2006, 10:06 PM
Post
#1
|
|
|
Member [Level 3] ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 95 Joined: 17-October 05 From: California Member No.: 13,046 |
Like seen on www.trap17.net I have been trying to put static ads on all of my site without having to type
include (file.php) and stuff like that, I want my ads to appear on HTML to! How is it possible to make it like trap17.net did it, please help I need this bad ;( |
|
|
|
Mar 18 2006, 10:22 PM
Post
#2
|
|
|
Super Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 205 Joined: 14-March 06 From: Vermont or Boston (USA) Member No.: 20,077 |
Sorry, but you weren't completely clear in what you wanted. Do you want to have one specific ad banner (being "static"?) in each area on your site? If so why don't you just use html to add the images in?
e.g. <img src="/images/ad1.jpg"> Then, if you wanted to change the ad displayed later you'd just upload another banner with the same name. Another alternative would be to use iframes, which is, in essence, like embedding a second webpage within the first. Your code would look something like: <IFRAME src="adbanner.html" width="400" height="500" frameborder="1"> [Your web browser doesn't support iframes...lucky you!] </IFRAME> Then you'd just make adbanner.html with the add you wanted it. Or you could iframe to a php document if you wanted it to randomly display an ad. Hope that was helpful. If not, please try and clearify your question. |
|
|
|
Mar 18 2006, 11:16 PM
Post
#3
|
|
|
Member [Level 3] ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 95 Joined: 17-October 05 From: California Member No.: 13,046 |
I want my google adsense to be static on every page, thats what i was asking, on PHP and HTML
|
|
|
|
Mar 19 2006, 01:42 AM
Post
#4
|
|
|
Super Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 205 Joined: 14-March 06 From: Vermont or Boston (USA) Member No.: 20,077 |
I want my google adsense to be static on every page, thats what i was asking, on PHP and HTML Ah, ok. Then your best bet is to use Iframes like i suggested. Basicly, just make a webpage (html, php, whatever) that just displays adsense. Then use an iframe to include it where you want it. Some guy did something kinda like that with SSI (http://forums.digitalpoint.com/showthread.php?t=3255) but i havn't tried that method myself. |
|
|
|
Mar 19 2006, 02:38 AM
Post
#5
|
|
|
Member [Level 2] ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 78 Joined: 16-March 06 Member No.: 20,150 |
What are static ads? Do you mean the ads that are stuck in one place on everypage, like with some of those free web hosts how they place ads on your site? im sorry if its a stupid question but i do not understand what you mean. Can someone please tell me?
|
|
|
|
Mar 19 2006, 03:41 AM
Post
#6
|
|
|
Member [Level 3] ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 95 Joined: 17-October 05 From: California Member No.: 13,046 |
That was what I kind've meant antwill
|
|
|
|
Mar 19 2006, 04:45 AM
Post
#7
|
|
|
Super Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 205 Joined: 14-March 06 From: Vermont or Boston (USA) Member No.: 20,077 |
Sorry, I miss understood you then
searched around on google for a little bit and i found: QUOTE [Syntax: ]auto_prepend_file string Specifies the name of a file that is automatically parsed before the main file. The file is included as if it was called with the include() function, so include_path is used. The special value none disables auto-prepending. Code looks something like: QUOTE AddType application/x-httpd-php htm html < FilesMatch "\.(html?)$" > php_value auto_append_file "/the/path/that/leads/to/count.php " </FilesMatch > Hope that helped This post has been edited by gaea: Mar 19 2006, 04:46 AM |
|
|
|
Mar 19 2006, 04:53 AM
Post
#8
|
|
|
Member [Level 2] ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 78 Joined: 16-March 06 Member No.: 20,150 |
Oh now i get what you mean, that seems like a pretty interesting subject i might add an ad on my site if i get the coding correct, but im not that good with coding so i will probably have alot of questions and problems.
|
|
|
|
Mar 19 2006, 05:10 AM
Post
#9
|
|
|
Member [Level 3] ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 95 Joined: 17-October 05 From: California Member No.: 13,046 |
Sorry, I miss understood you then searched around on google for a little bit and i found: Code looks something like: Hope that helped So do I put that in a ht access file, and the PHP file is what the ads should be on? |
|
|