Advertisement:

Author Topic: SMF 2.1-style Admin Area  (Read 14956 times)

Offline Steve

  • Freak
  • Support Specialist
  • SMF Hero
  • *
  • Posts: 4,466
  • Gender: Male
  • I have not yet begun to procrastinate.
Re: SMF 2.1-style Admin Area
« Reply #20 on: December 03, 2014, 09:32:46 AM »
When I attempt to install I get an installation error. The mod is looking for this:

Code: [Select]
'serversettings' => array(
'label' => $txt['admin_server_settings'],
'file' => 'ManageServer.php',
'function' => 'ModifySettings',
'icon' => 'server.gif',
'subsections' => array(
'general' => array($txt['general_settings']),
'database' => array($txt['database_paths_settings']),
'cookie' => array($txt['cookies_sessions_settings']),
'cache' => array($txt['caching_settings']),
'loads' => array($txt['load_balancing_settings']),
),
),
'current_theme' => array(

However, that last line is not in my admin.php anywhere. So how do I proceed? Do I just delete all but the last line and just add that last line because the mod wants the whole thing replaced with that last line anyway? Or will I cause a problem because that line wasn't in the file in the first place?

Note: I have your Lazy Admin Menu installed.
Online Manual

Please do not PM me for support.

Offline dougiefresh

  • SMF Hero
  • ******
  • Posts: 2,820
  • Mod King
    • XPtsp.com Community
Re: SMF 2.1-style Admin Area
« Reply #21 on: December 03, 2014, 06:47:22 PM »
Please attach your Sources/Admin.php.  I'll see if there is an easy solution for you....

Offline Steve

  • Freak
  • Support Specialist
  • SMF Hero
  • *
  • Posts: 4,466
  • Gender: Male
  • I have not yet begun to procrastinate.
Re: SMF 2.1-style Admin Area
« Reply #22 on: December 03, 2014, 08:36:10 PM »
Attached and thanks. :)
« Last Edit: December 04, 2014, 05:14:26 PM by Steve »
Online Manual

Please do not PM me for support.

Offline dougiefresh

  • SMF Hero
  • ******
  • Posts: 2,820
  • Mod King
    • XPtsp.com Community
Re: SMF 2.1-style Admin Area
« Reply #23 on: December 04, 2014, 01:11:42 PM »
Uploaded v1.7 - December 4th, 2014
o Changed mod for better install compatibility with Staff Page Mod.

@Steve: Version 1.7 should solve your install issues....

Offline Steve

  • Freak
  • Support Specialist
  • SMF Hero
  • *
  • Posts: 4,466
  • Gender: Male
  • I have not yet begun to procrastinate.
Re: SMF 2.1-style Admin Area
« Reply #24 on: December 04, 2014, 05:10:48 PM »
Thankee. Will have look in a bit. :)



Edit: still getting an error with that same section. Tried it on my test board that has no mods installed and still got the error. Weird.
« Last Edit: December 04, 2014, 05:24:00 PM by Steve »
Online Manual

Please do not PM me for support.

Offline dougiefresh

  • SMF Hero
  • ******
  • Posts: 2,820
  • Mod King
    • XPtsp.com Community
Re: SMF 2.1-style Admin Area
« Reply #25 on: December 04, 2014, 05:36:26 PM »
Damn sloppy of me....  >:( Please redownload the version 1.7 of this mod.  I've fixed this issue, and no, I didn't increment the version number....

Offline Steve

  • Freak
  • Support Specialist
  • SMF Hero
  • *
  • Posts: 4,466
  • Gender: Male
  • I have not yet begun to procrastinate.
Re: SMF 2.1-style Admin Area
« Reply #26 on: December 04, 2014, 05:58:30 PM »
Awesome dougie! Works a treat now!
Online Manual

Please do not PM me for support.

Offline RSI

  • Jr. Member
  • **
  • Posts: 123
Re: SMF 2.1-style Admin Area
« Reply #27 on: June 01, 2015, 10:20:34 AM »
Doug,

I found a bug. This mod locks up the BBC control page. I had it installed for a long time and didn't notice it until now. If you go to Administration Center » Posts and Topics » Bulletin Board Code and try to change any of the settings and hit save it wont let you and it puts the settings back to like they were. Basically if you unchecked a box and hit save it rechecks it again. The page appears to be locked.

I uninstalled the mod and the problem goes away.

Offline Steve

  • Freak
  • Support Specialist
  • SMF Hero
  • *
  • Posts: 4,466
  • Gender: Male
  • I have not yet begun to procrastinate.
Re: SMF 2.1-style Admin Area
« Reply #28 on: June 01, 2015, 02:51:08 PM »
Mine is Admin -> Features and Options -> Bulletin Board Code (SMF version 2.0.10) but I can confirm that this happens on my setup as well.
Online Manual

Please do not PM me for support.

Offline RSI

  • Jr. Member
  • **
  • Posts: 123
Re: SMF 2.1-style Admin Area
« Reply #29 on: June 01, 2015, 05:25:31 PM »
Mine is Admin -> Features and Options -> Bulletin Board Code

The navigation location I gave is without the mod installed. The mod moves it and is somehow locking or disconnecting control of those database settings from that page after it's relocated/reorganized.

Offline Steve

  • Freak
  • Support Specialist
  • SMF Hero
  • *
  • Posts: 4,466
  • Gender: Male
  • I have not yet begun to procrastinate.
Re: SMF 2.1-style Admin Area
« Reply #30 on: June 01, 2015, 06:21:27 PM »
The navigation location I gave is without the mod installed.

Ah, okay. I've had it for so long I've forgotten how it was before. :)
Online Manual

