Welcome to Geeklog, Anonymous Friday, April 26 2024 @ 05:20 pm EDT

Geeklog Forums

Disable Calendar, Web Resiourses


Status: Banned

yburan

Forum User
Newbie
Registered: 03/23/04
Posts: 1
awake
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

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

corey

Anonymous
So what happens when I delete those lines of code completely from lib-common and the calendar link still shows up?
 Quote

corey

Anonymous
bump
 Quote

All times are EDT. The time is now 05:20 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