Where to place Popad code?

Discussion in 'PHP' started by SidhuZ, Oct 13, 2012.

  1. #1
    Hello!
    Please help on placing pop-ad code in my website.
    Yesterday my website have impressions of 169,739 ad impressions out of that 1,667 impressions of popad.
    I have place the below ad code in my script. Its imagehosting website clone of tinpic.
    I want to appear whenever user click on image to enlarge it.
    Here's code php code:
      //***********************************************************************************      //Check if image size is bigger than 600 X 600 then make it small to atleast 600 but proportionally     $img = imagecreatefromunknown($image);                                       $mainWidth = imagesx($img);     $mainHeight = imagesy($img);                   if (($mainWidth > 600) || ($mainHeight > 600))      {           $a = ($mainWidth >= $mainHeight) ? $mainWidth : $mainHeight;           $div = $a / 600;          $mainWidth = intval($mainWidth / $div);          $mainHeight = intval($mainHeight / $div);           echo "<br><br><a href='$image' title='Click here to see fullsize original image' >                  <img src='$image' border=1 width='$mainWidth' height='$mainHeight'>                  </a>";     }     else {         echo "<br><br><img src='$image' border='1'>";     }
      //*********************************************************************************** 
    PHP:
    Here is the code which i want to place to place
    <!-- BEGIN EroAdvertising ADSPACE CODE --><script type="text/javascript" language="javascript" charset="utf-8" src="http://adspaces.ero-advertising.com/adspace/193629.js"></script><!-- END EroAdvertising ADSPACE CODE -->
    HTML:
    Please help me Skype:bsid91
     
    SidhuZ, Oct 13, 2012 IP
  2. kevinn13

    kevinn13 Greenhorn

    Messages:
    24
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    11
    #2
    How many adds you got per page? if its 10 and you get 100x hits of 166700 for ads and 1667 pop adds remember some users will have pop up blockers.

    Have you tested this code for yourself? does the pop up appear everytime?
     
    kevinn13, Oct 14, 2012 IP