Guestbook - is this a bug?

For 6.1.1, when you view the list of guestbook entries, in the From column, try clicking the link of the member who made the guestbook entry.  For me, it doesn't go to that member (as it should).  Rather, it goes back the member whose guestbook the comment was left.

True for you?

How to fix?

Quote · 26 May 2008

In the file guestbook.php

Replace this

$query = "
SELECT
`Guestbook`.`ID`,
DATE_FORMAT(`Date`, '$date_format' ) AS 'Date',
`IP`,
`Sender`,
`Profiles`.`NickName`,
`Recipient`,
`Text`,
`New`
FROM `Guestbook`
LEFT JOIN `Profiles` ON
`Profiles`.`ID` = `Sender`
WHERE
`Recipient`='{$owner}'
ORDER BY `Date` DESC
LIMIT {$from}, {$records_on_page}
";

with

$query = "
SELECT
`Guestbook`.`ID`,
DATE_FORMAT(`Date`, '$date_format' ) AS 'Date',
`IP`,
`Sender`,
`Profiles`.`NickName`,

`Profiles`.`ID`,
`Recipient`,
`Text`,
`New`
FROM `Guestbook`
LEFT JOIN `Profiles` ON
`Profiles`.`ID` = `Sender`
WHERE
`Recipient`='{$owner}'
ORDER BY `Date` DESC
LIMIT {$from}, {$records_on_page}
";

Then  on line 222

Replace

getProfileLink($owner)
with

getProfileLink($records_arr['ID'])

This will solve your problem

----
Quote · 26 May 2008

Thanks Praveen.  All better!

Quote · 26 May 2008

That sounds like a bug to me.  Is there a way to make sure that fixes like this one Praveenkv came up with get into the official Dolphin release or patch?  Otherwise, I'm afraid many of us will fall into a configuration control nightmare trying to keep track of mods and different unofficial patches.

Rob

Quote · 26 May 2008

You are welcome

----
Quote · 27 May 2008

I wasn't able to get anything to post to the guest book and tried adding Praveen's code

now I may add entries to the guestbook but the delete link doesn't work

any suggestions?

Quote · 3 Aug 2008
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.