Author |
Message |
22/08/2005 03:16:25
|
pureplayer
Newbie
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
|
|
22/08/2005 11:05:27
|
Carbonize
Master
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 |
|
23/08/2005 03:43:25
|
pureplayer
Newbie
Joined: 22/08/2005 03:10:17
Messages: 3
Offline
|
That would be great and much appreciated.
Thanks
|
|
23/08/2005 10:43:09
|
Carbonize
Master
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 |
|
23/08/2005 16:34:22
|
pureplayer
Newbie
Joined: 22/08/2005 03:10:17
Messages: 3
Offline
|
thanks very much.
|
|
23/08/2005 17:20:42
|
Carbonize
Master
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 |
|
17/12/2006 23:47:53
|
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
|
|
17/12/2006 23:54:39
|
Carbonize
Master
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 |
|
19/12/2006 05:54:33
|
JohnnyUSA
Beginner
Joined: 16/12/2006 06:28:45
Messages: 5
Offline
|
I just copied your instruction code .. so what's that error ?
|
|
19/12/2006 15:53:04
|
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 |
|
19/12/2006 16:01:58
|
Carbonize
Master
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 |
|
20/12/2006 04:50:18
|
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 ?
|
|
20/12/2006 23:49:10
|
Auron
Expert
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) |
|
21/12/2006 00:33:47
|
Carbonize
Master
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 |
|
21/12/2006 20:57:45
|
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?
|
|
|