Page 3 of 4 FirstFirst 1234 LastLast
Results 21 to 30 of 40

Thread: Link And Http Referer

  1. #21
    h1
    Guest
    That's illegal, BTW.

    Try adding <plaintext> and </plaintext> around the ads script, and in CSS, do...
    Code:
    plaintext
    {
     &nbsp; display &#58; none;
     &nbsp; left &#58; -1000ex;
     &nbsp; position &#58; absolute;
     &nbsp; top &#58; -1000ex;
    }

  2. Internet, Programming and Graphics   -   #22
    Really. I did not know that. I did not think so because it a site outside of members.lycos.co.uk. oh well i guess i can live with it. (the ad)

  3. Internet, Programming and Graphics   -   #23
    Originally posted by haxor41789@13 February 2004 - 19:52
    That&#39;s illegal, BTW.

    Try adding <plaintext> and </plaintext> around the ads script, and in CSS, do...
    Code:
    plaintext
    {
      display &#58; none;
      left &#58; -1000ex;
      position &#58; absolute;
      top &#58; -1000ex;
    }
    I can not edit any of the ad code.
    am guesing if i edit

    Code:
    print&#40;&#34;&#60;meta http-equiv=&#39;refresh&#39; content=&#39;0; url=&#036;ref&#39;&#62;&#34;&#41;;
    to be like

    Code:
    print&#40;&#34;&#60;meta http-equiv=&#39;refresh&#39; content=&#39;0; url=&#036;ref&#39;&#62;&#34;&#60;script LANGUAGE=&#34;JavaScript&#34;&#62;
     if &#40;top &#33;= self&#41; {top.location.href = self.location.href;}
    &#60;/SCRIPT&#62;&#41;;
    it could work.

  4. Internet, Programming and Graphics   -   #24
    Ynhockey's Avatar Poster
    Join Date
    Jan 2003
    Location
    Israel
    Posts
    406
    I was just wondering, what&#39;s the reason for you not wanting to show your website as a referrer ?

    I mean, I can&#39;t think of any good reason off my head right now... and HTTP Referrers is an important thing for webmasters (to know where their traffic is coming from), for many reasons.

    Just wondering.

    Btw, I believe your last piece of code would generate a parse error.

  5. Internet, Programming and Graphics   -   #25
    Originally posted by Ynhockey@13 February 2004 - 23:30
    I was just wondering, what&#39;s the reason for you not wanting to show your website as a referrer ?

    I mean, I can&#39;t think of any good reason off my head right now... and HTTP Referrers is an important thing for webmasters (to know where their traffic is coming from), for many reasons.

    Just wondering.

    Btw, I believe your last piece of code would generate a parse error.
    I want to link to sites that..... may not approve of the subject.

    I believe your last piece of code would generate a parse error.
    do you know how to make it work. php is not my forte

  6. Internet, Programming and Graphics   -   #26
    h1
    Guest
    You&#39;re treating &#036;ref as a string literal without an unescape -- &#036; is a reserved character.
    Code:
    echo &#39;&#60;meta http-equiv=&#34;refresh&#34; content=&#34;0; url=&#39;;
    echo &#036;ref;
    echo &#39;&#34; /&#62;&#39;;
    That should do it.

  7. Internet, Programming and Graphics   -   #27
    Ynhockey's Avatar Poster
    Join Date
    Jan 2003
    Location
    Israel
    Posts
    406
    echo "<meta http-equiv=&#39;refresh&#39; content=&#39;0; url=&#39;".&#036;ref."&#39;>&#092;n
    &#60;script type=&#092;"text/javascript&#092;">&#092;n
    if (top &#33;= self) &#092;{ top.location.href = self.location.href; }&#092;n
    </script>";

    There&#39;s still a slight chance that it will generate a parse error (didn&#39;t test it), but i think it won&#39;t.

    Good luck

  8. Internet, Programming and Graphics   -   #28
    Code:
    &#60;?php
    if &#40;&#036;_GET&#91;&#34;ref&#34;&#93;&#41; { &#036;ref=&#036;_GET&#91;&#34;ref&#34;&#93;; }echo &#39;&#60;meta http-equiv=&#34;refresh&#34; content=&#34;0; url=&#39;;
    echo &#036;ref;
    echo &#39;&#34; /&#62;&#39;;
    
    echo &#39;&#60;script language=&#34;javascript&#34;&#62;&#60;&#33;--
    if &#40;self.location.href &#33;= top.window.location.href&#41;
    { top.window.location.href = self.location.href }
    //--&#62;&#60;/script&#62; &#39;;
    
    ?&#62;
    This works perfect now. Thanks everybody.

    Test

    Special thanks goes to haxor41789 for the php help.

    Works in both Mozilla and Internet Explorer even with ad muncher running.

  9. Internet, Programming and Graphics   -   #29
    h1
    Guest
    Good job.

  10. Internet, Programming and Graphics   -   #30
    Code:
    &#60;?php
    if &#40;&#036;_GET&#91;&#34;ref&#34;&#93;&#41; { &#036;ref=&#036;_GET&#91;&#34;ref&#34;&#93;; }echo &#39;&#60;meta http-equiv=&#34;refresh&#34; content=&#34;0; url=&#39;;
    echo &#036;ref;
    echo &#39;&#34; /&#62;&#39;;
    
    echo &#39;&#60;script language=&#34;javascript&#34;&#62;&#60;&#33;--
    if &#40;self.location.href &#33;= top.window.location.href&#41;
    { top.window.location.href = self.location.href }
    //--&#62;&#60;/script&#62; &#39;;
    
    echo &#39;&#60;br&#62;&#39;;
    echo &#39;&#60;a href=&#34;&#39;;
    echo &#036;ref;
    echo &#39;&#34;&#62;&#39;;
    echo &#036;ref;
    echo &#39;&#60;/a&#62;&#39;;
    
    ?&#62;
    I decided to add an link too. I find it kind of cumbersome to use a bunch of echo(s).

Page 3 of 4 FirstFirst 1234 LastLast

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
  •