Keyword

[SOLVED] Website URL

  • Scott Oman
  • Scott Oman's Avatar Topic Author
  • Offline
  • Senior Member
More
7 years 7 months ago #160739 by Scott Oman
Website URL was created by Scott Oman
Dear Joomlaworks Developers & Community,

Can you please tell me how to disable the Website URL field in K2 comments?

I've checked K2 parameters but can't locate where to turn this field off.

Spammers are entering urls to nefarious sites, that link to those sites in the K2 latest comments module.

Thank you!

Kind regards,

Scott

Please Log in or Create an account to join the conversation.

  • Mohamed Abdelaziz
  • Mohamed Abdelaziz's Avatar
  • Offline
  • Platinum Member
  • Joomla Developer
More
7 years 7 months ago #160741 by Mohamed Abdelaziz
Replied by Mohamed Abdelaziz on topic Website URL
Hi Scott,

You can override the template file item_comments_form.php and comment these lines:
<label class="formUrl" for="commentURL"><?php echo JText::_('K2_WEBSITE_URL'); ?></label>
	<input class="inputbox" type="text" name="commentURL" id="commentURL" value="<?php echo JText::_('K2_ENTER_YOUR_SITE_URL'); ?>"  onblur="if(this.value=='') this.value='<?php echo JText::_('K2_ENTER_YOUR_SITE_URL'); ?>';" onfocus="if(this.value=='<?php echo JText::_('K2_ENTER_YOUR_SITE_URL'); ?>') this.value='';" />

When you comment them, the url field will not be displayed.

Multiple Extra Fields Groups for K2
AutoMeta for K2
Chained Fields for K2
More K2 Extensions In My Extensions Store

Please Log in or Create an account to join the conversation.

  • Scott Oman
  • Scott Oman's Avatar Topic Author
  • Offline
  • Senior Member
More
7 years 7 months ago #160766 by Scott Oman
Replied by Scott Oman on topic Website URL
Thank you very much, Mohamed.

That worked! :)

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum