Hello guys. This is another weekly blog post. As mentioned in the previous blog post, I need to check if the users are logged in before they can post new thread and comment on existing threads. So here is what I did for the week:
Firstly, I have done a sub-category page, where the users will navigate from the home page to this page when they click on the games category.
Secondly, I have started adding new data to my database, so that it will not having repeating threads, which will look weird.
Thirdly, I have added the button to add new thread. I make sure that the users are logged in when they clicked on that button, if not they will not be able to create a new thread. This is the same for creating new post. However, I received feedback from my Scrum Master saying that users should be redirected to the login page when they are not logged in. I agree to what he said, thus I will be adding that in the next update.
This is the form I have created for the members when they are creating the thread. I have included the necessary fields for them to create a new thread, and the radio buttons will decide whether this thread goes into the games or food category. When they submit, they will be redirected to the sub-category page, eg Games, when they create a thread about games.
Stay tuned for more updates.
Comments