|
[F] Find user posts - not displaying new posts (when hitting limit) [R]
|
|
04-22-2009, 07:23 AM
(This post was last modified: 04-22-2009 08:00 AM by koziolek.)
Post: #1
|
|||
|
|||
|
[F] Find user posts - not displaying new posts (when hitting limit) [R]
MyBB 1.4.5
While searching for user posts (by clicking "Find All Posts") MyBB does not display new posts, only old. Condition: user has more then 'searchhardlimit' posts. The SELECT query in search.php in block elseif($mybb->input['action'] == "finduser") does not have ORDER BY: PHP Code: $query = $db->simple_select("posts", "pid", "{$where_sql} {$limitsql}");The same problem applies to another query while showing the results (block if($mybb->input['action'] == "results")). The query gets real user-visible posts, also with LIMIT and without ORDER BY: PHP Code: // Make sure the posts we're viewing we have permission to view.Solution - get rid of $limitsql or add an "order by" according to user needs. Probably only the first solution is good (remove $limitsql from this query) because user may re-sort search results by date. Proof of concept of patch - attachment. www.kozik.net.pl - So... Maybe you shouldn't have hacked it. - And why don't you try not breathing. Hurts, dunnit. (userfriendly.org) |
|||
|
04-22-2009, 12:56 PM
Post: #2
|
|||
|
|||
|
RE: Find user posts - not displaying new posts (when hitting limit)
Hello,
its also affected on my forum and even in this board i guess. Is there a way to solve this problem? Thank you |
|||
|
04-22-2009, 01:03 PM
Post: #3
|
|||
|
|||
RE: Find user posts - not displaying new posts (when hitting limit)
(04-22-2009 12:56 PM)ripper Wrote: Is there a way to solve this problem?Yes, attached (in my first post) patch for file search.php works for me. www.kozik.net.pl - So... Maybe you shouldn't have hacked it. - And why don't you try not breathing. Hurts, dunnit. (userfriendly.org) |
|||
|
04-22-2009, 03:27 PM
Post: #4
|
|||
|
|||
|
RE: Find user posts - not displaying new posts (when hitting limit)
i have change search.php file on the block: elseif($mybb->input['action'] == "finduser" become:
PHP Code: $query = $db->simple_select("posts", "pid", "{$where_sql}");and the block: if($mybb->input['action'] == "results to become PHP Code: // Make sure the posts we're viewing we have permission to view.and yes you right its working fine now. is there an official patch to fix this bug? thank you bro for your advice. |
|||
|
04-22-2009, 08:51 PM
Post: #5
|
|||
|
|||
|
RE: Find user posts - not displaying new posts (when hitting limit)
I won't be using your exact patch, but I see the problem and will be fixing it soon.
![]() My Blog - My Mods |
|||
|
04-25-2009, 05:59 PM
Post: #6
|
|||
|
|||
|
RE: Find user posts - not displaying new posts (when hitting limit)
I tried the solution and didn't worked for me, I did modified the right lines but didn't worked, I used the data on the patch but didn't worked, so for now I put the search.php from the version 1.4.4 instead of the one of version 1.4.5 and that fixed my problem.
at least till an official fix comes around. |
|||
|
05-02-2009, 06:35 PM
Post: #7
|
|||
|
|||
|
RE: Find user posts - not displaying new posts (when hitting limit)
Any updates on an official fix for this?
|
|||
|
05-03-2009, 06:01 AM
Post: #8
|
|||
|
|||
RE: Find user posts - not displaying new posts (when hitting limit)
![]() My Blog - My Mods |
|||
|
05-04-2009, 01:12 PM
(This post was last modified: 05-05-2009 09:47 AM by koziolek.)
Post: #9
|
|||
|
|||
|
RE: Find user posts - not displaying new posts (when hitting limit)
Updated unofficial patch for MyBB 1.4.5/1.4.6 - it works for me, but I do not guarantee that it will work for you
. Use at your own risk .Update: fixed in patch errors while sorting by some columns (not existing in mybb_posts table). www.kozik.net.pl - So... Maybe you shouldn't have hacked it. - And why don't you try not breathing. Hurts, dunnit. (userfriendly.org) |
|||
|
05-05-2009, 07:13 PM
Post: #10
|
|||
|
|||
|
RE: Find user posts - not displaying new posts (when hitting limit)
Marked as reproducible.
|
|||
|
« Next Oldest | Next Newest »
|
Search
Member List
Calendar
Help




![[Image: ryangordon.png]](http://files.bellomandesign.com/signatures/mybb/ryangordon.png)
. Use at your own risk ![[Image: 01686afternoonshadows10.png]](http://img178.imageshack.us/img178/480/01686afternoonshadows10.png)