Im working on a 1000 page site.....how do I put ads in later??

Discussion in 'AdSense' started by joel2280, Oct 11, 2007.

  1. #1
    Im building a 1000 page site with html and not php....

    how do I ad in advertisers later? so I don't have to go into each page and ad the code??

    Seems like it will be a ton of extra work.

    Is there anything I can do now in the beginning while Im building each page??

    Help!! :eek:
    Thanks!!:)
     
    joel2280, Oct 11, 2007 IP
  2. pyrole

    pyrole Banned

    Messages:
    158
    Likes Received:
    16
    Best Answers:
    0
    Trophy Points:
    0
    #2
    lol...don't worry....you can make a script that will add a common html tags(your ads) in the footer before </html> or something like that
     
    pyrole, Oct 11, 2007 IP
  3. tulip4heaven

    tulip4heaven Well-Known Member

    Messages:
    2,774
    Likes Received:
    86
    Best Answers:
    0
    Trophy Points:
    160
    #3
    Use Dynamic Pages Instead of Static Pages , You can use " Include " to put ads on all pages.

    Thanks
    Tulip
     
    tulip4heaven, Oct 11, 2007 IP
  4. rldowling03

    rldowling03 Notable Member

    Messages:
    1,763
    Likes Received:
    45
    Best Answers:
    0
    Trophy Points:
    200
    #4
    if you wanna only use html, just put where u want ads on every page put something like

    <!--ADS-->
    Code (markup):
    and then when you wanna add ads, just use a html editor to search and replace. Just search for that code and replace it with your ads. Many progrmas have this function.
     
    rldowling03, Oct 11, 2007 IP
  5. joel2280

    joel2280 Peon

    Messages:
    295
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #5
    I dont know alot about dynamic html
    I just know HTML.....


    Is it much harder to make the page dynamic html??
     
    joel2280, Oct 11, 2007 IP
  6. pubdomainshost.com

    pubdomainshost.com Peon

    Messages:
    1,277
    Likes Received:
    21
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Review your strategy, if you wish ads to be added to 1000 plus pages, copy paste code to each page would be tedious and time consuming. I would suggest you to look at scripting languages like PHP, ASP or JSP to make change at one place, which would reflect all over the site.
    In my view, copy paste code in each page is going to be time consuming and rather difficult act over a period of time, (assuming you wish to change after 3 months, rework on 1000 pages or 1 pages - :) your choice)
    Cheers
    Gaurav
     
    pubdomainshost.com, Oct 11, 2007 IP
  7. enquiries0009

    enquiries0009 Banned

    Messages:
    1,421
    Likes Received:
    19
    Best Answers:
    0
    Trophy Points:
    0
    #7
    I think it is better if you use php other than html. Then it is very easy issue.
     
    enquiries0009, Oct 11, 2007 IP
  8. joel2280

    joel2280 Peon

    Messages:
    295
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Do I make each place for a future ad like
    <!--ADS-->

    next ad
    <!--ADS1-->

    next ad
    <!--ADS2-->

    like that for each future ad place?

    will that work?
     
    joel2280, Oct 11, 2007 IP
  9. add_cents

    add_cents Peon

    Messages:
    961
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #9
    A simple solution is by using PHP includes.

    It's basically one line of code.
     
    add_cents, Oct 11, 2007 IP
  10. flippers.be

    flippers.be Peon

    Messages:
    432
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #10
    Do like rldowling03 says.. test your layout with ads in place, and deploy each page with a dummy tag that you can find and replace later in bulk.

    If your provider allows it, use php. It's not very difficult if you only want to use the include function.

    And if you have a big site like that, be sure to use a separate CSS file !
     
    flippers.be, Oct 11, 2007 IP
  11. joel2280

    joel2280 Peon

    Messages:
    295
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #11
    I dont know much about php or any other scripts?

    Is there a script out there for a myspace comments site?

    Or would I have to write my own??
    I have no clue about writing php.....

    I know myhotcomments.com is a very cool php script comments site.
     
    joel2280, Oct 11, 2007 IP
  12. joel2280

    joel2280 Peon

    Messages:
    295
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #12
    What is a PHP includes??

    tell me what to add and I'll ad it now and figure it out later...lol:D

    Thanks for any help!!:eek:
     
    joel2280, Oct 11, 2007 IP
  13. pondlife

    pondlife Peon

    Messages:
    898
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    0
    #13
    Like the others have said - learn some PHP and make your pages dynamic. You'll be glad when you've done it..

    Short term pain - long-term gain :)
     
    pondlife, Oct 11, 2007 IP
  14. it career

    it career Notable Member

    Messages:
    3,562
    Likes Received:
    155
    Best Answers:
    0
    Trophy Points:
    270
    #14
    I wrote a script to prepend and append whatever I like to my pages. You can do the same.
     
    it career, Oct 11, 2007 IP
  15. scrnews

    scrnews Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #15
    here is an example how to use php include (you add the <?php ?> exactly where you want you ads):

    File: googleads.php
    
    Here you add the code that you get from www.google.com/adsense
    
    Code (markup):
    File: index.php
    <html>
    <body>
    <p>Index</p>
    <?php include("googleads.php") ?>
    </body>
    </html>
    Code (markup):
    File: page1.php
    <html>
    <body>
    <p>Page 1</p>
    <?php include("googleads.php") ?>
    </body>
    </html>
    Code (markup):
    etc...
     
    scrnews, Oct 11, 2007 IP
  16. qwestcommunications

    qwestcommunications Notable Member

    Messages:
    8,868
    Likes Received:
    172
    Best Answers:
    0
    Trophy Points:
    233
    #16
    USe a CMS. Its as easy as adding the code in one sectiona nd will appear on all pages.
     
    qwestcommunications, Oct 11, 2007 IP
  17. joel2280

    joel2280 Peon

    Messages:
    295
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #17

    Would you consider Macromedia Dream Weaver a CMS?
     
    joel2280, Oct 11, 2007 IP
  18. joel2280

    joel2280 Peon

    Messages:
    295
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #18

    Is there a tutorial on this anywhere to do php include ads???
     
    joel2280, Oct 11, 2007 IP
  19. searchmaster

    searchmaster Active Member

    Messages:
    231
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    88
    #19
    search and replace on all the pages
     
    searchmaster, Oct 11, 2007 IP
  20. Erind

    Erind Peon

    Messages:
    663
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    0
    #20
    hey man... just include like they said.

    Do your page, and where you want the ads, put
    <?php include("ads1.php"); ?>
    and then ads2, ads3 and so on for each different ad unit.

    make sure you save your pages as .php instead of .html or .htm.

    http://www.zillionbits.com/programming/php-guide-for-adsense-publishers/
    look on google too. they have a few articles.
     
    Erind, Oct 11, 2007 IP