Topic-icon email as username new version

Active Subscriptions:

None
11 years 8 months ago #25193 by purplechris
hey

ive upgraded the component and implemented the process you gave me here for 2.5 www.sourcecoast.com/forums/jlinked/jlink...-email-as-a-username

all goes well but the submit button now does nothing. any advice?
The topic has been locked.
Support Specialist
11 years 8 months ago #25227 by alzander
I'm sure I have it somewhere, but can you post (or Private Message) me the URL to your site so I can see the issue? If the submit button doesn't work, that's an indication of the field still being marked as Required, but validation is failing (preventing the button from allowing the submit). Alternatively, it could simply be a HTML error with an unclosed tag, but I think this is less likely.

Hope that helps, or, if we get the URL, we can investigate further.

Thanks!
Alex
The topic has been locked.
Support Specialist
11 years 8 months ago #25228 by alzander
Actually, I just re-read my post. Originally, I gave one set of instructions, but then updated it in this post . Specifically, the part:
****
Add the following line after that the following 2 lines (above I mentioned only the first):
$this->form->setFieldAttribute('username', 'type', 'hidden'); 
            $this->form->setFieldAttribute('username', 'class', 'non-required');
****
Make sure that second line was added!

Good luck,
Alex
The topic has been locked.
Active Subscriptions:

None
11 years 8 months ago #25235 by purplechris
yeah i already added that, still nothing will PM you the info.
The topic has been locked.
Support Specialist
11 years 8 months ago #25265 by alzander
Thanks for the Private Message with details about your site. The Required setting is being set on the page for some reason. The user name field has the following HTML associated with it:
<input type="hidden" name="jform[username]" id="jform_username" value="" class="inputbox required" />
We'll have to do some testing tomorrow to see if we can recreate this and then come up with a solution. We did add the inputbox class to the fields in this release, but that shouldn't cause the problem.. hopefully.

We'll let you know what we find and should hopefully be able to look into this tomorrow.

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
11 years 8 months ago #25333 by purplechris
any news guys?
The topic has been locked.
Support Specialist
11 years 8 months ago #25353 by alzander
Sorry for the delay. It actually took some minor debugging to figure out where the difference lied between what you're doing and our testing. When we first tried on our development site, it worked fine for us.

The change you need to make is where you place those 2 lines I mentioned above. Where you're putting them now, directly underneath that, there's a big block of $this->form->setFieldAttribute(...) statements. Move the 2 lines under that block, instead of above it, which is what the original post mentioned to do. That block was just added in the newest release to improve some inherited styles from templates on the text boxes. They will also override the non-required class we're trying to add if they come after the lines you're trying to add.

Hope that helps, and sorry for the delay!
Alex
The topic has been locked.
Active Subscriptions:

None
11 years 8 months ago #25363 by purplechris
perfection, whats the chances of getting the hide username added as a component option in jlinkedin and jfacebook as i have to do these changes everytime i upgrade lol.
The topic has been locked.
Support Specialist
11 years 8 months ago #25365 by alzander
That feature is marked as 'high' in both JFBConnect and JLinked, which means it will almost definitely be in the next major release (JFBC v4.3 and JL v1.3). Others will enjoy that option as well :)

Sorry for the troubles, and glad we got you going,
Alex
The topic has been locked.
Active Subscriptions:

None
11 years 8 months ago #25366 by purplechris
awesome i look forward to it.
The topic has been locked.