SMF Support > SMF 2.0.x Support
Main user navigation menu problems...
Jim R:
In 1.1.4 I was using the default template, but I had ported over the menu tabs from SAF (various colors). The changes I made in the index.template.php don't seem to apply in 2.0's version of that page.
(That, and of course, some of the TXT references have changed too.)
What do I need to be looking for to recreate what I have now? GenericMenu.template.php??? If so, where in that page?
Thanks.
Croco:
try to compare with the new default.template.php file you will notice that there is a call for a loop to $context['menu_buttons'] which is an array, you can add new buttons to it, or simply replace them
check the Subs.php file and search for setupMenuContext() function inside there is definition of $buttons you can add new buttons here or in index.template.php
about the txt try to open index.english.php file and search for the old txt and try to search by its strings in the new index.english.php so you would get the new key to $txt array
Jim R:
Let me ask you this. Should what I have done in 1.1.4 work in 2.0? Usually before I have added the .jpg, it just shows the list. As I changed the language file, not all of the menu items showed up. I didn't want to make all those changes and have it not work.
I saw the loop in index.template.php. I could barely make heads or tails of it, but I will check the Subs.php file.
I'll report back. Thanks.
Jim R:
I can't get any of the menu changes to take. It's very frustrating because I think I see how it all works through Subs.php.
I added this to Subs.php right next to the Profile button code:
--- Code: --- 'subscriptions' => array(
'title' => $txt['subscriptions'],
'href' => $scripturl . '?action=profile;u=' . $memID . ';sa=subscriptions',
'show' => !$user_info['is_guest'],
'sub_button' => array(
),
),
--- End code ---
I've added the appropriate 'title' to index.english.php.
Furthermore, I made the following change:
$txt['home'] = 'Home';
to
$txt['home'] = 'Forum Home';
I've double checked to make sure I've saved and uploaded the changes. The above Subscription button doesn't show, and my 'Forum Home' still shows as 'Home'.
What am I missing???
Croco:
if you are using a custom theme make sure that it doesn't have any local language files like index.english.php
Navigation
[0] Message Index
[#] Next page
Go to full version