i wanted to be able to add guestbooks entries on my own guestbook.

so i themed the guestbook to add "add guestbook entries" also for "own guestbook"

but when the user goes to this page for example user/1/guesbook there is a wsod, because _guestbook_access

<?php
    $form['#access'] = (_guestbook_access('post', $uid) == 'allowed' ? TRUE : FALSE);
?>

returns "own guestbook" here

i'm not sure wether the user should be able to post on their own guestbook by default(adding the link to the theme) but i think it should be at least possible to use it.

attached patch

PS: i think there could be added a variable to enable this, any oppinions about it?

CommentFileSizeAuthor
wsod_own_guestbook.patch954 bytesdawehner

Comments

sun’s picture

Status: Needs review » Closed (duplicate)

Marking as duplicate of #317798: Option to allow guestbook owners to post in their own guestbook. Please search existing issues before creating new ones.