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

Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 25
  1.     
    #11
    Member
    Website's:
    porndex.eu massprchecker.com
    Not sure why it wont copy and paste..

    But anyway here it is:

    http://tih.me/code.png

  2.   Sponsored Links

  3.     
    #12
    Member
    Website's:
    tehMoviez.com 0Senes.com GeekFaceGames.com
    just change '[URL=http://tih.me/advert.php]' to '[URL=http://tih.me/advert.php'.$_GET["pm"].']'

  4.     
    #13
    Member
    Website's:
    porndex.eu massprchecker.com
    Great stuff thanks. !

    I made it

    Code: 
    http://tih.me/advert.php?pm='.$_GET["pm"]
    And it worked great, now just need to figure out why all my pictures have just decided not to show

    Thanks for your help

    RR

  5.     
    #14
    Member
    Website's:
    porndex.eu massprchecker.com
    Last bit im stuck on now is how do i make iframe content random between a list or URL's, at the moment the code is:

    PHP Code: 
    iframe name='content' src='http://gamezscope.com' width='100%' height='100%' 
    What i need to is have it randomly pick a URL from a list

    Cheers
    RR

  6.     
    #15
    Member
    Website's:
    tehMoviez.com 0Senes.com GeekFaceGames.com
    just make a txt file, lets say "url.txt" where you put every url in a new line, then go back to your php file:
    PHP Code: 
     $urls file('url.txt');
    $url $urls[array_rand($urls)]; 
    then put $url in the right place

  7.     
    #16
    Member
    Website's:
    porndex.eu massprchecker.com
    Ok again i can see and understand exactly what that means and what it will do, and i think i have made a small mistake.

    This is what i have done:

    PHP Code: 
    <?php 
    if(isset($_GET['pm'])){ 

     
    $urls file('url.txt');
    $url $urls[array_rand($urls)];  

    ?> 

    <html>  

    <head>  

    <title>Torrent Image Hosting</title>  

    <script type="text/ecmascript">  

                // <![CDATA[ 

                 

                    function skip_page() 

                    {
    I have added the url.txt to the root and it looks like this:

    Code: 
    http://ovhdirect.co.uk
    http://gamezscope.com
    http://bbc.co.uk
    http://google.co.uk

    And finaly i have added $url into advert.php like this:


    PHP Code: 
    </table>  

    <
    iframe name='content' src='$url' width='100%' height='100%'/>  

    <
    noframes

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

    </
    noframes
    But if you click here it dosn't quite work:



    Thanks
    RR

  8.     
    #17
    Member
    Website's:
    tehMoviez.com 0Senes.com GeekFaceGames.com

    you sould write <?php echo $url; ?> in html not directly $url

  9.     
    #18
    Member
    Website's:
    porndex.eu massprchecker.com
    Works a treat THANKS

    And just so i know i guess we had to use the <?php echo $url; ?> because futher up the page we used ?> which i prusume sort of said " we have finished with the php now onto html" so the <?php CODE ?> re-opended php then shut it again ?

    Do you have a website or URL i can add to the url.txt you have helped loads here m8

    Cheers
    RR

  10.     
    #19
    Member
    Website's:
    tehMoviez.com 0Senes.com GeekFaceGames.com
    And just so i know i guess we had to use the <?php echo $url; ?> because futher up the page we used ?> which i prusume sort of said " we have finished with the php now onto html" so the <?php CODE ?> re-opended php then shut it again ?
    yes, that's it

    Do you have a website or URL i can add to the url.txt you have helped loads here m8
    no, that's cool

  11.     
    #20
    Member
    Website's:
    porndex.eu massprchecker.com
    Ive come across a slight error

    When you browse and upload a new image, it does its thing and displays the output code for BB html etc etc

    The problem is the code looks like this:
    PHP Code: 
    tp://tih.me/advert.php?pm=][IMG]http://tih.me/?dt=3EC2[/I 
    As opposed to what it should look like:
    PHP Code: 
    tp://tih.me/advert.php?pm=3EC2][IMG]http://tih.me/?dt=3EC2[/I 
    Notice the
    PHP Code: 
    advert.php?pm=3EC2 
    in the second one.
    BUT if after uploading you goto gallery and click your picture, it will display the correct output, but i cant reall expect useres to do that, they would just use the first output they are given, which takes them to a 404

    Thanks
    RR

Page 2 of 3 FirstFirst 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