Hide other buttons on Twitter/FB login

13 years 2 months ago #155073 by krileon
Replied by krileon on topic Re: Hide other buttons on Twitter/FB login
Have reviewed your install and the jQuery is failing because the ID is altered to "mod_login_logoutformtitle2". This is due to a suffix being added to the login module. Removing the suffix resolves the issue. For FBC to take into account this suffix simply edit the plugin and change the selector to the one specified in this reply.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in to join the conversation.

13 years 2 months ago #155098 by awhite12
Replied by awhite12 on topic Re: Hide other buttons on Twitter/FB login
Thanks for your help on this one krileon. Maybe I missed it, but wouldn't it be beneficial to have this information in the documentation for the plugins or cblogin? Module-suffix's are often used to apply custom styles. I don't think there's really any reason for someone to expect adding a module suffix to cblogin will break the authentication plugins.

Thanks again!

Please Log in to join the conversation.

13 years 2 months ago - 13 years 2 months ago #155172 by krileon
Replied by krileon on topic Re: Hide other buttons on Twitter/FB login
Be better so to fix in the source to use a different selector method so ID isn't a factory. Will see about resolving at source for next releases. For the time being please editor source as necessary to change the selector. Resolved with new jQuery for removing the logout button. The below will be "immune" to suffix.
$_CB_framework->outputCbJQuery( "$( 'form[id*=mod_login_logoutform]' ).find( 'input[type=submit]' ).remove();" );

Will be available for next release, for time being please make change manually for quick fix.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.196 seconds

Facebook Twitter LinkedIn