Find All Thanked Posts Ordered by Post Date (Descending)


 
Thread Tools Search this Thread
The Lounge What is on Your Mind? Find All Thanked Posts Ordered by Post Date (Descending)
# 1  
Old 02-21-2019
Find All Thanked Posts Ordered by Post Date (Descending)

I just made some quick PHP changes so if "userid 2" is selected, all users will appear in the search results:

Code:
https://www.unix.com/post_thanks.php?do=findthanks&u=2

Basically, this search will bring all thanked posts by all users ordered by time, from newest to oldest.

Search for Thanked Posts by All Users

Hope this helps.
These 3 Users Gave Thanks to Neo For This Post:
# 2  
Old 02-21-2019
Good thing, thank you... while you're at it: it seems that in the members modal, "Find all thanked posts by MEMBER (most recent first)" the algorithm doesn't always show the most recent thanks given (i.e. ordered by date desc) if more than one person thanked, but it seems to order by the thank date of the the alphabetically first sorted member's name, so if a second, third etc. thanks comes later it is not recognized.
This User Gave Thanks to RudiC For This Post:
# 3  
Old 02-21-2019
The time of thanks is not saved or stored in the DB, so the posts are ordered based on the time posted.

However I agree it is a good idea to maybe update the post time stamp when the post is thanked.

Or instead maybe add a ""lastthanked" field to the post table?!
# 4  
Old 02-21-2019
How is the "Neo (5 Minutes Ago)" calculated?
This User Gave Thanks to RudiC For This Post:
# 5  
Old 02-21-2019
Will look into ... thanks Rudi.

Good catch!
Login or Register to Ask a Question

Previous Thread | Next Thread

7 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Find common values in python list in ordered format

Hello All, There are various codes available to find the intersection between two sets in python. But my case is the following: I want to find the continual common pattern in different lists compared to list1. (i have underlined the longest common patterns in set a and set b) a = 2, 3, 5,... (1 Reply)
Discussion started by: Zam_1234
1 Replies

2. UNIX for Dummies Questions & Answers

Find the count of files by last created date based on the given date range

My unix version is IBM AIX Version 6.1 I tried google my requirement and found the below answer, find . -newermt “2012-06-15 08:13" ! -newermt “2012-06-15 18:20" But newer command is not working in AIX version 6.1 unix I have given my requirement below: Input: atr files: ... (1 Reply)
Discussion started by: yuvaa27
1 Replies

3. Shell Programming and Scripting

Find week of the year for given date using date command inside awk

Hi all, Need an urgent help on the below scenario. script: awk -F"," 'BEGIN { #some variable assignment} { #some calculation and put values in array} END { year=#getting it from array and assume this will be 2014 month=#getting it from array and this will be 05 date=#... (7 Replies)
Discussion started by: vijaidhas
7 Replies

4. Shell Programming and Scripting

Grep only specific lines ordered by column/date

Hi everybody, I'd like to think I've been through the search tool not only on this site, but also on google too, but I haven't been able to find what I was looking for. If I might've missed something on this forum, please slap me in the face with a link that you consider useful for my query :D ... (4 Replies)
Discussion started by: dilibau
4 Replies

5. Shell Programming and Scripting

How to find a date which is 7 days past when given current date

hii all. I have to get the date of the 7th day past from the current date. if i give the current date as sep 3 then i must get the date as 27th of august. can we get the values from the "cal" command. cal | awk '{print $2}' will this type of command work. actually my need is if today is... (17 Replies)
Discussion started by: ladtony
17 Replies

6. UNIX for Dummies Questions & Answers

Help - Find command with list of files modified descending Order

Hi, I would like to know the command to get the files order in descending order with "FIND" command. Appreciate your help Thanks (4 Replies)
Discussion started by: TonySolarisAdmi
4 Replies

7. UNIX for Advanced & Expert Users

date issue-find prevoius date in a patricular format

Hi , I have written a shell script that takes the current date on the server and stores it in a file. echo get /usr/home/data-`date '+%Y%d'`.xml> /usr/local/sandeep/GetFILE.ini I call this GetFILE.ini file from an sftp program to fetch a file from /usr/home/ as location. The file is in... (3 Replies)
Discussion started by: bsandeep_80
3 Replies
Login or Register to Ask a Question