Topic-icon scsocialbuttons override

Active Subscriptions:

None
14 years 3 months ago #20038 by carque
Good morning

in order to achieve a better customization and personalization I'm overriding scsocialbutton class:
/**************************/
/* JFBConnect overrides   */
/**************************/
div.scsocialbuttons{
	width:100%;  
	overflow: hidden;
	margin: 20px 5px 60px 0px;
	padding: 5px 5px 5px 5px;
	border: 1px solid #339933;
	border-radius: 6px;
	background: #E8FFF0;
	box-shadow:2px 2px 6px #153603;
	}
div.scsocialbuttons div{
	float:left;
	margin-right:5px;
	}



I have two questions:

1) is there a "style" that is automatically added to "scsocialbuttons" assignment:

- is possible remove it?
- what is it's purpose?

2) is there a hard reference to the JFBConnect css file:

- this may influence my overrides?

Thank you!
The topic has been locked.
Support Specialist
14 years 3 months ago #20056 by alzander
Replied by alzander on topic scsocialbuttons override
Carlo,
The answer to 1) is that those styles are pretty much required. We put them on the page itself, though it could easily go in our CSS file that we include in #2. The styles embedded there are for the highest compatibility across browsers and Joomla itself (to make sure the buttons show up above the right content and below other where appropriate).

I can help you remove those styles if you'd like, just let me know.

2) That file is in the directory shown there. It can be modified there, but we recommend making a backup of any changes you make as that will be overwritten when you upgrade. Alternatively, you can add override styles to your own CSS with more specific selectors which will override the generic ones we include. If you need more specifics, again, let us know.

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

None
14 years 3 months ago #20110 by carque
Replied by carque on topic scsocialbuttons override
Hello Alex!
thank you very much for replying.

Yes, I understand your strategy in order to get the highest compatibility across browsers and Joomla itself.
However, I'm sure that I'm able to properly set CSS statements myself :cool:
I wil take care about any future update. scsocialbuttons classes are quite easy to understand and manage, but my idea is simply using a CSS override.

So, Alex, please help me to remove the hard coded CSS (both "style" and "href").

Thank you.
Carlo
The topic has been locked.
Support Specialist
14 years 3 months ago #20116 by alzander
Replied by alzander on topic scsocialbuttons override
Carlo,
I'm sure you are able to set the CSS yourself. Most of our users are not able to do that, for better or worse.. which is why we included it :)

If you want to remove the forced element styles, you can find them in the /plugins/content/jfbccontent/jfbccontent.php file around line 267 (just search for 'scsocial'). The jfbcconnect.css file is included in the /plugins/system/jfbcsystem/jfbcsystem.php file.

Please note that these changes will be overwritten if/when you upgrade JFBConnect and you'll need to remove those references again. At some point, I can see adding an option to not include them, but it likely won't be in the next release.

Hope that helps, but if you need more info on how to remove, just let me know!

Alex
The topic has been locked.
Active Subscriptions:

None
14 years 3 months ago #20136 by carque
Replied by carque on topic scsocialbuttons override
Alex

thank to you, I changed line #277 of jfbccontent.php and line #330 of jfbcsystem.php and everything works perfectly!

Thank you very much, it's a pleasure work with you! :cool:

Carlo ;)
The topic has been locked.
Active Subscriptions:

None
14 years 3 months ago #20138 by mtk
Replied by mtk on topic scsocialbuttons override

carque wrote: Alex

thank to you, I changed line #277 of jfbccontent.php and line #330 of jfbcsystem.php and everything works perfectly!

Thank you very much, it's a pleasure work with you! :cool:

Carlo ;)

Glad to hear the problem was solved and of course the good feedback.
Please consider also writing a feedback over on the JED listing: extensions.joomla.org/extensions/social-...ook-integration/7215

Let us know if you need help with anything else.

Mati
The topic has been locked.