Author |
Message |
21/01/2005 19:09:05
|
Le Keeper World
Beginner
Joined: 07/01/2005 07:15:23
Messages: 6
Offline
|
Hello.
I am looking to change the way the guestbook sorts its entries that is shown when you enter the guestbook.
I am looking to have the 1st entry list first, sorted by ( oldest post to newsest post)
IE . Webmaster has 1st entry to welcome all visitors, then have oldest post to newsest post.
Can that be done ( i'm sure it can !!!)
You can visit my guestbook at www.lekeeperworld.com
|
wwww.lekeeperworld.com |
|
21/01/2005 19:23:31
|
Carbonize
Master
Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline
|
Hi again. So you want the start page to show the oldest post and then the next oldest and so on? Strange request but simple enough. I'll throw something together in work tonight.
|
Carbonize
I am not the maker of the Advanced Guestbook
get Lazarus |
|
21/01/2005 19:33:37
|
Le Keeper World
Beginner
Joined: 07/01/2005 07:15:23
Messages: 6
Offline
|
I'm removing all the administration links on the guestbook so that no user will peak at it and try to hack it. I've been successfull at removing from index page, but on entry page, I can't seem figure out how to remove it from there the add entry page.
any ideas how to ?
Thanks
|
wwww.lekeeperworld.com |
|
21/01/2005 20:52:46
|
Carbonize
Master
Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline
|
templates/form.php
Not that it makes much difference as the page is still admin.php although I don't think changing the name of the file will affect it's functionality so long as you remember the file name so you can get to it.
|
Carbonize
I am not the maker of the Advanced Guestbook
get Lazarus |
|
22/01/2005 05:04:06
|
Anonymous
|
Carbonize wrote:Hi again. So you want the start page to show the oldest post and then the next oldest and so on? Strange request but simple enough. I'll throw something together in work tonight.
This will allow me to have the 1st entry as an introduction to the guestbook for the visitors and will get people to browse. Right now I have to reset my id#( entry) so that it shows up and is seen by visitors. Everytime someone signs on, it rests my id( entry #).
Looing to see how this will work
Thanks
Le Keeper World
|
|
22/01/2005 05:09:04
|
Carbonize
Master
Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline
|
Do you really want it to show the entries in reverse order or would you prefer it if a selected entry was always first on the page? I mean you could have entry 1 always be the first entry on every page and still have the posts go from newest to oldest as they do now.
|
Carbonize
I am not the maker of the Advanced Guestbook
get Lazarus |
|
22/01/2005 12:12:11
|
Le Keeper World
Beginner
Joined: 07/01/2005 07:15:23
Messages: 6
Offline
|
I think I prefer to have entry 1 always be the first entry on every page and still have the posts go from newest to oldest as they do now.
Thanks
Paul
|
wwww.lekeeperworld.com |
|
22/01/2005 14:24:45
|
Carbonize
Master
Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline
|
Why not just hard code the HTML for the post in question into the template?
|
Carbonize
I am not the maker of the Advanced Guestbook
get Lazarus |
|
23/01/2005 08:41:03
|
Le Keeper World
Beginner
Joined: 07/01/2005 07:15:23
Messages: 6
Offline
|
Hi again.
2:45 Am and in midle of a majot Blizzard of snow here.
What ever willbe easiest.
I just want my entry to show when going to guest book.
Thanks
Paul
|
wwww.lekeeperworld.com |
|
29/01/2005 01:09:10
|
Anonymous
|
Hi, I really want to sort the entries in reverse order, how is that done?
|
|
29/01/2005 06:35:05
|
ET
Graduate
Joined: 21/02/2003 22:17:48
Messages: 179
Offline
|
Sure thing - in the lib/gb.class.php
Find this line -
and change it to
I have not thoroughly tried this out - so make sure to save backups of the official file so that you can reload it if necessary.
Everyone on this board who help are just volunteers. No Warranties!!!!
|
|
30/01/2005 15:19:32
|
Anonymous
|
Thanks, ET. Great help. I will try this, too.
|
|
|