Page 1 of 2 12 LastLast
Results 1 to 10 of 19

Thread: Ads on phproxy proxified pages.

  1. #1
    Stylosa's Avatar
    Stylosa is offline Net Builder
    Join Date
    Jan 2009
    Location
    UK
    Posts
    286
    Thanks
    26
    Thanked 27 Times in 16 Posts

    Ads on phproxy proxified pages.

    Now with glype this is easy! I'm looking to add adverts to the proxy frame using phproxy. I've tried this method,

    Code:
    $_url_form      = '<div style="width:100%;margin:0;text-align:center;border-bottom:1px solid 
    
    #000;color:#fff;background:#654d8d;font-size:12px;font-weight:bold;font-family:Bitstream Vera 
    
    Sans,arial,sans-serif;padding:4px;">'
                            . '<form method="post" action="' . $_script_url . '">'
                            . ' <label for="____' . $_config['url_var_name'] . '"><a href="' . $_url . 
    
    '">Address</a>:</label> <input id="____' . $_config['url_var_name'] . '" type="text" size="80" name="' . 
    
    $_config['url_var_name'] . '" value="' . $_url . '" />'
                            . ' <input type="submit" name="go" value="Go" />'
                            . ' [go: <a href="' . $_script_url . '?' . $_config['url_var_name'] . '=' . 
    
    encode_url($_url_parts['prev_dir']) .' ">up one dir</a>, <a href="' . $_script_base . '">main page</a>]'
                            . '<br /><hr />';
    Adding to the code to,

    Code:
    . '<br /><hr />'<!-- Begin: AdBrite, Generated: 2009-02-09 7:59:31  -->
    <script type="text/javascript">
    var AdBrite_Title_Color = '0000FF';
    var AdBrite_Text_Color = '000000';
    var AdBrite_Background_Color = 'FFFFFF';
    var AdBrite_Border_Color = 'CCCCCC';
    var AdBrite_URL_Color = '008000';
    try{var AdBrite_Iframe=window.top!=window.self?2:1;var AdBrite_Referrer=document.referrer==''?document.location:document.referrer;AdBrite_Referrer=encodeURIComponent(AdBrite_Referrer);}catch(e){var AdBrite_Iframe='';var AdBrite_Referrer='';}
    </script>
    <span style="white-space:nowrap;"><script type="text/javascript">document.write(String.fromCharCode(60,83,67,82,73,80,84));document.write(' src="http://ads.adbrite.com/mb/text_group.php?sid=1024134&zs=3436385f3630&ifr='+AdBrite_Iframe+'&ref='+AdBrite_Referrer+'" type="text/javascript">');document.write(String.fromCharCode(60,47,83,67,82,73,80,84,62));</script>
    <a target="_top" href="http://www.adbrite.com/mb/commerce/purchase_form.php?opid=1024134&afsid=1"><img src="http://files.adbrite.com/mb/images/adbrite-your-ad-here-banner.gif" style="background-color:#CCCCCC;border:none;padding:0;margin:0;" alt="Your Ad Here" width="11" height="60" border="0" /></a></span>
    <!-- End: AdBrite -->;
    I am trying to add code between these tags,

    Code:
    '<br /><hr />';
    I just can't get it to work, what am I missing?

  2. #2
    Aquarezz's Avatar
    Aquarezz is offline Master Net Builder
    Join Date
    Dec 2008
    Location
    Belgium
    Posts
    3,853
    Blog Entries
    4
    Thanks
    683
    Thanked 591 Times in 463 Posts
    You need to add it between
    <br /> & <hr />

    So:
    <br />CODE HERE<hr />

    Not before or after the tags, add the code between it.

    Greetz
    |Nico Lawsons

  3. #3
    Stylosa's Avatar
    Stylosa is offline Net Builder
    Join Date
    Jan 2009
    Location
    UK
    Posts
    286
    Thanks
    26
    Thanked 27 Times in 16 Posts
    placing the code like that produces this error,

    Parse error: syntax error, unexpected T_LNUMBER in /home/infofree/public_html/GETWORKDONE.INFO/index.php on line 1149

    Still can't get this to work at all.

  4. #4
    Aquarezz's Avatar
    Aquarezz is offline Master Net Builder
    Join Date
    Dec 2008
    Location
    Belgium
    Posts
    3,853
    Blog Entries
    4
    Thanks
    683
    Thanked 591 Times in 463 Posts
    Strange, as this works on all my proxies, and it's always explained like that :s

    Have you tried a different template already or not?

    Greetz
    |Nico Lawsons

  5. #5
    Stylosa's Avatar
    Stylosa is offline Net Builder
    Join Date
    Jan 2009
    Location
    UK
    Posts
    286
    Thanks
    26
    Thanked 27 Times in 16 Posts
    Yeah sure have, adding the ad code between the tags <br /><hr /> causes the sites to error crash and burn!

  6. #6
    Mr.Bill's Avatar
    Mr.Bill is offline One is glad to be of service
    Join Date
    Dec 2008
    Location
    Redmond, Oregon
    Posts
    828
    Blog Entries
    1
    Thanks
    72
    Thanked 350 Times in 182 Posts
    So you of course have been told about that <br /><hr />

    But I will start here

    On or around line 1147 find the

    Code:
    <br /><hr />
    Then using this sample
    Code:
    <br />(YourAdCode Here)<hr />
    and in between those put you adbrite code also be sure to change this part of your Adbrite code

    Code:
    var AdBrite_Title_Color = '0000FF';
    var AdBrite_Text_Color = '000000';
    var AdBrite_Background_Color = 'FFFFFF';
    var AdBrite_Border_Color = 'CCCCCC';
    var AdBrite_URL_Color = '008000';
    To this

    Code:
    var AdBrite_Title_Color = \'0000FF\';
    var AdBrite_Text_Color = \'000000\';
    var AdBrite_Background_Color = \'FFFFFF\';
    var AdBrite_Border_Color = \'CCCCCC\';
    var AdBrite_URL_Color = \'008000\';
    Also adding a <br /> after the AdBrite code, will ensure your ads dont collide with the check boxes.

    Reverse IP Check ಠ_ಠ Proxy Sites
    <?php if ($youask == 'stupid question') { echo ('stupid answer'); } ?>

  7. #7
    Stylosa's Avatar
    Stylosa is offline Net Builder
    Join Date
    Jan 2009
    Location
    UK
    Posts
    286
    Thanks
    26
    Thanked 27 Times in 16 Posts
    So folling your guidelines Mr.Bill I get this result

    Code:
    '<br /><!-- Begin: AdBrite, Generated: 2009-02-09 14:56:19  -->
    <script type="text/javascript">
    var AdBrite_Title_Color = \'0000FF'\;
    var AdBrite_Text_Color = \'000000'\;
    var AdBrite_Background_Color = \'FFFFFF'\;
    var AdBrite_Border_Color = \'CCCCCC'\;
    var AdBrite_URL_Color = \'008000'\;
    try{var AdBrite_Iframe=window.top!=window.self?2:1;var AdBrite_Referrer=document.referrer==''?document.location:document.referrer;AdBrite_Referrer=encodeURIComponent(AdBrite_Referrer);}catch(e){var AdBrite_Iframe='';var AdBrite_Referrer='';}
    </script>
    <span style="white-space:nowrap;"><script type="text/javascript">document.write(String.fromCharCode(60,83,67,82,73,80,84));document.write(' src="http://ads.adbrite.com/mb/text_group.php?sid=1024134&zs=3436385f3630&ifr='+AdBrite_Iframe+'&ref='+AdBrite_Referrer+'" type="text/javascript">');document.write(String.fromCharCode(60,47,83,67,82,73,80,84,62));</script>
    <a target="_top" href="http://www.adbrite.com/mb/commerce/purchase_form.php?opid=1024134&afsid=1"><img src="http://files.adbrite.com/mb/images/adbrite-your-ad-here-banner.gif" style="background-color:#CCCCCC;border:none;padding:0;margin:0;" alt="Your Ad Here" width="11" height="60" border="0" /></a></span>
    <!-- End: AdBrite --><br /><hr />';
    Warning: Unexpected character in input: '\' on line 1149

    Parse error: syntax error, unexpected T_VAR on line 1150

    Both line numbers are in bold above, 1149 first.

    Thanks for the help you guys are giving by the way

  8. #8
    Stylosa's Avatar
    Stylosa is offline Net Builder
    Join Date
    Jan 2009
    Location
    UK
    Posts
    286
    Thanks
    26
    Thanked 27 Times in 16 Posts
    oh hang on the /'s are in the wrong place!

  9. #9
    Stylosa's Avatar
    Stylosa is offline Net Builder
    Join Date
    Jan 2009
    Location
    UK
    Posts
    286
    Thanks
    26
    Thanked 27 Times in 16 Posts
    OK sorting ouy the placement of the \'s has reduced the number of errors to 1 now.

    Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING On line 1154

    The line is highlighted below

    Code:
    '<br /><!-- Begin: AdBrite, Generated: 2009-02-09 14:56:19  -->
    <script type="text/javascript">
    var AdBrite_Title_Color = \'0000FF\';
    var AdBrite_Text_Color = \'000000\';
    var AdBrite_Background_Color = \'FFFFFF\';
    var AdBrite_Border_Color = \'CCCCCC\';
    var AdBrite_URL_Color = \'008000\';
    try{var AdBrite_Iframe=window.top!=window.self?2:1;var AdBrite_Referrer=document.referrer==''?document.location:document.referrer;AdBrite_Referrer=encodeURIComponent(AdBrite_Referrer);}catch(e){var AdBrite_Iframe='';var AdBrite_Referrer='';}
    </script>
    <span style="white-space:nowrap;"><script type="text/javascript">document.write(String.fromCharCode(60,83,67,82,73,80,84));document.write(' src="http://ads.adbrite.com/mb/text_group.php?sid=1024134&zs=3436385f3630&ifr='+AdBrite_Iframe+'&ref='+AdBrite_Referrer+'" type="text/javascript">');document.write(String.fromCharCode(60,47,83,67,82,73,80,84,62));</script>
    <a target="_top" href="http://www.adbrite.com/mb/commerce/purchase_form.php?opid=1024134&afsid=1"><img src="http://files.adbrite.com/mb/images/adbrite-your-ad-here-banner.gif" style="background-color:#CCCCCC;border:none;padding:0;margin:0;" alt="Your Ad Here" width="11" height="60" border="0" /></a></span>
    <!-- End: AdBrite --><br /><hr />';

  10. #10
    Mr.Bill's Avatar
    Mr.Bill is offline One is glad to be of service
    Join Date
    Dec 2008
    Location
    Redmond, Oregon
    Posts
    828
    Blog Entries
    1
    Thanks
    72
    Thanked 350 Times in 182 Posts
    Can you do this for me remove this entire line

    Code:
    try{var AdBrite_Iframe=window.top!=window.self?2:1;var AdBrite_Referrer=document.referrer==''?document.location:document.referrer;AdBrite_Referrer=encodeURIComponent(AdBrite_Referrer);}catch(e){var AdBrite_Iframe='';var AdBrite_Referrer='';}

    Reverse IP Check ಠ_ಠ Proxy Sites
    <?php if ($youask == 'stupid question') { echo ('stupid answer'); } ?>

Page 1 of 2 12 LastLast

Similar Threads

  1. Any good ads for proxified pages?
    By Greyhound in forum Monetizing
    Replies: 17
    Last Post: 21 November, 2010, 13:08 PM
  2. Replies: 1
    Last Post: 23 August, 2010, 21:09 PM
  3. Tutorial: Edit proxified form (phproxy)
    By ruben in forum Web Proxies
    Replies: 0
    Last Post: 4 October, 2009, 17:33 PM
  4. Any good CPM ads for proxified pages?
    By Greyhound in forum Web Proxies
    Replies: 25
    Last Post: 21 July, 2009, 09:54 AM
  5. CPM rate on proxified pages
    By nux in forum Web Proxies
    Replies: 7
    Last Post: 14 March, 2009, 02:52 AM

Tags for this Thread

Bookmarks

Posting Permissions

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