PDA

View Full Version : php menu frame



torrent
11-26-2007, 01:54 PM
Hi I'm trying to get my php menu to be thinner in all browsers with an image background but this is the best I could do so far without having that IE window scroller show up in the frame.

The menu shows up when you make a search on the main site and you click the site links in the menu to try your search again on another site without having to type it.

http://www.plentyoftorrents.com/
http://www.plentyoftorrents.com/result.php

Any ideas on how I can fix this? I'm a total noob at php. :o

myyoungfamily
11-27-2007, 02:43 PM
Personally, I think it looks nice. Of course I'm using Firefox. If you can post the specific code that's giving you a problem including css an javascript. I'm having a little trouble understanding what you're doing with a frame and if that's what is giving you trouble.

torrent
11-27-2007, 04:02 PM
Well heres part of the result menu that contains the frame code

?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">


<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">


<head>


<title>Click Above Links To Try Search Again</title>


<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />




<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>





</head>


<body>


</body>



</html>

And heres the menu part that relates to the above php code.

<?php



// same as before, grab the search query to put into the different urls




$q = $_GET["q"];






?>





<p>


<a href="http://www.btscene.com/search.php?term=<?php echo $q; ?>&cat=0" title="search again with btscene" target="result">btscene</a> |


<a href="http://btjunkie.org/search?q=<?php echo $q; ?>&uid=0&sort=" title="search again with btjunkie" target="result">Btjunkie</a> |



<a href="http://www.btmon.com/torrent/<?php echo $q; ?>" title="search again with Bittorrent Monster" target="result">Bittorrent Monster</a> |


<a href="http://www.eztv.it/index.php?search=<?php echo $q; ?>" title="search again with EZ-TV" target="result">EZ-TV</a> |

<a href="http://fenopy.com/?keyword=<?php echo $q; ?>&select=0&order=0&sort=0&minsize=&maxsize=&search.x=0&search.y=0&search=Search" title="search again with Fenopy" target="result">Fenopy</a> |




<a href="http://www.fulldls.com/search-all-torrents/?qa=<?php echo $q; ?>" title="search again with Fulldls" target="result">Fulldls</a> |



<a href="http://isohunt.com/torrents/?ihq=<?php echo $q; ?>" title="search again with Isohunt" target="result">Isohunt</a> |


<a href="http://www.mininova.org/search/?search=<?php echo $q; ?>" title="search again with Mininova" target="result">Mininova</a> |


<a href="http://www.sumotorrent.com/searchResult.php?search=<?php echo $q; ?>" title="search again with Sumotorrents" target="result">Sumotorrents</a> |

<a href="http://thepiratebay.org/search/<?php echo $q; ?>/0/3/" title="search again with The Pirate Bay" target="result">The Pirate Bay</a> |


<a href="http://www.torrentportal.com/torrents-search.php?search=<?php echo $q; ?>" title="search again with Torrentportal" target="result">Torrentportal</a> |


<a href="http://www.torrentspy.com/search?query=<?php echo $q; ?>&submit.x=0&submit.y=0" title="search again with Torrentspy" target="result">Torrentspy</a> | </p>




Theres no css I just want the menu to take up less of the screen. I just want its height to be high enough to contain the links and a background menu bar image.
Thanks.

myyoungfamily
11-27-2007, 04:05 PM
Well, I might be able to help you with the php, of course this is the wrong thread for that, but explain to me why your using frames?

torrent
11-27-2007, 04:09 PM
Because the user can click on the links in the menu frame to try their search again without having to retype it in. Like if you try a search in the main page.
http://www.plentyoftorrents.com/
The results page shows up with the site you chose to search. If you did not find what you were looking for on that site you can click a link above in the menu section to resubmit your search query to another site.

myyoungfamily
11-27-2007, 04:42 PM
Sorry, I misunderstood a little. I liked the menu on the main page and I see now what your doing.

