Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 23

Thread: [PHP] Placing the Ads in PHP Pages

  1. #11
    yhap2003 is offline x10 Sophmore
    Join Date
    Mar 2005
    Posts
    111
    With the code prasys posted here it's far more easier to get the ad working. I had my problems using the first set of codes!!!

  2. #12
    joejoe is offline x10Hosting Member
    Join Date
    Mar 2005
    Posts
    13
    How to do that in HTML (not PHP)?

  3. #13
    Richard's Avatar
    Richard is offline x10 Elder
    Join Date
    Feb 2005
    Location
    South Africa
    Posts
    1,014
    You can just place the ad code anyware between the <body> </body> tags
    sourcewave.net -- Linux is like a teepee, no Windows, no Gates, Apache inside.

  4. #14
    BrettFreeman's Avatar
    BrettFreeman is offline x10Hosting Member
    Join Date
    Mar 2005
    Posts
    53

    Re: Placing the Ads in Various Pages

    You can include HTML in PHP. For example:
    PHP Code:
    <html>
    <head>
    <title>TITLE</title>
    </head>
    <body>
    <p>Html</p>
    <?
    $test 
    "PHP!";

    echo 
    "$test";

    ?>
    <p>HTML again</p>
    </body>
    </html>
    -Brett Freeman

    $me = "Cool";

  5. #15
    Chris's Avatar
    Chris is offline x10 Elder
    Join Date
    Feb 2005
    Posts
    769

    Re: Placing the Ads in Various Pages

    Quote Originally Posted by joejoe
    How to do that in HTML (not PHP)?
    Seeker responded correctly, but just to clarify, if you are posting it in HTML pages, you don't use the modified "echo" tags. You just use the original code provided in the other thread.

  6. #16
    Conquester777's Avatar
    Conquester777 is offline x10Hosting Member
    Join Date
    Mar 2005
    Location
    Vancouver, BC, Canada
    Posts
    90

    Re: Placing the Ads in Various Pages

    Why use echo so much? This works (0.000001secs) faster:

    Corporate:
    Code:
    echo '<script language="JavaScript" type="text/javascript" src="http://x10hosting.com/advert/adx.js"></script> <script language="JavaScript" type="text/javascript"> <!-- if (!document.phpAds_used) document.phpAds_used = \',\'; phpAds_random = new String (Math.random()); phpAds_random = phpAds_random.substring(2,11); document.write ("<" + "script language=\'JavaScript\' type=\'text/javascript\' src=\'"); document.write ("http://x10hosting.com/advert/adjs.php?n=" + phpAds_random); document.write ("&amp;what=zone:1&amp;target=_blank"); document.write ("&amp;exclude=" + document.phpAds_used); if (document.referrer) document.write ("&amp;referer=" + escape(document.referrer)); document.write ("\'><" + "/script>"); //--> </script>';<noscript><a href="http://x10hosting.com/advert/adclick.php?n=a7fb3e9d" target="_blank"><img src="http://x10hosting.com/advert/adview.php?what=zone:1&amp;n=a7fb3e9d" border="0" alt=""></a></noscript>
    Advance:
    Code:
    echo '<script language="JavaScript" type="text/javascript" src="http://x10hosting.com/advert/adx.js"></script> <script language="JavaScript" type="text/javascript"> <!-- if (!document.phpAds_used) document.phpAds_used = \',\'; phpAds_random = new String (Math.random()); phpAds_random = phpAds_random.substring(2,11); document.write ("<" + "script language=\'JavaScript\' type=\'text/javascript\' src=\'"); document.write ("http://x10hosting.com/advert/adjs.php?n=" + phpAds_random); document.write ("&amp;what=zone:2&amp;target=_blank"); document.write ("&amp;exclude=" + document.phpAds_used); if (document.referrer) document.write ("&amp;referer=" + escape(document.referrer)); document.write ("\'><" + "/script>"); //--> </script><noscript><a href="http://x10hosting.com/advert/adclick.php?n=a4f0eec1" target="_blank"><img src="http://x10hosting.com/advert/adview.php?what=zone:2&amp;n=a4f0eec1" border="0" alt=""></a></noscript>
    Static:
    Code:
    echo '<script language="JavaScript" type="text/javascript" src="http://x10hosting.com/advert/adx.js"></script> <script language="JavaScript" type="text/javascript"> <!-- if (!document.phpAds_used) document.phpAds_used = \',\'; phpAds_random = new String (Math.random()); phpAds_random = phpAds_random.substring(2,11); document.write ("<" + "script language=\'JavaScript\' type=\'text/javascript\' src=\'"); document.write ("http://x10hosting.com/advert/adjs.php?n=" + phpAds_random); document.write ("&amp;what=zone:3&amp;target=_blank"); document.write ("&amp;exclude=" + document.phpAds_used); if (document.referrer) document.write ("&amp;referer=" + escape(document.referrer)); document.write ("\'><" + "/script>"); //--> </script><noscript><a href="http://x10hosting.com/advert/adclick.php?n=a915c788" target="_blank"><img src="http://x10hosting.com/advert/adview.php?what=zone:3&amp;n=a915c788" border="0" alt=""></a></noscript>
    Somebody help you out?
    SHOP
    Click on the UK LONDON SHOP to raise their rep bar!

  7. #17
    Chris's Avatar
    Chris is offline x10 Elder
    Join Date
    Feb 2005
    Posts
    769

    Re: Placing the Ads in Various Pages

    None of those work...

    You can't have the code on one line...
    Last edited by Chris; 04-07-2005 at 10:38 AM.

  8. #18
    kaliforna is offline x10Hosting Member
    Join Date
    Mar 2005
    Posts
    30

    Re: Placing the Ads in Various Pages

    Question: how would one go about adding the advertisement into a .CGI script?

    ~kaliforna

    btw: thank-you for the PHP help, works fine! as well as the HTML version. Now,
    back to the question. CGI addition of the advertisement. thankz for the info. l8r

  9. #19
    kaliforna is offline x10Hosting Member
    Join Date
    Mar 2005
    Posts
    30

    Re: Placing the Ads in Various Pages

    Quote Originally Posted by kaliforna
    Question: how would one go about adding the advertisement into a .CGI script?

    ~kaliforna

    btw: thank-you for the PHP help, works fine! as well as the HTML version. Now,
    back to the question. CGI addition of the advertisement. thankz for the info. l8r
    . sit'n around, dazed and confused! ~ CGI advertisement ? :blink:

  10. #20
    hotvins is offline x10Hosting Member
    Join Date
    Mar 2005
    Posts
    10

    Re: [PHP] Placing the Ads in PHP Pages

    Hi

    How to integrate Google Adsense ads in the 4images gallery, coppermine photo gallery and phpbb ?

Page 2 of 3 FirstFirst 123 LastLast

Similar Threads

  1. [PHP] MySQL and PHP
    By Bryon in forum Tutorials
    Replies: 45
    Last Post: 02-09-2013, 09:45 PM
  2. [PHP] Variables in PHP
    By Bryon in forum Tutorials
    Replies: 15
    Last Post: 01-29-2009, 09:46 AM
  3. how can i convert Php pages and code into asp pages and code
    By n4tec in forum Scripts, 3rd Party Apps, and Programming
    Replies: 11
    Last Post: 01-10-2009, 09:40 PM
  4. [PHP] PHP For Starters
    By Complex in forum Tutorials
    Replies: 24
    Last Post: 06-14-2008, 11:40 PM
  5. Unstand PHP?
    By o0slowpaul0o in forum Tutorials
    Replies: 8
    Last Post: 01-07-2008, 09:16 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
dedicated servers