Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.