Advertisement:

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

Offline dougiefresh

  • SMF Hero
  • ******
  • Posts: 2,820
  • Mod King
    • XPtsp.com Community
SMF 2.1-style Admin Area
« on: August 20, 2014, 07:27:47 PM »
Link to Mod


SMF 2.1-STYLE ADMIN AREA v1.11
By Dougiefresh -> Link to Mod


Introduction
This mod reorganizes the layout of SMF v2.0.x's Admin area so that it closely matches SMF 2.1 Alpha 1's menu, as of July 28, 2014.  It also rewrites the "Adminstration Center" page to look like SMF 2.1 Alpha 1....

Most of the modifications are to Admin.php and Admin.template.php, with a few other edits to make the moved menu entries work.

In SMF 2.1 Alpha 1, there is no Core Features page.  Those settings have been migrated to the individual pages to enable/disable the feature.  These modifications are not duplicated, as they would add MUCH, MUCH more code to the admin area....

Related Discussion
Thinking about Reorganizing SMF 2.0.x's Admin Area

Menu Changes Involved
o Configuration => Security and Moderation is now hidden.
o Added Configuration => Anti-Spam (from Configuration => Security and Moderation)
o Added Forum => Attachments & Avatars => Attachment Directories
o Moved Bulletin Board Code from Forum => Posts & Topics to Configuration => Features & Options
o Moved Members => Search Engines to Forum => Search Engines
o Moved Configuration => Server Settings to Maintenance => Server Settings
o Moved Configuration => Security and Moderation => Moderation Settings to Members => Warnings
o Calling Configuration => Security and Moderation subsections via url redirects to correct location
o Calling Forum => Posts & Topics => Bulletin Board Code via url redirects to correct location
o Moved Configuration => Modification Settings => Integration Hooks to Maintenance -> Forum Maintenance
o Added Maintenance => Server Settings => PHP Info using SMF 2.1's code....

Third Party Graphics (borrowed from SMF 2.1)
Crystal Project Icons | These icons are licensed under the GNU Lesser General Public Licence

Compatibility Notes
This mod was tested on SMF 2.0.10, but should work on earlier versions of SMF 2.0.x.  SMF 1.x and all versions of SMF 2.1 are not and will not be supported.

Integration Hooks Report can be installed at any time.

Changelog
The changelog can be viewed at XPtsp.com.

License
The PHPInfo template code, source code, CSS style was copied from SMF 2.1 Alpha 1 under the BSD license.

Copyright (c) 2015 - 2018, Douglas Orend
All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.

2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
« Last Edit: December 04, 2014, 01:13:17 PM by dougiefresh »

kat

  • Guest
Re: SMF 2.1-style Admin Area
« Reply #1 on: August 21, 2014, 10:35:18 AM »
Installed without any hassles and works a treat (SMF v2.0.9-ish).

Good one, again, Dougie!


Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 70,797
    • StoryBB/StoryBB on GitHub
Re: SMF 2.1-style Admin Area
« Reply #2 on: August 21, 2014, 10:39:23 AM »
Nice job.

Technically if you followed the code that was put in, the only images used would be Crystal Project ones; Oxygen is used for the avatars in 2.1 and Fugue is used for some smileys and some menu stuff, but not for the main admin area.
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.

Offline dougiefresh

  • SMF Hero
  • ******
  • Posts: 2,820
  • Mod King
    • XPtsp.com Community
Re: SMF 2.1-style Admin Area
« Reply #3 on: August 22, 2014, 06:31:03 PM »
Nice job.

Technically if you followed the code that was put in, the only images used would be Crystal Project ones; Oxygen is used for the avatars in 2.1 and Fugue is used for some smileys and some menu stuff, but not for the main admin area.
Thank you.  I'll update the mod to reflect this information....

EDIT: Mod has been updated to reflect this information.  Thanks, ‽ !!

Installed without any hassles and works a treat (SMF v2.0.9-ish).
:o SMF v2.0.9-ish?  You've got my curiosity up when you mention that.....  :P

Offline Steve

  • Freak
  • Support Specialist
  • SMF Hero
  • *
  • Posts: 4,469
  • Gender: Male
  • I have not yet begun to procrastinate.
