Please help! newbie to php

Discussion in 'PHP' started by mudi, Jul 6, 2007.

  1. #1
    www.achoogle.com

    On the site in Sponsored Links:

    I wanted to put the arcadebanners banner right above the funklicks banner ... how can I do that.

    <?php
    $adcode = show_ad("location=arcadebanners");
    if ($adcode) {
    ?> 
    <tr>
     <td width='100%' colspan='2' valign='top'>
    
      <div class='ocontentsection'>
       <div class='ocontenthead'>
        Sponsored Links
       </div>
       <div class='contenttext'>
    
    <center>
    <!-- BEGIN FunKlicks.com CODE -->
    <IFRAME SRC="http://www.funklicks.com/work.php?n=3000&size=1&c=1" width=100 height=100 marginwidth=0 marginheight=0 hspace=0 vspace=0 frameborder=0 scrolling="no"></IFRAME>
    <!-- END FunKlicks.com CODE -->
    <script type="text/javascript"><!--
    google_ad_client = "pub-66780375*******";
    google_ad_width = 300;
    google_ad_height = 250;
    google_ad_format = "300x250_as";
    google_ad_type = "text";
    //2007-07-06: achoogle text
    google_ad_channel = "8211691195";
    google_color_border = "FFFFFF";
    google_color_bg = "FFFFFF";
    google_color_link = "333333";
    google_color_text = "4C4C4C";
    google_color_url = "78B749";
    //-->
    </script>
    <script type="text/javascript"
      src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
    </script>
    <?php echo $adcode; ?>
    </center>
    
       </div>
      </div>
    
     </td>
    </tr>
    <?php
    }
    ?>
    Code (markup):
    <!-- Arcade Banners Code -->
    <script type="text/javascript" src="http://www.arcadebanners.com/banners.php?accessc=118*******"></script>
    <!-- End Code -->
    Code (markup):
    Thank you so much in advance!!!
     
    mudi, Jul 6, 2007 IP
    neroux likes this.
  2. uglyboy

    uglyboy Peon

    Messages:
    1,963
    Likes Received:
    134
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Maybe i understand what you are asking.. Will this not work

    <?php
    $adcode = show_ad("location=arcadebanners");
    if ($adcode) {
    ?> 
    <tr>
     <td width='100%' colspan='2' valign='top'>
    
      <div class='ocontentsection'>
       <div class='ocontenthead'>
        Sponsored Links
       </div>
       <div class='contenttext'>
    <center>
    <!-- Arcade Banners Code -->
    <script type="text/javascript" src="http://www.arcadebanners.com/banners.php?accessc=118*******"></script>
    <!-- End Code -->
    </center>
    <center>
    <!-- BEGIN FunKlicks.com CODE -->
    <IFRAME SRC="http://www.funklicks.com/work.php?n=3000&size=1&c=1" width=100 height=100 marginwidth=0 marginheight=0 hspace=0 vspace=0 frameborder=0 scrolling="no"></IFRAME>
    <!-- END FunKlicks.com CODE -->
    <script type="text/javascript"><!--
    google_ad_client = "pub-66780375*******";
    google_ad_width = 300;
    google_ad_height = 250;
    google_ad_format = "300x250_as";
    google_ad_type = "text";
    //2007-07-06: achoogle text
    google_ad_channel = "8211691195";
    google_color_border = "FFFFFF";
    google_color_bg = "FFFFFF";
    google_color_link = "333333";
    google_color_text = "4C4C4C";
    google_color_url = "78B749";
    //-->
    </script>
    <script type="text/javascript"
      src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
    </script>
    <?php echo $adcode; ?>
    </center>
    
       </div>
      </div>
    
     </td>
    </tr>
    <?php
    }
    ?>
    PHP:
     
    uglyboy, Jul 6, 2007 IP
  3. frawsty

    frawsty Peon

    Messages:
    134
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    <center></center> is depreciated.

    Use <div align="center"></div>
     
    frawsty, Jul 6, 2007 IP
  4. mudi

    mudi Peon

    Messages:
    58
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Thanks, I did that but please go & take a look:
    www.achoogle.com

    I wanted only two 100x100 arcade banners but wanted them to appear on the left side of the (Google Text Ads) top and bottom, so it seemed as if its the thumbnail of the game

    Thank you for the quick help , appreciated!


     
    mudi, Jul 6, 2007 IP
  5. frawsty

    frawsty Peon

    Messages:
    134
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    You have three thumbs though. Try using a table.
    Two columns. Left column with your thumbs and right column with your google.
     
    frawsty, Jul 6, 2007 IP
  6. mudi

    mudi Peon

    Messages:
    58
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #6
    only one problem I am using the script (GameSiteScript) editor..

    therefore am unable to draw tables..
     
    mudi, Jul 6, 2007 IP
  7. uglyboy

    uglyboy Peon

    Messages:
    1,963
    Likes Received:
    134
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Hi mudi

    Is this what you are looking for ?

    
    
    <?php
    $adcode = show_ad("location=arcadebanners");
    if ($adcode) {
    ?>
    <tr>
     <td width='100%' colspan='2' valign='top'>
    
      <div class='ocontentsection'>
       <div class='ocontenthead'>
        Sponsored Links
       </div>
       <div class='contenttext'>
    
    <center>
    <table>
    <tr>
    <td>
    <!-- Arcade Banners Code -->
    <script type="text/javascript" src="http://www.arcadebanners.com/banners.php?accessc=118*******"></script>
    <br><br>
    <script type="text/javascript" src="http://www.arcadebanners.com/banners.php?accessc=118*******"></script>
    <!-- End Code -->
    </td>
           <td>  <?php echo $adcode; ?>  </td>
    </tr>
    </table>
    </center>
    
       </div>
      </div>
    
     </td>
    </tr>
    <?php
    }
    ?>
    
    
    
    Code (markup):
     
    uglyboy, Jul 6, 2007 IP
  8. mudi

    mudi Peon

    Messages:
    58
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Thanks, just tried not working because there is no adsense text ads..
    all I am trying to do is place two of the three arcade banners on the left side of the ads, 1 at top other at bottom so it looks like as if its the thumbnail of the games??
     
    mudi, Jul 6, 2007 IP
  9. frawsty

    frawsty Peon

    Messages:
    134
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #9
    we know what youre trying to do. you just dont seem to know how to edit the area you want to get to...sorry, im over this thread.
     
    frawsty, Jul 7, 2007 IP
  10. mudi

    mudi Peon

    Messages:
    58
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #10
    Thanks for the help Frawsty!
     
    mudi, Jul 7, 2007 IP
  11. uglyboy

    uglyboy Peon

    Messages:
    1,963
    Likes Received:
    134
    Best Answers:
    0
    Trophy Points:
    0
    #11
    I must be my stupid head on or something.. I still can't get my head round what you want....

    I think the file you need to edit is plugins/site/themes/YOURTHEMENAME/home2.php..

    And this code produces something like this:
    adsensenotallowed.jpg


    <center>
    <table>
    <tr>
    <td>
    <!-- Arcade Banners Code -->
    <script type="text/javascript" src="http://www.arcadebanners.com/banners.php?accessc=118*******"></script>
    <br><br>
    <script type="text/javascript" src="http://www.arcadebanners.com/banners.php?accessc=118*******"></script>
    <!-- End Code -->
    </td>
    <td> PUT YOUR 300x250 AdSense code here </td>
    </tr>
    </table>
    </center>


    By the way I think you may find that it is against Googles TOS to place images next to adsense ads in this fashion.!!.

    You way want to check it out before displaying adsense in way....
     
    uglyboy, Jul 7, 2007 IP
  12. mudi

    mudi Peon

    Messages:
    58
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #12
    Mr. uglyboy,
    first of all if this forum is getting anywhere it is because of people like you, thank you so much for all the contribution you made in trying to help me, just to let you know the end result came out great the images were besite just like it is shown in ur screenshot, I will ask around on this forum to findout whether its permitted or not.

    Thank you soooo much again! I owe u 1
     
    mudi, Jul 7, 2007 IP
  13. uglyboy

    uglyboy Peon

    Messages:
    1,963
    Likes Received:
    134
    Best Answers:
    0
    Trophy Points:
    0
    #13
    No worries.. Its nice to be nice...
     
    uglyboy, Jul 7, 2007 IP