I'm not a frame expert, but if I we're trying to do this I would use a iframe for the external sites. And, maybe I don't understand the scope of what you're doing here, but I don't think the menu should have to be in a frame. You should be able to use php to remember the search and populate the menu links for the iframe source.

torrent
11-27-2007, 04:55 PM
Well I'm not really familiar with iframes so I dont really want to use those. I want the results window to be as large as possible so my menu bar doesn't bother the user because they will already be looking at long lists in the resulting page.

Someone has a similar page to mine but I dont know how his css code relates to his menu banner.
http://torrents.to/search/247/coffee+cup+ftp.html
http://torrents.to/css/frametop20.css
http://torrents.to/frametop20.php

You can see how his looks much nicer.

myyoungfamily
11-27-2007, 05:08 PM
Well, he's obviously using frames like you are. I you're willing to try iframes, I can give you a hand. I just like them because all my code and content is easily separated from the external source.

torrent
11-27-2007, 05:17 PM
Sure I could give it a try.
Thanks.

myyoungfamily
11-27-2007, 05:19 PM
can you post your php so I have something to start with

torrent
11-27-2007, 05:29 PM
Oh ya sorry lol.
The files are attached. Do you need the search form on the index as well?

myyoungfamily
11-27-2007, 05:36 PM
let me see and I'll let you know. I'm at work during the day, I'll try to play around and post something later

torrent
11-27-2007, 05:45 PM
Okay sounds good. Thanks again.;)

myyoungfamily
11-28-2007, 07:51 PM
here, try this. It may not be perfect, but hopefully you'll get the idea.

myyoungfamily
11-28-2007, 08:07 PM
I just thought of this... Your menu size issue may be due to the fact that you are using <p></p> tags. Try using <div></div> tags.

torrent
11-29-2007, 03:30 PM
Yeah I took that out but its still the same. How do I relate the index to the files you included? Heres the folder where they are. and the index that should relate to them.
http://www.plentyoftorrents.com/010/index.htm
This is just a test folder I'm also working on some pretty cool collapsing div thingys, they're under General Torrents.:D

Thanks.

myyoungfamily
11-29-2007, 04:41 PM
update... I've got you working, I'm just working on an auto re-sizer for the iframe.

myyoungfamily
11-29-2007, 05:10 PM
Ok, see what you think of this...

Only the btscene link is working, but you can see what I did to repeat for the others.

torrent
11-29-2007, 05:54 PM
Thanks that looks awesome. Theres a bit of a problem with it though, its just showing a small view of the site it searches.
http://www.plentyoftorrents.com/010/index.php
I tried removing my style.css sheet to see if it was overriding the php css but nothing changed. I set scroll to no because I don't like the bar thing that shows up.

I'll keep tinkering with it to try and get it wider. Thanks.:)

Fixed it looks great now. I set the iframe height="1200px" 100% wouldnt show the other sites full page. I'll check the other sites to see how long they get in length and adjust the px if needed.
I set the css body to 100% to accommodate more links. Thanks again this was a huge help.;)

myyoungfamily
11-29-2007, 06:20 PM
Ya, every search will return results with a different length. One search I did needed a height of 7000. I didn't like the scroll bar either, but that may be your only option.

Let me know when you've got it finished... I'm a big torrent fan.

torrent
11-30-2007, 02:03 PM
Well its on the front page now:) and I will be adding it to the internet search page soon. http://www.plentyoftorrents.com
http://www.plentyoftorrents.com/web/index.php
I'll have the collapsible div things on the front page as soon as Ive made enough of them and sorted them into torrent site genres.

Plus I've got to fix up the code errors on the other pages and for the 100 free full games section I plan to put collapsible div tags in the game descriptions to show clickable thumbnail screenshots. And I'll be putting an auto complete suggestion thing on the search form so people don't have to remember the proper search words like for prison break, Prison Break S03E07, Prison Break S03E08 etc...
Cheers. ;)

-added to web search now http://www.plentyoftorrents.com/web/index.php