May 16, 2008

How Do You Have Static Ads?

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

free web hosting

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

Trap FeedBacker
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
Recent Queries:-
  1. what is a static ad - 4.56 hr back.
  2. .htaccess iframe ads - 134.01 hr back.
  3. filesmatch remove iframe - 151.85 hr back.
  4. iframe count.php - 153.95 hr back.
  5. adsense static - 155.23 hr back.
  6. how static ads - 376.18 hr back.
  7. put adsense script in static web pages - 439.40 hr back.
Similar Topics

Keywords : static, ads

  1. How To Convert Static Ip To Dynamic Ip`?
    (9)
  2. Url
    how do you make your URL static? (5)
    Hi guys, can somebody help me with this problem. I want to make my URL static. something like
    this: http://www.example.com/ whenever click some buttons like add/edit/delete... the URL should
    stay as is... (http://www.example.com). ....
  3. What Is Static?
    not static electricity - tv static (6)
    Can anyone clear this up for me? I've tried looking a little bit but couldn't find the
    information i'm looking for. Here's what I want to know. Why do television sets create
    static. Like you know when you're watching the wrong channell and it's all snow or a bunch
    of lines....no picture just black and white things.....what is that? What causes that? Why does
    that happen? Why isn't it colors and just black and white. I'm talking about like.....if
    you only are supposed to leave the t.v. on channel 3 - but switch it to channel 4 and it&#....
  4. [help]: Php To Html (static) Converter
    I need help to use PHP to HTML Conversion (3)
    Hello Guys, I want to use PHP 2 HTML Conversion for my PHP-Nuke CMS And my PHPbb or IPB Forum, but
    don't know or does't have any idea about it. If any know about it than please tell me. In
    Trap17.com forum PHP to HTML (Static) conversion example is their, you can see it on your Address
    bar, Same thing i want to use with my PHP Codes........ Thanks in advance, i am waiting for your
    suggestion....
  5. Banner Request
    Static Fury (1)
    Size:230 x 460, 700 x 140 ish not really imprtant. Theme: Naruto Render: Render Theme:
    Color:Doesnt matter Text: no Other effects: I am just looking to somthing on the ominous. Mostly i
    am just needing something, and i am giveing free range over it. If more than one person want to do
    it that would be fine i would love to be able to shop areound /tongue.gif"
    style="vertical-align:middle" emoid=":P" border="0" alt="tongue.gif" />....
  6. Banner Request
    Static_Fury (4)
    Height=60 Width=790 Theme: Grunge, Abstract, etc. Render: Render Theme: Color: Text: Yes;
    "JynX'd Network Chat" I am sorry i do not know how to fill out the form this time. I was
    wondering if someone could do a banner, like this one but make it longer. It doesnt have to be 790
    long but it needs to be long engh to have the text i need in it... ....
  7. Banner/affiliate Box
    by Static_fury (3)
    Banner: Size: 750x195 Theme: Grunge, Dark Render: Yes Render Theme: IDK sorry Color: black, and a
    lime or neon green Text: JynX'd Network Affiliate box: Size: 112x37, 88x31 is! Theme:
    Grunge, Dark Render: Yes Render Theme: IDK sorry Color: black, and a lime or neon green Text:
    JynX'd Network I would like it to have the theme kind like these pictures: ....
  8. Static Clan Scripts
    (7)
    If you are looking forward to making a clan, please consider buying a copy of Static Scripts. Static
    Scripts are the revolutionary new clan scripts that have different templates you can use, offer a
    wide selection of console options, and are currently looking for members. Webhosting with Static
    Networks costs $10 a month(with clan scripts). Other hosting plans start at $3 a month.
    Check out http://forum.staticscripts.com/index.php?showtopic=2 for more information. I will post a
    beta site link ASAP. If you would like to try out the newest version of StaticScri....
  9. Free Web Hosting: (static_fury)
    Free Website: <thesyndicate.trap17.com> (1)
    To generate an application for free web hosting please click here: Free Web Hosting Request Form
    I would like to request free web hosting from Trap17. Please find my application below. Your
    Registered Domain Name or Desired Trap17 Subdomain Name: thesyndicate.trap17.com Account
    Username: static Introduction: Im slowly learning the web codeing, and i love the
    community here Email Address: broken-heart_alchemist@hotmail.com Age: 19
    Country Where I Live: US My Websites Theme: Old School Ganster Themed For....
  10. Computer Static & Lag Issue
    (2)
    I have this: -------------------------------------------- AMD 3000+ 450W PSU MGE NINJA Case
    1024 DDR Corsair Ram GeForce 6800GT 2x 80GB Western Digital 7200RPM Hard Drives Windows XP
    Professional -------------------------------------------- The computer worked perfectly fine for
    over 5 months. The computer was set-up using ONLY the drivers form the CDs provided with the parts
    for my computer. After 5 months of a perfectly functioning computer. The start-up time jumped from
    10 seconds loading windows XP (The loading bar when you start-up did 4 passes from one e....
  11. Static Elements In Pages
    how to achieve this? (4)
    I've had several discouraging replys in my website post about the use of and frames in
    general. So far to me it's the only option of having static elements in my pages (meaning as in
    having a navigation and header and so it doesnt have to refresh every pagelink you visit) Now
    because of those discouraging notes, i am wondering if theres another way of achieving this? (and
    for the record, i couldnt think of a good searchterm for google...most came out on the non-frame
    section of a frameset..) Hopefully thanks in advance....
  12. Static Members Across Libraries (windows Dll Vs. Unix)
    (0)
    Hopefully I can explain my problem clearly. If not, please ask any questions to clarify. I'm
    looking at an issue where I'd need to make reference counted smart pointers multi-thread safe on
    a UNIX platform via mutexes. Object-embedded mutexes are not an option because of the memory
    footprint increase. Therefore, it was decided we use a static mutex that locks the entire class out
    from the reference count (i.e., only one smart pointer on the entire system at a time can do a
    reference count operation). BTW, these design decisions aren't mine to make. The issu....
  13. static war
    (1)
    this site is for my new 3D war game (not open yet though) http://www.staticwar.vzz.net/ ....
  14. My Post Number Are Static
    don't move!! (3)
    Hi: I want to make a question, why dont increase my post number?. Today already post 3
    times and dont increase my posts number. Thanks Tiago....

    1. Looking for static, ads

Searching Video's for static, ads
advertisement



How Do You Have Static Ads?



 

 

 

 

ADD REPLY / Got an Opinion! Remove these ADs! RAPID SEARCH! Free Web 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