Order

Permalink Browser Info Environment
Hi there,

i would like to change the Order of the comments to "newest first" is this possible?

I also would like to move the Editor to the top of the Block.

what do i have to change?

thanks for your help

Type: Discussion
Status: New
ombre
View Replies: View Best Answer
12345j replied on at Permalink Reply
12345j
None of what you are asking is possible without changing code. How familiar are you with php? also, not sure what you mean by
> I also would like to move the Editor to the top of the Block.
?
ombre replied on at Permalink Reply
ombre
I ain't that good in PHP but I'm able to change things, but I didn't got it on my own, what to change in this file...

foreach ($posts as $p)
this should be the loop I would like to change the order...

moving the Editor to the top was easy, I also translated the view.php to german...
12345j replied on at Permalink Reply
12345j
in front of the foreach you can do $posts=array_flip($posts);
ombre replied on at Permalink Reply
ombre
thanks, but it isn't working:

Warning: array_flip() [function.array-flip]: Can only flip STRING and INTEGER values!


other ideas?
12345j replied on at Permalink Best Answer Reply
12345j
maybe try array_reverse instead of array_flip
ombre replied on at Permalink Reply
ombre
great that worked, thank you!
tgtg replied on at Permalink Reply
tgtg
My guestbook works fine but have one missing element.
Could you please help me how to "echo counts" on guestbook block?
I am running C5 5.4.2.2

Thanks,
Eddie
12345j replied on at Permalink Reply
12345j
not sure what you mean?

concrete5 Environment Information

Browser User-Agent String

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You have not specified a license for this support ticket. You must have a valid license assigned to a support ticket to request a refund.