Results 1 to 9 of 9

Thread: 4.0 patch 2 Blog order

  1. #1
    Drakontas
    Guest

    Default 4.0 patch 2 Blog order

    Blogs appear as earliest first, not most recent. I think it would be more convenient to read the most current blog first and then scroll to see the previous posts if desired.

  2. #2
    Administrator Smoge's Avatar
    Join Date
    Mar 2005
    Posts
    6,634
    Blog Entries
    5

    Thumbs up

    Hi - you are the winner!

    The first aeDating v4.0 Patch 2 bug posted here in the CLEAN Bug forum.

    I agree - this is a functionality bug. Where something does not function as most people would expect it too.

    Most People would expect to the the latest blog first.

    Smoge
    ModMySite Administrator

    Problems? Questions? Need modifications or other help with your site?

    Open A Ticket , Send Us An Email Or Give Us A Telephone Call +1 518-632-4152.

  3. #3
    Administrator Smoge's Avatar
    Join Date
    Mar 2005
    Posts
    6,634
    Blog Entries
    5

    Default

    Here is a possible fix for the blog order issue. Perhaps some of you can test it and see if it fits your needs.

    The blogs the owner writes are in DESC order... newest first.

    The comments made by others are under the original blog post, in an ASC order.

    This has been added to CLEAN v0.04 for now - if there is some issue with it - it will be updated

    Find in blog.php

    Code:
    $res = db_res("SELECT *, count( branch )-1 AS comments
                        FROM `Blog`
                        WHERE `owner` = '{$owner}
    '
                        GROUP BY `branch`
                        ORDER BY `date`, `branch` ASC
                        LIMIT {$from}, {$step}");
        while($blogs = mysql_fetch_array($res))
    Change to

    Code:
    $res = db_res("SELECT *, count( branch )-1 AS comments
                        FROM `Blog`
                        WHERE `owner` = '{$owner}
    '
                        GROUP BY `branch`
                        ORDER BY `date` DESC
                        LIMIT {$from}, {$step}");
        while($blogs = mysql_fetch_array($res))
    Last edited by Smoge; 09-24-2005 at 04:43 AM.
    ModMySite Administrator

    Problems? Questions? Need modifications or other help with your site?

    Open A Ticket , Send Us An Email Or Give Us A Telephone Call +1 518-632-4152.

  4. #4
    chris c
    Guest

    Default

    Smoge,

    I made the single line change per your post to the blog.php file:-

    ORDER BY `date` DESC

    Does not seem to work? Am i not doing this right or could Drakontas confirm if this works ?? Seems like not coming out in descending order, newest first?

    chris c
    Last edited by Smoge; 09-26-2005 at 11:22 PM.

  5. #5
    Drakontas
    Guest

    Default blog fix

    There are too many problems in 4.0 patch 2 for me to fix on my own so I'm awaiting Smoge to install the Clean version... I haven't gone in to try any fixes yet, sorry.

  6. #6
    Drakontas
    Guest

    Default the blog fix (part 2)

    I just applied the fix Smoge suggested and it worked fine on my site.

  7. #7
    chris c
    Guest

    Default

    Quote Originally Posted by Drakontas
    I just applied the fix Smoge suggested and it worked fine on my site.

    Thanks for letting me know, it must be me not doing this right. Let me attempt a retry or wait I might until Smoge updates to Clean v004.

    chris c

  8. #8
    Administrator Smoge's Avatar
    Join Date
    Mar 2005
    Posts
    6,634
    Blog Entries
    5

    Default

    With this - blogs should be descending - but comments are not (if I am not mistaken)... perhaps this should be changed too?

    Chris - I'll get you upgraded to CLEAN v0.04 as soon as I can - it looks like you are in a testing mood! (which is great!)

    Smoge

    Quote Originally Posted by chris c
    Smoge,

    I made the single line change per your post to the blog.php file:-

    ORDER BY `date` DESC

    Does not seem to work? Am i not doing this right or could Drakontas confirm if this works ?? Seems like not coming out in descending order, newest first?

    chris c
    ModMySite Administrator

    Problems? Questions? Need modifications or other help with your site?

    Open A Ticket , Send Us An Email Or Give Us A Telephone Call +1 518-632-4152.

  9. #9
    chris c
    Guest

    Default CLEANv0004-Blog Order not working?

    Quote Originally Posted by Smoge
    With this - blogs should be descending - but comments are not (if I am not mistaken)... perhaps this should be changed too?

    Chris - I'll get you upgraded to CLEAN v0.04 as soon as I can - it looks like you are in a testing mood! (which is great!)

    Smoge
    G4 template, IE 6.0.29, i checked and confirmed your revised code on my site.

    The blog however still shows up as last in , last out (meaning latest post at the bottom and original first post on top); irrespective of blog owner or third party appending. ? (see attachment)

    Duplicates were from browser refresh.


    Could someone else confirm (Cleanv0004), Drakontas seems to have it working correctly ?

    chris c
    Attached Images Attached Images

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. virtual gift order array
    By modguy in forum General Troubleshooting
    Replies: 0
    Last Post: 08-28-2009, 04:45 PM
  2. Blog & Blog Post Editing/Deleting Not Happening
    By codejungle in forum Dolphin General Discussion v6.00 and above
    Replies: 1
    Last Post: 09-09-2008, 01:47 PM
  3. date order does not always work
    By Roland1975 in forum Bugs Dolphin v.5.3.0
    Replies: 2
    Last Post: 11-04-2006, 03:07 PM
  4. Upate from v4 Patch 1 to v4 Patch 2
    By Smoge in forum Upgrading
    Replies: 0
    Last Post: 09-20-2005, 09:41 PM
  5. 4.0 patch 2 Blog
    By Drakontas in forum General Troubleshooting
    Replies: 1
    Last Post: 09-14-2005, 03:33 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •