New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow captcha when submit a webllink #223
Conversation
allow captcha on submit web link (1/5)
allow captcha on submit web link (2/5)
allow captcha on submit web link (3/5)
allow captcha on submit web link (4/5)
allow captcha on submit web link (5/5)
@alikon Hey Nicola, works fine, but there are some small issues i found so far: The tooltip text: Some code style issues (see comments). Thank you! |
@@ -14,6 +14,17 @@ | |||
JHtml::_('formbehavior.chosen', 'select'); | |||
JHtml::_('behavior.modal', 'a.modal_jform_contenthistory'); | |||
|
|||
$captchaEnabled = false; | |||
$captchaSet = $this->params->get('captcha', JFactory::getApplication()->get('captcha', '0')); | |||
foreach (JPluginHelper::getPlugin('captcha') as $plugin) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A new empty line is missing before the foreach loop
A couple of issues:
|
is like com_contact what should be the correct STRING ?
not sure should be better near the submit button ?
any help ? |
@alikon Not sure on the text. Something more generic maybe, which fits both. For example: Please answer the security question. But i am not a native speaker. @chrisdavenport What do you think?
This is not going to be implemented easily. For com_users the data the user entered during registration is saved in the session and then loaded again. |
I checked with the en-GB team and because "I'm not a robot" is not a question, the suggested text is "Please complete the security check." There is a PR in the CMS repo for the same text: joomla/joomla-cms#10931 Good point about the submit buttons. Actually, I think the buttons should be moved to the end too. See, for example, the contact form. Should be fairly simple to save the form data in the session as per com_users and also com_contact. |
Simple XML CS joomla-extensions#223
XML CS for joomla-extensions/pull/223 thanks @wojsmol
update captcha message like com_user, com_contatct #10931
handle session data 1(/2)
handle session data (2/2)
move buttons down
I have tested this item ✅ successfully on d6a18f8 This comment was created with the J!Tracker Application at issues.joomla.org/weblinks/223. |
there is the need to add the lang string to the joomla-cms repo too ? |
@alikon There is a slight css issue for me: Imo it's not completely related to your PR, even the element has that issue. This is a clean Joomla! staging / protostar + weblinks installation. Everything else works as expected, great work Nicola! |
@yvesh css is not my "comfort zone" any help to fix CSS issue ? |
...it happens only when editor is CodeMirror... |
@alikon it also happens without an editor. But you are right with TinyMCE it's fine.. Probably something which should be fixed in core (the row with buttons need to have width: 100% for the editor line, so there is no free space right of it). We could fix it for weblinks with the following css: #editor-xtd-buttons {
width: 100%
} @chrisdavenport What do you think? Core problem or weblinks? |
@alikon @yvesh how about: joomla/joomla-cms#10970 |
maybe @dgt41 can evaluate my dirty fix on https://github.com/joomla/joomla-cms/blob/staging/templates/protostar/css/template.css#L2609 .btn-toolbar {
font-size: 0;
margin-top: 9px;
margin-bottom: 9px;
} to .btn-toolbar {
font-size: 0;
margin-top: 9px;
margin-bottom: 9px;
width: 100%;
} results is clean now, i think... but i don't know if it is a goog fix ..... |
@alikon looks fine for me, but not sure if that would cause other issues though. You could also just remove the Is there a case were there is something located right to it on the same line? // cc @dgt41 |
Any objections to merging this now? |
For my knowledge of CSS the issue we have should be fixed on the CMS CSS side |
@alikon The branch now has conflicts (Probably due to Tobias changes related to code style). I think we can merge this PR. The CSS layout problem is a minor one and only occurs when you have no editor or CodeMirror. We should open an issue at core for that. The css code from Nicola looks fine, but i am not sure if it has side effects. |
fix conflicts with joomla-extensions#231
fix conflicts with joomla-extensions#231
yes please merge this PR p.s. |
This PR has received new commits. CC: @chrisdavenport |
@alikon i sent you an PR against your one, merging current master changes into it. (Test please) |
Merged with master from weblinks
Okay conflicts resolved. @chrisdavenport you can merge now. |
thanks 1000 @yvesh |
This PR has received new commits. CC: @chrisdavenport |
Merging. Good work everyone. :-) |
Pull Request for Issue #209 .
Summary of Changes
allow to use captcha when submit a weblink
Testing Instructions
use submit weblink enabling/disabling captcha settings