?
avatar infograf768
infograf768
15 Aug 2015

While doing this PR ( #7694 ), I remarked the following:
Enable the User Profile plugin.
Enable one or both of the Two Factor Authentication plugins.
Edit a user in backend.

The Two Factor Authentication fields are displayed UNDER the profile fields (when clicking on User Profile tab) and the Two Factor Authentication tab is useless.

screen shot 2015-08-15 at 08 44 44

No problem in hathor as it uses sliders.

The only solution I found is to move the whole authentication block of code BEFORE the block foreach ($fieldsets as $fieldset) which would display the Authentication tab just after Account Details thus pushing Basic Settings and User Profile further right.

Any other solution?

@nikosdion

avatar infograf768 infograf768 - open - 15 Aug 2015
avatar nikosdion
nikosdion - comment - 15 Aug 2015

See other PR

avatar zero-24 zero-24 - change - 15 Aug 2015
Labels Added: ?
avatar infograf768
infograf768 - comment - 16 Aug 2015

@nikosdion
?
We have to solves this. This is a bug imho.

avatar nikosdion
nikosdion - comment - 16 Aug 2015

No, Jean-Marie, this does NOT happen with either Joomla! 3.4.3 or the staging branch of the CMS. This bug is something you caused with your other PR and I agree that it has to be fixed. My recommendation to fix the issue #7695 is to NOT apply #7694

Please close this issue.

avatar infograf768
infograf768 - comment - 16 Aug 2015

@nikosdion
As far as I can test, this bug is unrelated to the other PR as it happens without it. I suggest you test.
(BTW: I have proposed another solution for the other PR).

avatar nikosdion
nikosdion - comment - 16 Aug 2015

As I implied above, I am currently looking at FIVE different sites, four running Joomla! 3.4.3 and one on the staging branch and none of them displays the behaviour you mentioned. Is it possible that you are using a third party User Profile fields plugin which cocks up the Javascript or HTML on the page? Because that would explain what you're seeing.

Try installing a blank Joomla! 3.4.3 site and test it.

avatar infograf768
infograf768 - comment - 16 Aug 2015

I did not have any 3rd party extension.

Installed a brand new staging/master.
Enabled both plugins:
Profile plugin and 2factor authentication plugin
edit user

I do confirm the issue.
See this movie:
https://www.dropbox.com/s/k1nfism4u0bwhkf/2factor.mp4?dl=0

avatar infograf768
infograf768 - comment - 16 Aug 2015

I do confirm I do not get the issue on a 3.4.3 site.

avatar nikosdion
nikosdion - comment - 16 Aug 2015

I don't know what you are doing wrong but there really is no such issue.

Two more tests.

  1. New Joomla! 3.4.1 site and upgraded it to 3.4.3. Cannot reproduce. So it's not an upgrade issue.

  2. Brand new Joomla! 3.4.3 site installation. Cannot reproduce. So it's not an issue in 3.4.3.

I am following your instructions to only enable the user profiles and the two factor authentication plugins. No other change made to the default installation.

What you describe would only make sense if the tooltip class produced invalid HTML. This would mean that the very next thing after the user profile fields –the Authentication Method drop-down of the Two Factor Authentication tab– would be screwed up. That could lead to what you are seeing but as I'm tired of saying this DOES NOT happen out of the box.

Could it be a browser extension you are using? Or something that has to do with the ancient OS X version you're still using? I'm trying with Firefox, Chrome and Safari on Mac OS X Yosemite and really, seriously can't reproduce this.

I've spent more than two hours on this. It's a Sunday morning and I'm supposed to be on vacation. Sorry, I can't waste any more time chasing windmills.

avatar infograf768
infograf768 - comment - 16 Aug 2015

As I said, this happens on staging, NOT on 3.4.3.
Will test on Yosemite.

avatar infograf768
infograf768 - comment - 16 Aug 2015

Same on Yosemite.

avatar Fedik
Fedik - comment - 16 Aug 2015

I can confirm this behavior on latest master installation

avatar infograf768
infograf768 - comment - 16 Aug 2015

Ah... thanks. I thought I was getting totally insane... :smiley:

avatar Fedik
Fedik - comment - 16 Aug 2015

Two Factor Authentication has Tab:

screen 2015-08-16 12 51 37 564x193

but in some reason does not have a "tab content" section:

screen 2015-08-16 12 51 19 398x89

Something went wrong with the user form rendering, in backend.

avatar Fedik
Fedik - comment - 16 Aug 2015

ah, it inside "#profile" :smile:
screen 2015-08-16 12 55 51 497x205

so, seems just broken the form markup

avatar infograf768
infograf768 - comment - 16 Aug 2015

I think I found why it was working before:
We had 2 </div> in the dob.php field which was causing other issues. This was rightfully solved

in /layouts/plugins/user/profile/fields/dob.php
If I add a </div> line 18, then this issue is solved (but we get back the original dob issue).

avatar Fedik
Fedik - comment - 16 Aug 2015

seems bug was introduced somewhere here #4103 and then #7340 ?

avatar infograf768
infograf768 - comment - 16 Aug 2015

Yep, these were solving the dob issue, but was not tested in the present case where 2factorauth was on.

avatar infograf768
infograf768 - comment - 16 Aug 2015

@Bakual
Could you look into this?

avatar Fedik
Fedik - comment - 16 Aug 2015

this seems fix the problem:

// Closing the opening .control-group and .control-label div so we can add our info text on own line ?>
</div></div><div class="controls"><?php echo $text; ?></div>

means we close 2 previous div, add "text" and then open these 2 div again..

but I not very understand how to test it with #7340

avatar infograf768
infograf768 - comment - 16 Aug 2015

I tested this:
adding </div> line 21 of /layouts/plugins/user/profile/fields/dob.php (end of file), i.e. the dob is no more displayed in all tabs in frontend and works OK for here.

avatar Fedik
Fedik - comment - 16 Aug 2015

current code is:

</div><div class="controls"><?php echo $text; ?></div>
<div class="control-group"><div class="control-label">

it close 1 div (line 18) and then open 2 div (line 20)
but before open 2 div we should close equivalent amount of div:

</div></div> <!-- close 2 div-->
<div class="controls"><?php echo $text; ?></div>
<div class="control-group"><div class="control-label">  <!-- open 2 div-->

:wink:

avatar zero-24 zero-24 - change - 16 Aug 2015
Category Administration Templates (admin)
avatar infograf768
infograf768 - comment - 16 Aug 2015

Can you make a PR?

avatar Fedik
Fedik - comment - 16 Aug 2015

@infograf768 there it is #7698 :wink:

avatar zero-24 zero-24 - change - 17 Aug 2015
Status New Closed
Closed_Date 0000-00-00 00:00:00 2015-08-17 07:28:09
Closed_By zero-24
avatar zero-24 zero-24 - close - 17 Aug 2015

Add a Comment

Login with GitHub to post a comment