Please do not PM me for support.

Offline dougiefresh

  • SMF Hero
  • ******
  • Posts: 2,820
  • Mod King
    • XPtsp.com Community
Re: SMF 2.1-style Admin Area
« Reply #31 on: June 04, 2015, 07:38:21 PM »
I'm sorry I haven't been able to get back to you lately, as I've been working somewhere around 100 hours in the last 10 days....  I'll look into the bug report(s) that you reported....

Offline dougiefresh

  • SMF Hero
  • ******
  • Posts: 2,820
  • Mod King
    • XPtsp.com Community
Re: SMF 2.1-style Admin Area
« Reply #32 on: June 05, 2015, 09:48:38 AM »
Uploaded v1.8 - June 5th, 2015
o License change to Simplified BSD.
o Fixed not saving settings issue with Bulletin Board Codes page.

Offline Steve

  • Freak
  • Support Specialist
  • SMF Hero
  • *
  • Posts: 4,466
  • Gender: Male
  • I have not yet begun to procrastinate.
Re: SMF 2.1-style Admin Area
« Reply #33 on: June 05, 2015, 12:59:13 PM »
Was the bugfix significant? In other words, was it a small enough fix for me to fix my current version (1.7) manually?

I have a lot of custom modifications so trying to update this generates way to many errors to make it worth the work.
Online Manual

Please do not PM me for support.

Offline dougiefresh

  • SMF Hero
  • ******
  • Posts: 2,820
  • Mod King
    • XPtsp.com Community
Re: SMF 2.1-style Admin Area
« Reply #34 on: June 05, 2015, 01:46:06 PM »
@Steve: In Sources/Post.php, find this code:
Code: (Find) [Select]
redirectexit('action=admin;area=postsettings;sa=bbc');
}

$context['post_url'] = $scripturl . '?action=admin;area=postsettings;save;sa=bbc';
and replace it with this:
Code: (Add After) [Select]
redirectexit('action=admin;area=featuresettings;sa=bbc');
}

$context['post_url'] = $scripturl . '?action=admin;area=featuresettings;sa=bbc;save';
That should fix it.

Offline Steve

  • Freak
  • Support Specialist
  • SMF Hero
  • *
  • Posts: 4,466
  • Gender: Male
  • I have not yet begun to procrastinate.
Re: SMF 2.1-style Admin Area
« Reply #35 on: June 05, 2015, 07:33:08 PM »
I'm not finding any of that code in that file. :(
Online Manual

Please do not PM me for support.

Offline dougiefresh

  • SMF Hero
  • ******
  • Posts: 2,820
  • Mod King
    • XPtsp.com Community
Re: SMF 2.1-style Admin Area
« Reply #36 on: June 05, 2015, 08:25:56 PM »
WHOOPS!!!  I meant Sources/ManagePosts.php, not Sources/Post.php!!  :o

Offline Steve

  • Freak
  • Support Specialist
  • SMF Hero
  • *
  • Posts: 4,466
  • Gender: Male
  • I have not yet begun to procrastinate.
Re: SMF 2.1-style Admin Area
« Reply #37 on: June 05, 2015, 09:14:05 PM »
Works a treat now Dougie. Thanks muchly! ;D
Online Manual

Please do not PM me for support.

Offline dougiefresh

  • SMF Hero
  • ******
  • Posts: 2,820
  • Mod King
    • XPtsp.com Community
Re: SMF 2.1-style Admin Area
« Reply #38 on: July 06, 2015, 10:32:17 AM »
Uploaded v1.9 - July 6th, 2015
o Fixed a conflict with other mods regarding the LoadLanguage function operation used.

Offline villasg

  • Full Member
  • ***
  • Posts: 484
Re: SMF 2.1-style Admin Area
« Reply #39 on: July 06, 2015, 12:28:17 PM »
Uploaded v1.9 - July 6th, 2015
o Fixed a conflict with other mods regarding the LoadLanguage function operation used.

Hello .
How make the update ?
Need to remove old and install the new or just run the new package via package manager ?

I remove and install again the new version because i do not see in package-info.xml upgrade option .
« Last Edit: July 06, 2015, 12:49:34 PM by villasg »