Like button

A place to discuss & share pictures of anything that relates to knives.
User avatar
ken98k
Posts: 4031
Joined: Sat Oct 13, 2012 4:40 pm
Location: Alaska

Like button

Post by ken98k »

I know it's been discussed before but, I just find it ridiculous that there is no "like button". ::shrug::
I, am the NRA.
User avatar
bestgear
Silver Tier
Silver Tier
Posts: 6255
Joined: Tue Apr 17, 2012 6:58 pm
Location: Oak Island NC
Contact:

Re: Like button

Post by bestgear »

ken98k wrote: Sat Aug 30, 2025 5:55 am I know it's been discussed before but, I just find it ridiculous that there is no "like button". ::shrug::
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.
Tom
AAPK Administrator
https://www.tcjr-leatherworks.com
doglegg
Gold Tier
Gold Tier
Posts: 23920
Joined: Mon Sep 18, 2017 2:35 am
Location: Grand Prairie, Texas

Re: Like button

Post by doglegg »

::tu::
bestgear wrote: Sat Aug 30, 2025 9:44 am
ken98k wrote: Sat Aug 30, 2025 5:55 am I know it's been discussed before but, I just find it ridiculous that there is no "like button". ::shrug::
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.
User avatar
bestgear
Silver Tier
Silver Tier
Posts: 6255
Joined: Tue Apr 17, 2012 6:58 pm
Location: Oak Island NC
Contact:

Re: Like button

Post by bestgear »

doglegg wrote: Sat Aug 30, 2025 10:30 am ::tu::
::tu::
1. select quote button
2. select thumbs up emoji
3. hit submit

I’m exhausted ::dang::
Tom
AAPK Administrator
https://www.tcjr-leatherworks.com
User avatar
peanut740
Gold Tier
Gold Tier
Posts: 8122
Joined: Fri Jan 23, 2009 2:32 pm
Location: Ohio, along the river
Contact:

Re: Like button

Post by peanut740 »

bestgear wrote: Sat Aug 30, 2025 11:06 am
doglegg wrote: Sat Aug 30, 2025 10:30 am ::tu::
::tu::
1. select quote button
2. select thumbs up emoji
3. hit submit

I’m exhausted ::dang::
::tu::
Roger
User avatar
1967redrider
Gold Tier
Gold Tier
Posts: 21486
Joined: Wed Feb 02, 2011 4:23 pm
Location: Alexandria, VA
Contact:

Re: Like button

Post by 1967redrider »

That is exactly how I let someone know I like their post. ::nod::👍
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
User avatar
bestgear
Silver Tier
Silver Tier
Posts: 6255
Joined: Tue Apr 17, 2012 6:58 pm
Location: Oak Island NC
Contact:

Re: Like button

Post by bestgear »

::tu::
1967redrider wrote: Sat Aug 30, 2025 12:41 pm That is exactly how I let someone know I like their post. ::nod::👍
Tom
AAPK Administrator
https://www.tcjr-leatherworks.com
User avatar
Mumbleypeg
Gold Tier
Gold Tier
Posts: 15692
Joined: Fri Apr 18, 2014 1:28 am
Location: Republic of Texas

Re: Like button

Post by Mumbleypeg »

I thought that was what the ::tu:: was for! Easy enough for me.

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/
User avatar
bestgear
Silver Tier
Silver Tier
Posts: 6255
Joined: Tue Apr 17, 2012 6:58 pm
Location: Oak Island NC
Contact:

Re: Like button

Post by bestgear »

Mumbleypeg wrote: Sat Aug 30, 2025 2:41 pm I thought that was what the ::tu:: was for! Easy enough for me
::tu::
Tom
AAPK Administrator
https://www.tcjr-leatherworks.com
User avatar
ken98k
Posts: 4031
Joined: Sat Oct 13, 2012 4:40 pm
Location: Alaska

Re: Like button

Post by ken98k »

::tu:: :D ::td:: :x are emo cons, and while we do use them as like buttons, that's not what they are.
I, am the NRA.
User avatar
bestgear
Silver Tier
Silver Tier
Posts: 6255
Joined: Tue Apr 17, 2012 6:58 pm
Location: Oak Island NC
Contact:

Re: Like button

Post by bestgear »

ken98k wrote: Sat Aug 30, 2025 3:09 pm ::tu:: :D ::td:: :x are emo cons, and while we do use them as like buttons, that's not what they are.
100% in agreement just as AAPK is a genre specific online forum and not a social media platform ::tu::
Tom
AAPK Administrator
https://www.tcjr-leatherworks.com
User avatar
Jeepergeo
Posts: 431
Joined: Mon Dec 12, 2022 2:29 pm

Re: Like button

Post by Jeepergeo »

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.
User avatar
SwedgeHead
Posts: 602
Joined: Thu Jan 19, 2023 12:23 am

Re: Like button

Post by SwedgeHead »

