Like button
- ken98k
- Posts: 4031
- Joined: Sat Oct 13, 2012 4:40 pm
- Location: Alaska
Like button
I know it's been discussed before but, I just find it ridiculous that there is no "like button". 
I, am the NRA.
- bestgear
- Silver Tier

- Posts: 6256
- Joined: Tue Apr 17, 2012 6:58 pm
- Location: Oak Island NC
- Contact:
Re: Like button
Creating a "like button" functionality using PHP typically involves a combination of front-end (HTML, CSS, JavaScript) and back-end (PHP, MySQL) technologies. The core idea is to allow users to register their approval (a "like") for a specific piece of content, and to store and retrieve this information from a database. This is what’s needed (minimally) to make this happen:
Database:
A table to store the content being liked (e.g., posts, articles).
A table to store user information (e.g., users).
A table to link users to liked content (e.g., likes table with user_id and content_id columns).
Front-end (HTML/CSS/JavaScript):
An HTML button or element representing the "like" button.
JavaScript (often with AJAX) to handle the click event and send the like/unlike request to the server without a full page reload.
CSS to style the button and display the like count.
Back-end (PHP/MySQL):
PHP script to receive the AJAX request from the front-end.
PHP code to interact with the MySQL database:
Insert a new record into the likes table when a user likes content.
Remove a record from the likes table when a user unlikes content.
Update the like count for the content (either by counting records in the likes table or by storing a likes_count in the content table).
Retrieve the current like count for display.
Handle user authentication to ensure only logged-in users can like/unlike.
Example Flow:
A user clicks the "like" button on a post.
JavaScript sends an AJAX request to a PHP script (e.g., like.php), passing the post_id and user_id.
like.php receives the request.
It checks if the user has already liked the post.
If not, it inserts a new record into the likes table.
If yes (meaning they are unliking), it deletes the corresponding record from the likes table.
like.php then returns the updated like count or a success/failure message to the JavaScript.
JavaScript updates the displayed like count on the page without a full refresh.
AAPK has 1 developer, a “like” button may be on the enhancement list but well below other priorities.
-
doglegg
- Gold Tier

- Posts: 23920
- Joined: Mon Sep 18, 2017 2:35 am
- Location: Grand Prairie, Texas
Re: Like button
bestgear wrote: ↑Sat Aug 30, 2025 9:44 amCreating a "like button" functionality using PHP typically involves a combination of front-end (HTML, CSS, JavaScript) and back-end (PHP, MySQL) technologies. The core idea is to allow users to register their approval (a "like") for a specific piece of content, and to store and retrieve this information from a database. This is what’s needed (minimally) to make this happen:
Database:
A table to store the content being liked (e.g., posts, articles).
A table to store user information (e.g., users).
A table to link users to liked content (e.g., likes table with user_id and content_id columns).
Front-end (HTML/CSS/JavaScript):
An HTML button or element representing the "like" button.
JavaScript (often with AJAX) to handle the click event and send the like/unlike request to the server without a full page reload.
CSS to style the button and display the like count.
Back-end (PHP/MySQL):
PHP script to receive the AJAX request from the front-end.
PHP code to interact with the MySQL database:
Insert a new record into the likes table when a user likes content.
Remove a record from the likes table when a user unlikes content.
Update the like count for the content (either by counting records in the likes table or by storing a likes_count in the content table).
Retrieve the current like count for display.
Handle user authentication to ensure only logged-in users can like/unlike.
Example Flow:
A user clicks the "like" button on a post.
JavaScript sends an AJAX request to a PHP script (e.g., like.php), passing the post_id and user_id.
like.php receives the request.
It checks if the user has already liked the post.
If not, it inserts a new record into the likes table.
If yes (meaning they are unliking), it deletes the corresponding record from the likes table.
like.php then returns the updated like count or a success/failure message to the JavaScript.
JavaScript updates the displayed like count on the page without a full refresh.
AAPK has 1 developer, a “like” button may be on the enhancement list but well below other priorities.
- bestgear
- Silver Tier

