I've done website design for several years, and my strong point is the design..not so much the programming. I have been assigned a rather large project anyhow that involves a lot of programming.
The idea is to create real estate listings that can be added or removed by the website admin (I can find a free script for this). It requires a registration login system, which I can do. The only issue that I have is my client wants a "Like" function, somewhat like Facebook has. If a user "Likes" a listing, it is added to a list on their account that they can see, as well as the website moderator. My client also wants a counter on each listing that shows how many people "Like" it.
I am usually good at figuring these things out, but I would really appreciate a good pointer in the right direction. Thanks.
"Like" Function
Moderator: General Moderators
Re: "Like" Function
Add a database table linking a person to the posting.
- To see their "likes" you search the table for everything belonging to the user
- For a moderator you can show everything (not just limited by user ID)
- For the count you just COUNT the number of times the posting is given in the table
I would also have a third field tracking "how much" they "like" the posting. For now it might just be 1 every time, but in the future you may decide to implement a scale, like -3 to 3, or 1 to 5.
- To see their "likes" you search the table for everything belonging to the user
- For a moderator you can show everything (not just limited by user ID)
- For the count you just COUNT the number of times the posting is given in the table
I would also have a third field tracking "how much" they "like" the posting. For now it might just be 1 every time, but in the future you may decide to implement a scale, like -3 to 3, or 1 to 5.