Welcome to Geeklog Wednesday, December 01 2021 @ 11:17 pm EST

Geeklog Forums

How to change language block's background


Status: offline

deepak1155

Forum User
Chatty
Registered: 15/01/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
 Quote

Status: offline

geiss

Forum User
Full Member
Registered: 10/02/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:
PHP 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
 Quote

Status: offline

deepak1155

Forum User
Chatty
Registered: 15/01/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
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 12/01/02
Posts: 13073
Location:Stuttgart, Germany
There is no block called "languages" in Geeklog. What are you really looking for?

bye, Dirk
 Quote

Status: offline

LWC

Forum User
Full Member
Registered: 19/02/04
Posts: 818
There is one if you enable multilinguality.
 Quote

Status: offline

mevans

Forum User
Full Member
Registered: 08/02/04
Posts: 393
Location:Texas
The language block is in lib-common.php:

PHP 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
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 12/01/02
Posts: 13073
Location:Stuttgart, Germany
Okay, forgot about that one :doh:

Since it's a standard PHP block, it will be sandwiched between the blockheader and blockfooter templates. And creating special templates for just that one block works as usual.

bye, Dirk
 Quote

All times are EST. The time is now 11:17 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