Forum Index >  glFusion >  Theme Support New Topic Post Reply
 Remove Navigation header, but keep others
   |  Printable Version
By: wootcat (offline)  Dec 09 2009 02:10 am (Read 986 times)  
wootcat

I find the Navigation menu (positioned top left) is pretty self-explanatory, and have been trying to figure out how to remove the heading label just for that block.

I tried following the manual instructions which explain how to modify each block's header individually, but it seems that does not work for the Navigation block.

Any suggestions?

Thanks!

Forum Active Member
Active Member

Group Comfort
Level:
: +5

Registered: 11/21/09
Posts: 121
Location: Wisconsin

Profile Email    
  Quote
By: Geiss (offline)  Dec 09 2009 09:16 am  
Geiss

I tried following the manual instructions which explain how to modify each block's header individually, but it seems that does not work for the Navigation block.



Sounds like you're on the right track following the custom block style instructions in the wiki, but before we dig further, can you post the contents of your public_html/layout/nouveau/functions.php, and also your public_html/layout/nouveau/blockheader-blockmenu.thtml and blockfooter-blockmenu.thtml (those should be the names of your custom block files, right? Wink

Thx!

Eric


Forum Active Member
Active Member

Group Comfort
Level:
: +58

Registered: 02/15/07
Posts: 2097
Location: Boise, Idaho

Profile Email Website  
  Quote
By: mst3kroqs (offline)  Dec 09 2009 11:14 am  
mst3kroqs

I think the block title is generated by Site Tailor, and may even be hard-coded. I'm searching the code - I will provide a 'hack' if it is ...

Mark A. Howard
Usable Web, LLC
www.usable-web.com


Forum Active Member
Active Member

Group Comfort
Level:
: +15

Registered: 07/18/07
Posts: 578
Location: Cary, NC

Profile Email Website  
  Quote
By: wootcat (offline)  Dec 09 2009 11:38 am  
wootcat

Contents of public_html/layout/nouveau/custom/functions.php:

PHP Formatted Code
<?php
// +--------------------------------------------------------------------------+
// | glFusion CMS                                                             |
// +--------------------------------------------------------------------------+
// | functions.php                                                            |
// |                                                                          |
// | Theme specific functions                                                 |
// +--------------------------------------------------------------------------+
// | $Id:: functions.php 4297 2009-03-30 15:27:30Z mevans0263                $|
// +--------------------------------------------------------------------------+
// | Copyright (C) 2002-2008 by the following authors:                        |
// |                                                                          |
// | Mark R. Evans          mark AT glfusion DOT org                          |
// |                                                                          |
// +--------------------------------------------------------------------------+
// |                                                                          |
// | This program is free software; you can redistribute it and/or            |
// | modify it under the terms of the GNU General Public License              |
// | as published by the Free Software Foundation; either version 2           |
// | of the License, or (at your option) any later version.                   |
// |                                                                          |
// | This program is distributed in the hope that it will be useful,          |
// | but WITHOUT ANY WARRANTY; without even the implied warranty of           |
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the            |
// | GNU General Public License for more details.                             |
// |                                                                          |
// | You should have received a copy of the GNU General Public License        |
// | along with this program; if not, write to the Free Software Foundation,  |
// | Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.          |
// |                                                                          |
// +--------------------------------------------------------------------------+

// this file can't be used on its own
if (!defined ('GVERSION')) {
    die ('This file can not be used on its own!');
}

//set glFusion style COM_siteHeader/Footer functions.
//Comment out to use old Geeklog functions.
$themeAPI = 2;

$_IMAGE_TYPE = 'png';

if (!defined ('XHTML')) {
    define('XHTML',' /'); // change this to ' /' for XHTML, and '' for HTML. Don't forget to update your doctype in htmlheader.thtml.
}
$lang = COM_getLanguageId();
if (empty($lang)) {
    $result = DB_query("SELECT onleft,name FROM {$_TABLES['blocks']} WHERE is_enabled = 1");
} else {
    $result = DB_query("SELECT onleft,name FROM {$_TABLES['blocks']}");
}
$nrows = DB_numRows($result);
for ($i = 0; $i < $nrows; $i++) {
    $A = DB_fetchArray($result);
        if ($A['onleft'] == 1) {
            $_BLOCK_TEMPLATE[$A['name']] = 'blockheader-left.thtml,blockfooter-left.thtml';
        } else {
            $_BLOCK_TEMPLATE[$A['name']] = 'blockheader-right.thtml,blockfooter-right.thtml';
    }
}
$_BLOCK_TEMPLATE['_msg_block'] = 'blockheader-message.thtml,blockfooter-message.thtml';
$_BLOCK_TEMPLATE['whats_related_block'] = 'blockheader-related.thtml,blockfooter-related.thtml';
$_BLOCK_TEMPLATE['story_options_block'] = 'blockheader-related.thtml,blockfooter-related.thtml';
// Define the blocks that are a list of links styled as an unordered list - using class="blocklist"
$_BLOCK_TEMPLATE['admin_block'] = 'blockheader-list.thtml,blockfooter-list.thtml';
$_BLOCK_TEMPLATE['section_block'] = 'blockheader-list.thtml,blockfooter-list.thtml';
// $_BLOCK_TEMPLATE['user_block'] = 'blockheader-list.thtml,blockfooter-list.thtml';
$_BLOCK_TEMPLATE['forum_menu'] = 'blockheader-left.thtml,blockfooter-left.thtml';
// $_BLOCK_TEMPLATE['configmanager_block'] = 'blockheader-left.thtml,blockfooter-left.thtml';
// $_BLOCK_TEMPLATE['configmanager_subblock'] = 'blockheader-left.thtml,blockfooter-left.thtml';
$_BLOCK_TEMPLATE['<blockmenu>'] = 'blockheader-<blockmenu>.thtml,blockfooter-<blockmenu>.thtml';


