Hi,
Is there a way to display the latest post first? After adding an overflow: scroll property in CSS, users have to scroll down the block to see the latest post.
Thank you so much
Hi,
Is there a way to display the latest post first? After adding an overflow: scroll property in CSS, users have to scroll down the block to see the latest post.
Thank you so much
Comments
Comment #1
indycityboy commentedI had the same problem, the solution is given below. However, I cannot even get the scrollbar to appear! Where exactly do I need to put the overflow property? I have tried putting it under #shoutbox-body in shoutbox.css but it is not working.
To get the newest post on top, change the following in shoutbox.module on line 315 (under function _shoutbox_display_posts)
from
$result = db_query_range("SELECT * FROM {shoutbox} WHERE status=1 ORDER BY created DESC", 0, $show_amount);to
$result = db_query_range("SELECT * FROM {shoutbox} WHERE status=1 ORDER BY created ASC", 0, $show_amount);Comment #2
indycityboy commentedComment #3
anandkumarm commentedAs somebody else said add
div#shoutbox-posts {
overflow: auto;
height: 150px;
}
in the shoutbox.css