February 6, 201115 yr Hi folks im designing a website for my friend its on a local server jsut now until we are finished. It is a hosting site that will integrate with WHMCS. So I am quite new to this and basically helping him out cause I know a bit lol. What I want to know is I have designed the layout and its basically a header main content sidebar(links change depending what category you arein(not sure how to accomplish this help appreciated) and a footer with a static discount bar which is like a second footer. Im not sure if this can be done with pure html css, dont know if i should use php cause theres not a database call as whmcs deals with that and the integration is all html based. The only server sort of thing im going to do is the domain lookup and displaying recent posts from blog. What would be the best way to start this project and what language should I use can anyone help get me started with some tips and that, pointers on where to get help (tutorials and that). All help would be appreciated thanks. Thanks folks JP
February 7, 201115 yr Yes, that may be a lot to do. Get a free template and edit it? Pay for help? sidebar(links change depending what category you arein(not sure how to accomplish this help appreciated) Could need a javascript solution, or PHP. Edited February 7, 201115 yr by Wickham
February 7, 201115 yr Author lol yeh it is quite deep lol got a strong design though for the layout and the look my html skills are strong enough to accomplish it, and I can program with php but still learning if you know what I mean so basically using this project as a learning tool. Now when ive used php in the past I have used cake php but I think for this project that would be a bit of an overkill as theres little to none database calls. So Ive never really done templating with php cause with cake you just add echo £content_for_layout where your main content should appear anyone know any good links tutorials on how to accomplish this. Also tutorial for that sidebars thing would be appreciated to. It may be a lot to do but its a learning curve and theres no time constaints so im taking this opportunity to build my php skills and learn some new stuff along the way Thanks JP Edited February 7, 201115 yr by jpelliott2011
February 7, 201115 yr sidebar(links change depending what category you arein(not sure how to accomplish this help appreciated) JP You could adapt this PHP code - the last item on this page:- http://www.wickham43.net/highlighthome.php It's for showing a current page link highlighted - different one highlighted on different pages - but the principle could be the same. Instead of defining the page like I did: define('THIS_PAGE', 'Home'); with the PHP "include" ('THIS_PAGE', 'pagename'); you define the category ('THIS_CATEGORY', 'categoryname'); and then use switch (THIS_CATEGORY) {} which will switch the url depending on the category. Something like that.
February 7, 201115 yr Author Hi Thanks for that great tutorial. Think I could work with that do you have any links for templating tutorials though like to make the main content div display the link that a user has clicked on Thanks for all your great help JP
Create an account or sign in to comment