- Posts: 6256
- Joined: Tue Apr 17, 2012 6:58 pm
- Location: Oak Island NC
- Contact:
Re: Like button
1. select quote button
2. select thumbs up emoji
3. hit submit
I’m exhausted
- peanut740
- Gold Tier

- Posts: 8122
- Joined: Fri Jan 23, 2009 2:32 pm
- Location: Ohio, along the river
- Contact:
- 1967redrider
- Gold Tier

- Posts: 21486
- Joined: Wed Feb 02, 2011 4:23 pm
- Location: Alexandria, VA
- Contact:
Re: Like button
That is exactly how I let someone know I like their post. 

Pocket, fixed, machete, axe, it's all good!
You're going to look awfully silly with that knife sticking out of your @#$. -Clint Eastwood, High Plains Drifter
CHRIST IS KING
You're going to look awfully silly with that knife sticking out of your @#$. -Clint Eastwood, High Plains Drifter
CHRIST IS KING
- bestgear
- Silver Tier

- Posts: 6256
- Joined: Tue Apr 17, 2012 6:58 pm
- Location: Oak Island NC
- Contact:
Re: Like button
1967redrider wrote: ↑Sat Aug 30, 2025 12:41 pm That is exactly how I let someone know I like their post.![]()
- Mumbleypeg
- Gold Tier

- Posts: 15694
- Joined: Fri Apr 18, 2014 1:28 am
- Location: Republic of Texas
Re: Like button
I thought that was what the
was for! Easy enough for me.
Ken
Ken
Member AKTI, TSRA, NRA.
If your religion requires that you hate someone, you need a new religion.
When the people fear their government, that is tyranny. When government fears the people, that is freedom.
https://www.akti.org/
If your religion requires that you hate someone, you need a new religion.
When the people fear their government, that is tyranny. When government fears the people, that is freedom.
https://www.akti.org/
- bestgear
- Silver Tier

- Posts: 6256
- Joined: Tue Apr 17, 2012 6:58 pm
- Location: Oak Island NC
- Contact:
- ken98k
- Posts: 4031
- Joined: Sat Oct 13, 2012 4:40 pm
- Location: Alaska
Re: Like button
I, am the NRA.
- bestgear
- Silver Tier

- Posts: 6256
- Joined: Tue Apr 17, 2012 6:58 pm
- Location: Oak Island NC
- Contact:
Re: Like button
100% in agreement just as AAPK is a genre specific online forum and not a social media platform
- Jeepergeo
- Posts: 431
- Joined: Mon Dec 12, 2022 2:29 pm
Re: Like button
I hope this site stays true to its mission and does not go down the antisocial media rabbit hole.
Those needing to collect "Likes" on their posts can get what they yearn for on Face page or Instagram.
Those needing to collect "Likes" on their posts can get what they yearn for on Face page or Instagram.
- SwedgeHead
- Posts: 602
- Joined: Thu Jan 19, 2023 12:23 am
Re: Like button
I almost feel that excellent write-up may have taken longer then the development.

- bestgear
- Silver Tier

- Posts: 6256
- Joined: Tue Apr 17, 2012 6:58 pm
- Location: Oak Island NC
- Contact:
Re: Like button
you are way off, testing alone takes days, not a minor enhancement but not a major one either, involves some thinking and planning - I hope we never get so lazy that 3 clicks is burdensome.SwedgeHead wrote: ↑Sat Aug 30, 2025 4:28 pm I almost feel that excellent write-up may have taken longer then the development.
![]()
- Dinadan
- Silver Tier

