|
|||||||
![]() |
Forum Index > glFusion > Theme Support |
|
|
Remove Navigation header, but keep others
|
|||
| | | Printable Version |
|
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. |
![]() Regular Member Group Comfort Level:: +5 ![]() ![]()
Registered: 11/21/09 |
||||||||
|
|||||||||
|
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.
|
![]() Admin Group Comfort Level:: +57 ![]() ![]()
Registered: 02/15/07 |
||||||||
|
|||||||||
|
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 |
![]() Admin Group Comfort Level:: +15 ![]()
Registered: 07/18/07 |
||||||||
|
|||||||||
|
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); } ?>
PHP Formatted Code {# begin {templatelocation} #}<div class="block-box"> <span class="block-helpicon"> {block_help} </span> {# end {templatelocation} #}
PHP Formatted Code {# begin {templatelocation} #}</div> <div class="aligncenter"> <div class="block-divider"></div> </div> {# end {templatelocation} #}
|
![]() Regular Member Group Comfort Level:: +5 ![]() ![]()
Registered: 11/21/09 |
||||||||
|
|||||||||
|
mst3kroqs | ||||||||
|
Yes - but we cannot modify these files, or it will affect your block appearance for all blocks. Standby for hack ... Mark A. Howard |
![]() Admin Group Comfort Level:: +15 ![]()
Registered: 07/18/07 |
||||||||
|
|||||||||
|
mst3kroqs | ||||||||
|
Apologies - missed the details of the post - that works of course. Mark A. Howard |
![]() Admin Group Comfort Level:: +15 ![]()
Registered: 07/18/07 |
||||||||
|
|||||||||
|
Geiss | ||||||||
|
wootcat, PHP Formatted Code $_BLOCK_TEMPLATE['<blockmenu>'] = 'blockheader-<blockmenu>.thtml,blockfooter-<blockmenu>.thtml';
PHP Formatted Code $_BLOCK_TEMPLATE['blockmenu'] = 'blockheader-blockmenu.thtml,blockfooter-blockmenu.thtml';
|
![]() Admin Group Comfort Level:: +57 ![]() ![]()
Registered: 02/15/07 |
||||||||
|
|||||||||
|
wootcat | ||||||||
|
That was it! Stupid miss on my part. |
![]() Regular Member Group Comfort Level:: +5 ![]() ![]()
Registered: 11/21/09 |
||||||||
|
|||||||||
|
| All times are CDT. The time is now 05:05 am. |
|
|