Today we have ticked of another task in the way of creating a functioning account page. As you can see from the image below only posts from that users account will show up in their account page. Furthermore the account button in the nav bar is now only visible once a user is logged in. Our next bridge to cross is to complete the CRUD process of making a website. CRUD stands for create, read, update and delete. All these process are vital in creating a fully functional social web application. We are now only left with the delete stage, users will be able to do this from their account. We also wish to create a way in which users will be able to edit posts.
After creating the basic design of the website I was now able to make the nav bar and category sections work. As a result of creating these pages users will be able click on categories such as food and night clubs and will be direct to a separate page where a live feed will focus on just that certain genre. I was able to do this through using code such as ‘<a href=”food.html”>Food</a>’. The href is basically a link to another html page.
I’ve also made some changes to the homepage, as before it included a form where users will be able to post their thoughts. The reason I changed this was because users shouldn’t be able to post on the website before they login.
Now when users press the login button they will be direct to the original homepage where they can post their finds to their heart’s content. At the moment this only works as the login button is essentially separate from the form. When we connect the form to the database and enable users to register they will be able to login and post for real.
I have also created the register page. From hear users will be able to create accounts and eventually post on the website. My idea of having a live feed on pages such as these will have to wait, as getting the PHP correct is essential. Enabling users to resister, sign in and out and post on the website is the next step and the one that will take the longest.