Welcome to Geeklog, Anonymous Sunday, December 22 2024 @ 07:00 am EST
Geeklog Forums
Gallery item in menu
Status: offline
ofey
Forum User
Full Member
Registered: 03/18/05
Posts: 213
Location:Dublin, Ireland
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.
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.
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>
Those who say it can't be done, are usually interrupted by others doing it.
11
10
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
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
9
9
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,
(
'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.
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.
9
9
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
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
11
10
Quote
All times are EST. The time is now 07:00 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