Welcome to Geeklog, Anonymous Monday, December 23 2024 @ 03:35 am EST

Geeklog Forums

Tip: plugin menu elements


Status: Banned

machinari

Forum User
Full Member
Registered: 03/22/04
Posts: 1512
I'm sure many of you have seen the many posts concerning plugin menu elements appearing twice in the nav bar after 1.3.10 was released...
This is because those links can now be enabled/disabled from the configuration file. Commenting out the entry in config.php or removing the {plg_menu_elements} variable from your header.thtml file leaves you with only one set of plugin menu elements--all fixed. ...but this is not my point.

If you are new to Geeklog at version 1.3.10 or 1.3.11, then you will undoubtedly find your plugin links lined up next to your default menu items--assuming your are using the default theme, professional.

But what if you wanted to place your plugin links on a different line from your default menu links, or in a completely different table row or even a different table altogether? In this case we revert back to the pre 1.3.10 way of doing things.

Find {menu_elements} in your theme's header.thtml file. This variable is replaced by your default links as well as your plugin links according to those items listed in ***$_CONF['menu_elements'] = array*** (found in config.php), which includes "plugins" as one of the items in the array. If you were to comment out the "plugins" entry from the array, and then add the variable, {plg_menu_elements}, to your header.thtml file, you will have, in effect, separated the default links from your plugin links. Now you are able to place your plugin links apart from the default links and wherever you like within your header's layout.

 Quote

All times are EST. The time is now 03:35 am.

  • 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