News:

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

Main Menu

[solved] Help for adminIndex in SMF 2.0

Started by MonoTiz, March 20, 2008, 07:34:35 AM

Previous topic - Next topic

MonoTiz

Hi,
I'm working for update SMFbuy MOD to SMF 2.0 beta 3 public.
I hope that the update i'ts complete, but I have a problem with the old function adminIndex().

How do I get the left bar on the administration section?

Thanks.

Here a screenshot:

Here the MOD:
http://www.simplemachines.org/community/index.php?topic=220254.msg1475184#msg1475184

Dragooon

Admin has changed a lot since SMF 1.1, so its not that way now.
You have to see Admin.php, although I'm not too sure too.

If I am right, Every admin URL has action=admin in it.

!Hachi!

try change log
http://download.simplemachines.org/
and i get this
Quote! Removed adminIndex out of Subs.php, it's functionality is now in AdminMain. (Subs.php, Admin.php)
which left bar?i can see right scroll bar though.
Happy Ramadan

MonoTiz

I have resolve.

It's simple.

I change this code:
'smfbuy' => array(
'label' => $txt['smfbuy'],
'file' => 'SMFbuy.php',
'function' => 'SMFbuy',
'custom_url' => $scripturl . '?action=smfbuy;sa=admin',
),

with:
'smfbuy' => array(
'label' => $txt['smfbuy'],
'file' => 'SMFbuy.php',
'function' => 'SMFbuy',
'custom_url' => $scripturl . '?action=admin;area=smfbuy;sa=admin',
),

Dragooon

There isn't a need to specify custom_url if you are following SMF's style of admin page.

Advertisement: