WordPress.org

Forums

DMSGuestbook
[resolved] url and email fields showing when set not to (5 posts)

  1. ColourPainter
    Member
    Posted 2 years ago #

    Hi

    Wonder if anyone can help. My email and url fields have been 'unticked' and set not to show. However, they are still visible front end: http://juliaodell.co.uk/visitorsbook/

    In database wp_options it it set to: url/email show: 0 require 0
    Its not my cache.

    Any ideas?

    Thank you. Rgds. Julia

    http://wordpress.org/extend/plugins/dmsguestbook/

  2. DanielSchurter
    Member
    Plugin Author

    Posted 2 years ago #

    Hi Julia

    'unticked' url and email field in "DMSGuestbook -> Guestbook settings -> Mandatory" means that this both field are not required to fill out by a guest.

    If you like to remove these fields, go to "../plugins/dmsguestbook/template/form/default.tpl" and remove or comment out the code.

    Greetings,
    Dani

  3. ColourPainter
    Member
    Posted 2 years ago #

    Thank you Dani.

    ok, i found it.
    I created 'custom.tpl' (To use as my own template and copied all the code to it) I set it as the template to use in the 'extended' section and then ..

    This example will comment out the html email field..

    ---------------------------------------------------
    $var_form2 = "

    <!-- email field -->
    <!-- <div class='css_form_textfieldspace'>
    <input class='css_form_emailfield' type='text' name='gbemail' value='$gbemail' />
    <b class='css_form_text'> $lang_email $var_mandatory_email</b></div> -->
    ";
    ---------------------------------------------------

    Do the same for other fields you don't want.

  4. DanielSchurter
    Member
    Plugin Author

    Posted 2 years ago #

    Hi Julia

    Correct, be sure don't have set email as mandatory in "DMSGuestbook -> Guestbook settings -> Mandatory" because it would check that although the email is comment out.

    Greetings,
    Dani

  5. ColourPainter
    Member
    Posted 2 years ago #

    Thanks Dani. Yes noted. The php would still be parsed even if the html is commented out.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • DMSGuestbook
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.