little.muffet Posted January 5, 2008 Share Posted January 5, 2008 Hi, I'm very sorry if you get threads like this all the time. But I'm completely stumped! Basically - I want to add the feature of skins to my fansite, so people browsing my website can choose which layout they want to use whilst browsing. I used this tutorial on how to set it up. It's all going quite smoothly, apart from the part: Now that we've set up the important bits, you can put the code in every one of your pages that will make the skin 'stick'. Each page should look like this: <?php include('header.php'); ?> your page content here. <?php include($footer); ?> Easy peasy. That code doesn't work for all the pages I use it on, and I have no idea why. There's really no difference with the php coding from this page to this page. But the codes don't work on that second page. I don't know if it's because the second page is in a folder whereas the other one isn't, so the code might not work because of that...? ??? Please help, thanks in advance. Quote Link to comment https://forums.phpfreaks.com/topic/84674-skinning-my-website-using-php/ Share on other sites More sharing options...
mattclements Posted January 5, 2008 Share Posted January 5, 2008 Im guessing this wont solve it, but is the second page (in the sub directory) linked correctly (such as ../filename_from_the_first_page) ? Thanks, Matt Quote Link to comment https://forums.phpfreaks.com/topic/84674-skinning-my-website-using-php/#findComment-431493 Share on other sites More sharing options...
thomashw Posted January 5, 2008 Share Posted January 5, 2008 Add this code between your <head></head>. It specifies where your "include" folder is. <? ini_set("include_path","/www/include"); ?> Quote Link to comment https://forums.phpfreaks.com/topic/84674-skinning-my-website-using-php/#findComment-431496 Share on other sites More sharing options...
mattclements Posted January 5, 2008 Share Posted January 5, 2008 I think you need to change the <?php include('header.php'); ?> to <?php include('../header.php'); ?> on the second page - that should solve it! Matt Quote Link to comment https://forums.phpfreaks.com/topic/84674-skinning-my-website-using-php/#findComment-431499 Share on other sites More sharing options...
little.muffet Posted January 5, 2008 Author Share Posted January 5, 2008 I think you need to change the <?php include('header.php'); ?> to <?php include('../header.php'); ?> on the second page - that should solve it! Matt Oh wow I think that worked! Thank you soo much! Gosh, so simple as well Thank you as well thomashw Quote Link to comment https://forums.phpfreaks.com/topic/84674-skinning-my-website-using-php/#findComment-431502 Share on other sites More sharing options...
mattclements Posted January 31, 2008 Share Posted January 31, 2008 no problem xx Quote Link to comment https://forums.phpfreaks.com/topic/84674-skinning-my-website-using-php/#findComment-454228 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.