Filestube - Sponsored results

ouchthathurts

Power Member
Joined
Feb 16, 2011
Messages
622
Reaction score
812
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?
 

Attachments

  • filestube-bieber.jpg
    filestube-bieber.jpg
    134 KB · Views: 105
  • filestube-harrypotter.jpg
    filestube-harrypotter.jpg
    172.1 KB · Views: 99
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.
 
Amazing, I have been trying to find something like this for weeks !
 
Back
Top