Replacing JReviews login with JFBConnect login

Replacing JReviews login with JFBConnect login

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

Code:

<?php echo $this->element('login');?>

with the row

Code:

<?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
https://www.sourcecoast.com/images/agorapro/attachments/26180/mini_Cattura.JPG

Attachments:
godweb
useravatar
Offline
10 Posts
Active Subscriptions:

Administrator has disabled public posting. Please login or register in order to proceed.

Re: Replacing JReviews login with JFBConnect login

That is the incorrect code:

Code:

<?php echo $this->{JFBCLogin}?>

The correct text to add is

Code:

{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

Want to stay up-to-date on new releases and development efforts?
Follow us on Twitter @sourcecoast and @mandreae

mel
Melissa
useravatar
Offline
3917 Posts
Website 
Support Specialist
Administrator has disabled public posting. Please login or register in order to proceed.

Re: Replacing JReviews login with JFBConnect login

Hi Melissa,

Thanks for your help, you will have understood that I have no knowledge of php current/wink

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

godweb
useravatar
Offline
10 Posts
Active Subscriptions:

Administrator has disabled public posting. Please login or register in order to proceed.

Re: Replacing JReviews login with JFBConnect login

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.

Want to stay up-to-date on new releases and development efforts?
Follow us on Twitter @sourcecoast and @mandreae

mel
Melissa
useravatar
Offline
3917 Posts
Website 
Support Specialist
Administrator has disabled public posting. Please login or register in order to proceed.

Re: Replacing JReviews login with JFBConnect login

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:

Code:

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


                    {loadposition login-review}

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

Could you tell me if it looks correct, please?

Thank you very much

godweb
useravatar
Offline
10 Posts
Active Subscriptions:

Administrator has disabled public posting. Please login or register in order to proceed.

Re: Replacing JReviews login with JFBConnect login

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

Want to stay up-to-date on new releases and development efforts?
Follow us on Twitter @sourcecoast and @mandreae

mel
Melissa
useravatar
Offline
3917 Posts
Website 
Support Specialist
Administrator has disabled public posting. Please login or register in order to proceed.

Re: Replacing JReviews login with JFBConnect login

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.

https://www.sourcecoast.com/images/agorapro/attachments/26180/mini_onarticle.JPG

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

https://www.sourcecoast.com/images/agorapro/attachments/26180/mini_onmodule.JPG

Thank you

godweb
useravatar
Offline
10 Posts
Active Subscriptions:

Administrator has disabled public posting. Please login or register in order to proceed.

Re: Replacing JReviews login with JFBConnect login

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

Want to stay up-to-date on new releases and development efforts?
Follow us on Twitter @sourcecoast and @mandreae

mel
Melissa
useravatar
Offline
3917 Posts
Website 
Support Specialist
Administrator has disabled public posting. Please login or register in order to proceed.

Re: Replacing JReviews login with JFBConnect login

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:

Code:

input.sclogin-username.input-block-level, 

input.sclogin-passwd.input-block-level {
font-size: 1.0rem;
}

-Melissa

Want to stay up-to-date on new releases and development efforts?
Follow us on Twitter @sourcecoast and @mandreae

mel
Melissa
useravatar
Offline
3917 Posts
Website 
Support Specialist
Administrator has disabled public posting. Please login or register in order to proceed.

Re: Replacing JReviews login with JFBConnect login

Hi Melissa,

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

Kind Regards

godweb
useravatar
Offline
10 Posts
Active Subscriptions:

Administrator has disabled public posting. Please login or register in order to proceed.

Re: Replacing JReviews login with JFBConnect login

Glad I could help. Let us know if you run into anything else you need help with.

-Melissa

Want to stay up-to-date on new releases and development efforts?
Follow us on Twitter @sourcecoast and @mandreae

mel
Melissa
useravatar
Offline
3917 Posts
Website 
Support Specialist
Administrator has disabled public posting. Please login or register in order to proceed.
There are 0 guests also viewing this topic
There are 0 users also viewing this topic

Board Info

Board Stats
 
Total Topics:
12019
Total Polls:
0
Total Posts:
50408
Posts this week:
30
User Info
 
Total Users:
48977
Newest User:
anindynasywa
Members Online:
0
Guests Online:
777

Online: 
There are no members online
Social Stream
Hide, Seek & Defuse

Handheld Electronic Game

Alex from SourceCoast is working on a new electronic game for kids called Countdown. It's a timed game of Hide & Seek with mini-games (Whack-a-Mole, Simon, etc) to complete when you find it.

Hide and Seek Toys

Before You Leave

Let us send you a 10% off coupon

For Your Next Purchase

Please enable the javascript to submit this form

No , I don't want a discount