Notice

The forum is in read only mode.

Support Forum

Welcome! Support Forums have been reactivated

How to toggle the Terms and Conditions from a Facebook login?

10 years 2 months ago
Licenses:
JomSocial Active Socialize Expired

Hi,

I need some help. Here is the scenario:
When user wants to Sign up with Facebook, as A NEW USER to the site, he must say he agrees to terms and conditions. The problem is that the terms and conditions are displayed and the user must scroll to even find the checkbox which is at the middle of the popup, and this is confusing.

So I want the whole terms and conditions text to be display:none, and to put a toggle function to the "Terms and Conditions" if anybody wants to read it, as an option.

I am having trouble defining the p class - tried with

$("p:eq(2)").on("click",".joms-form__group joms-js--fbc-tnc" function(){
$(this).toggle();
});

in the console, but it's not working in the preview.

Please, could you tell me the code, and please, could you tell me where to put this code?

The site is online.

Thank you in advance!

Attachment TOGGLE-01.png not found

Attachments:
10 years 2 months ago
Licenses:
JomSocial Active Socialize Expired

OK I got this code working, I copied that to script.js but this is obviously not the right place.

(function ($) {
$(document).ready(function() {
$(".joms-js--fbc-tnc").on("click",".joms-js--fbc-tnc-toggle", function(){
$("p:eq(4)").toggle();
});
});
}(jQuery));

Help?

10 years 2 months ago
Licenses:

Hi,

I suggest you to using template override.
1. copy facebook.firstlogin.php from /components/com_community/templates/jomsocial/layouts/ to /templates/[your frontend template]/html/com_community/layouts/
2. edit it, find this code at line 64

<p class="joms-help joms-js--fbc-tnc-desc" style="display:none">
changing it to
<p class="joms-help joms-js--fbc-tnc-desc">

Regards

10 years 2 months ago
Licenses:
JomSocial Active Socialize Expired

Hi,

unfiortunately this is not working.
We edited the code, but we don't have this folder hierarchy so we created folders and copied the file, but nothing changed.

Could you please check on the website, the "Terms and Conditions" are by default closing and opening some div, maybe there is some easier solution if there is only a bug (putting text to this specific div that the button is already toggling)?

Thank you!

10 years 2 months ago
Licenses:

Hi Branimir,

please provide me credentials information for:
- joomla administrator login
- htaccess login
- FTP access detail

and revert back any changes that you made before. I need it for debugging your site.

you can put credentials information by editing your first post at this topic. put it at site info form

Regards

10 years 2 months ago
Licenses:
JomSocial Active Socialize Expired

Hi,

I edited the first post,
thank you

10 years 2 months ago
Licenses:

Hi Branimir,

i'm sorry, I confirmed this is a bug. please wait for the fix.

Regards

10 years 2 months ago
Licenses:
JomSocial Active Socialize Expired

Ok please let me know when the bug is fixed.

Thank you

10 years 2 months ago
Licenses:

Hi,

here the fix:

This attachment is hidden for guests.
Please log in or register to see it.

unzip and put it at:
/components/com_community/templates/jomsocial/layouts/

dont forget to backup first.

Regards

This message has an attachment file.
Please log in or register to see it.

The following user(s) said Thank You: Branimir
Moderators: Piotr Garasiński
Powered by Kunena Forum

Join 180,000 websites creating Amazing communities

JomSocial is the most complete, easy-to-use addon that turns Joomla CMS into a
full -fledged, social networking site

TRY NOW BUY NOW