Welcome to Geeklog, Anonymous Thursday, March 28 2024 @ 01:20 pm EDT

Geeklog Forums

Gallery item in menu


Status: offline

ofey

Forum User
Full Member
Registered: 03/18/05
Posts: 213
Location:Dublin, Ireland
blah
I recently upgraded to latest version of GL after which there was no menu item for Gallery as there was before. So I hard-coded a link into the menu in header.thtml.
Text Formatted Code
 53                     <tr>
 54                             <td colspan="2" valign="bottom" align="center" bgcolor="#242e55" background="{layout_url}/theme-images/gameserver_menu_tile.gif"><img src="{layout_url}/theme-images/pixel.gif" alt="" height="36" width="8" align="absmiddle" border="0">{menu_elements}{plg_menu_elements} <b><a href="http://www.trojanswimclub.ie/gallery/albums.php">Gallery</a></b> |</td>
 55                     </tr>
How can I make this look the same as the other menu elements? I am using the lastest version of Gamserver and site is at http://www.trojanswimlcub.ie. Shane
Those who say it can't be done, are usually interrupted by others doing it.
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
The menu items use the style of the menuitem*.thtml template files.

You could go with using the 'custom' entry (see CUSTOM_menuEntries in lib-custom.php) which would pick those up automatically. Or copy the contents from those files (menuitem.thtml, actually) into your header.thtml

bye, Dirk
 Quote

Status: offline

ofey

Forum User
Full Member
Registered: 03/18/05
Posts: 213
Location:Dublin, Ireland
Hi Dirk,

I uncommented the function CUSTOM_menuEntries () in lib-custom.php

and config.php reads,
Text Formatted Code
$_CONF['menu_elements'] = array
(
    'home',      // link to homepage
    'contribute',   // contribute / "submit a story" link
    'links',        // link to the links section (aka web resources)
    // 'polls',        // link to past polls
    'calendar',     // link to the site calendar
    // 'search',       // link to advanced search
    'stats',        // link to site stats
    // 'prefs',     // link to user's preferences
    // 'plugins'       // links added by plugins, like {plg_menu_elements}
    'custom'     // for custom links (see lib-custom.php)
);


It isn't working yet. Is there something else I need to do?

Thanks for your help,

Shane
Those who say it can't be done, are usually interrupted by others doing it.
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Seems to work. On your site I see

Home | Contribute | Site Statistics | Gallery | ...

Note that you can remove the 'links' and 'calendar' entries from config.php, since those are now plugins and will show up for the 'plugins' entry or {plg_menu_entries} variable.

bye, Dirk
 Quote

Status: offline

ofey

Forum User
Full Member
Registered: 03/18/05
Posts: 213
Location:Dublin, Ireland
Oh yes! Sorry. I was just looking at the right end of the menu.

Thanks Dirk.

Shane
Those who say it can't be done, are usually interrupted by others doing it.
 Quote

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