Welcome to Geeklog, Anonymous Thursday, December 07 2023 @ 12:09 pm EST

Geeklog Forums

Homepage link on the main menu

Status: offline


Forum User
Full Member
Registered: 05/27/03
Posts: 612
I don't know if it was an oversight or left out for a reason but I found that there was no home page link on the main menu (in the header). I wanted it there and still wanted to maintain {menu_elements} so I added this.

In lib-common.php around line 800 you should see

// Now add nested template for menu items

Just add the following to the top of what is under that line.

Text Formatted Code
    // Homepage link
    $header->set_var( 'menuitem_url', $_CONF['site_url'] . '/index.php' );
    $header->set_var( 'menuitem_text', $LANG01[68] );
    $header->parse( 'menu_elements', 'menuitem', true );

All times are EST. The time is now 12:09 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