Script URL: http://www.rarmy.com/gbook
Version of script: 1.7
Hosting company: atjeu.com
URL of phpinfo.php: http://www.rarmy.com/info.php
URL of session_test.php: http://www.rarmy.com/gbook
What terms did you try when SEARCHING for a solution:mandatory, mandatory fields, trolled the forums.
Write your message below:
Maybe I missed it, but is there a way to make the location and email field mandatory as well??? just asking...
Thought I saw something but am unable to find again...
Mandatory Fields
Re: Mandatory Fields
=> To make email required:
In gbook.php find and delete this exact code
=> To make "From:" required:
In gbook.php just under add
=> You will also want to make "From:" and "Email:" lables bold in the sign form HTML (templates/default/sign_form.php).
In gbook.php find and delete this exact code
Code: Select all
strlen($v['email']) > 0 &&
In gbook.php just under
Code: Select all
if (empty($name))
{
$error_buffer .= $lang['e03'].'<br class="clear" />';
}
Code: Select all
if (empty($from))
{
$error_buffer .= 'Please enter your location<br class="clear" />';
}
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here 
You should follow me on Twitter here
Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...
Also browse for php hosting companies, read php books, find php resources and use webmaster tools


Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...
Also browse for php hosting companies, read php books, find php resources and use webmaster tools
Re: Mandatory Fields
Tnks...worked after doing it a couple of times...probably should go to bed...took to long to figure out...hehehe...
Re: Mandatory Fields
You could also have found the solution in the topics listed in this thread viewtopic.php?f=3&t=371
Henrie
Henrie
I do not monitor the Gbook forums regularly anymore since I do not use the Gbook script myself anymore for a long time. But it helped me a lot in learning to understand php.
Re: Mandatory Fields
5 hour nap, feeling a little better. I KNEW I saw it somewhere...had added the read only mod already...thanks.Henrie wrote:You could also have found the solution in the topics listed in this thread viewtopic.php?f=3&t=371
Henrie

follow up: I am assuming I need to redo the edits already done to make it work???
Re: Mandatory Fields
follow-up; have installed all but the custom field in all three gbooks...sweet work, and thank you very much...