Activity Stream
48,167 MEMBERS
6905 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Page 1 of 3 123 LastLast
Results 1 to 10 of 25

Hybrid View

roadrunner IMG iFrame code with redirect 5th Sep 2011, 08:27 PM
roadrunner Ok so i have found what i want BUT... 5th Sep 2011, 09:31 PM
jokerhacker i get "404 Not Found - The page or... 5th Sep 2011, 09:35 PM
roadrunner yeah it redirects to what ever url... 5th Sep 2011, 09:41 PM
jokerhacker ah, so you need test.php not html... 5th Sep 2011, 09:53 PM
roadrunner Yes i can see how this would work... 5th Sep 2011, 10:00 PM
jokerhacker yes because you should call... 5th Sep 2011, 10:11 PM
roadrunner Ok cool i understand that .....so... 5th Sep 2011, 10:33 PM
jokerhacker i think they are the same??... 5th Sep 2011, 10:47 PM
roadrunner Sorry my mistake mine reads: ... 5th Sep 2011, 10:52 PM
roadrunner Not sure why it wont copy and... 5th Sep 2011, 10:58 PM
jokerhacker just change... 5th Sep 2011, 11:01 PM
roadrunner Great stuff thanks. ! I made it ... 5th Sep 2011, 11:19 PM
roadrunner Last bit im stuck on now is how do... 6th Sep 2011, 07:47 AM
jokerhacker just make a txt file, lets say... 6th Sep 2011, 07:58 AM
roadrunner Ok again i can see and understand... 6th Sep 2011, 08:10 AM
jokerhacker http://i.imgur.com/Ygfmy.png you... 6th Sep 2011, 08:13 AM
roadrunner Works a treat THANKS And just so... 6th Sep 2011, 08:20 AM
jokerhacker yes, that's it no, that's... 6th Sep 2011, 08:23 AM
roadrunner Ive come across a slight error ... 7th Sep 2011, 12:59 PM
jokerhacker which variable contain that image... 7th Sep 2011, 01:57 PM
roadrunner This is my upload.php im unsure... 7th Sep 2011, 02:04 PM
roadrunner Having had another look at it, when... 7th Sep 2011, 02:07 PM
jokerhacker i can help you on teamviewer if you... 7th Sep 2011, 02:42 PM
roadrunner Ok PM sent Thanks 7th Sep 2011, 03:15 PM
Previous Post Previous Post   Next Post Next Post
  1.     
    #1
    Member
    Website's:
    porndex.eu massprchecker.com

    Question IMG iFrame code with redirect

    Or atleast i think thats what i need...

    I have an Image Hosting website and at the moment if the thumbs are clicked it redirects via an ad.fly short code..

    Its getting 1000+ UV's a day and only making me around $2

    So what i want to do is get rid of the adf.ly link and have it so when an end user clicks the thumb in a forum or where ever its posted, it redirects to my site where a forced 5 second add is displayed then the link will display and off they go to the image.

    Now im not very clever at code, but i can muddle through when needed, im not asking for someone to do it for me or being lazy ,I just need a pointer in the right direction.

    Thanks all

    RR
    roadrunner Reviewed by roadrunner on . IMG iFrame code with redirect Or atleast i think thats what i need... :facepalm: I have an Image Hosting website and at the moment if the thumbs are clicked it redirects via an ad.fly short code.. Its getting 1000+ UV's a day and only making me around $2 So what i want to do is get rid of the adf.ly link and have it so when an end user clicks the thumb in a forum or where ever its posted, it redirects to my site where a forced 5 second add is displayed then the link will display and off they go to the image. Rating: 5

  2.   Sponsored Links

  3.     
    #2
    Member
    Website's:
    porndex.eu massprchecker.com
    Ok so i have found what i want BUT im unsure how to implement it.

    URL:
    http://tih.me/test.php <---- This does what i want

    Im stuck on

    1/ How to make it so it lands there from the thumb click
    2/ Redirect to the correct image

    Thanks
    RR

  4.     
    #3
    Member
    Website's:
    tehMoviez.com 0Senes.com GeekFaceGames.com
    i get "404 Not Found - The page or file you requested does not exist." on that link??

  5.     
    #4
    Member
    Website's:
    porndex.eu massprchecker.com
    yeah it redirects to what ever url i put in there, but what i want to do is make it redirect to the original path.

    So for instance you click this image:

    [IMG][/IMG]

    It would take you to the picture

    What i want is for the test.html to show then goto http://tih.me/?pm=16J1 but the end picture ID changes per picture so is there a way that the test.html page can show then travel on to where its ment to, with out me having to make a page for every image upploaded.

    If you test it again http://tih.me/test.html it will bring you right back here, but i have had to manually add the url..

    Cheers
    RR

  6.     
    #5
    Member
    Website's:
    tehMoviez.com 0Senes.com GeekFaceGames.com
    ah, so you need test.php not html
    and do something like the following code:
    PHP Code: 
    <?php
    if(isset($_GET['pm'])){ ?>

    <html> 

    <head> 

    <title>Webcoding Easy Advertisment</title> 

    <script type="text/ecmascript"> 

                // <![CDATA[

                

                    function skip_page()

                    {

                        var attachform = document.getElementById("seconds");

                        var form = document.createElement("form");

                        form.setAttribute("method", "post");

                        form.setAttribute("action", "");

                        var inp = document.createElement("input");

                        inp.setAttribute("type", "hidden");

                        inp.setAttribute("value", "true");

                        inp.setAttribute("name", "pop_under_skip");

                        form.appendChild(inp);

                        attachform.appendChild(form);

                        form.submit();

                    }

                    var seconds = "5";

                    function redirect()

                    {

                        window.location = "http://tih.me/?pm=<?php echo $_GET['pm']; ?>";

                    }

                    function update ()

                    {

                        if(seconds > 0)

                        {

                            seconds--;

                            document.getElementById("seconds").innerHTML = seconds + " seconds left";

                            setTimeout("update();", 1000);

                        }

                        else

                        {

                            document.getElementById("seconds").innerHTML = "Redirecting";

                            setTimeout("redirect();", 1000);

                        }

                    }

                    

                    window.onload = function () 

                    {

                        setTimeout("update();", 1000);

                    }            

                // ]]>

                </script> 

    </head> 

    <body> 

    <table style='height:80px; width:100%; text-align: center; border: 0;'> 

    <tr> 

        <td style='width: 70%'> 

            <h3>Webcoding Easy</h3> 

        </td> 

        <td style='width: 30%'> 

            <p id='seconds'>Waiting for page to load</p> 

            

        </td> 

    </tr> 

    </table> 

    <iframe name='content' src='http://webcodingeasy.com' width='100%' height='100%'/> 

    <noframes>

    <p><a href='/my_classes/pop_under_class/example.php?id=1'>Continue to page</a></p>

    </noframes>

    </body>

    </html>
    <?php }
    else {
    //redirect to home or show an error or something
    }
    ?>
    don't forget to change the source frame too

  7.     
    #6
    Member
    Website's:
    porndex.eu massprchecker.com
    Yes i can see how this would work BUT all im getting is a blank page,
    I have entered your code into test1.php

    http://tih.me/test1.php

    And thanks for your help

  8.     
    #7
    Member
    Website's:
    tehMoviez.com 0Senes.com GeekFaceGames.com
    yes because you should call http://tih.me/test1.php?pm=imageid

  9.     
    #8
    Member
    Website's:
    porndex.eu massprchecker.com
    Ok cool i understand that .....so now im in my config.php trying to make the output look right.

    The original is this:
    Code: 
    return (!is_null($linkaddress)?'':'').'[IMG]'.$imageaddress.'[/IMG]'.(!is_null($linkaddress)?'':'');
    Mine is this:
    Code: 
    return (!is_null($linkaddress)?'':'').'[IMG]'.$imageaddress.'[/IMG]'.(!is_null($linkaddress)?'':'');
    Now of coarse this isnt working because its not adding the (id) after the advert.php

    Any ideas ?

    Cheers
    RR

  10.     
    #9
    Member
    Website's:
    tehMoviez.com 0Senes.com GeekFaceGames.com
    i think they are the same??
    besides, it will be easier to help you if you provide more details

  11.     
    #10
    Member
    Website's:
    porndex.eu massprchecker.com
    Sorry my mistake mine reads:

    Code: 
    return (!is_null($linkaddress)?'':'').'[IMG]'.$imageaddress.'[/IMG]'.(!is_null($linkaddress)?'':'');
    If you go here:
    http://tih.me/?pm=Y655

    You will see under "BBCode (Forums):" the output, its missing the "?pm=Y655"

    And i cant figure out how to get it there

    Thanks
    RR

Page 1 of 3 123 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Need help code for prevent iFrame
    By MediaStar in forum Web Application/Script Support
    Replies: 2
    Last Post: 7th Jul 2012, 02:52 AM
  2. Code needed for redirect
    By Sponge Bob in forum Webmaster Discussion
    Replies: 2
    Last Post: 18th Jul 2011, 03:07 PM
  3. scripter needed for redirect code
    By kuzukuzu in forum Completed Transactions
    Replies: 11
    Last Post: 11th Dec 2010, 11:22 AM
  4. iFrame code or object help need
    By lib3rty1 in forum Web Development Area
    Replies: 2
    Last Post: 24th Nov 2010, 06:13 AM
  5. Redirect Code
    By Nano in forum Webmaster Discussion
    Replies: 8
    Last Post: 22nd Aug 2009, 06:27 PM

Tags for this Thread

BE SOCIAL