Author |
Message |
30/01/2005 10:30:12
|
Anonymous
|
Our small company use your Advanced Guestbook 2.3.1 at our website (www.helpos.org) And we wants to saw last messages at our main page, as it was when we use other GuestBook (now you can see it in our main page)
We likes your GuestBook many more, than our old, but we don't want to change design of our website.
Great thanks,
Ivan
mail to: design@helpos.org
|
|
30/01/2005 10:48:26
|
Carbonize
Master
Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline
|
So basically you would like a script you can place on your index page to display the name and message of the last entry in the guestbook? Simple enough really I suppose just a question of the format. Would you just require the name and message or also the date/time posted? Also are you comfortable using PHP include function? I am thinking you could put <?php include('/guestbook/include.php'); ?> at the start of your webpage and then you could just put something like <?php data['name']; ?> where you wanted their name with data['comment'] fo their post and so forth.
|
Carbonize
I am not the maker of the Advanced Guestbook
get Lazarus |
|
30/01/2005 18:05:53
|
Anonymous
|
Yes, I would like a script I can place on your index page to display the name and message of the last entry in the guestbook. WO PHP. Only name and message.
Thanks for your help.
|
|
30/01/2005 18:52:18
|
Carbonize
Master
Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline
|
the script will be simple for me to write it's how to output it thats worrying me. Would you prefer that all you had to do was place <?php data['name']; ?> in your html where you wished the name to appear with data['comment'] where you want the message to appear or would you prefer that the script send the entire html formatting for it? I prefer the former method as it makes it easier to integrate into your sites look but requires multiple PHP entries in your page.
|
Carbonize
I am not the maker of the Advanced Guestbook
get Lazarus |
|
31/01/2005 19:45:39
|
Carbonize
Master
Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline
|
Try this www.carbonize.co.uk/AG/lastentry.zip
|
Carbonize
I am not the maker of the Advanced Guestbook
get Lazarus |
|
31/01/2005 21:12:09
|
ET
Graduate
Joined: 21/02/2003 22:17:48
Messages: 179
Offline
|
Cool! Carbonized - I might use that one myself! I'll probably rescript it to Javascript and plant it onto my html pages - Sweet!
--- Update ---
I wrote the javascript for displaying the last entry on a non-php page. If anyone is interested in the javascipt, let me know.
|
|
01/02/2005 08:53:00
|
Anonymous
|
Thank you very much. I'll try to make it and tell you later.
|
|
02/02/2005 07:51:13
|
Anonymous
|
Thank you. It is working.
Is it posible to output last 5 messages?
|
|
02/02/2005 09:46:18
|
Carbonize
Master
Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline
|
yes but I think I would then need to handle the formatting within the PHP script it's self.
|
Carbonize
I am not the maker of the Advanced Guestbook
get Lazarus |
|
02/02/2005 15:16:29
|
Anonymous
|
Carbonize wrote:yes but I think I would then need to handle the formatting within the PHP script it's self.
Rephrase pls.
What we can to give you?
Sorry for my english.
|
|
02/02/2005 15:57:48
|
Carbonize
Master
Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline
|
For one entry the method I used is fine where you can use lentry['name'] etc. For more than one entry I would have to handle the output via the php script meaning that if they were to go in a table I would have to create the html for the table within the php script.
|
Carbonize
I am not the maker of the Advanced Guestbook
get Lazarus |
|
03/02/2005 08:02:52
|
Anonymous
|
Ok. I can give you PHP scripts.
See your e-mail.
|
|
03/02/2005 15:17:36
|
Carbonize
Master
Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline
|
I'll throw something together for you sometime this weekend.
|
Carbonize
I am not the maker of the Advanced Guestbook
get Lazarus |
|
03/02/2005 16:17:44
|
Anonymous
|
I'll be glad.
Thank you
|
|
05/02/2005 11:28:24
|
Carbonize
Master
Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline
|
I have made a script but not tested it. Can you email me and I will send the file in the reply.
|
Carbonize
I am not the maker of the Advanced Guestbook
get Lazarus |
|
|