Jump to content

Thumbs up/like Button


Recommended Posts

I think it might be nice to have a Thumbs Up/Like Button. I can be used to tell the author what post is most recommended.

 

For example, say I post something saying:

How do I save a jpg to the hard drive when clicking on a link?

 

The member would then get a page or two worth of answers.

 

and lets say 10 people liked this post (the most likes):

<?php
header("Pragma: public"); 
header("Expires: 0"); 
header("Cache-Control: must-revalidate, post-check=0, pre-check=0"); 
header("Content-Type: application/force-download"); 
header("Content-Type: application/octet-stream"); 
header("Content-Type: application/download"); 
header("Content-Disposition: attachment; filename=".basename("/location/of/file.jpg").";"); 
header("Content-Transfer-Encoding: binary"); 
header("Content-Length: ".filesize("/location/of/file.jpg")); 
readfile("/location/of/file.jpg");
?>

 

It would then stick out more than any of the other posts (or be listed first).

Link to comment
https://forums.phpfreaks.com/topic/239670-thumbs-uplike-button/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.