Giter VIP home page Giter VIP logo

blog-cms's Introduction

Blog-CMS

Copy the contents to

C:\xampp\htdocs\blog

Setting Up SMTP

Go to C:\xampp\php\php.ini

find : [mail function] And Set The Following

SMTP=smtp.gmail.com
smtp_port=465
sendmail_from = [email protected]
sendmail_path = "\"C:\xampp\sendmail\sendmail.exe\" -t"

Go to C:\xampp\sendmail\sendmail.ini

Copy Paste the following

[sendmail]
smtp_server=smtp.gmail.com
smtp_port=465
error_logfile=error.log
debug_logfile=debug.log
[email protected]
auth_password=your-password
[email protected]

Open your gmail account > settings > Forwarding and POP/IMAP enable IMAP and save


Your SMTP must be set now.
If errors persists try changing smtp_port to 587
or remove semicolon before
;extension=php_openssl.dll in php.ini
Try installing the latest version of Xampp

If you are still facing any errors,
Comment the "mailUser" function and its call in register.php and
Comment out the commented part

//session_start();
//$_SESSION['uid'] = $id;
//header("Location: index.php");

If you somehow manage to set up your SMTP,
open contact.php and change $to = [email protected].
contact.php won't work,if you cant set up SMTP.

As of database, Create a database named blog in PHPmyAdmin And Import the sql file blog.sql and you are good to go.

If you didnt set up your SMTP, change active col in users table to 1

Features Of the Blog:

Authentication : Viewer | Blogger | Admin

Viewer :

  • Can view Posts.
  • Can view Blogger/Admin Profile.
  • Can Contact Admin.
  • Search For a particular user.

Blogger :

  • All Rights of Viewer +
  • Needs to Sign-Up with valid Email-id.
  • An Activation link will be send from localhost(if you had your smtp set up)
  • Blogger can post a new post.
  • Can Comment on any post.
  • Can Like/Unlike any post.
  • Can Follow/UnFollow other bloggers/admin.
  • See All his Followers/Following.
  • Receives notification for LIKE/COMMENT on his post.
  • Receives notification if anyone follows him/her.
  • Receives notification if any user , a blogger follows makes any new post.

Admin :

  • All Rights of Blogger +
  • Can Delete any post he feels is spam.
  • Can edit any post to remove offensive keywords.
  • Can add/delete any new/existing category.
  • Can make Any existing blogger as admin or remove him as admin.
  • Can Delete the account of a blogger.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.