function theme_themeJS() {
    global $_CONF;

    $js = array();
// uncomment the line below to enable gl_moochronometer header rotator
// MAKE SURE TO CLEAR BROWSER & C.T.L. CACHE when activating/deactivating
//    $js[] = $_CONF['path_html'] .'javascript/mootools/gl_moochronometer.js';
    $js[] = $_CONF['path_layout'] .'js/gltips.js';

    return($js);
}
?>



Contents of public_html/layout/nouveau/custom/blockheader-blockmenu.thtml:

PHP Formatted Code
{# begin {templatelocation} #}
<div class="block-box">
    <span class="block-helpicon">
        {block_help}
    </span>
{# end {templatelocation} #}



Contents of public_html/layout/nouveau/custom/blockfooter-blockmenu.thtml:

PHP Formatted Code
{# begin {templatelocation} #}
</div>
<div class="aligncenter">
    <div class="block-divider"></div>
</div>
{# end {templatelocation} #}
 



Forum Active Member
Active Member

Group Comfort
Level:
: +5

Registered: 11/21/09
Posts: 121
Location: Wisconsin

Profile Email    
  Quote
By: mst3kroqs (offline)  Dec 09 2009 12:02 pm  
mst3kroqs

Yes - but we cannot modify these files, or it will affect your block appearance for all blocks. Standby for hack ...

Mark A. Howard
Usable Web, LLC
www.usable-web.com


Forum Active Member
Active Member

Group Comfort
Level:
: +15

Registered: 07/18/07
Posts: 578
Location: Cary, NC

Profile Email Website  
  Quote
By: mst3kroqs (offline)  Dec 09 2009 12:46 pm  
mst3kroqs

Apologies - missed the details of the post - that works of course.

I was working on a CSS-based approach, the hack was to allow for the identification of each block by element id, and allow for the styling of that block.

This is something I've wanted for awhile - it would essentially allow you to override the default block CSS by identifying the block by id, eg.:

#glf_block_blockmenu {
... overriding CSS here
}

I'm going to test to ensure it doesn't upset anything, and as long as it doesn't and the other developers agree - we can add to the next point release.

Thanks!

Mark A. Howard
Usable Web, LLC
www.usable-web.com


Forum Active Member
Active Member

Group Comfort
Level:
: +15

Registered: 07/18/07
Posts: 578
Location: Cary, NC

Profile Email Website  
  Quote
By: Geiss (offline)  Dec 09 2009 15:37 pm  
Geiss

wootcat,

I belive this line in your functions.php:

PHP Formatted Code
$_BLOCK_TEMPLATE['<blockmenu>'] = 'blockheader-<blockmenu>.thtml,blockfooter-<blockmenu>.thtml';



should be:

PHP Formatted Code
$_BLOCK_TEMPLATE['blockmenu'] = 'blockheader-blockmenu.thtml,blockfooter-blockmenu.thtml';



Also, make sure your custom template names are actually blockheader-blockmenu.thtml, and not blockheader-<blockmenu>.thtml, etc.

Try that and let us know how it goes. Big Grin

Thx!

Eric


Forum Active Member
Active Member

Group Comfort
Level:
: +58

Registered: 02/15/07
Posts: 2097
Location: Boise, Idaho

Profile Email Website  
  Quote
By: wootcat (offline)  Dec 10 2009 00:31 am  
wootcat

That was it! Stupid miss on my part.

Thanks!

Forum Active Member
Active Member

Group Comfort
Level:
: +5

Registered: 11/21/09
Posts: 121
Location: Wisconsin

Profile Email    
  Quote
New Topic Post Reply


 All times are CDT. The time is now 05:25 am.
Normal Topic Normal Topic
Locked Topic Locked Topic
Sticky Topic Sticky Topic
New Post New Post
Sticky Topic w/ New Post Sticky Topic w/ New Post
Locked Topic w/ New Post Locked Topic w/ New Post
View Anonymous Posts 
Able to Post 
HTML Allowed 
Censored Content