Page 1 of 1

Remove "Admin Reply" button

Posted: Sat Apr 19, 2008 10:31 pm
by lobmbc
Script URL:
Version of script: V1.6
Hosting company:
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution:

remove admin reply
admin reply
reply button
ban ip button

Also tried searching for "reply" in gbook.php

Write your message below:

Hi Chaps

our guestbook has more than one administrator. the guestbook is for a club website and the idea of multiple admin's is so the guestbook is monitored on a more regular basis than a single "volunteer" could do.

Unfortunately, one of the Admin's has a habit of posting "Admin reply's" that shouldn't be posted. I can't change the password and lock him out as he does a number of other roles within the club website and to "hack him off" would cause me grief from the club.

Simple solution, remove the "Admin Rely" button.

Can I do it without major problem??

Kev

Posted: Sun Apr 20, 2008 12:36 pm
by Klemen
A quick and easy way would be to disable the reply function, you can just open gbook.php in notepad or wordpad and change line 413 from

Code: Select all

function writeReply($num) {
to

Code: Select all

function writeReply($num) {
die('This function has been disabled!');

Thanks Klemen

Posted: Sun Apr 20, 2008 3:28 pm
by lobmbc
Thanks Klemen

that works a treat.

Kev