Welcome to Geeklog, Anonymous Thursday, November 14 2024 @ 07:58 pm EST
Geeklog Forums
How to change language block's background
Status: offline
deepak1155
Forum User
Chatty
Registered: 01/15/08
Posts: 35
Hi to all,
I am using geeklog 1.4.1 . In that i am unable to change "languages" block's background. plese help me and give suggestion.
thanks
I am using geeklog 1.4.1 . In that i am unable to change "languages" block's background. plese help me and give suggestion.
thanks
11
12
Quote
Status: offline
geiss
Forum User
Full Member
Registered: 02/10/04
Posts: 176
Location:Boise, Idaho
If this is a block you created, you should be able to wrap all your code in a div. So, when you edit your block through the block admin interface, it should look like this:
Otherwise, if this is a Geeklog created block, you will need the find the function in {public-html}/lib-common.php, and make the change in the generated code there.
Hope this helps!
Eric
Synergy - Stability - Style --- Visit us at glfusion.org
Text Formatted Code
<div style="background:green"> your block content</div>Otherwise, if this is a Geeklog created block, you will need the find the function in {public-html}/lib-common.php, and make the change in the generated code there.
Hope this helps!
Eric
Synergy - Stability - Style --- Visit us at glfusion.org
10
9
Quote
Status: offline
deepak1155
Forum User
Chatty
Registered: 01/15/08
Posts: 35
Hi to all,
I am using geeklog 1.4.1 and I am unable to find that from where the "languages" block is generated. I need file name from where it comes. Plese help me.
Thanks
I am using geeklog 1.4.1 and I am unable to find that from where the "languages" block is generated. I need file name from where it comes. Plese help me.
Thanks
9
13
Quote
Status: offline
mevans
Forum User
Full Member
Registered: 02/08/04
Posts: 393
Location:Texas
The language block is in lib-common.php:
/**
* Provides a drop-down menu (or simple link, if you only have two languages)
* to switch languages. This can be used as a PHP block or called from within
* your theme's header.thtml: <?php print phpblock_switch_language(); ?>
*
* @return string HTML for drop-down or link to switch languages
*
*/
function phpblock_switch_language()
{
global $_CONF;
$retval = '';
if( !isset( $_CONF['languages'] ) || !isset( $_CONF['language_files'] ) ||
( count( $_CONF['languages'] ) != count( $_CONF['language_files'] )))
{
return $retval;
}
...
Thanks!
Mark
Text Formatted Code
/**
* Provides a drop-down menu (or simple link, if you only have two languages)
* to switch languages. This can be used as a PHP block or called from within
* your theme's header.thtml: <?php print phpblock_switch_language(); ?>
*
* @return string HTML for drop-down or link to switch languages
*
*/
function phpblock_switch_language()
{
global $_CONF;
$retval = '';
if( !isset( $_CONF['languages'] ) || !isset( $_CONF['language_files'] ) ||
( count( $_CONF['languages'] ) != count( $_CONF['language_files'] )))
{
return $retval;
}
...
Thanks!
Mark
16
29
Quote
Status: offline
Dirk
Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
All times are EST. The time is now 07:58 pm.
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content