- Posts: 3640
- Joined: Sat Dec 29, 2012 2:34 am
- Location: Coastal Alabama
Re: Like button
The way I see it, a like button will let someone say I like this post: but not enough to bother hitting the reply button and typing nice knife or good photo or cogent point or cool or even hitting an emogi icon. I question the value of that. If someone will not type in even one word of response, do they really like the post?
When I start a thread, I can pretty well judge how well it is liked by the number of replies and views. If I get three replies and fifty views, folks did not like that thread and no number of like button hits can change that.
Mel
- SwedgeHead
- Posts: 602
- Joined: Thu Jan 19, 2023 12:23 am
Re: Like button
OH I was kidding Tom, and I totally agree, its more fun and interactive to leave a message or emoji.bestgear wrote: ↑Sat Aug 30, 2025 4:42 pmyou are way off, testing alone takes days, not a minor enhancement but not a major one either, involves some thinking and planning - I hope we never get so lazy that 3 clicks is burdensome.SwedgeHead wrote: ↑Sat Aug 30, 2025 4:28 pm I almost feel that excellent write-up may have taken longer then the development.
![]()
Swedge - Sr. technical solutions architect- international software development
- bestgear
- Silver Tier

- Posts: 6256
- Joined: Tue Apr 17, 2012 6:58 pm
- Location: Oak Island NC
- Contact:
Re: Like button
SwedgeHead wrote: ↑Sat Aug 30, 2025 6:45 pmSr. technical solutions architect- international software development
- Miller Bro's
- Gold Tier

- Posts: 13631
- Joined: Mon Feb 16, 2009 11:22 pm
- Location: Earth
Re: Like button
My thoughts exactly. I have been saying it for a decade, lack of participation makes for a boring forum.Dinadan wrote: ↑Sat Aug 30, 2025 5:12 pm The way I see it, a like button will let someone say I like this post: but not enough to bother hitting the reply button and typing nice knife or good photo or cogent point or cool or even hitting an emogi icon. I question the value of that. If someone will not type in even one word of response, do they really like the post?
When I start a thread, I can pretty well judge how well it is liked by the number of replies and views. If I get three replies and fifty views, folks did not like that thread and no number of like button hits can change that.
If you can't take sixty seconds to post a short reply to someone's post then there's no interaction.
I hope we NEVER get a "like" button!!
YMMV
AAPK Janitor
369
369
- bestgear
- Silver Tier

- Posts: 6256
- Joined: Tue Apr 17, 2012 6:58 pm
- Location: Oak Island NC
- Contact:
Re: Like button
I agree Dimitri
I don’t think AAPK needs or wants a like button, YMMV.
- edgy46
- Posts: 3316
- Joined: Sun Mar 04, 2007 2:40 am
- Location: S. W. Ohio
Re: Like button
What they saidbestgear wrote: ↑Sat Aug 30, 2025 9:04 pmI agree DimitriThe like button changed the world by creating a metric for social validation, driving surveillance
![]()
![]()
![]()
capitalism through data-driven advertising, fostering user-generated content, gamifying user experience, contributing to filter bubbles, and having significant psychological impacts on individuals, especially adolescents. It shifted from a simple expression of preference to a complex system influencing user behavior, economies, and even political landscapes.
I don’t think AAPK needs or wants a like button, YMMV.
An uncontrolled accumulator.
Bill
Bill
- bighomer
- Gold Tier

- Posts: 10783
- Joined: Sat Feb 28, 2015 11:07 pm
- Location: N.mid.Tn.
Re: Like button
- OLDE CUTLER
- Gold Tier

- Posts: 5668
- Joined: Wed Oct 11, 2017 8:11 pm
- Location: South Dakota
Re: Like button
"Sometimes even the blind chicken finds corn"
- rea1eye
- Posts: 2658
- Joined: Fri Mar 13, 2015 2:59 am
Re: Like button
bestgear wrote: ↑Sat Aug 30, 2025 9:04 pmI agree DimitriThe like button changed the world by creating a metric for social validation
![]()
I like it when people give a small narrative when they like it. The like button does too little in us
having a good knife forum conversation. Conversation is what it is all about.........
Bob
- Rookie
- Gold Tier

- Posts: 2226
- Joined: Mon Oct 24, 2005 12:13 pm
- Location: Meadville, PA
Re: Like button
I read on BladeForums that when they added in the "like button" feature that conversations fell off noticeably. People hit the "like" and move on. A lot less back and forth communication. You also get the people who hit the "like" on every post from every member every day, which sort of goes against the whole point of it.
Carl B.