How can I remove the web page entry field from the Comments form?
- virtualsky
- Posts: 11
- Joined: Thu Mar 11, 2021 4:50 am
- Location: Saskatchewan, Canada
- Contact:
How can I remove the web page entry field from the Comments form?
I would like to remove the Web entry field from my Comments submission form on my blog. I think it would help with people posting fake/generic comments just so they can create link to their website. Anyone know how I can do this?
Re: How can I remove the web page entry field from the Comments form?
Very simple to do.
Go to the root of your FP install directory and locate "fp-interface/sharedtpls", and open the file called "comment-form.tpl".
Simply find the following code and remove it:
Then save/upload your file to the same location. Done!
Before:

After:

Go to the root of your FP install directory and locate "fp-interface/sharedtpls", and open the file called "comment-form.tpl".
Simply find the following code and remove it:
Code: Select all
<p>
{if isset($error) && isset($error.url) && !empty($error.url)}
{assign var=class value="field-error"}
{else}
{assign var=class value=""}
{/if}
{if isset($values) && isset($values.url) && !empty($values.url)}
{assign var=urlvalue value=$values.url}
{else}
{assign var=urlvalue value=""}
{/if}
<input type="text" class="{$class}" name="url" id="url" value="{$urlvalue|wp_specialchars:1|default:$cookie.url}" />
<label class="textlabel" for="url">{$lang.comments.www}</label>
</p>
Before:

After:

- virtualsky
- Posts: 11
- Joined: Thu Mar 11, 2021 4:50 am
- Location: Saskatchewan, Canada
- Contact:
Re: How can I remove the web page entry field from the Comments form?
Thank you so much! I'm off to make my changes. 

- virtualsky
- Posts: 11
- Joined: Thu Mar 11, 2021 4:50 am
- Location: Saskatchewan, Canada
- Contact:
Re: How can I remove the web page entry field from the Comments form?
My Comment-Form.tpl looked a little differently, but I remove the URL section and got the same results. So thanks for pointing me in the right direction!
Code: Select all
<div id="comment-userdata">
<p>
<input type="text" {$error.name|notempty:'class="field-error"'} name="name" id="name" value="{$values.name|wp_specialchars:1|default:$cookie.name}" />
<label class="textlabel" for="name">{$lang.comments.name}</label>
</p>
<p>
<input type="text" {$error.email|notempty:'class="field-error"'} name="email" id="email" value="{$values.email|wp_specialchars:1|default:$cookie.email}" />
<label class="textlabel" for="email">{$lang.comments.email}</label>
</p>
<p>
<input type="text" {$error.url|notempty:'class="field-error"'} name="url" id="url" value="{$values.url|wp_specialchars:1|default:$cookie.url}" />
<label class="textlabel" for="url">{$lang.comments.www}</label>
</p>
{* do action *}
{comment_form}
</div>
Re: How can I remove the web page entry field from the Comments form?
Yeah, I think my version is the absolute latest from the "master" on github, so it might be a bit different to whatever version you're using, which may mean you have to do it again when you upgrade. But hey, at least you know where it is now!virtualsky wrote: ↑Fri Mar 19, 2021 12:06 am My Comment-Form.tpl looked a little differently, but I remove the URL section and got the same results. So thanks for pointing me in the right direction!
Code: Select all
<div id="comment-userdata"> <p> <input type="text" {$error.name|notempty:'class="field-error"'} name="name" id="name" value="{$values.name|wp_specialchars:1|default:$cookie.name}" /> <label class="textlabel" for="name">{$lang.comments.name}</label> </p> <p> <input type="text" {$error.email|notempty:'class="field-error"'} name="email" id="email" value="{$values.email|wp_specialchars:1|default:$cookie.email}" /> <label class="textlabel" for="email">{$lang.comments.email}</label> </p> <p> <input type="text" {$error.url|notempty:'class="field-error"'} name="url" id="url" value="{$values.url|wp_specialchars:1|default:$cookie.url}" /> <label class="textlabel" for="url">{$lang.comments.www}</label> </p> {* do action *} {comment_form} </div>
Re: How can I remove the web page entry field from the Comments form?
You can also activate the QSpam plugin and add some words likevirtualsky wrote: ↑Thu Mar 18, 2021 1:00 am.. posting fake/generic comments just so they can create link to their website. Anyone know how I can do this?
...
href
http
https
www
...
and so on. The QSpam plugin has some quirks, but you can do it with a little testing

- virtualsky
- Posts: 11
- Joined: Thu Mar 11, 2021 4:50 am
- Location: Saskatchewan, Canada
- Contact:
Re: How can I remove the web page entry field from the Comments form?
Yes! Thanks for the extra tip.

Who is online
Users browsing this forum: No registered users and 2 guests