1. Poul Theodorsen
  2. Bugs
  3. Wednesday, 27 August 2014
  4.  Subscribe via email
I have made it mandatory that user must enter his name before commenting.
But if user clicks on "Anonymous" above the name field and then click the Send button, the comment is submitted - without the mandatory name.

Also

What is the idea of the Cancel button? If think that users will feel uncanny, because after cancelling the form, it still remembers your info.
It ought to work exactly as a usual Clear button - that's clearing everything for good.

And

Probably related to the above, even though I have Cleared the form, attempted to send it as an empty form and reloading the page, for some strange reason, the email field is always prefilled with the letter "i" instead of "Enter your email". The "i" in this case is probably coming from the first letter in a previously entered email adr

Another thing puzzles me: why is the "Cite" button publicly visible, when setting is that only administrators can reply? It is of no use to the public.
Responses (2)
Daniel Dimitrov
Support team
Accepted Answer Pending Moderation
Hey Poul,
1. Okay, I've put this on the todo list for fixing

2. The cancel button. Well, we can make it clear the form, but I thought - what If I accidentally click it. I don't want to lose all the data. So having it close the form, but keep the text makes sure that if I decide otherwise I can still post the comment.
3. The email and name are stored in a cookie and it starts to save it when you enter the first character. If you have less than 1 characters it doesn't do anything.

4. With "cite" button I guess that you mean quote. Quote is different from reply. You can set the reply to be available only to administrators, but there is no option to hide the quote button. If you don't want it you'll have to make a template override and remove the button.

Regards,
Daniel
Please if you use our extensions be so kind and review them at JED
Matukio | Hotspots Pro | CComment Pro
  1. more than a month ago
  2. Bugs
  3. # 1
Daniel Dimitrov
Support team
Accepted Answer Pending Moderation
1. Actually this should be already fixed in the last dev. release. Can you try it out?
Alternatively you could do the following modifications:
Go to \components\com_comment\templates\default\default_form.php
line 155 looks like this:

<button class="btn-link btn-small ccomment-posting-as">{{user.getDefaultName}}</button>


add type="button" to it like this:

<button type="button" class="btn-link btn-small ccomment-posting-as">{{user.getDefaultName}}</button>



Then you need to do the same for the cancel button on line 250:

<button class="btn ccomment-cancel"><?php echo JText::_('COM_COMMENT_CANCEL'); ?></button>

change it to

<button type="button" class="btn ccomment-cancel"><?php echo JText::_('COM_COMMENT_CANCEL'); ?></button>


Cheers,
Daniel
Please if you use our extensions be so kind and review them at JED
Matukio | Hotspots Pro | CComment Pro
  1. more than a month ago
  2. Bugs
  3. # 2
  • Page :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.

Last questions

Questions on new installation...
Working on getting this set up... https://eastend2024.joepolecheck.com/rumma...
3 Replies
Posted on Wednesday, 17 April 2024
  • Resolved
  • New
  • Changes to the Submission form
    Can you make changes to the Submission form? There are a few fields I'd like to ...
    0 Replies
    Posted on Thursday, 18 April 2024
  • New
  • Error received? Class "XMLReader" not fo
    Just installed the Pro version of Hotspots, but am getting an error when I try t...
    1 Replies
    Posted on Wednesday, 17 April 2024
  • Resolved
  • New
  • Links aus Veranstaltungsübersicht funktionieren ni
    Nach der Migration von Joomla 3.10 auf Joomla 5.0.3 treten folgende Probleme auf...
    2 Replies
    Posted on Monday, 08 April 2024
    Custom Hotspot Marker fails to load
    I just updated from Joomla 3 to Joomla 4.3.4 and Hotspots 6.0.12. I decided to e...
    0 Replies
    Posted on Tuesday, 09 April 2024