Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Questions about layouts

Featured Replies

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

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

  • 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 by jpelliott2011

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.

  • 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

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.