Ascending / Descending Post Listings

Dr. GBooky is here to help you with your guestbook problems ...
Post Reply
voggo
Posts: 2
Joined: Thu Jan 11, 2007 10:25 pm

Ascending / Descending Post Listings

Post by voggo »

Hello Everyone!
I'm looking for directions on changing the settings so that the posts in the Guestbook are descending and not ascending. Does anyone know what file I might be able to do this in?
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

You can try changing

Code: Select all

$lines=file($settings['logfile']);
to

Code: Select all

$lines=array_reverse(file($settings['logfile']));
Make sure you change ALL occurrences of the above line in the script (5 times!!)

Haven't tested it so make backup of the entries file before trying anything.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
voggo
Posts: 2
Joined: Thu Jan 11, 2007 10:25 pm

Post by voggo »

Thanks for the help....I did it! And it works great!

To cool Klemen. Sweet script for no mysql database.
Post Reply