PHProxy and adversal code help

Discussion in 'Programming' started by xdk67, Feb 8, 2007.

  1. #1
    Hi,

    i would like to add adversal ads in proxified pages. I am using phproxy 0.4

    My question is, where do i have to insert the adversal code in order to do that?

    Thanks in advance for your help.
     
    xdk67, Feb 8, 2007 IP
  2. toughguy

    toughguy Well-Known Member

    Messages:
    846
    Likes Received:
    26
    Best Answers:
    0
    Trophy Points:
    118
    #2
    Hi,
    I guess the adversal code must be inserted in the head section between <head> and </head> of any page where we want to put the Ads.

    Regards,
     
    toughguy, Feb 9, 2007 IP
  3. hashen27

    hashen27 Active Member

    Messages:
    665
    Likes Received:
    39
    Best Answers:
    0
    Trophy Points:
    70
    #3
    In your index.php file go down to about like 1140 or so.

    Thats where the code for the header of the proxified pages is
     
    hashen27, Feb 11, 2007 IP
  4. bobby9101

    bobby9101 Peon

    Messages:
    3,292
    Likes Received:
    134
    Best Answers:
    0
    Trophy Points:
    0
    #4
    hashen, can you post what you mean?
    I don't see it
     
    bobby9101, Feb 11, 2007 IP
  5. Alec.Cior

    Alec.Cior Peon

    Messages:
    82
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #5
    But index.php in PHProxy doesn't have any <head> tag! Where I should put adversal codes in PHProxy?

    Thanks.
     
    Alec.Cior, Feb 11, 2007 IP
  6. hashen27

    hashen27 Active Member

    Messages:
    665
    Likes Received:
    39
    Best Answers:
    0
    Trophy Points:
    70
    #6
    
            $_url_form      = '<div style="width:100%;margin:0;text-align:center;border-bottom:1px solid #725554;color:#000000;background-color:#F2FDF3;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 />';
    Code (markup):
    That is the code for the header of the proxified pages.

    Contact me if you want it coding as i can do it for quite cheap :)

    EDIT: That code starts at line 1141
     
    hashen27, Feb 12, 2007 IP
  7. bobby9101

    bobby9101 Peon

    Messages:
    3,292
    Likes Received:
    134
    Best Answers:
    0
    Trophy Points:
    0
    #7
    ahh, that is where I put my code, but when I saw your post I thought you meant something else.
     
    bobby9101, Feb 12, 2007 IP