Coder Social home page Coder Social logo

aminyasser / twitter-clone Goto Github PK

View Code? Open in Web Editor NEW
76.0 9.0 37.0 10.86 MB

PHP twitter clone with almost all twitter functionalities

PHP 46.24% Less 16.10% SCSS 16.31% CSS 17.15% JavaScript 4.20%
twitter-clone php mysql ajax twitter backend web-application clone jquery

twitter-clone's Introduction

Twitter Twitter Clone (Click to try ๐Ÿš€)

Bulit PHP Twitter Clone IN OOP style and using MYSQL Database. AJAX and Jquery for requests without reloading like Follow/unfollow, like, Search users, Show popups like comment , User lists, etc.

Features

  • Sign in / Sign UP
  • Post Image or Normal Tweet.
  • Retweet or Qoute Tweet (You can qoute the qouted tweet).
  • Like Tweet.
  • Add Comment and reply to the comment (Nested Comments).
  • Mention User in Tweet or add hashtag to your tweet.
  • Follow/Unfollow user.
  • Get Notification when any previous action happened.
  • Change Username/Password/Email From Settings.
  • Search users by name and username.
  • Edit Profile Like: (Change :avatar/username/cover etc).

Running locally

  • Create New Database then import twitter.sql file on it.
  • go to PATH core/classes/connection.php and add your database info.
   protected static $servername = "localhost";
   protected static $db_name="twitter";
   protected static $username = "root";
   protected static $password = "";

then the project is ready to run in localhost!

๐Ÿ“ท UI

Index

Index

Home

Home

Tweet and Comments

Post

Profile

Profile

Notifications

Movie

Edit Account

Edit

Preview Image before Tweet

Post

Users List (For following/likedby etc)

Users

Setting

Setting

twitter-clone's People

Contributors

aminyasser avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

twitter-clone's Issues

Notification blank while quoting

I've worked on this project for a week or so to fulfill an assignment. I found that when you quote someone else's tweet, then the quote will be registered as a blank string in the database.

The reason for this is the typo in the enum values of the type column of the notification table. Instead of 'quote' it's labeled as 'qoute'. So when the 'type' => 'quote' is sent to the database, the database will not register it as a valid enum value.

The solution is simply fixing the typo of the valid enum values. I'm using phpmyadmin, so changing it was a matter of a few clicks only.

I also would like to thank the creator of this repository for the amazing project. I can't imagine the amount of work you've done to write these thousands of code, keep up the good work

Profile page leads to 404

Whenever I attempt to view my own profile or a different users profile. I get a 404. It attempts to navigate to /twitter/username which does not exist. Is this a config error on my end? Thanks

Feature

Would Love a Verification Badge

unique_id() is not unique for image names

unique_id() is timed to the current date and time. if someone else access the server at the same time and uploads, their image could be named the same as yours.

i programmed a work around using a hash256 of the image file contents, and a unique image record of the image file name with subdirectories t allow for millions of images.

in the process i moved all images to the images directory with subdirectories. I don't know how to post all that here4 but can send you my modfied files.

comments not working

when i comment any post it changes comments number and saving comment to sql but in comments it isn't showing
(and sorry for my bad english)

Notification.php page shows error in line 256

image

When I click on Notifications the above-attached error comes. The error stays on the right side of the screen. I was only able to get half of the error message in the screenshot.

Character count

Where is the Character Count for max Count located where it defines that it counts down from 140?

Can't Reply Tweet & Reply Comment

hello, this is awesome, so much like twitter. The likes, retweet and follow function are working great, but I've got a problem with Reply Tweet and Reply Comment, the view was stuck and didn't update the database

Excessive CPU usage while on Reply or Quote Tweet screens

It's me again! I Established an instance of this site and have made some improvements that I will upload to GitHub soon. One thing I couldn't solve was a sudden spike and sustained high levels of processor usage when clicking on the comment or entering the quote tweet views, from the home feed. This causes mobile browsers to kill the site, and severely stresses the speeds of the site on desktops and laptops. I think it has something to do with the CSS or rendering of the popup somehow, because as soon as I click off the tab, the usage drops. It is also possible it has something to do with the javascript, I am not sure. Regardless, I cut out a bunch of CSS code that didn't need to be there, and I got the usage down by 10%- but it still won't function properly on mobile browsers. I can confirm however, that invoking the reply and quote popups from the status page (after clicking on a tweet in the timeline) functions as expected. I tested this on a fresh instance, and same issues. Website crashed on iPhone 8 running Safari on iOS 16, as well as a Macbook Pro running Monterey, and was slow on my trusty Thinkpad T500 running Debian and Firefox.

Link to my site, which I discovered the problem on, and the fresh instance (respectively)
https://spitter.loophole.site
https://spitter.loophole.site/spitter-project-master

License?

Is there a License or is it free to use?

Deleting a Post and a comment?

Hello, Like many others I have been learning about your script. I think it is a awesome script. But I'm also one of them that is having problems trying to delete a post or a comment I have made. Sense that function is not there is there a solution for this problem of deleting a post or a comment?

Joseph

how to make posts 512 characters long

I modified the database to hold 512 characters tweets and retweets, but I can't figure out how to modify the php or js code to allow for the larger amount of characters

Using Hashtags

There should be a way to link hashtags with posts/tweets, a post_id row on trends table to enhace the function search by hashtag, kind of mydomain.com?home.php?hashtag=whatever to get tweets with "whatever" hashtag on it from any user, not just the one I follow.

I found hard to load the files with the images linked as they come on the package. That's annoying.

Some CSS bugs.

Otherwise very flexible and simple.

multiple images ?

How to upload multiple images? I need multiple images when posting.

image

Data as information and relevant issues after login.

  • When I login with the user/pass info from the SQL database there is an error.
    So I can only login after sign-up as a new account.

  • After creating a couple of new user accounts and then login to verify authentication, I wanted to save my data. Where is all of that stored and where does the server save live data in a specific folder?

  • So many bugs and because I noticed this is only a clone of the original. The problems were mostly fixed by updating links.

  • Really awesome! Great work! Thanks!

settings

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.