Re: SMF 2.1-style Admin Area
« Reply #4 on: August 22, 2014, 08:26:00 PM »
A certain special few get an advanced copy of the next release for testing I assume. :P
Online Manual

Please do not PM me for support.

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 70,797
    • StoryBB/StoryBB on GitHub
Re: SMF 2.1-style Admin Area
« Reply #5 on: August 22, 2014, 08:29:54 PM »
I think it's a good thing that some long-standing issues are getting tackled. I'm a fan of bug-fix releases and I'm quite pleased in general that the cycle of 'only ever doing security fixes' was broken to include legitimate bug fixes too.

As to 'special few', the team all get access to patches before deployment for testing. I've also been known to have the odd pre-release slung my way for testing, but not on this occasion, not that I've had the time to really look at it anyway.
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.

Offline Masterd

  • SMF Hero
  • ******
  • Posts: 3,917
  • Gender: Male
Re: SMF 2.1-style Admin Area
« Reply #6 on: August 23, 2014, 05:26:27 AM »
Another great mod, dougie! You're really good at this.

2.0.9??? ??? Well, a new version is certainly a good thing.

Offline Steve

  • Freak
  • Support Specialist
  • SMF Hero
  • *
  • Posts: 4,469
  • Gender: Male
  • I have not yet begun to procrastinate.
Re: SMF 2.1-style Admin Area
« Reply #7 on: August 23, 2014, 09:19:59 AM »
As to 'special few' ...

I should have put quotes around it as well. It was said with tongue-in-cheek. I know most if not all the team gets an advanced copy for testing ... :D
Online Manual

Please do not PM me for support.

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 70,797
    • StoryBB/StoryBB on GitHub
