Setting up the ads on my site

Discussion in 'Co-op Advertising Network' started by niz85, Dec 20, 2004.

  1. #1
    I have put ad_network.php and ad_network_ads.txt in the root folder of my site.
    But, when I put .htaccess in my root folder with this line:

    AddType application/x-httpd-php .php .htm .html

    My site does not open. The following error displays:

    The server encountered an internal error or misconfiguration and was unable to complete your request.

    Please contact the server administrator, More information about this error may be available in the server error log.

    Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

    I dont have a clue why this error is coming. I would appreciate any help from you guys.

    Thankyou so much
    Niz
     
    niz85, Dec 20, 2004 IP
  2. Patient

    Patient Raider

    Messages:
    336
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    123
    #2
    Try changing it to:

    AddHandler application/x-httpd-php .php .htm .html
     
    Patient, Dec 20, 2004 IP
  3. niz85

    niz85 Peon

    Messages:
    41
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Have done that. Now the above error is not coming.

    But, the ads are also not appearing. :confused:

    I have done the three tasks:
    1. added "ad_network.php" to root folder.
    2. added "ad_network_ads.txt" to root folder.
    3. added ".htaccess" to root folder.

    What else I have to do in order to see the ads on my site?

    Your help is really appreciated.
    Thanks
    Niz
     
    niz85, Dec 20, 2004 IP
  4. a389951l

    a389951l Must Create More Content

    Messages:
    1,885
    Likes Received:
    65
    Best Answers:
    0
    Trophy Points:
    140
    #4
    Did you set the security properly for each of the files per the instructions? Did you host support php?

    What is url so we can take a peek?
     
    a389951l, Dec 20, 2004 IP
  5. niz85

    niz85 Peon

    Messages:
    41
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #5
    The url is xxxxxxxxxxxxx. Yes, my host supports php.

    The default permissions for "ad_network_ads.txt" is (as I see in my file manager):

    There is a tick in write mode under "user" category, but it is not ticked under "group" and "world" category. I dont know what I am talking, but I am telling you what I am seeing. I hope you get what I mean to say.

    Again, the help is very much appreciated.
    Thanks
    Niz
     
    niz85, Dec 20, 2004 IP
  6. Patient

    Patient Raider

    Messages:
    336
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    123
    #6
    Do you have the ad code on your home page?

    Please add this immediately before </body>:

    <?php echo 'hello<br>'; ?>
     
    Patient, Dec 20, 2004 IP
  7. niz85

    niz85 Peon

    Messages:
    41
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #7
    No, I dont have the ad code on my home page. From where I can get it?
    I just pasted that code line which you just gave... it is just displaying "hello" on my homepage.

    I dont know php... do I sound stupid???
     
    niz85, Dec 20, 2004 IP
  8. a389951l

    a389951l Must Create More Content

    Messages:
    1,885
    Likes Received:
    65
    Best Answers:
    0
    Trophy Points:
    140
    #8
    When you log in to your coop account, there are instructions toward the bottom about adding the php ad code to all of you pages.
     
    a389951l, Dec 20, 2004 IP
  9. niz85

    niz85 Peon

    Messages:
    41
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Sorry, but I didnt find any such instructions about adding the php ad code to all of the pages.... I am still trying to find those instructions.

    Where are the instructions exactly?

    Thanks
    Niz
     
    niz85, Dec 20, 2004 IP
  10. a389951l

    a389951l Must Create More Content

    Messages:
    1,885
    Likes Received:
    65
    Best Answers:
    0
    Trophy Points:
    140
  11. Patient

    Patient Raider

    Messages:
    336
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    123
    #11
    The fact that hello is displaying on your home page means that the addhandler directive is working and your .htaccess file is correct.

    All you need do now is add the files to your root folder and put the code in your pages as per the set up instructions.
     
    Patient, Dec 20, 2004 IP
  12. niz85

    niz85 Peon

    Messages:
    41
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #12
    Oops! I dont know why I skipped that step#4... maybe I thought it is valid for sites only having .php as extension (How stupid of me? :D )

    Anyways, now the ads are displaying... thankyou guyz :)

    But the ads which are appearing are very unrelated to my site's theme. Will the ads get targeted themselves only or shall I have to do anything about this?

    Thankyou guyz for being so nice :)

    Niz
     
    niz85, Dec 20, 2004 IP
  13. Patient

    Patient Raider

    Messages:
    336
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    123
    #13
    At this point there is no themeing for the ads - though I believe I have read posts where Shawn has said this is planned for the future.
     
    Patient, Dec 20, 2004 IP
  14. niz85

    niz85 Peon

    Messages:
    41
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #14
    so, there is no way to get themed ads? Can't I exclude certain URLs or keywords for my ads appearance?
     
    niz85, Dec 20, 2004 IP
  15. SEbasic

    SEbasic Peon

    Messages:
    6,317
    Likes Received:
    318
    Best Answers:
    0
    Trophy Points:
    0
    #15
    No, that is not currently possible.
     
    SEbasic, Dec 20, 2004 IP