News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

How do I activate changes in subs.php?

Started by papaworx, October 24, 2010, 04:30:44 PM

Previous topic - Next topic

papaworx

I added a menu item to the menu array in Sources/subs.php. How do I actually activate these changes to show up? (RC 2.0)

ACAMS

Sometimes you have to go to Maintainance and clear the cache.

papaworx

Thanks, I did; but the added menu item doesn't appear. What else do I need to do?

ACAMS

Post the code here that you added and I will look at it. (not that I am a whiz at this stuff....but mine worked)

papaworx

Thanks, I include two lines above and one below:

            ),
         ),
         'JGBS' => array(
                         'title' => 'jgbs',
                     'href' => 'http://jgbs.org [nofollow]',
                     'show' => true,
                     'sub_buttons' => array(
                     ),
                     'is_last' => $context['right_to_left'],
                     // 'target' => '_blank',            ),
         },
         'profile' => array(

ACAMS

Try putting this somewhere on the left and not make it the last one because that may be clashing with the login.
After you get it to showing, then you can make the other little changes.

I did not have to clear the cache when I added this to my test forum.


'JGBS' => array(
                'title' => 'JGBS',
                'href' => 'http://jgbs.org',
                'show' => true,
                'sub_buttons' => array(
                ),
            ),

papaworx

I copied your code between 'moderate' and 'profile', but nothing happened when I reloaded SMF. Is there anywhere else, I have to make a change?

Matthew K.

Would you please attach ./Sources/Subs.php?

papaworx

Thanks for your help, the problem has resolved itself. I had made an error in uploading subs.php.

Advertisement: