Welcome to Geeklog, Anonymous Sunday, December 22 2024 @ 02:04 pm EST
Geeklog Forums
Disable Calendar, Web Resiourses
Status: Banned
yburan
Forum User
Newbie
Registered: 03/23/04
Posts: 1
Is there a way to disable Calendar and Web resources from showing on all pages? I dont want these particular features at this time.
Thanks,
Yburan
Thanks,
Yburan
9
8
Quote
Status: offline
Robin
Forum User
Full Member
Registered: 02/15/02
Posts: 725
For me the easiest (read safest ;-) way is to remove from header.thtml this entry {menu_elements}
This will remove everything and this way you will be able to define your own menu elements.
Geeklog Polish Support Team
This will remove everything and this way you will be able to define your own menu elements.
Geeklog Polish Support Team
8
9
Quote
Status: offline
Blaine
Forum User
Moderator
Registered: 07/16/02
Posts: 1232
Location:Canada
Your other choice is to edit the language file and replace the word "calendar" with "" -- but that will leave a extra | in the header.
The better option if you want to just remove a few of the links is to edit the COM_siteHeader function in lib-common.php and comment out a few lines.
Look for something like this and just comment out the lines by adding a double // in front of the line
// calendar link
$header->set_var( 'menuitem_url', $_CONF['site_url'] . '/calendar.php' );
$header->set_var( 'menuitem_text', $LANG01[74] );
$header->parse( 'menu_elements', 'menuitem', true );
Geeklog components by PortalParts -- www.portalparts.com
The better option if you want to just remove a few of the links is to edit the COM_siteHeader function in lib-common.php and comment out a few lines.
Look for something like this and just comment out the lines by adding a double // in front of the line
Text Formatted Code
// calendar link
$header->set_var( 'menuitem_url', $_CONF['site_url'] . '/calendar.php' );
$header->set_var( 'menuitem_text', $LANG01[74] );
$header->parse( 'menu_elements', 'menuitem', true );
Geeklog components by PortalParts -- www.portalparts.com
8
8
Quote
corey
Anonymous
So what happens when I delete those lines of code completely from lib-common and the calendar link still shows up?
9
9
Quote
corey
Anonymous
bump
7
8
Quote
All times are EST. The time is now 02:04 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