News:

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

Main Menu

Missing options from the Admin panel

Started by Pyrhel, July 25, 2012, 06:46:25 AM

Previous topic - Next topic

Pyrhel

I wrote in the topic of one of the plugins, that i have problems with, but maybe its better to open a topic here, because it's not a plugin-specific problem. Anyway, here what happens...

I have several plugins like Thank-O-Matic, Facebook box, etc, that have options available in the admin section. They was working few days ago. I haven't made any modifications, and the only change was a system's software update. The php version is 5.4.4. The problem is about the options in the admin panel. They're not displayed. Nothing in the page source! ???
The translations in the internationalization files are ok. I'm pretty sure about that, because when I put them in an echo in the functions that display the menus the translation is displayed. Here how my admin panel looks now:


For example, the the code, that should display the Thank-O-Matic menu in the admin panel is:
28 //Admin Areas
29 function ThanYou_add_admin_areas($adminAreas)
30 {
31     global $txt;
32     $adminAreas['config']['areas'] += array(
33         'thankyoupostsettings' => array(
34             'label' => $txt['thankyouposttitle'],
35             'file' => 'ManageThankYouPost.php',
36             'function' => 'ManageThankYouPost',
37             'icon' => 'thank_you_settings.png',
38             'subsections' => array(
39                 'general' => array($txt['general_settings']),
40                 'layout' => array($txt['mods_cat_layout']),
41                 'permission' => array($txt['edit_permissions'], 'enabled' => allowedTo('manage_permissions')),
42                 'boards' => array($txt['admin_boards']),
43                 'modrelated' => array($txt['thxmodification']),
44             ),
45         ),
46     );
47
48     $adminAreas['maintenance']['areas'] += array(
49         'maintainThankYouPost' => array(
50             'label' => $txt['maintain_thxpost'],
51             'file' => 'ThankYouPost-Maintaince.php',
52             'icon' => 'thank_you_maintain.png',
53             'function' => 'ManageMaintenanceThankYouPost',
54             'subsections' => array(
55                 'maintain' => array($txt['maintain_thank_you_post_maintainaince'], 'admin_forum'),
56                 'recount' => array($txt['maintain_thank_you_post_recount'], 'admin_forum'),
57             ),
58         ),
59     );
60 }

I forgot to say, there are no errors or warnings in the logs. Do you have any ideas?

Lout


Pyrhel

Lout, you are my hero! : ))))
Thank you, that solved my problem.

Advertisement: