- Homepage(index.php) with articles inside it.
- Logged in homepage with articles inside it.
- Own articles page with an opportunity to add/edit/delete content (articles).
- About US page.
- ...
- Tags for articles and possibility to sort articles by topics. Or pages with different topics.
- Articles must include possibility to add images.
- Use the same script for saving user avatars. (Optional)
- Login form on home page. Or maybe not.
- Not removing data from fields while registration.
- Comments system.
- Like (rating) articles system.
- Add buttons to publish/unpublished articles.
- ...
Make a sample of the✅index.php
page.Create a database connection page.✅Createregister.php
page.Add a form with choosing: male, female, cat, other✅
Create✅login.php
page.Create✅logout.php
page.Create✅add_content.php
page.Create a list of user's articles on✅dashboard.php
page.Create✅article.php
page.Create✅article_edit.php
page.Create✅article_preview.php
page.Create✅article_delete.php
page.Createabout_us.php
page.- Create
home.php
page. For what??? Cerate✅user_profile.php
page.Add✅Edit
link to profile page. That appears only for the page owner.
Createuser_profile_edit.php
page.Create different forms for every change like email, gender, bio, password;Create a function with database query that contains variables for updated item and its updated value;✅
- Make a code look good. Leave comments above the code block with explanations of them.
Change✅include("article_not_found.php")
and the same with "user_not_exist.php" to onePAGE NOT FOUND
file.- ...
- Add Article feature.
- Edit Article feature.
- Delete Article feature.
- List of user made Articles.
- Textarea field.
- Publish checkbox.
- Tags system (experiment with database queries).
- ...
Create a database table for storing users comments. The table must include the next rows:- comment_id;
- comment;
- publication_datetime;
- edited_datetime;
- article_id;
- article_topic;
- username;
- username_id;
- username_email. ✅
Create thecomment_add.php
page:- Form for adding a comment;
- Database query with adding a comment; ✅ (Made it on the
article.php
page.)
Create thecomment_edit.php
page:- Form for editing a comment;
- Database query for editing comments;
Create thecomment_delete.php
page.Add list of users comments to thearticle.php
page.- Edit comment button:
if($_SESSION['username']) == $comment_query['username']{ EDIT_BUTTON }
- Edit comment button:
Add comments quantity under the every article on theindex.php
page.Add list of all left user's comments to thedashboard.php
page.- Comment list section in descending order. Comment must include:
- Linked username;
- Publication date;
- Comment text;
- Edit comment button (For comment owner);
- Delete comment button (For comment owner);
- Comment number;
Make the main.css
file with general styling with navigation bar, body, footer. Make separate .css
files for different pages if needed. Make pages ony by ony. Begin from About us page.
- General:
Create navigation bar with all links (login/logout, register, home, about us, dashboard);Create footer with contact us and another links information;Configure website layout.
- About us page:
- Create Overflow for the box with text; It doesn't need.
Make body background not depending on margins when changing the web browser window size;
- My Articles and My Comments:
Style tables with articles/comments;- Add Publish/unpublish button for my articles page;
- Login/Register/Add Article/Add Comment:
Style forms.