If you are not registered or logged in, you may still use these forums but with limited features. Show recent topics
  [Search] Search   [Hottest Topics] Hottest Topics   [Members]  Member Listing   [FAQ]  FAQ 
[Register] Register / 
[Login] Login 
How to saw last messages at the main pege  XML
Forum Index » Support Forum
Author Message
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
Carbonize
Master
[Avatar]

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
[Email] [WWW] [Yahoo!] aim icon [MSN] [ICQ]
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.
Carbonize
Master
[Avatar]

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
[Email] [WWW] [Yahoo!] aim icon [MSN] [ICQ]
Carbonize
Master
[Avatar]

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
[Email] [WWW] [Yahoo!] aim icon [MSN] [ICQ]
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.
Anonymous



Thank you very much. I'll try to make it and tell you later.
Anonymous



Thank you. It is working.
Is it posible to output last 5 messages?
Carbonize
Master
[Avatar]

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
[Email] [WWW] [Yahoo!] aim icon [MSN] [ICQ]
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.
Carbonize
Master
[Avatar]

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
[Email] [WWW] [Yahoo!] aim icon [MSN] [ICQ]
Anonymous



Ok. I can give you PHP scripts.
See your e-mail.
Carbonize
Master
[Avatar]

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
[Email] [WWW] [Yahoo!] aim icon [MSN] [ICQ]
Anonymous



I'll be glad.
Thank you
Carbonize
Master
[Avatar]

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
[Email] [WWW] [Yahoo!] aim icon [MSN] [ICQ]
 
Forum Index » Support Forum
Go to:   
Based on the open source JForum