How Do You Have Static Ads?

Pages: 1, 2
free web hosting

Latest Entry: (Post #12) by iGuest on Feb 19 2008, 08:22 AM. (Line Breaks Removed)
What do you mean by static page? How Do You Have Static Ads? 2.What do you mean by Dynamic page?3.What do you mean by Activ page?4.What is/are limitation a static page and how it will be overcome by dynamic page.Explain the role of a acti page?5.Explain client/server side scripting and give the advantage/disadvantage of both?6.Explain get and post method with example?-reply by Nita patel... read more.
Express your Opinion! Contribute Knowledge.

Free Web Hosting, No Ads > CONTRIBUTE > The Internet > Advertising > Pay-Per-Click [CPC] Advertising

How Do You Have Static Ads?

TiKiRoKhaN
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 ;(

Reply

gaea
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.

Reply

TiKiRoKhaN
I want my google adsense to be static on every page, thats what i was asking, on PHP and HTML

Reply

gaea
QUOTE(TiKiRoKhaN @ Mar 18 2006, 11:16 PM) *

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.

Reply

antwill
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?

Reply

TiKiRoKhaN
That was what I kind've meant antwill smile.gif

Reply

gaea
Sorry, I miss understood you then tongue.gif

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 smile.gif

 

 

 


Reply

antwill
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.

Reply

TiKiRoKhaN
QUOTE(gaea @ Mar 18 2006, 08:45 PM) *

Sorry, I miss understood you then tongue.gif

searched around on google for a little bit and i found:
Code looks something like:
Hope that helped smile.gif


So do I put that in a ht access file, and the PHP file is what the ads should be on?

Reply

gaea
I'm not 100% certain because i've never done this before. From what i saw it looks like you can either put that into your php.ini, or into a .htaccess.

AddType application/x-httpd-php .php .htm .html
//Tells the server to treat html and htm files as php files.

< FilesMatch "\.(php?)$" >
php_value auto_prepend_file "/the/path/that/leads/to/count.php "
</FilesMatch >
//Adds your adpage (e.g. /the/path/that/leads/to/count.php) to beginning of all php files.

Might not have everything perfect, but i think that's close.

Reply

Latest Entries

iGuest
What do you mean by static page?
How Do You Have Static Ads?

2.What do you mean by Dynamic page?
3.What do you mean by Activ page?
4.What is/are limitation a static page and how it will be overcome by dynamic page.Explain the role of a acti page?
5.Explain client/server side scripting and give the advantage/disadvantage of both?
6.Explain get and post method with example?

-reply by Nita patel

Reply

TiKiRoKhaN
Turns out it uses htaccess!

http://www.developertutorials.com/tutorial...0525/page2.html

Enjoy! Im so glad, now i dont have to do a whole bunch of other stuff! ^^

Oh and if you wanted static google ads... Put this in the header html

QUOTE
<center><script type="text/javascript"><!--
google_ad_client = "pub-0154875139772011";
google_ad_width = 468;
google_ad_height = 60;
google_ad_format = "468x60_as";
google_ad_type = "text_image";
google_ad_channel ="1290573937";
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></center>
<hr>

Or w/e ur settings are

Reply



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.
Confirm Code:

Pages: 1, 2
Similar Topics

Keywords : static ads


    Looking for static, ads

Searching Video's for static, ads
advertisement



How Do You Have Static Ads?



 

 

 

 

ADD REPLY / Got an Opinion! a humble request :-) RAPID SEARCH! Free Hosting [X]
Express your Opinions, Thoughts or Contribute more info. to help others.
Ask your Doubts & Queries to get answers, So that "Together We can help others!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE