I recently upgraded from 1.4.0 to 1.4.1. When I looked at the menuitems at the top I noticed that the link to "Gallery" was no longer there. I can bring it up by hard coding it into the header.thtml file. However, I wanted to use the lib-custom.php and config.php files to accomplish this since I thought I would be needing more links to and this would make it easier. I have serach and read posts in this forum some which were identical to my situation but I was unable to resolve my situation. I am sure that the problem is not with GeekLog but at my end. Evidently I just cannot resolve it. Any help is appreciated. Thanks. The following is the code I have in the respective files and I am using the Professional Theme.
header.thtml
<tr><td colspan="2" valign="bottom" bgcolor="#406E9B"><img src="{layout_url}/theme-images/pixel.gif" alt="" height="20" width="8" align="absmiddle" border="0">{allowed_menu_elements}{plg_menu_elements}</b></td>
</tr>
config.php
$_CONF['allowed_menu_elements'] = array
(
'home', // link to homepage
'contribute', // contribute / "submit a story" link
// 'calendar', // link to the site calendar
//'search', // link to advanced search
'stats', // link to site stats
'directory', // link to list of past stories
//'prefs', // link to user's preferences
// 'polls', // link to past polls
'plugins', // links added by plugins, like {plg_menu_elements}
'custom' // for custom links (see lib-custom.php)
//'account information' //
);
lib-custom.php
function CUSTOM_menuEntries ()
{
global $_CONF, $_USER;
$myentries = array ();
// Sample link #1: Link to Gallery
$myentries[] = array ('url' => $_CONF['site_url'] . '/forensic/gallery/index.php/',
'label' => 'Gallery'
;
// Sample link #2: Link to the Personal Calendar - only visible for
// logged-in users
if (!empty ($_USER['uid']) && ($_USER['uid'] > 1)) {
$myentries[] = array ('url' => $_CONF['site_url']
. '/calendar/index.php?mode=personal',
'label' => 'My Calendar'
;
}
return $myentries;
}
"Justice through Science"