Re: SMF 2.1-style Admin Area
« Reply #8 on: August 23, 2014, 09:22:03 AM »
All the team should have access to the board where such things are discussed. I, however, am not a team member, so I don't get privileged access - and on this one they're more than capable of fixing it themselves (seeing how I know two of the things to be fixed because I'm the discoverer)
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.

Offline dougiefresh

  • SMF Hero
  • ******
  • Posts: 2,820
  • Mod King
    • XPtsp.com Community
Re: SMF 2.1-style Admin Area
« Reply #9 on: August 23, 2014, 02:44:23 PM »
Very, very interesting.....

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 70,797
    • StoryBB/StoryBB on GitHub
Re: SMF 2.1-style Admin Area
« Reply #10 on: August 23, 2014, 04:21:29 PM »
Eh, there's nothing seriously exciting in 2.0.9. A few bug fixes, one of which stems back years and no-one noticed before, so I don't think it ever bit anyone before but I thought it should be fixed.
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.

Offline dougiefresh

  • SMF Hero
  • ******
  • Posts: 2,820
  • Mod King
    • XPtsp.com Community
Re: SMF 2.1-style Admin Area
« Reply #11 on: November 01, 2014, 04:30:53 PM »
Uploaded v1.1 - November 1st, 2014
o Fixed some language string issues

Offline dougiefresh

  • SMF Hero
  • ******
  • Posts: 2,820
  • Mod King
    • XPtsp.com Community
Re: SMF 2.1-style Admin Area
« Reply #12 on: November 02, 2014, 04:51:55 PM »
Uploaded v1.2 - November 2nd, 2014
o Fixed missing global variable declaration within ManageServer.php...

Offline Masterd

  • SMF Hero
  • ******
  • Posts: 3,917
  • Gender: Male
Re: SMF 2.1-style Admin Area
« Reply #13 on: November 03, 2014, 10:43:28 AM »
Link in the first post points to Better Profile Menu. ???

Offline Rumpa

  • Jr. Member
  • **
  • Posts: 192
  • Gender: Female
  • I Love My Love
    • rumpa.das.549 on Facebook
    • Rumpa on GitHub
Re: SMF 2.1-style Admin Area
« Reply #14 on: November 03, 2014, 12:47:27 PM »
Link in the first post points to Better Profile Menu. ???

yes it's redirect to "Better Profile Menu"

Offline dougiefresh

  • SMF Hero
  • ******
  • Posts: 2,820
  • Mod King
    • XPtsp.com Community
Re: SMF 2.1-style Admin Area
« Reply #15 on: November 03, 2014, 03:02:11 PM »
Thank you for pointing that out.  It's been fixed in both the first post and the mod itself!

Offline dougiefresh

  • SMF Hero
  • ******
  • Posts: 2,820
  • Mod King
    • XPtsp.com Community
Re: SMF 2.1-style Admin Area
« Reply #16 on: November 06, 2014, 03:53:58 PM »
Uploaded v1.3 - November 6th, 2014
o Fixed an issue with the Warnings section being shown when it isn't enabled....

Offline dougiefresh

  • SMF Hero
  • ******
  • Posts: 2,820
  • Mod King
    • XPtsp.com Community
Re: SMF 2.1-style Admin Area
« Reply #17 on: November 08, 2014, 11:08:49 AM »
Uploaded v1.4 - November 8th, 2014
o Minor changes to give httpBL, Forum Firewall and Bad Behavior mods icons in the Admin Area
o Added code to move Integration Hooks Report mod to the Maintenance -> Forum Maintenance area.

Offline dougiefresh

  • SMF Hero
  • ******
  • Posts: 2,820
  • Mod King
    • XPtsp.com Community
Re: SMF 2.1-style Admin Area
« Reply #18 on: November 12, 2014, 04:52:06 PM »
Uploaded v1.5 - November 11th, 2014
o Added code to duplicate SMF 2.1's PHP Info screen in Maintenance => Server Settings => PHP Info....
o Fixed code for saving settings within Configuration => Anti-Spam...
o Fixed code for saving settings within Maintenance => Server Settings => Security...
o Fixed code for saving settings within Members => Warnings...

Offline dougiefresh

  • SMF Hero
  • ******
  • Posts: 2,820
  • Mod King
    • XPtsp.com Community
Re: SMF 2.1-style Admin Area
« Reply #19 on: November 15, 2014, 01:29:07 PM »
Uploaded v1.6 - November 15th, 2014
o Fixed potential "missing file" problem with uninstalling mod.

Offline Steve

  • Freak
  • Support Specialist
  • SMF Hero
  • *
  • Posts: 4,469
  • 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,469
  • 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,469
  • 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,469
  • 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,469
  • 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,469
  • 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,469
  • 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,469
  • 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,469
  • 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 »

Offline dougiefresh

  • SMF Hero
  • ******
  • Posts: 2,820
  • Mod King
    • XPtsp.com Community
Re: SMF 2.1-style Admin Area
« Reply #40 on: July 06, 2015, 02:28:22 PM »
There's no added or changed functionality to the version 1.9 update, so you don't need to upgrade from v1.8.  Yes, there is a minor change, but it is to resolve the conflict that I encountered uninstalling an older version on my personal server....

From versions earlier than v1.8, yes, you need to upgrade by uninstalling the old mod, then installing the new mod.

Offline dougiefresh

  • SMF Hero
  • ******
  • Posts: 2,820
  • Mod King
    • XPtsp.com Community
Re: SMF 2.1-style Admin Area
« Reply #41 on: November 02, 2018, 12:28:00 PM »
Uploaded v1.10 - November 2nd, 2018
o No functionality change.
o Updated documentation to point to new website.

Offline Rock Lee

  • Native Language Support Specialist
  • SMF Hero
  • *
  • Posts: 2,434
  • Gender: Male
  • I also speak english :D
    • BomberCode.Oficial on Facebook
    • RockLee-BC on GitHub
    • @Bomber_Code on Twitter
    • Bomber Code ~ La nueva era del conocimiento
Re: SMF 2.1-style Admin Area
« Reply #42 on: November 02, 2018, 01:07:22 PM »
I thought that you attach the translation :P Here I leave it O:)!


Regards!
¡Regresando como cual Fenix! ~ Bomber Code © 2018
Ayudas - Aportes - Tutoriales - Y mucho mas!!!


Ayudame via PayPal

Offline dougiefresh

  • SMF Hero
  • ******
  • Posts: 2,820
  • Mod King
    • XPtsp.com Community
Re: SMF 2.1-style Admin Area
« Reply #43 on: November 09, 2018, 09:19:05 PM »
Uploaded v1.11 - November 9th, 2018
o Added Spanish Latin translation, courtsey of Rock Lee.



@Rock Lee:  Thank you for the translation!  It's been included in this version!