I almost feel that excellent write-up may have taken longer then the development.
::shrug::
User avatar
bestgear
Silver Tier
Silver Tier
Posts: 6255
Joined: Tue Apr 17, 2012 6:58 pm
Location: Oak Island NC
Contact:

Re: Like button

Post by bestgear »

SwedgeHead wrote: Sat Aug 30, 2025 4:28 pm I almost feel that excellent write-up may have taken longer then the development.
::shrug::
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.
Tom
AAPK Administrator
https://www.tcjr-leatherworks.com
User avatar
Dinadan
Silver Tier
Silver Tier
Posts: 3640
Joined: Sat Dec 29, 2012 2:34 am
Location: Coastal Alabama

Re: Like button

Post by Dinadan »

ken98k wrote: Sat Aug 30, 2025 5:55 am I know it's been discussed before but, I just find it ridiculous that there is no "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
User avatar
SwedgeHead
Posts: 602
Joined: Thu Jan 19, 2023 12:23 am

Re: Like button

Post by SwedgeHead »

bestgear wrote: Sat Aug 30, 2025 4:42 pm
SwedgeHead wrote: Sat Aug 30, 2025 4:28 pm I almost feel that excellent write-up may have taken longer then the development.
::shrug::
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.
OH I was kidding Tom, and I totally agree, its more fun and interactive to leave a message or emoji.
Swedge - Sr. technical solutions architect- international software development ::super_happy::
User avatar
bestgear
Silver Tier
Silver Tier
Posts: 6255
Joined: Tue Apr 17, 2012 6:58 pm
Location: Oak Island NC
Contact:

Re: Like button

Post by bestgear »

SwedgeHead wrote: Sat Aug 30, 2025 6:45 pmSr. technical solutions architect- international software development
::tu::
Tom
AAPK Administrator
https://www.tcjr-leatherworks.com
User avatar
Miller Bro's
Gold Tier
Gold Tier
Posts: 13631
Joined: Mon Feb 16, 2009 11:22 pm
Location: Earth

Re: Like button

Post by Miller Bro's »

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.
My thoughts exactly. I have been saying it for a decade, lack of participation makes for a boring forum.

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!! ::nod::

YMMV
AAPK Janitor
369
User avatar
bestgear
Silver Tier
Silver Tier
Posts: 6255
Joined: Tue Apr 17, 2012 6:58 pm
Location: Oak Island NC
Contact:

Re: Like button

Post by bestgear »

Miller Bro's wrote: Sat Aug 30, 2025 8:53 pm I hope we NEVER get a "like" button!
I agree Dimitri ::tu:: The 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.
Tom
AAPK Administrator
https://www.tcjr-leatherworks.com
User avatar
edgy46
Posts: 3314
Joined: Sun Mar 04, 2007 2:40 am
Location: S. W. Ohio

Re: Like button

Post by edgy46 »

bestgear wrote: Sat Aug 30, 2025 9:04 pm
Miller Bro's wrote: Sat Aug 30, 2025 8:53 pm I hope we NEVER get a "like" button!
I agree Dimitri ::tu:: The like button changed the world by creating a metric for social validation, driving surveillance ::tu:: ::tu:: ::tu:: ::tu:: 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.
What they said ::tu:: ::tu::
An uncontrolled accumulator. ::shrug::
Bill
User avatar
bighomer
Gold Tier
Gold Tier
Posts: 10783
Joined: Sat Feb 28, 2015 11:07 pm
Location: N.mid.Tn.

Re: Like button

Post by bighomer »

::tu:: x10
User avatar
OLDE CUTLER
Gold Tier
Gold Tier
Posts: 5667
Joined: Wed Oct 11, 2017 8:11 pm
Location: South Dakota

Re: Like button

Post by OLDE CUTLER »

bighomer wrote: Sun Aug 31, 2025 1:39 am::tu:: x10
I know I would never use it.
"Sometimes even the blind chicken finds corn"
JustEd
Posts: 24
Joined: Thu Mar 06, 2025 11:05 pm

Re: Like button

Post by JustEd »

::tu::
peanut740 wrote: Sat Aug 30, 2025 12:39 pm
bestgear wrote: Sat Aug 30, 2025 11:06 am
doglegg wrote: Sat Aug 30, 2025 10:30 am ::tu::
::tu::
1. select quote button
2. select thumbs up emoji
3. hit submit

I’m exhausted ::dang::
::tu::
User avatar
rea1eye
Posts: 2658
Joined: Fri Mar 13, 2015 2:59 am

Re: Like button

Post by rea1eye »

bestgear wrote: Sat Aug 30, 2025 9:04 pm
Miller Bro's wrote: Sat Aug 30, 2025 8:53 pm I hope we NEVER get a "like" button!
I agree Dimitri ::tu:: The like button changed the world by creating a metric for social validation

::tu::

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
User avatar
Rookie
Gold Tier
Gold Tier
Posts: 2226
Joined: Mon Oct 24, 2005 12:13 pm
Location: Meadville, PA

Re: Like button

Post by Rookie »

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.
Post Reply

Return to “General Knife Discussion”