That shouldn't be too hard. You could also use FrontEndUsers/CustomContent to achieve this without modifying the module.
In lib/classes/module/class.GuestbookFrontend.php :
Code: Select all
if ($params['showaddform'] == TRUE || $this->getMode() == 'form')
{
$this->setShowForm(TRUE);
}
else
{
if (isset($_POST['show_addform']))
{
$this->setShowForm(TRUE);
}
elseif(! (isset($_POST['submitted']) && !isset($_POST['cancel'])))
{
$this->setShowInsertButton(TRUE);
}
}
Code: Select all
if ($params['showaddform'] == TRUE || $this->getMode() == 'form')
{
$this->setShowForm(TRUE);
}
else
{
if (isset($_POST['show_addform']))
{
if ($_POST['password'] == 'the right password')
{
$this->setShowForm(TRUE);
}
else
{
echo 'the wrong password was entered';
$this->setShowInsertButton(TRUE);
}
}
elseif(! (isset($_POST['submitted']) && !isset($_POST['cancel'])))
{
$this->setShowInsertButton(TRUE);
}
}
D