Link to guestbook removed from backend

Creating and modifying plugins.
Post Reply
Niclas
Regular
Posts: 61
Joined: Fri Aug 29, 2008 3:54 pm
Location: Frankfurt / Germany

Link to guestbook removed from backend

Post by Niclas »

Hi all,

after having installed an update of the guestbook plugin I'm missing the link to the guestbook in the backend of Serendipity. Before I could use the link to approve or delete guestbook entries. This link is now gone.
How can I approve or delete entries without having to go into the database itself everytime, why is this link gone and how can it be brought back again ?
Timbalu
Regular
Posts: 4598
Joined: Sun May 02, 2004 3:04 pm

Re: Link to guestbook removed from backend

Post by Timbalu »

Since having had access to members, when using the adduser plugin,
the default setting is now that this link is available to blog admin only.

I assume, I have to make it compat to admin group some time in future. :)
Regards,
Ian

Serendipity Styx Edition and additional_plugins @ https://ophian.github.io/ @ https://github.com/ophian
Niclas
Regular
Posts: 61
Joined: Fri Aug 29, 2008 3:54 pm
Location: Frankfurt / Germany

Re: Link to guestbook removed from backend

Post by Niclas »

Ah, ok, found it.
Strange I didn't saw this the last time I'd logged in as admin to check whether the link is visible for this account only. :?:

At least it's still a more comfortable way than opening the DB itself everytime. :)
Timbalu
Regular
Posts: 4598
Joined: Sun May 02, 2004 3:04 pm

Re: Link to guestbook removed from backend

Post by Timbalu »

Hi Niclas

Could u please test this and replace the 2 case 'xxx' down from line 1088 serendipity_event_guestbook.php with this:

Code: Select all

                case 'backend_sidebar_entries':
                    
                    // forbid sidebar link if user is not in admin group level
                    if ($serendipity['serendipityUserlevel'] < USERLEVEL_ADMIN) {
                        return false;
                    }
                    echo '<li class="serendipitySideBarMenuLink serendipitySideBarMenuEntryLinks"><a href="?serendipity[adminModule]=event_display&serendipity[adminAction]=guestbook">' . PLUGIN_GUESTBOOK_ADMIN_NAME . '</a></li>';
                    
                    return true;
                    break;

                case 'backend_sidebar_entries_event_display_guestbook':
                    
                    // forbid entry access if user is not in admin group level
                    if ($serendipity['serendipityUserlevel'] < USERLEVEL_ADMIN) {
                        return false;
                    }
                    /* show backend administration menu */
                    $this->backend_guestbook_menu();
                    
                    return true;
                    break;
Thanks for helping...
Regards,
Ian

Serendipity Styx Edition and additional_plugins @ https://ophian.github.io/ @ https://github.com/ophian
Post Reply