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 
Website Integration - SSI?  XML
Forum Index » Advanced Guestbook Forum
Author Message
pureplayer
Newbie
[Avatar]

Joined: 22/08/2005 03:10:17
Messages: 3
Offline

Hi, I'm wondering if there's a script available or can be written that will allow the last x guestbook entries be viewed on another webpage. Like the Invision Power Board uses the SSI to view the last x posts.

Any help will be appreciated

Thanks
[Email]
Carbonize
Master
[Avatar]

Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline

I did write a script for someone that pulls the last five entries and displays them. I can try and dig it up.

Carbonize
I am not the maker of the Advanced Guestbook

get Lazarus
[Email] [WWW] [Yahoo!] aim icon [MSN] [ICQ]
pureplayer
Newbie
[Avatar]

Joined: 22/08/2005 03:10:17
Messages: 3
Offline

That would be great and much appreciated.

Thanks
[Email]
Carbonize
Master
[Avatar]

Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline

I was going to upload it somewhere but I'll just post it in here for you to copy and paste. Just put the file in the guestbook folder then include it where you want the entries to be displayed.

Carbonize
I am not the maker of the Advanced Guestbook

get Lazarus
[Email] [WWW] [Yahoo!] aim icon [MSN] [ICQ]
pureplayer
Newbie
[Avatar]

Joined: 22/08/2005 03:10:17
Messages: 3
Offline

thanks very much.
[Email]
Carbonize
Master
[Avatar]

Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline

You can change the date format if you know PHP date code and the number of entries in the query. Can you let me see it in action ?

Carbonize
I am not the maker of the Advanced Guestbook

get Lazarus
[Email] [WWW] [Yahoo!] aim icon [MSN] [ICQ]
JohnnyUSA
Beginner

Joined: 16/12/2006 06:28:45
Messages: 5
Offline

After the code include .. I receive these kind of errors

Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/username/public_html/book/latest.php on line 54
Carbonize
Master
[Avatar]

Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline

It means you have an error on line 54.

Carbonize
I am not the maker of the Advanced Guestbook

get Lazarus
[Email] [WWW] [Yahoo!] aim icon [MSN] [ICQ]
JohnnyUSA
Beginner

Joined: 16/12/2006 06:28:45
Messages: 5
Offline

I just copied your instruction code .. so what's that error ?
JTD
Graduate

Joined: 08/05/2004 21:52:50
Messages: 529
Location: Arkansas
Offline

JohnnyUSA wrote:I just copied your instruction code .. so what's that error ?


T_ENCAPSED_AND_WHITESPACE

LINK-> Use Lazarus Guestbook
[WWW] [Yahoo!] aim icon [MSN]
Carbonize
Master
[Avatar]

Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline

Line 54 is

<td>$lentry['name']</td>

Can't see a reason for th eerror.

Carbonize
I am not the maker of the Advanced Guestbook

get Lazarus
[Email] [WWW] [Yahoo!] aim icon [MSN] [ICQ]
JohnnyUSA
Beginner

Joined: 16/12/2006 06:28:45
Messages: 5
Offline

Could you please check the code again? to make sure it work right ?
Auron
Expert
[Avatar]

Joined: 23/06/2003 22:02:17
Messages: 1053
Offline



The print on two lines maybe?

Anyway, post what you have on line 54.

Visit my site @ www.ragnaru.com
Adv. Poll Install Guide NOW BACK ONLINE! (And also rather out of date I would of thought)
[Email] [WWW]
Carbonize
Master
[Avatar]

Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline

Ah the wanderer returns.

Carbonize
I am not the maker of the Advanced Guestbook

get Lazarus
[Email] [WWW] [Yahoo!] aim icon [MSN] [ICQ]
JohnnyUSA
Beginner

Joined: 16/12/2006 06:28:45
Messages: 5
Offline

Something is really wrong with the Line: 54 <td>$lentry['name']</td> and Line: 61 <td>$lentry['comment']</td>

After I remove those 2 out, the display seem like work without error, but what is the right code for entry comment and name?
 
Forum Index » Advanced Guestbook Forum
Go to:   
Based on the open source JForum