|
Forum > SMF Gallery Lite
Gallery Lite menu problem
(1/2) > >>
annedi:
We are running SMF 2.0.12 for nikongear.net. I installed Gallery Lite 5.6.1. No installation problems.
However, I cannot see the Gallery > Gallery Configuration menu item in Admin. And also cannot see the Gallery menu item on the main page.
I've read through other (somewhat old) posts about this problem. But I cannot see where to fix anything in index.template.php as you suggest. The code in 2.0.12 does not list the buttons by name in index.template.php.
Any help you can provide would be welcome. Thanks! Added later: We are probably going with Gallery Pro. But we wanted to simply have a quick look first using Gallery Lite.
Andrea B. Admin at nikongear.net
Here is the current menu code for the main page.
--- Code: ---// Show the menu up top. Something like [home] [help] [profile] [logout]... function template_menu() { global $context, $settings, $options, $scripturl, $txt;
echo ' <div id="main_menu"> <ul class="dropmenu" id="menu_nav">';
foreach ($context['menu_buttons'] as $act => $button) { echo '<li id="button_', $act, '">
<a class="', $button['active_button'] ? 'active ' : '', 'firstlevel" href="', $button['href'], '"', isset($button['target']) ? ' target="' . $button['target'] . '"' : '', '>
<span class="', isset($button['is_last']) ? 'last ' : '', 'firstlevel">', $button['title'], '</span> </a>';
if (!empty($button['sub_buttons'])) { echo '<ul>';
foreach ($button['sub_buttons'] as $childbutton) { echo '<li> <a href="', $childbutton['href'], '"', isset($childbutton['target']) ? ' target="' . $childbutton['target'] . '"' : '', '> <span', isset($childbutton['is_last']) ? ' class="last"' : '', '>', $childbutton['title'], !empty($childbutton['sub_buttons']) ? '...' : '', '</span> </a>';
// 3rd level menus :) if (!empty($childbutton['sub_buttons'])) { echo '<ul>';
foreach ($childbutton['sub_buttons'] as $grandchildbutton) echo '<li> <a href="', $grandchildbutton['href'], '"', isset($grandchildbutton['target']) ? ' target="' . $grandchildbutton['target'] . '"' : '', '> <span', isset($grandchildbutton['is_last']) ? ' class="last"' : '', '>', $grandchildbutton['title'], '</span> </a></li>'; echo '</ul>'; } echo '</li>'; } echo '</ul>'; } echo '</li>'; } echo '</ul> </div>'; }
--- End code ---
SMFHacks:
The menu button code is actually in sources/subs.php there should be a gallery entry You can upload gallery lite to http://www.smfhacks.com/smf-package-parser.html And make sure all the edits are made to the files.
Also make sure the text from the gallery from themes/default/languages/modifications.english.php is in any modifications.*.php file and also in other themes if that modifications.*.php file exists.
annedi:
The XML installation search position code fails for index.template.php (from SMF 2.0.12) ?? So index.template.php does not get updated ?? And it cannot be manually updated because apparently some of the code has been rewritten. I cannot find where to add a gallery button. I posted the function template_menu() in my first post to show you.
argh. Sorry. got installation scripts mixed up!
I ran the parser and got no errors for Gallery Lite 5.6.1 and SMF 2.0.12.
SMFHacks:
For SMF 2.0.x it doesn't make any changes to the index.template.php make sure you chose an SMF 2.0 version
annedi:
Yes. Sorry! (my error) I just edited my post but will repeat:
I ran the parser and got no errors for Gallery Lite 5.6.1 and SMF 2.0.12.
So still puzzled why nothing is showing up.
Navigation
[0] Message Index
[#] Next page |
No thumbnails on new uploads
by SMFHacks
March 27, 2024, 02:10:41 pm
|
Display the Contact Page for guests
by SMFHacks
March 27, 2024, 10:55:43 am
|
is it possible to add support for odysee.com
by fvlog19
March 21, 2024, 08:47:51 am
|
Request for admin notification
by davejo
March 10, 2024, 01:31:59 am
|
I need help with torrent upload
by Ineedsmfhelp
March 09, 2024, 10:01:13 pm
|
an idea for new mod (( content type with different display ))
by SMFHacks
February 27, 2024, 01:36:27 pm
|
[Mod] RSS Feed Poster
by SMFHacks
February 27, 2024, 11:57:18 am
|
find duplicate pictures
by fvlog19
February 14, 2024, 02:22:40 pm
|
Error uploading video.
by SMFHacks
February 08, 2024, 02:04:16 pm
|
Gallery icon as last added image
by fvlog19
February 01, 2024, 01:04:56 pm
|
|
|