Jon Posted October 7, 2010 Report Share Posted October 7, 2010 (edited) Hi All, I have just finshed work on a CSS website, but just need some conformation a sort of 'How to' divide the site up into and layout the coding for the header.tpl etc files. I've got somebody doing it for me this time but would really like to know 'How tt' do it myself. Thanks for your time Jon www.leavirtual.com EDIT I know the title says Diving Edited October 7, 2010 by b767jonathan Quote Link to comment Share on other sites More sharing options...
Tom Posted October 7, 2010 Report Share Posted October 7, 2010 You'll want to use layout.tpl rather than header.tpl etc. If you aren't already, make sure you're using the most up to date version. Most of your HTML goes into layout.tpl - there are a few bits of php you need to put in: <title><?php echo $page_title; ?></title> (for the title) <? echo $page_htmlhead; ?> (before </head>) <? echo $page_htmlreq; ?> (after <body>) <? Template::Show('core_navigation.tpl'); ?> (To show your navigation, the HTML for your links will go in core_navigation.tpl - there's already some in there) and finally: <? echo $page_content; ?> Put that wherever you want the page content to appear. Quote Link to comment Share on other sites More sharing options...
Jon Posted October 7, 2010 Author Report Share Posted October 7, 2010 Ok, thanks for that, when my freind gets back to me I can see how it works. (few New Skins In The Making For PHPVMS Community ) Thanks Again Jon Quote Link to comment Share on other sites More sharing options...
Jon Posted October 8, 2010 Author Report Share Posted October 8, 2010 If I Gave You This Then What bits would i need to remove from the HTML? http://pastebin.com/MZPdA9jb Thanks Again Jon Quote Link to comment Share on other sites More sharing options...
Tom Posted October 8, 2010 Report Share Posted October 8, 2010 That would all need to go into layout.tpl with the additions as above, and where "NAVBAR HERE" is, you would put: <? Template::Show('core_navigation.tpl'); ?> and have all the code for your navigation in that file (there's some example links already in there). Unless you have a no attribution license, remember to include the link back to phpvms: <a href="http://www.phpvms.net" target="_blank">powered by phpVMS</a> Quote Link to comment Share on other sites More sharing options...
Jon Posted October 8, 2010 Author Report Share Posted October 8, 2010 I Just Get: (Attached) Jon Quote Link to comment Share on other sites More sharing options...
Tom Posted October 8, 2010 Report Share Posted October 8, 2010 Do you have a link to take a look at it? It's difficult to tell you what it is from an image. Quote Link to comment Share on other sites More sharing options...
Jon Posted October 9, 2010 Author Report Share Posted October 9, 2010 http://websiteupgradges.leavirtual.com/index.php There you go the Mystic Cloth Lgo IS Where the logo would go I was Follwing A Tutorial. You can look at my layout.tpl HERE Jon 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.