Topic-icon Both buttons on the same div

Support Specialist
11 years 9 months ago #24914 by alzander
Looks awesome! Really like the layout you got there. We'll likely add icon options at some point, but don't have any yet. Glad to hear the link method worked for you.

2 questions:
1) Are you still having the too many redirections error? Is that something you need help with, or a 1-time thing?
2) If you want, we can definitely help you create the correct URL with the return string so you don't need to send the user's to the home page. Not difficult and easily implemented in the login.php template file you're modifying.

Alex
The topic has been locked.
Active Subscriptions:

None
11 years 9 months ago #24920 by johnnydement
1. Seems it was a one time thing :D I deleted the link on my user via usermap, and tried again with OK results. I will have to keep triing to really say
2. I will be glad if you could ;)

I'm attaching my current login.php ##text##
The topic has been locked.
Support Specialist
11 years 9 months ago #24932 by alzander
For the full link with Return parameter, try:
jimport('sourcecoast.utilities');
SCSocialUtilities::getCurrentReturnParameter('', 0, LOGIN_TASK_JLINKED);
$url = JRoute::_('index.php?option=com_jlinked&task=linkedInAuthenticate&return='.base64_encode($return));
echo "Tambe pots accedir a trav&#233;s de ",$jfbcLogin," o ",'<a href="',$url,'"><img title= "LinkedIn" alt="LinkedIn" class="textmiddle" src="images/iconessocials/24x24/LinkedIn.png" /></a>' ;
Around the $url parameter, there is actually a single quote ' and double ", just so you know. It's important to have all 3 on both sides: (")('),$url,(')(").

Hope that helps!
Alex
The topic has been locked.
Active Subscriptions:

None
11 years 9 months ago #24941 by johnnydement
I added the code and got an error: Fatal error: Cannot pass parameter 1 by reference in /modules/mod_sclogin/tmpl/login.php on line 83

Line 83 is the (SCSocialUtilities::getCurrentReturnParameter('', 0, LOGIN_TASK_JLINKED); ) one for me

I left the $jlinkedLogin = $helper->getJLinkedLoginButton(); line, should I delete it?

Regards & thanks!
The topic has been locked.
Support Specialist
11 years 9 months ago #24959 by alzander
Fine... I tried to condense it, and obviously, that was a bad idea. Change that one line to:
$return = ''; $menuItemId = 0;
SCSocialUtilities::getCurrentReturnParameter($return, $menuItemId, LOGIN_TASK_JLINKED);
That will prevent the pass by reference error.

Keep us posted on how it goes, and sorry for the confusion!
Alex
The topic has been locked.
Active Subscriptions:

None
11 years 9 months ago #24964 by johnnydement
Seems to be working pretty well, I'll let you know if anything pops ;)

BTW, what would be the correct route to do an override for it? don't want to lose it on next update ;)
The topic has been locked.
Support Specialist
11 years 9 months ago #24978 by alzander
Copy the /modules/mod_sclogin/tmpl/login.php file to /templates/<YOUR_TEMPLATE>/html/mod_sclogin/login.php

When you upgrade, the file in the /modules/ directory will get overridden. Then, it's best to compare the differences between your override in the /templates/ directory to the new file to see if there's anything you need to re-integrate into your override.

Hope that helps!
Alex
The topic has been locked.
Active Subscriptions:

None
11 years 9 months ago #24979 by johnnydement
Yes, thanks, just wanted to be sure it had to be there and not in <YOUR_TEMPLATE>/html/mod_sclogin/tmpl/login.php

Thanks!
The topic has been locked.
Support Specialist
11 years 9 months ago #24983 by alzander
Yup, the directory I mentioned is correct. For overrides, you don't use the /tmpl/ directory. Sometimes confusing, but required: yes.

Finally, if you haven't already, please consider leaving a rating and review on the Joomla Extension Directory for JFBConnect, or our support. It's certainly not required, but very appreciated!
extensions.joomla.org/extensions/social-...ook-integration/7215

Best of luck,
Alex
The topic has been locked.