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

Filestube - Sponsored results

Discussion in 'Web Design' started by ouchthathurts, Aug 11, 2011.

  1. ouchthathurts

    ouchthathurts Regular Member

    Joined:
    Feb 16, 2011
    Messages:
    438
    Likes Received:
    654
    Occupation:
    SEO
    Location:
    Japan
    Hey,

    I've been trying to recreate what filestube does once you search for something it generates 4 links with the search term in it automatically and some terms at the back and front [verified] - [Full Download]

    Any ideas?
     

    Attached Files:

  2. ``Yousef

    ``Yousef Power Member

    Joined:
    Oct 16, 2009
    Messages:
    534
    Likes Received:
    286
    Location:
    Cooking up the medicine.
    Home Page:
    To kick off, passes your search term as a parameter, creates a variable, then echos that variable throughout the page then somehow aggregates files (non-sponsored) from a range of different file sharing sites and, I'd assume, somehow uses the fwrite() function to create individual pages for each one.

    If you don't care about the legit links, and just want the sponsored links, it's pretty easy to do, and this will give you a head-start, bare in mind, it's probably not the best usage of code as I wrote up mad quickly.


    Code:
    <?php
    $search_term = $_GET['search_term'];
    if(!empty($search_term)) {
    	$link = array('link_1' => "[VERIFIED] $search_term DOWNLOAD", 'link_2' => "GET $search_term NOW", 'link_3' => "$search_term [FULL DOWNLOAD]", 'link_4' => "[FREE] $search_term DOWNLOAD");
    }
    ?>
    
    <html>
    <head>
    <style type="text/css">
    body { margin: 0px; }
    #links { margin: auto; width: 300px; height: 800px; }
    #form { margin: ""; width: 100%; height: 40px; display: inline-block; }
    .link { margin-top: 15px; width: 100%; height: 30px; line-height: 30px; font: bold 16px Arial, Helvetica, Trebuchet MS; color: #5da72f; }
    </style>
    </head>
    <body>
    <div id="links">
    <div id="form" align="center">
    <form action="" method="get">
    <input type="text" name="search_term" value="Enter search term" />
    <input type="submit" value="Search" />
    </form>
    </div>
    <div class="link"><?php echo($link['link_1']); ?></div>
    <div class="link"><?php echo($link['link_2']); ?></div>
    <div class="link"><?php echo($link['link_3']); ?></div>
    <div class="link"><?php echo($link['link_4']); ?></div>
    </div>
    </body>
    </html>
    What it does is, provides a form for the user to input a search term, and if they've input one or visited a link with the search_term parameter, it creates an array of links with values such as "[FREE] $search_term DOWNLOAD", and then echoes them into a block of links.
     
    • Thanks Thanks x 1
  3. ouchthathurts

    ouchthathurts Regular Member

    Joined:
    Feb 16, 2011
    Messages:
    438
    Likes Received:
    654
    Occupation:
    SEO
    Location:
    Japan
    Amazing, I have been trying to find something like this for weeks !
     
  4. IndianGrad

    IndianGrad Junior Member

    Joined:
    May 13, 2011
    Messages:
    156
    Likes Received:
    31
    Occupation:
    Internet Marketing
    Location:
    In the sea of blackhatters
    You definitely aren't anywhere close to programming then!