Topic-icon Replacing JReviews login with JFBConnect login

Active Subscriptions:

None
4 years 3 months ago #65967 by godweb
Hi, I'm using the same title of an old post , that is closed. I'm looking to replace JReviews login with JFBConnect login. Having read that post, I edited the user_reviews.thtml file replacing the row
<?php echo $this->element('login');?>
with the row
<?php echo $this->{JFBCLogin}?>

but nothing appears. Something is wrong? I have installed JFBConnect again, to make sure it is after installing Jreviews, but it doesn't help.

Am I referring to outdated documentation, or should the solution still works?

Thank you
File Attachment:
The topic has been locked.
Support Specialist
4 years 3 months ago #65968 by mel
That is the incorrect code:
<?php echo $this->{JFBCLogin}?>

The correct text to add is
{JFBCLogin}

It is not php code. Our JFBConnect system plugin looks for the JFBCLogin text in the HTML (surrounded by braces to indicate it's an easy-tag) and replaces it with the appropriate social login buttons

-Melissa
The topic has been locked.
Active Subscriptions:

None
4 years 3 months ago #65969 by godweb
Hi Melissa,

Thanks for your help, you will have understood that I have no knowledge of php ;)

Now it works and the login bar appears only with the social buttons that I have set up (Login with Facebook, Twitter and Google). Is there any setting to add Joomla login / registration too?

Thank you
The topic has been locked.
Support Specialist
4 years 3 months ago #65970 by mel
If you need the full functionality with Joomla login and social login, I'd suggest that you load the SCLogin module into the view. Create an instance of SCLogin and then either
1) put it in an existing position on the page or
2) use Joomla's loadposition or loadmodule tags to add it directly to the content instead of the JFBCLogin easy-tag you're using. See this page for examples.
The topic has been locked.
Active Subscriptions:

None
4 years 3 months ago #65988 by godweb
Hi Melissa,

Thank you for your suggestion. I think using the SCLogin module by creating a new location may be a good idea. This shouldn't be difficult via loadposition, but oddly it doesn't work, and it's possible I'm still wrong. I paste the result of the file after my modification, including the previous and next line:
<?php elseif ( $permissions->mustLogIn() ):?>

					{loadposition login-review}

				<?php elseif ( $permissions->foundReviewDuplicate() ):?>

Could you tell me if it looks correct, please?

Thank you very much
The topic has been locked.
Support Specialist
4 years 3 months ago #66002 by mel
It looks correct to me at a quick glance.

Please verify that:
1. login-review is the position of the module
2. the Joomla plugin is enabled for 'Content - Load Modules'
3. the access level is correct to show the module to all users
4. the module is published
5. if you inspect where the module should be whether the code is present, but styles are just preventing it from showing.

Those are my quick suggestions...

-Melissa
The topic has been locked.
Active Subscriptions:

None
4 years 3 months ago #66012 by godweb
Thanks for your help. In the end I published SCLogin inside the Jreviews template but the override was done in the login.thtml file instead of user_reviews.thtml.

Unfortunately the module loaded via loadposition seems defective: the username and password fields are not able to receive any input while it is possible to log in with the social buttons.

File Attachment:


How could I fix it, please? The same module, published in a normal module position, works regularly:

File Attachment:


Thank you
The topic has been locked.
Support Specialist
4 years 3 months ago #66019 by mel
I would suspect this is a CSS styling issue that is preventing the textboxes from getting input. Can you provide a URL where I can see that behavior in action so I can inspect the CSS?

-Melissa
The topic has been locked.
Support Specialist
4 years 3 months ago #66025 by mel
Looks like those input elements have a font-size of 0. If you add something like the following, it should be resolved where you see the inputted text:
input.sclogin-username.input-block-level, 
input.sclogin-passwd.input-block-level {
font-size: 1.0rem;
}

-Melissa
The topic has been locked.
Active Subscriptions:

None
4 years 2 months ago #66028 by godweb
Hi Melissa,

it works as you suggested. I thank you very much for your help!

Kind Regards
The topic has been locked.