Topic-icon sclogin form alignment issues

Active Subscriptions:

None
I just upgraded from 4.0 to 4.2 and have a slight issue. Everything seems to be working but when i switch to use sclogin instead of the old login module and attempt to enter intro text, the form shifts right, making it quite ugly.

I would also like to move the image to the top and add (was going to use introtext for this) Or login/register below with ... website account
With these aligment issues i dont seem to be able to do that.

Any help is appreciated. Go live is monday so i would like to fix by then. Problem can be viewed at yioceanside.org/jupgrade and clicking the login button.

Aaron
The topic has been locked.
Support Specialist
13 years 9 months ago #25733 by alzander
The intro text shouldn't really shift the rest of the content to the sides. I could see it moving it down, but not otherwise. It's likely a CSS issue that's hopefully easily fixed. Is it possible to post or Private Message the URL of the site you're using the SCLogin module on? If we can see it, we can hopefully help you narrow down the issue and figure out a solution.

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
13 years 9 months ago #25754 by [email protected]
i was able to fix by adding
fieldset {float:left; clear:both;}

to the module css,
logout however does not display the button in the rokbox, just the text. is the problem known? For the moment i just disabled that. any ideas?
The topic has been locked.
Support Specialist
13 years 9 months ago #25788 by alzander
Aaron,
Sorry for the delay! Glad you got the CSS fixed up. Not sure why the button wouldn't show. Haven't heard of that issue before, but it sounds like another styling issue. Can you try, temporarily, using a different template while still using the RokBox? Preferably one of the built-in Joomla templates, like beez. If you can see a logout button there, that will help narrow it down to a CSS issue and maybe help fix the problem as well.

Let us know how that goes!
Alex
The topic has been locked.
Active Subscriptions:

None
13 years 9 months ago #25801 by [email protected]
Alex,

I think there was a misunderstanding. Its not the logout button. that one shows just fine. The button im reffering to is the one that gets shown by selecting the show option on 'show account connect buttons' in logout view. that one doesn't appear. I presume, it is the same java incompatbility that the image link solves on the login screen.

My site wont be using the linkedin plugin, so i don't have to worry about supporting both. I would think i would need to override the logout.php line

$reconnectButtons = $helper->getReconnectButtons();

With a path to the image. What is the php to use to do that and still call the correct functions though? Do i have the correct line?

Thanks
The topic has been locked.
Support Specialist
13 years 9 months ago #25819 by alzander
Ahhh.. gotcha. I see where that's a problem, and not one that anyone's mentioned before, actually. To fix, edit the /modules/mod_sclogin/helper.php file. Find the function getJFBCConnectButton() function. In there, replace the following line:
$buttonHtml .= '<fb:login-button v="2" onlogin="javascript:jfbc.login.on_login();">' . JText::_('MOD_SCLOGIN_CONNECT_BUTTON') .'</fb:login-button>';
With:
$buttonHtml .= '<a href="javascript:void(0)" onclick="jfbc.login.login_custom();"><img src="/link-to-your-image.jpg" /></a>';
You can use the same image as in the parameters, or a different re-connect image.

I've taken this as a bug in our feature tracker. Hopefully we can make it, at least, use the same image as the login button in an upcoming version.

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

None
13 years 9 months ago #25831 by [email protected]
perfect, that worked.

I have one more issue - i am having a conflict with the comments component of ignite gallery. the code was modified to only show comments for registered users by by adding an evaluator if(JFactory::getUser()->get('id'), this seems to cause a conflict somewhere that breaks functionality when a user is NOT logged in, but once a user logs in functionality returns to other aspects.

I would prefer to use jfb modules/plugins instead of the integrated facebook comments and likes. However Since unique urls do not appear for each picture in the address bar, i am unsure how this can be made to work on a picture by picture basis. Any ideas?

here is a link to a gallery -http://yioceanside.org/youth-events/sukkah-decorating-2011.html

Should i start a new thread?
The topic has been locked.
Support Specialist
13 years 9 months ago #25838 by alzander
First off, minor nitpick, but you can use the JFactory::getUser()->guest (no parenthesis) call instead of get('id'). It's milliseconds faster, but also the cleaner way to do what you've implemented from a readability standpoint.

As for the actual question, what functionality breaks? I'm honestly not sure if you're actually wrapping that if statement around Facebook / JFBConnect functionality, or something in the Ignite gallery either. Can you just explain a bit more about what you're trying to show/hide to guests, what actually happens, and how JFBConnect is thrown in there? That will all help provide a solution.

As for the URL for the pictures, yeah, if there's not a unique URL, that's hard. Also, I'm not sure how the Like button or Comment box would be expected to change. Do you want it to just be when a user goes to the "next" picture that the Like button updates with the count for that picture? That's definitely more difficult as you'd need to have Javascript re-render the Like button and come up with a custom URL. That last part, actually, isn't so bad... just use a #pic1, #pic2, etc at the end of the URL.. but it still doesn't fix everything.

Hope that helps get you started,
Alex
The topic has been locked.