PDA

View Full Version : php follow user frames menu



nemo65
12 Nov 2007, 10:22 AM
Hi I'm trying to make my results page the way it is now but thinner. The top banner is to large and doesn't need to be that big to just show those links. Everytime I try doing this it keeps getting the scrolling thing in IE which I don't like.
http://www.plentyoftorrents.com/result.php
It shows up after making a search on the main site.
http://www.plentyoftorrents.com

I'm also trying to put the menu bar from the front page in there with the hover over arrow. Any help would be greatly appreciated.

Heres the source for the results page.

<?php






// grab the search query and request site from the url








$q = $_POST["q"];






$site = $_POST["site"];











// here we use a switch statement to define our url







switch ($site) {








case "Mininova":











$url = "http://www.mininova.org/search/?search=". $q;










break;









case "Btjunkie":







$url = "http://btjunkie.org/search?q=". $q;






break;





case "Isohunt":








$url = "http://isohunt.com/torrents/?ihq=". $q;











break;





case "Torrentspy":












$url = "http://www.torrentspy.com/search?query=". $q ."&submit.x=0&submit.y=0";











break;

case "Torrentreactor":












$url = "http://www.torrentreactor.net/search.php?search=&words=". $q ."&cid=0";











break;

case "Sumotorrents":












$url = "http://www.sumotorrent.com/searchResult.php?search=". $q;











break;

case "Torrentportal":












$url = "http://www.torrentportal.com/torrents-search.php?search=". $q;











break;


case "Torrentvalley":












$url = "http://www.torrentvalley.com/search.php?search=". $q . "&x=0&y=0&act=1&cat=0&trss=1";











break;

case "Fenopy":












$url = "http://fenopy.com/?keyword=". $q . "&select=0&order=0&sort=0&minsize=&maxsize=&search.x=0&search.y=0&search=Search";











break;

case "Fulldls":












$url = "http://www.fulldls.com/search-all-torrents/?qa=". $q;











break;

case "EZ-TV":












$url = "http://www.eztvefnet.org/index.php?search=". $q;











break;


case "Bittorrent Monster":












$url = "http://www.btmon.com/torrent/". $q;











break;

case "Torrentz":












$url = "http://www.torrentz.com/search?q=". $q. "&x=0&y=0";











break;

case "The Pirate Bay":












$url = "http://thepiratebay.org/search/". $q. "/0/3/";











break;
}





// finally create the code for the actual frames. This is simple HTML with the search query and site put into the menubar's url so we can change it later if wanted.





?>




<html>







<frameset rows="10%, 90%" frameborder="0" noresize="noresize" scrolling="no" marginwidth="0" marginheight="0">







<frame src ="menu.php?site=<?php echo $site; ?>&amp;q=<?php echo $q; ?>" />








<frame src ="<?php echo $url; ?>" name="result"/>






</frameset>









</html>