How To Make Posting or Status System Like Facebook in php

Author

I am Aizaz.Dinho and I loved to learn new things and teach to people like you, In my mind I'm the one who can do anything whatever I want, From my heart am still learner and loved to do impossible things, Web Development is my passion and I have PHP, MYSQL OOP PDO, Blogger WordPress also SEO experiences, You can say I'm the code ninja of meralesson

21 comments:

  1. can you give the DAtabase of this? thanks

    ReplyDelete
    Replies
    1. Here you go https://drive.google.com/file/d/0B4q4IW6m2bK9amxKelZQX0U0djQ/view?usp=sharing and replace posting-system with posting_system in connection.php

      Delete
  2. Hi in this tutorial how to set user to post author

    ReplyDelete
  3. good tutorial i will try it tnx for giving also login :D

    ReplyDelete
  4. posts of all the users are shown in a single profile

    ReplyDelete
  5. Hello for some not-known reason on my page was showed this under the post box and on the top of the post:
    < script type="text/javascript"> //Image Preview Function $("#uploadTrigger").click(function(){ $("#uploadFile").click(); }); function readURL(input) { if (input.files && input.files[0]) { var reader = new FileReader(); reader.onload = function (e) { $('#body-bottom').show(); $('#preview').attr('src', e.target.result); } reader.readAsDataURL(input.files[0]); } } < /script>
    From where can i remove or fix this, all work perfect wihout his running. Link: http://thejockersbase.pe.hu

    ReplyDelete
  6. i just updated the index.php file, You just need to copy and replace with yours.

    ReplyDelete
  7. Hi Alzaz, Please help me. The password test does not work.

    I created this entry in the table aizaz.dinho as user and 098f6bcd4621d373cade4e832627b4f6 as password.

    Thanks you...chris

    ReplyDelete
    Replies
    1. looking at the core/class/function.php file and the variable being carried over for both user and password shows ?. is this correct.

      Delete
    2. Hello Chris maybe you misplace the code, try to download fresh copy of codes and also download the database from here https://drive.google.com/file/d/0B4q4IW6m2bK9amxKelZQX0U0djQ/ and replace posting-system with posting_system in connection.php

      Delete
  8. How can i change the password (and how the new password can be encoded just like you did with 'test' ) ?

    ReplyDelete
    Replies
    1. Go to the database (phpmyadmin) and edit the users table and on the password field choose MD5 encryption that's it

      Delete
  9. hey, the code is not downloading, please do provide the source from where i can download it.

    ReplyDelete
    Replies
    1. the downloading link is working fine, Here's another link for you https://www.dropbox.com/s/qh476474luoc59d/fb-posting-system.rar?dl=0

      Delete
  10. hi . i just want to ask if the time will update ? i tried it in localhost but the "time ago" is not updating . please help

    ReplyDelete
    Replies
    1. in the database status_time is set ON UPDATE CURRENT_TIMESTAMP, so whenever you update your post it will update the time. make sure you didn't change anything in the class.php add_post prepare query

      Delete
  11. than you for this. can I have also the code for adding a comment.

    ReplyDelete
  12. Hi,
    thank you for the code.
    But can you please help me as when I copied it to my files and folders I received this message in the browser:
    Fatal error: Call to a member function prepare() on null in C:\wamp64\www\pt1\class\functions.php on line 48.
    And line 48 is like it is on your file $query = $pdo->prepare('SELECT * FROM users WHERE user_id = ?');
    Thank you!

    ReplyDelete
  13. Sir where should I insert this?
    "INSERT INTO `users` (`user_id`, `username`, `password`, `first_name`, `last_name`, `profile_image`) VALUES
    (1, 'aizaz.dinho', '098f6bcd4621d373cade4e832627b4f6', 'aizaz', 'dinho', 'images/profile.jpg');" ?

    your username is aizaz.dinho and password is test

    ReplyDelete
    Replies
    1. in users table, (click on SQL tab in users table then execute the code)

      Delete