Keyword

Allow HTML inside K2 Comment

  • Andrea
  • Andrea's Avatar Topic Author
  • Offline
  • New Member
More
10 years 10 months ago #120908 by Andrea
Allow HTML inside K2 Comment was created by Andrea
Hello,
I'm writing here because I can't find how to enable HTML in K2 comments.
Can someone help me?

Thanks,
Andrea

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

  • Yiota
  • Yiota's Avatar
  • Visitor
10 years 10 months ago #120909 by Yiota
Replied by Yiota on topic Re: Allow HTML inside K2 Comment
The only HTML you can allow in your comments is the link element besides the p and br elements I'm afraid. There is no option to enable more.

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

  • Andrea
  • Andrea's Avatar Topic Author
  • Offline
  • New Member
More
10 years 10 months ago - 10 years 10 months ago #120910 by Andrea
Replied by Andrea on topic Re: Allow HTML inside K2 Comment
Thank you for reply!
Oh, that's bad. :( So, there isn't other solution?
Anyway, I have other thing to ask: how can I delete website URL form? i.imgur.com/rlbW2kG.png (screenshot)

Thanks,
Andrea

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

  • Yiota
  • Yiota's Avatar
  • Visitor
10 years 10 months ago #120911 by Yiota
Replied by Yiota on topic Re: Allow HTML inside K2 Comment
Just modify the item_comments_form.php file of your K2 template overrides (read here getk2.org/documentation/tutorials/174-templating-with-k2-and-the-concepts-of-sub-templates on how overrides work if you do not use already).
You need to comment out or remove the lines 37 and 38 which include this code
<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='';" />

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


Powered by Kunena Forum