-
AuthorPosts
-
splifen Friend
splifen
- Join date:
- March 2008
- Posts:
- 90
- Downloads:
- 0
- Uploads:
- 15
- Thanks:
- 29
- Thanked:
- 1 times in 1 posts
May 15, 2011 at 9:13 pm #164039How can i change the black background-color to forexampel a grey color?
Where do i find the css file?Best Regards Kenneth
chavan Friendchavan
- Join date:
- October 2014
- Posts:
- 4612
- Downloads:
- 0
- Uploads:
- 110
- Thanked:
- 1440 times in 1290 posts
May 16, 2011 at 8:00 am #391393There are only 2 color schemes light and dark.
so we have to do some custom code. please try the following.
Step1: set the Color Scheme to light in the Extension -> module manager -> facebook like box module edit page
Step2: you need to create a param, where you must enter your Color Code
For making this Param Go to this file modulesmod_jafacebooklikeboxmod_jafacebooklikebox.xml
Search for this code
<param name="connections" type="text" default="10" label="Connections" description="CONNECTIONS DESC" />
Add this Code After it.
<param name="bg" type="text" default="#FFFFFF" label="Background" description="BACKGROUND DESC" />
Then Go to this File modulesmod_jafacebooklikeboxmod_jafacebooklikebox.php :
Search for this code
$aParams['border_color'] = $params->get( 'border_color', '' );
Add this Code After it
$aParams['bg'] = $params->get( 'bg', '#FFF' );
Go to this File modulesmod_jafacebooklikeboxtmpldefault.php:Replace this Code
<iframe id="jafbl<?php echo $module->id ?>" src="http://www.facebook.com/plugins/likebox.php?<?php echo $sFacebookQuery ?>" scrolling="no" frameborder="0" style="border:0px;overflow:hidden; width:<?php echo $aParams['width'] ?>px; height:<?php echo $aParams['height'] ?>px;"></iframe>
With the Following
<iframe id="jafbl<?php echo $module->id ?>" src="http://www.facebook.com/plugins/likebox.php?<?php echo $sFacebookQuery ?>" scrolling="no" frameborder="0" style=" background:<?php echo $aParams['bg'] ?>;border:0px;overflow:hidden; width:<?php echo $aParams['width'] ?>px; height:<?php echo $aParams['height'] ?>px;"></iframe>Then Go the Edit page of the Facebooklikebox module. There you will have a option as background. Enter your color coding there like #FF0000, #ECECEC etc…
Note: If you Find my Post useful please click on the Thanks Icon
splifen Friendsplifen
- Join date:
- March 2008
- Posts:
- 90
- Downloads:
- 0
- Uploads:
- 15
- Thanks:
- 29
- Thanked:
- 1 times in 1 posts
May 17, 2011 at 8:13 pm #391683Hey thanks for your answer,
When i change this i am getting a error in line 19…
[PHP]<?php
/*
# ————————————————————————# Module JA Facebooklikebox for J15
# ————————————————————————
# Copyright (C) 2004-2010 JoomlArt.com. All Rights Reserved.
# @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
# Author: JoomlArt.com
# Websites: http://www.joomlart.com – http://www.joomlancers.com.
# ————————————————————————
*/
echo ‘<iframe src=”http://www.facebook.com/plugins/likebox.php?’.$sFacebookQuery.'” scrolling=”no” frameborder=”0″ style=”border:0px;Margin-left: -10px; background-color: #292929; overflow:hidden; width:’.$aParams[‘width’].’px; height:’.$aParams[‘height’].’px;” allowTransparency=”true”></iframe>’;
?>[/PHP] -
AuthorPosts
This topic contains 3 replies, has 2 voices, and was last updated by splifen 13 years, 6 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum