Crew-Portal Posted August 16, 2007 Share Posted August 16, 2007 Hi I am adding Forums to my website using the PHPbb. Now I have edited it so that the tables width is 750 pixels just large egnoph to fit inbetween my 2 colums on the left and the right. But my problem is that every link I press removes theese colums and goes into a full screen view. So i was wondering how I would make it so that the PHP reads it as if when I open a link thats in a directory it puts in inbetween the colums! confused? This is what I got so far and tell me if it is right?! <?php $forum = $_GET['forum']; if (in_dir(./forums/)){ include $forum . '.php'; } else echo 'Your Not In The Right Place'; ?> I understand that code is wrong in fact I just made it up as I went along but I think I am on the right track?! Can someone help me?!?!? Quote Link to comment Share on other sites More sharing options...
trq Posted August 16, 2007 Share Posted August 16, 2007 Sorry... your question is far too vague. Quote Link to comment Share on other sites More sharing options...
Crew-Portal Posted August 16, 2007 Author Share Posted August 16, 2007 I want an index page that if I post a link to something like /forums it will automatically display that info in a table like ----------------------------------------- | | | | | SideBar | Forums Forums | SideBar | | SideBar | Forums Forums | SideBar | | SideBar | Forums Forums | SideBar | | SideBar | Forums Forums | SideBar | | SideBar | Forums Forums | SideBar | | SideBar | Forums Forums | SideBar | | SideBar | Forums Forums | SideBar | | SideBar | Forums Forums | SideBar | | | | | ------------Powered By PhpBB------------ But it will only put .php docs in the middle table if they are in the directory /forums otherwise it will open them like a normal link! Quote Link to comment Share on other sites More sharing options...
trq Posted August 16, 2007 Share Posted August 16, 2007 Sorry... still makes little sense. Quote Link to comment Share on other sites More sharing options...
Crew-Portal Posted August 16, 2007 Author Share Posted August 16, 2007 Sorry it does sound confusing let me put it this way! If I want to call a certain link through A href= and if that .php file is in a folder called forums/ it doesnt load the script but displays a message like "Sample text". Can you make a script that does that? That is not exactly waht I want it to do but with those guidelines I believe I have egnouph PHP experience to mod it to what I need Quote Link to comment Share on other sites More sharing options...
DyslexicDog Posted August 16, 2007 Share Posted August 16, 2007 Ok so you are trying to do something similar to what frames does? Quote Link to comment Share on other sites More sharing options...
Crew-Portal Posted August 16, 2007 Author Share Posted August 16, 2007 No read my post above ^^^ That is what I want it to do! Quote Link to comment Share on other sites More sharing options...
trq Posted August 16, 2007 Share Posted August 16, 2007 If I want to call a certain link through A href= and if that .php file is in a folder called forums/ it doesnt load the script but displays a message like "Sample text". No. A link is a link, it will call whatever file the href element points too. Its your logic that makes little sense. Quote Link to comment Share on other sites More sharing options...
Crew-Portal Posted August 16, 2007 Author Share Posted August 16, 2007 Oh that sucks! Quote Link to comment Share on other sites More sharing options...
trq Posted August 16, 2007 Share Posted August 16, 2007 Im afraid its simple http. Maybe if you expllained exactly what your trying to achieve we could find a work around, as it stands though, its hard to make sense of. Quote Link to comment Share on other sites More sharing options...
Crew-Portal Posted August 16, 2007 Author Share Posted August 16, 2007 Wait can I make an Iframe with a width or 750 and a hieght that changes as the page gows in length?! Quote Link to comment Share on other sites More sharing options...
Crew-Portal Posted August 16, 2007 Author Share Posted August 16, 2007 K i got my Iframe going but how do I make it so that it show the entire page. If I set the hieght to 100% it doesnt show the 100% of the frame contents it just shows up as 100% or the screens hieght! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.