Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: dougiefresh on July 21, 2014, 09:15:48 AM

Title: Lazy Admin Menu
Post by: dougiefresh on July 21, 2014, 09:15:48 AM
Link to Mod (https://custom.simplemachines.org/mods/index.php?mod=3901)



LAZY ADMIN MENU v2.5
By Dougiefresh (http://www.simplemachines.org/community/index.php?action=profile;u=253913) -> Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=3901)



Introduction
This mod alters the main menu's Moderate menu to bring all the functionality of the moderation area to the main forum's menu bar.

This mod was inspired by tip provided by snow (http://www.simplemachines.org/community/index.php?action=profile;u=152526) in Lazy Admin Menu (http://www.simplemachines.org/community/index.php?topic=400767.msg2785613#msg2785613) in order to make it easier for the admin to navigate straight to where they want to go.

The only difference is that this mod built dynamically, so that any changes to the moderation menu are shown immediately.

Security Issue Notice
If you are running VERSION 2.0, you are STRONGLY URGED to stop using the mod immediately and upgrade to the latest version, which addresses a MAJOR SECURITY ISSUE that has been resolved.  All version 1.x and version 2.1+ mods are not affected by this security issue!

Admin Settings
There are no admin settings to this mod.  To disable, you must uninstall this mod.

Related Discussions
o [TIP] Lazy Admin Menu (http://www.simplemachines.org/community/index.php?topic=400767)

Compatibility Notes
This mod was tested on SMF 2.0.12, but should work on SMF 2.1 Beta 2, as well as SMF 2.0 and up.  SMF 1.x is not and will not be supported.

Changelog
The changelog can be viewed at XPtsp.com (http://www.xptsp.com/board/free-modifications/lazy-admin-menu/?tab=1).

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.
Title: Re: Lazy Admin Menu
Post by: kat on July 21, 2014, 10:06:13 AM
Excellent! Thanks for modding this up and ta to snow, again, for the original tip!
Title: Re: Lazy Admin Menu
Post by: ladyquack on July 21, 2014, 11:20:36 AM
I rather like this mod. Very nice work! :)
Title: Re: Lazy Admin Menu
Post by: Masterd on July 21, 2014, 01:29:02 PM
Great idea. Lazy admins can now also skip manual editing. :P
Title: Re: Lazy Admin Menu
Post by: Arantor on July 21, 2014, 01:41:20 PM
Not a fan of loading potentially many extra files every page load for admins.
Title: Re: Lazy Admin Menu
Post by: Masterd on July 21, 2014, 01:43:26 PM
Quote from: ‽ on July 21, 2014, 01:41:20 PM
Not a fan of loading potentially many extra files every page load for admins.

De gustibus non disputandum est.
Title: Re: Lazy Admin Menu
Post by: Arantor on July 21, 2014, 01:45:47 PM
No accounting for taste, eh? Well, I do have a thing about keeping per-page effort low where possible... it's just a shame that more people don't care about such things. Mind you, most people don't seem to care about quality any more.
Title: Re: Lazy Admin Menu
Post by: dougiefresh on July 21, 2014, 02:47:52 PM
Uploaded v1.1 - July 21th, 2014
o Reduced the potential need to load so many files by caching the admin area menu.
o Subs-LazyAdmin.php uses the cached version of admin area menu when possible.

EDIT: It should be noted that if the user doesn't have admin rights, this code will not be run for that user.....

EDIT2: If something in the admin menu changes, the main menu's Admin menu won't be updated for the other admins until the other admins logs into the admin area....

Quote from: ‽ on July 21, 2014, 01:41:20 PM
Not a fan of loading potentially many extra files every page load for admins.
Good point, ‽......  Fixed that issue in v1.1.....
Title: Re: Lazy Admin Menu
Post by: Ninja ZX-10RR on July 21, 2014, 03:12:15 PM
LOL I do am lazy in that as I use it everyday, more than once. Installed :3 thanks ♥
Title: Re: Lazy Admin Menu
Post by: kat on July 21, 2014, 03:20:37 PM
I hope this is standard, in 2.1...
Title: Re: Lazy Admin Menu
Post by: Ninja ZX-10RR on July 21, 2014, 03:24:01 PM
Ask the devs to do this :) it won't be that hard I think, as this uses hooks so not really hard to add to 2.1 without breaking things... Of course with dougiefresh's authorization ;)
Title: Re: Lazy Admin Menu
Post by: Arantor on July 21, 2014, 03:24:46 PM
I hope not. 2.1 already has enough going on without making it more complicated and more fragile.
Title: Re: Lazy Admin Menu
Post by: dougiefresh on July 21, 2014, 03:26:40 PM
Quote from: K@ on July 21, 2014, 03:20:37 PM
I hope this is standard, in 2.1...
Well, in case you're interested, it DOES work with 2.1 Alpha 1 as of July 21, 2014 using 2.0 emulation....  Future compatibility not guaranteed....
Title: Re: Lazy Admin Menu
Post by: Ninja ZX-10RR on July 21, 2014, 03:31:37 PM
Don't be that pessimist Pete :( "complicated and fragile" for a menu redirecting to another being identical? :|
And dougie... Lol on that. Nothing to add actually.
Title: Re: Lazy Admin Menu
Post by: kat on July 21, 2014, 03:34:15 PM
One can hope...

The admin section, for the entire v2 brach, thus far, has been a pile of poop, for me.

It's totally illogical and, generally, as weird as a sack full of whippets wearing lipstick.
Title: Re: Lazy Admin Menu
Post by: Arantor on July 21, 2014, 03:35:09 PM
Quote from: Flavio93Zena on July 21, 2014, 03:31:37 PM
Don't be that pessimist Pete :( "complicated and fragile" for a menu redirecting to another being identical? :|
And dougie... Lol on that. Nothing to add actually.

You have no idea. Yes, complicated and fragile.
Title: Re: Lazy Admin Menu
Post by: Ninja ZX-10RR on July 21, 2014, 03:38:51 PM
...(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.katzy.dsl.pipex.com%2FSmileys%2Fmute.jpg&hash=0d65723a0bebc824cdd48c6cd0f42d1eb7edaedf)
Title: Re: Lazy Admin Menu
Post by: Arantor on July 21, 2014, 03:41:44 PM
OK, let me explain. There is in design terms this concept called the Single Principle Design. There are other names like Single Responsibility Design. What that means is you create a function or chunk of code with a single principle and if that piece of code is ever used in different contexts with different purposes, you're doing it wrong.

AdminMain() does more than set up the menu. If the menu definition were a single function only, and AdminMain() called that, I'd be happier. It reduces fragility (by making fewer assumptions about how a piece of code will be called or used) and complexity (by ensuring that each piece of code has one responsibility) and it means that future changes are less likely to break things with obscure side effects.

This is something SMF has a *lot* of in its design right now.
Title: Re: Lazy Admin Menu
Post by: Ninja ZX-10RR on July 21, 2014, 03:46:27 PM
Thanks for the indirectly-asked explanation :) well but if the mod code is safe it wouldn't hurt to just roughly paste it in there huh? (I love that roughly copy/paste, when it works, rarely XD)
Title: Re: Lazy Admin Menu
Post by: Arantor on July 21, 2014, 03:51:26 PM
For now, sure. But if AdminMenu changes its behaviour in the future, it's entirely possible it might not work properly.

This whole failing-single-use deal is the result of so much mod instability.
Title: Re: Lazy Admin Menu
Post by: Justyne on July 21, 2014, 03:52:33 PM
It's not good practice to work that way. Makes the code messy.

Also there is a point when software features need to be finalized or release will forever be put off. I'd like to think 2.1 is feature complete by now.
Title: Re: Lazy Admin Menu
Post by: Arantor on July 21, 2014, 03:55:36 PM
2.1 was allegedly feature complete except for the theme a year ago. Until I chose to add features to it to prevent it being even further behind the competition and behind user expectation but found myself unable to continue contributing to development.

(Actually, it wasn't even ready for beta by that time, there were many bugs that were only discovered and excised when trying to fix other things.)
Title: Re: Lazy Admin Menu
Post by: Ninja ZX-10RR on July 21, 2014, 04:00:03 PM
We will be getting OT guys (and women in this case :P). Wasn't the theme up to Ant?
Title: Re: Lazy Admin Menu
Post by: Arantor on July 21, 2014, 04:09:50 PM
The theme is one of the lesser problems.
Title: Re: Lazy Admin Menu
Post by: dougiefresh on July 21, 2014, 04:12:10 PM
Quote from: ‽ on July 21, 2014, 03:51:26 PM
For now, sure. But if AdminMenu changes its behaviour in the future, it's entirely possible it might not work properly.
I guess when 2.1 becomes beta or maybe even final, I'll make an official version.  Until then, maybe it'll work, maybe it won't.  But I'm not changing the mod for 2.1 compatibility until it advances to the beta stage (at least)....
Title: Re: Lazy Admin Menu
Post by: margarett on July 21, 2014, 04:13:47 PM
Wise move ;)
Title: Re: Lazy Admin Menu
Post by: Ninja ZX-10RR on July 21, 2014, 04:17:27 PM
I like when it's "maybe it will work maybe it won't" but if it will steal my cookies and eat them I will uninstall it for sure
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.katzy.dsl.pipex.com%2FSmileys%2Ftaz.gif&hash=00fc7ad040f714c8dac264134639f56137d5c4c1)
Title: Re: Lazy Admin Menu
Post by: dougiefresh on July 21, 2014, 05:04:24 PM
Don't blame ya.....  Hold on....  You have cookies?  :P  WOW!!!!

I meant "maybe it'll work, maybe it won't" for 2.1.... not 2.0....  O:)
Title: Re: Lazy Admin Menu
Post by: Ninja ZX-10RR on July 21, 2014, 05:08:23 PM
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.katzy.dsl.pipex.com%2FSmileys%2Fmaxineinteresting.gif&hash=d6b96b2ea6707d4cd64ac991a69e150a25dd62cc) they are not really cookies but... :P
Title: Re: Lazy Admin Menu
Post by: Masterd on July 22, 2014, 05:54:39 AM
Quote from: K@ on July 21, 2014, 03:20:37 PM
I hope this is standard, in 2.1...

Personally I think that SMF should follow Google Chrome's philosophy. In it's core it should be ascetic. If someone needs more features there are mods like this one.
Title: Re: Lazy Admin Menu
Post by: NekoJonez on July 22, 2014, 06:05:49 AM
Does this add menu items that mods add?
Title: Re: Lazy Admin Menu
Post by: Arantor on July 22, 2014, 06:08:26 AM
In theory it should.
Title: Re: Lazy Admin Menu
Post by: NekoJonez on July 22, 2014, 06:10:11 AM
Good to know, since it's for that reason I might install this mod.
Title: Re: Lazy Admin Menu
Post by: Ninja ZX-10RR on July 22, 2014, 02:03:01 PM
I can witness that it does. :)
Title: Re: Lazy Admin Menu
Post by: Steve on July 23, 2014, 08:30:10 AM
I absolutely love this. Just installed it yesterday and wish I'd installed it sooner.
Title: Re: Lazy Admin Menu
Post by: Rk2910 on July 24, 2014, 08:02:52 PM
A very nice mod - thank you.
Title: Re: Lazy Admin Menu
Post by: NekoJonez on July 25, 2014, 04:58:58 AM
This is a beast mod! Extremely nice job.

Here is a suggestion. Can you make this for the moderation menu as well?
Also, maybe you could make this for all the options in the forum~ ?

Expand it beyond the admin menu. Since I honestly think that this could benefit SMF quite a bit.
Title: Re: Lazy Admin Menu
Post by: Arantor on July 25, 2014, 05:05:07 AM
The more menus you do the more performance intensive it gets, especially with some of the moderation menus.
Title: Re: Lazy Admin Menu
Post by: Burke ♞ Knight on July 25, 2014, 05:10:26 AM
Quote from: NekoJonez on July 22, 2014, 06:05:49 AM
Does this add menu items that mods add?

I just tested this mod on a test site, then installed SimplePortal, and the menu items show. :)
So I guess that means there's even more proof it does. ;)
Title: Re: Lazy Admin Menu
Post by: NekoJonez on July 25, 2014, 05:14:01 AM
Quote from: ‽ on July 25, 2014, 05:05:07 AM
The more menus you do the more performance intensive it gets, especially with some of the moderation menus.
Ahn, I see.




Quote from: BurkeKnight on July 25, 2014, 05:10:26 AM
Quote from: NekoJonez on July 22, 2014, 06:05:49 AM
Does this add menu items that mods add?

I just tested this mod on a test site, then installed SimplePortal, and the menu items show. :)
So I guess that means there's even more proof it does. ;)

I got huge error dumping due to Simple Portal. O.O
Title: Re: Lazy Admin Menu
Post by: Steve on July 25, 2014, 07:41:22 AM
Apparently this mod has an issue with themes other than the Curve theme as shown here:

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi1262.photobucket.com%2Falbums%2Fii614%2FOPStuph%2Fall2%2Flazyadminprob72514.png&hash=9b98c4d2752f4511c15273090803766041852d90)

Just a minor inconvenience though and the benefits outweigh it. :)
Title: Re: Lazy Admin Menu
Post by: Arantor on July 25, 2014, 07:45:22 AM
The main menu isn't really designed to support submenus all that well. Most themes don't do it very well at all.
Title: Re: Lazy Admin Menu
Post by: Steve on July 25, 2014, 07:50:01 AM
The problem here seems to be the length of the name of the mod 'Simple Audio Video Embedder'. It runs over into the next line. The same with 'Smiley and Message Icons'. Strictly a minor aesthetic issue.
Title: Re: Lazy Admin Menu
Post by: Arantor on July 25, 2014, 07:50:45 AM
Yup. The menu for your theme was never designed to handle anything so long.
Title: Re: Lazy Admin Menu
Post by: Steve on July 25, 2014, 08:23:46 AM
I was just told how to change it here and it works beautifully:

http://www.simplemachines.org/community/index.php?topic=395039.msg3724543#msg3724543

Can the title 'Smileys and Message Icons' be changed or does that start getting complicated (I don't do complicated :P )?
Title: Re: Lazy Admin Menu
Post by: Arantor on July 25, 2014, 08:25:29 AM
Admin.english.php:
$txt['smileys_manage'] = 'Smileys and Message Icons';

Just change the bit in quotes on the right. Careful if you decide to use & though.
Title: Re: Lazy Admin Menu
Post by: Steve on July 25, 2014, 08:31:24 AM
Perfect! I renamed it to 'Smileys/Message Icons' ... hopefully the / won't cause any problems.

Thanks for that!
Title: Re: Lazy Admin Menu
Post by: Arantor on July 25, 2014, 08:43:27 AM
Nope, / is fine. The special characters to watch out for in that situation are <, >, & and ' with attention to be paid to " as well.
Title: Re: Lazy Admin Menu
Post by: Steve on July 25, 2014, 08:48:12 AM
Thanks. You're a gentleman and a scholar and there's d*mn few of us left. :P
Title: Re: Lazy Admin Menu
Post by: Arantor on July 25, 2014, 08:49:24 AM
I resent that, as I am neither a gentleman or a scholar. :P ;D

I am simply me and anyone who doesn't like that can **** right off. Unfortunately they don't.
Title: Re: Lazy Admin Menu
Post by: Steve on July 25, 2014, 08:53:29 AM
Too funny! :D
Title: Re: Lazy Admin Menu
Post by: Arantor on July 25, 2014, 09:00:28 AM
I've had an interesting few days. Mind == blown.

Anyway so as to avoid derailing further...

One thing I would like to see, though I'm not sure it's in the scope of this mod, is to drop all the session ids in all the links because they're almost never needed.
Title: Re: Lazy Admin Menu
Post by: Antechinus on July 25, 2014, 06:55:44 PM
Quote from: Steve on July 25, 2014, 07:41:22 AM
Apparently this mod has an issue with themes other than the Curve theme as shown here:

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi1262.photobucket.com%2Falbums%2Fii614%2FOPStuph%2Fall2%2Flazyadminprob72514.png&hash=9b98c4d2752f4511c15273090803766041852d90)

Just a minor inconvenience though and the benefits outweigh it. :)

That's just bad CSS on that theme. Probably has a line-height set in px or something stupid like that.


Quote from: ‽ on July 25, 2014, 09:00:28 AMOne thing I would like to see, though I'm not sure it's in the scope of this mod, is to drop all the session ids in all the links because they're almost never needed.

Some of the admin links will need it. I've tried various ones with and without (server settings page needs it, for example).
Title: Re: Lazy Admin Menu
Post by: Arantor on July 26, 2014, 03:59:44 AM
That's kind of what I said ;) I'm aware that *some* need it but the vast majority don't.
Title: Re: Lazy Admin Menu
Post by: dougiefresh on July 27, 2014, 09:17:50 PM
Quote from: NekoJonez on July 25, 2014, 05:14:01 AM
Quote from: BurkeKnight on July 25, 2014, 05:10:26 AM
Quote from: NekoJonez on July 22, 2014, 06:05:49 AM
Does this add menu items that mods add?

I just tested this mod on a test site, then installed SimplePortal, and the menu items show. :)
So I guess that means there's even more proof it does. ;)

I got huge error dumping due to Simple Portal. O.O
You wanna send me the errors?  Maybe I can do something about them....  (File attachment is just fine for this purpose)
Title: Re: Lazy Admin Menu
Post by: kat on July 31, 2014, 06:19:39 AM
Just a wave, here...

If I try to go to Admin>Configuration>Current theme, with this mod, it doesn't take me there (At least, it doesn't on my test site).

It just sends me to Themes and Layout Settings.

No hassles, really. But, I thought you'd like to know. :)
Title: Re: Lazy Admin Menu
Post by: Arantor on July 31, 2014, 06:22:12 AM
That's because the main menu code doesn't care about the custom_url parameter that Current Theme uses. The only way to fix that is to iterate over everything before passing it to the main menu code to switch that out. Kinda ugly.
Title: Re: Lazy Admin Menu
Post by: kat on July 31, 2014, 06:25:20 AM
EEK!

Oddly enough, I wasn't after a fix, though. It was just something that I thought the author might want to be aware of, if he wasn't, already, tiz all. :)
Title: Re: Lazy Admin Menu
Post by: Arantor on July 31, 2014, 06:26:59 AM
Yeah, I'm just saying what would be needed to fix it should the author want to ;)
Title: Re: Lazy Admin Menu
Post by: kat on July 31, 2014, 06:30:33 AM
So good to doink two feathery things with one rocky thing... :)
Title: Re: Lazy Admin Menu
Post by: dougiefresh on August 01, 2014, 02:04:20 PM
Uploaded v1.2 - July 21th, 2014
o Custom URLs in admin menu are now represented in the top menu...
o Admin top menu will not be rebuilt while you are in the Admin area.
o Moved caching code to Subs-LazyAdmin.php to speed up admin menu replacement...
o Modified code to preserve error log text from original menu...
o Session ID information attached to the end of each link so all links work properly
o Fixed issue where a certain feature wasn't enabled, but was shown anyways...
o Extended caching time on admin area menu from 2 minutes to 1 day...
o Fixed undeclared variable issue when using SSI.php...
o Removed one operation that caused multiple errors with Simple Portal....

Many thanks for the bug reports and solution(s) for the bug reports!  I apologize for my late response, but work has been brutal lately and I've been exhausted....
Title: Re: Lazy Admin Menu
Post by: dougiefresh on August 01, 2014, 03:44:53 PM
Damn.... Version 1.4 EDIT: Version 1.2 does not address the cause of the multiple errors with Simple Portal.....   I apologize about reporting that it does.  I will work on it some more....
Title: Re: Lazy Admin Menu
Post by: dougiefresh on August 01, 2014, 04:10:59 PM
Uploaded v1.3 - August 1st, 2014
o Edited Simple Portal subs file to force loading of the language file....
Title: Re: Lazy Admin Menu
Post by: Ninja ZX-10RR on August 02, 2014, 08:45:44 AM
Cool, just updated and it... Doesn't work at all now D: no errors in error log :( tyniportal is not installed here, installation successful, running SMF 2.0.8...
Maybe I still have the older version in my download folder... :(
Title: Re: Lazy Admin Menu
Post by: Steve on August 02, 2014, 08:56:59 AM
I had a problem with the latest version as well and had to go back to 1.1 ... can't remember the error though ... will try to recreate the problem later today.
Title: Re: Lazy Admin Menu
Post by: Ninja ZX-10RR on August 02, 2014, 08:59:50 AM
I kindly ask dougie if he can post as an attachment one of the previous versions because unfortunately I don't have it anymore in my download folder :( and no one is allowed to redistribute it so I can't ask...
Title: Re: Lazy Admin Menu
Post by: margarett on August 02, 2014, 09:13:21 AM
It is allowed to redistributed, yes ;)
Title: Re: Lazy Admin Menu
Post by: Ninja ZX-10RR on August 02, 2014, 09:19:17 AM
Oh gosh, my bad I have misread the post, I was reading another license agreement =_= Indeed creative commons allows redistribution so anyone is free to redistribute it with no troubles. Cool.
In my defense I had troubles once for redistributing a mod included in a package and I didn't have the rights to do it so that's why I am so careful about this. Thanks margarett for waking me up xD
Title: Re: Lazy Admin Menu
Post by: Steve on August 02, 2014, 09:26:07 AM
It's on it's way to you then. :D
Title: Re: Lazy Admin Menu
Post by: dougiefresh on August 02, 2014, 05:17:06 PM
Quote from: Steve on August 02, 2014, 08:56:59 AM
I had a problem with the latest version as well and had to go back to 1.1 ... can't remember the error though ... will try to recreate the problem later today.
It would be VERY helpful to know what the problem is.....  As for the attachment request, here it is.
Title: Re: Lazy Admin Menu
Post by: Steve on August 02, 2014, 06:31:31 PM
D*mmit ... I wish I had written it down. I re-installed 1.3 (which says 1.2 after you install it) and don't see a problem at the moment. Will leave it in for awhile and see if I come up with the problem I had again.

And I would have done this earlier but the wife kept me busy working on my honey-do list. :P
Title: Re: Lazy Admin Menu
Post by: dougiefresh on August 02, 2014, 06:49:46 PM
Quote from: Steve on August 02, 2014, 08:56:59 AM
I had a problem with the latest version as well and had to go back to 1.1 ... can't remember the error though ... will try to recreate the problem later today.
Quote from: NinjaZX10RR on August 02, 2014, 08:45:44 AM
Cool, just updated and it... Doesn't work at all now D: no errors in error log :( tyniportal is not installed here, installation successful, running SMF 2.0.8...
Maybe I still have the older version in my download folder... :(
If the problem is that the Admin menu goes back to the stock admin menu when you are IN the admin area, then that is on purpose, mostly to prevent the menu from repeatedly been recached and rebuilt every page load.  I don't have any ideas how to stop this from occurring.... (yet)

Confirmed that there is a bug in v1.3 (and probably v1.2)....  I'm looking into it....
Title: Re: Lazy Admin Menu
Post by: dougiefresh on August 02, 2014, 07:06:27 PM
Uploaded v1.4 - August 2nd, 2014
o Corrected some bad caching code in Admin.php....
o Reverted some code back to allow admin top menu to be rebuilt while in the Admin area
Title: Re: Lazy Admin Menu
Post by: Steve on August 02, 2014, 07:31:00 PM
So far so good. :D
Title: Re: Lazy Admin Menu
Post by: Arantor on August 02, 2014, 07:32:15 PM
This is the joy of modding, finding ever more complicated and tricksy variations to have to patch around.

Nice job :)
Title: Re: Lazy Admin Menu
Post by: dougiefresh on August 03, 2014, 08:48:09 AM
Thanks..... It ain't been easy, especially with all the other $#@% that's been going on.....
Title: Re: Lazy Admin Menu
Post by: Arantor on August 03, 2014, 08:56:19 AM
Welcome to modding a monolith environment. There's so many edge cases it's not even funny :(
Title: Re: Lazy Admin Menu
Post by: Hj Ahmad Rasyid Hj Ismail on August 03, 2014, 09:38:34 AM
Keep it up dougiefresh. You got skill and talent. You can do it. :)
Title: Re: Lazy Admin Menu
Post by: kat on August 12, 2014, 06:47:11 AM
As an aside, should you happen to have BK's TopMenu (http://custom.simplemachines.org/mods/index.php?mod=3788) mod installed, this seems to work, with that, which is kinda groovy. :)
Title: Re: Lazy Admin Menu
Post by: NekoJonez on August 17, 2014, 06:39:42 AM
I'm sorry to say but I still got a lot of errors with Simple Portal, do you want to see them?




This might help you: The errors are dropped because the mod can't find the text strings for the menu. Since the child menu appears empty on my screen. And then is when the errors come.

So, I will take a look if I can't help you with that.




It seems the mod can't find the strings in SPortalAdmin.english.php , maybe there is the problem?

Title: Re: Lazy Admin Menu
Post by: dougiefresh on August 17, 2014, 08:53:16 AM
Uploaded v1.5 - August 17th, 2014
o Forced loading of Simple Portal language file if logged in user is an admin

Thank you for the bug report, NekoJonez!!!
Title: Re: Lazy Admin Menu
Post by: NekoJonez on August 19, 2014, 01:32:27 PM
Hey, everything to help people out :)
Title: Re: Lazy Admin Menu
Post by: Ninja ZX-10RR on August 19, 2014, 04:32:20 PM
Again dougie it doesn't work :( I haven't got SImplePortal installed and shows an error with SUbs-Portal (a file that I don't have and that is being created during the installation), and if I just go on the menu just doesn't show up like the other time :( no errors in error log, SMF 2.0.8 installed and default theme. *reverting again to 1.1*
Title: Re: Lazy Admin Menu
Post by: dougiefresh on August 20, 2014, 01:20:50 PM
Quote from: Ninja ZX-10RR on August 19, 2014, 04:32:20 PM
Again dougie it doesn't work :( I haven't got SImplePortal installed and shows an error with SUbs-Portal (a file that I don't have and that is being created during the installation), and if I just go on the menu just doesn't show up like the other time :( no errors in error log, SMF 2.0.8 installed and default theme. *reverting again to 1.1*
I tested it (again) against a clean no-mods-installed copy of SMF 2.0.8.  With exception of the SimplePortal part of the mod, it installed fine and works fine. Since I'm not sure what is going on with your install, I am going to request a picture of what is going on when you click on the Admin link in the top menu....
Title: Re: Lazy Admin Menu
Post by: Ninja ZX-10RR on August 20, 2014, 04:51:36 PM
The usual as the mod wasn't installed. :(

I can also provide my mods list but... As the 1.1 was working perfectly I don't think it's related to some sort of incompatibility...
*reverts back again to 1.1*
Title: Re: Lazy Admin Menu
Post by: dougiefresh on August 20, 2014, 05:55:07 PM
Quote from: Ninja ZX-10RR on August 20, 2014, 04:51:36 PM
The usual as the mod wasn't installed. :(
Um....  The picture isn't helpful if the mod isn't installed on the forum when you take the screenshot.....

Quote from: Ninja ZX-10RR on August 20, 2014, 04:51:36 PM
I can also provide my mods list but... As the 1.1 was working perfectly I don't think it's related to some sort of incompatibility...
*reverts back again to 1.1*
Indeed, a list of mods might be helpful.
Title: Re: Lazy Admin Menu
Post by: Ninja ZX-10RR on August 20, 2014, 06:09:50 PM
Quote from: dougiefresh on August 20, 2014, 05:55:07 PM
Quote from: Ninja ZX-10RR on August 20, 2014, 04:51:36 PM
The usual as the mod wasn't installed. :(
Um....  The picture isn't helpful if the mod isn't installed on the forum when you take the screenshot.....

Quote from: Ninja ZX-10RR on August 20, 2014, 04:51:36 PM
I can also provide my mods list but... As the 1.1 was working perfectly I don't think it's related to some sort of incompatibility...
*reverts back again to 1.1*
Indeed, a list of mods might be helpful.
You misunderstood LOL the mod was installed when I got that screenshot. What I tried to say is that it doesn't change anything if I install the 1.5 or I uninstall it, it's the same thing, it just doesn't work at all and like I said I don't really think that it's related to a modification as the 1.1 version works as it should :)
Anyway as requested:
1. Anonymous Boards 1.1 N/A [ Install Mod ] [ List Files ] [ Delete ]
2. Browser Language Detection and Loading 0.1.0 N/A [ Install Mod ] [ List Files ] [ Delete ]
3. CheckBeforePosting 0.3.3 N/A [ Install Mod ] [ List Files ] [ Delete ]
4. detectBrowser Update 1.0.1 N/A [ Install Mod ] [ List Files ] [ Delete ]
5. Enhanced PM System 1.4 N/A [ Install Mod ] [ List Files ] [ Delete ]
6. nneonneo's AJAX ShoutBox 1.22 N/A [ Install Mod ] [ List Files ] [ Delete ]
7. Slash through Banned Usernames 2.0 N/A [ Install Mod ] [ List Files ] [ Delete ]
8. SMF Likes Plus 1.5 N/A [ Install Mod ] [ List Files ] [ Delete ]
9. User Agreement Update 1.0.3 N/A [ Install Mod ] [ List Files ] [ Delete ]
10. Allocate More RAM mod 1.0  April 19, 2014, 06:23:02 PM [ Uninstall ] [ List Files ] [ Delete ]
11. Delete Spam Posts 1.6  April 21, 2014, 06:33:04 PM [ Uninstall ] [ List Files ] [ Delete ]
12. ShowBannedMessage 1.3  April 21, 2014, 06:35:20 PM [ Uninstall ] [ List Files ] [ Delete ]
13. Move Topic Notification 1.2  April 21, 2014, 06:36:28 PM [ Uninstall ] [ List Files ] [ Delete ]
14. Bot Buster 1.1  April 21, 2014, 06:41:43 PM [ Uninstall ] [ List Files ] [ Delete ]
15. Rank Image Drop Down 1.0  April 21, 2014, 06:43:16 PM [ Uninstall ] [ List Files ] [ Delete ]
16. open mod reports 1.0  April 21, 2014, 06:43:56 PM [ Uninstall ] [ List Files ] [ Delete ]
17. Admin Notes 2.0  April 21, 2014, 06:45:28 PM [ Uninstall ] [ List Files ] [ Delete ]
18. Karma/Rep Limit 1.0.1  April 21, 2014, 06:48:26 PM [ Uninstall ] [ List Files ] [ Delete ]
19. Anti Bot: Are You Human/Bot? 3.0  April 21, 2014, 06:49:20 PM [ Uninstall ] [ List Files ] [ Delete ]
20. Quick Ban on Account Delete 1.0.1  April 22, 2014, 02:07:56 AM [ Uninstall ] [ List Files ] [ Delete ]
21. SMFPacks Shoutbox 1.0.5  April 22, 2014, 02:08:43 AM [ Uninstall ] [ List Files ] [ Delete ]
22. Order Custom Profile Fields 1.1.1  April 22, 2014, 02:26:56 AM [ Uninstall ] [ List Files ] [ Delete ]
23. Disable to send EMail with Forum-System for Users lower than Admin 1.0  April 22, 2014, 02:59:53 AM [ Uninstall ] [ List Files ] [ Delete ]
24. TalkBox3 2.0  April 22, 2014, 06:11:20 AM [ Uninstall ] [ List Files ] [ Delete ]
25. last login 2.9  April 23, 2014, 04:44:41 AM [ Uninstall ] [ List Files ] [ Delete ]
26. Next Post Level 1.3.3  April 24, 2014, 11:27:35 PM [ Uninstall ] [ List Files ] [ Delete ]
27. Post History 1.03  April 25, 2014, 02:31:33 AM [ Uninstall ] [ List Files ] [ Delete ]
28. Topic Solved 1.1.1  April 26, 2014, 06:35:12 AM [ Uninstall ] [ List Files ] [ Delete ]
29. Bad Behavior mod 1.5.18  April 26, 2014, 04:05:42 PM [ Uninstall ] [ List Files ] [ Delete ]
30. CloudFlare 1.1  April 26, 2014, 04:58:14 PM [ Uninstall ] [ List Files ] [ Delete ]
31. Users Online Today 2.1  April 26, 2014, 09:11:12 PM [ Uninstall ] [ List Files ] [ Delete ]
32. Increase Number of Visitors (cheat) 1.0  April 26, 2014, 11:15:20 PM [ Uninstall ] [ List Files ] [ Delete ]
33. Ban List 2.0  April 27, 2014, 01:48:40 AM [ Uninstall ] [ List Files ] [ Delete ]
34. 'Read the Rules' Link Above Post Button 2.0  April 27, 2014, 02:28:50 AM [ Uninstall ] [ List Files ] [ Delete ]
35. Enhanced PM Popup 1.0.1  April 27, 2014, 02:54:16 AM [ Uninstall ] [ List Files ] [ Delete ]
36. Advanced Signature 0.3.0 beta 1  April 29, 2014, 04:21:19 AM [ Uninstall ] [ List Files ] [ Delete ]
37. Sortable Packages (and Installed Time) 1.3.5  April 30, 2014, 01:45:39 AM [ Uninstall ] [ List Files ] [ Delete ]
38. Anti-Spam Links 1.0.1  April 30, 2014, 02:36:24 PM [ Uninstall ] [ List Files ] [ Delete ]
39. Add Facebook Like to Posts 1.1  May 01, 2014, 12:40:38 AM [ Uninstall ] [ List Files ] [ Delete ]
40. PM to New Members 1.2  May 02, 2014, 06:25:55 PM [ Uninstall ] [ List Files ] [ Delete ]
41. Allow Access while in Maintenance Mode 1.2  May 03, 2014, 09:19:17 PM [ Uninstall ] [ List Files ] [ Delete ]
42. Activity in Profile 1.1  May 03, 2014, 09:27:56 PM [ Uninstall ] [ List Files ] [ Delete ]
43. Ad Managment 3.2  May 03, 2014, 09:54:28 PM [ Uninstall ] [ List Files ] [ Delete ]
44. Custom Copyright 1.0.4  May 04, 2014, 02:57:46 AM [ Uninstall ] [ List Files ] [ Delete ]
45. Fake Topic Views 0.1  May 06, 2014, 12:01:47 AM [ Uninstall ] [ List Files ] [ Delete ]
46. Ban Filter 1.0  May 06, 2014, 12:05:46 AM [ Uninstall ] [ List Files ] [ Delete ]
47. Ohara YouTube Embed 1.2  May 09, 2014, 09:12:30 AM [ Uninstall ] [ List Files ] [ Delete ]
48. Bookmarks 2.5  May 17, 2014, 12:36:49 AM [ Uninstall ] [ List Files ] [ Delete ]
49. Global Topics 2.2  May 20, 2014, 12:30:45 AM [ Uninstall ] [ List Files ] [ Delete ]
50. Register Redirect 1.0  May 28, 2014, 10:20:43 AM [ Uninstall ] [ List Files ] [ Delete ]
51. Install & Uninstall Mods Quickly 1.4  May 31, 2014, 09:49:56 PM [ Uninstall ] [ List Files ] [ Delete ]
52. Tinypic Plugin 1.0.0  May 31, 2014, 09:51:08 PM [ Uninstall ] [ List Files ] [ Delete ]
53. SimpleDesk - Integrated Helpdesk for Simple Machines Forum 2.0  May 31, 2014, 10:37:17 PM [ Uninstall ] [ List Files ] [ Delete ]
54. To Buddies 1.01  June 01, 2014, 11:06:29 PM [ Uninstall ] [ List Files ] [ Delete ]
55. Time Online on Memberlist 1.00  June 04, 2014, 06:30:40 AM [ Uninstall ] [ List Files ] [ Delete ]
56. Profile Song Player 1.0 Beta  June 06, 2014, 05:42:26 PM [ Uninstall ] [ List Files ] [ Delete ]
57. Permissions Info 1.6  June 06, 2014, 05:48:00 PM [ Uninstall ] [ List Files ] [ Delete ]
58. Buddies List 1.0.1  June 10, 2014, 12:17:24 AM [ Uninstall ] [ List Files ] [ Delete ]
59. Ignore Topics 2.3  June 14, 2014, 12:33:12 AM [ Uninstall ] [ List Files ] [ Delete ]
60. SMF 2.0.8 Update 1.0  June 19, 2014, 01:56:09 AM [ Uninstall ] [ List Files ] [ Delete ]
61. Caps_Lock_Detection_on_Login 1.1.0.2  June 21, 2014, 09:45:33 AM [ Uninstall ] [ List Files ] [ Delete ]
62. SimpleColorizer 1.1  June 23, 2014, 08:46:32 PM [ Uninstall ] [ List Files ] [ Delete ]
63. Board Index Unread Icon Fix 1.0  June 27, 2014, 02:28:34 PM [ Uninstall ] [ List Files ] [ Delete ]
64. Country Flags 2.1  June 28, 2014, 05:27:51 PM [ Uninstall ] [ List Files ] [ Delete ]
65. PM Settings 1.0.1  June 29, 2014, 09:13:36 PM [ Uninstall ] [ List Files ] [ Delete ]
66. Undeletables topics PMs and users 0.1.5  June 30, 2014, 05:09:57 AM [ Uninstall ] [ List Files ] [ Delete ]
67. Working top level links for drop menus 1.0  July 04, 2014, 04:21:40 AM [ Uninstall ] [ List Files ] [ Delete ]
68. Email Inactive Users 1.1  July 15, 2014, 02:10:39 PM [ Uninstall ] [ List Files ] [ Delete ]
69. Similar Topics 0.6  July 15, 2014, 03:08:26 PM [ Uninstall ] [ List Files ] [ Delete ]
70. Custom Pages and Tabs (2) SMF 2 - RC3 1.1  July 15, 2014, 06:06:40 PM [ Uninstall ] [ List Files ] [ Delete ]
71. Highslide 4 SMF 0.8.1  July 19, 2014, 03:37:10 PM [ Uninstall ] [ List Files ] [ Delete ]
72. Add [li] Button 1.0  July 24, 2014, 05:49:39 PM [ Uninstall ] [ List Files ] [ Delete ]
73. Multiple QA support 1.0.1  July 24, 2014, 05:53:51 PM [ Uninstall ] [ List Files ] [ Delete ]
74. Add Honey Pot to Track IP 1.1  August 04, 2014, 03:56:46 PM [ Uninstall ] [ List Files ] [ Delete ]
75. Misc Anti Spam 1.0  August 04, 2014, 04:00:43 PM [ Uninstall ] [ List Files ] [ Delete ]
76. Stop Forum Spam 1.0  August 04, 2014, 04:06:56 PM [ Uninstall ] [ List Files ] [ Delete ]
77. Word Censor List 1.1  August 04, 2014, 06:29:11 PM [ Uninstall ] [ List Files ] [ Delete ]
78. Better Profile Menu 1.2  August 06, 2014, 06:29:50 AM [ Uninstall ] [ List Files ] [ Delete ]
79. Personalized BBC 1.5  August 06, 2014, 06:46:24 AM [ Uninstall ] [ List Files ] [ Delete ]
80. Prevent Topic View Increase by Author 1.0  August 06, 2014, 06:51:58 AM [ Uninstall ] [ List Files ] [ Delete ]
81. Confirmation message to Mark as Read 1.00  August 06, 2014, 06:53:27 AM [ Uninstall ] [ List Files ] [ Delete ]
82. Add [nobbc] button 1.1  August 06, 2014, 06:58:31 AM [ Uninstall ] [ List Files ] [ Delete ]
83. Invitation Message In Your Face (IMIYF) 0.3.2  August 06, 2014, 07:12:18 AM [ Uninstall ] [ List Files ] [ Delete ]
84. Admin Ban Button in Post 3.0  August 06, 2014, 07:38:48 AM [ Uninstall ] [ List Files ] [ Delete ]
85. Change All Subjects 1.3  August 06, 2014, 07:46:52 AM [ Uninstall ] [ List Files ] [ Delete ]
86. Drafts 2.0.5  August 06, 2014, 08:23:17 PM [ Uninstall ] [ List Files ] [ Delete ]
87. Minimum Characters for Search 1.2.1  August 06, 2014, 08:43:28 PM [ Uninstall ] [ List Files ] [ Delete ]
88. Member Color Link 3.1  August 06, 2014, 09:26:41 PM [ Uninstall ] [ List Files ] [ Delete ]
89. Order Stickied Topics 1.01  August 06, 2014, 09:38:34 PM [ Uninstall ] [ List Files ] [ Delete ]
90. Referrals System 3.1  August 06, 2014, 09:45:02 PM [ Uninstall ] [ List Files ] [ Delete ]
91. Annoy User 1.2.4  August 06, 2014, 11:24:46 PM [ Uninstall ] [ List Files ] [ Delete ]
92. Enhancements to reattribute posts 1.5.6  August 06, 2014, 11:34:33 PM [ Uninstall ] [ List Files ] [ Delete ]
93. Restrict Email Providers on Registration 1.2  August 06, 2014, 11:40:08 PM [ Uninstall ] [ List Files ] [ Delete ]
94. Groups See Hidden Users 1.0  August 06, 2014, 11:51:30 PM [ Uninstall ] [ List Files ] [ Delete ]
95. BBC In Custom Title 2.0r2 - SMF 2.0.x August 07, 2014, 12:08:24 AM [ Uninstall ] [ List Files ] [ Delete ]
96. Integration Hooks Report 1.5.3  August 07, 2014, 10:03:01 PM [ Uninstall ] [ List Files ] [ Delete ]
97. SA Chat 0.1.2 Rev102 August 07, 2014, 10:05:51 PM [ Uninstall ] [ List Files ] [ Delete ]
98. Reason For Editing Mod 2.3.2  August 08, 2014, 03:32:01 PM [ Uninstall ] [ List Files ] [ Delete ]
99. Lazy Admin Menu 1.1  August 20, 2014, 10:54:37 PM [ Uninstall ] [ List Files ] [ Delete ]

Yeah they are many, but no errors in the error log 8)
Title: Re: Lazy Admin Menu
Post by: dougiefresh on August 21, 2014, 04:57:30 PM
Uploaded v1.6 - August 21th, 2014
o Reverted some code back to v1.1 that detects whether Admin menu should be modified.




@Ninja ZX-10RR: Thank you for the bug report!

I looked to see what was different between v1.5 and v1.1 and found that the line making the decision whether to modify the Admin menu had been changed.  I also looked at Subs.php and found that it uses the same variable that v1.1 uses, but v1.5 uses a different one.  Why the changed line makes much difference, I dunno.  But I reverted a single line of code back to version 1.1 in order to properly modify the Admin menu.....  This should fix the issue.  Sorry it took so long for me to figure out what was happening.....

P.S.: If you want, you can also remove your mod list from the above post, since I also didn't pay attention to your statement that the mod list is irrelevant to the issue at hand.....
Title: Re: Lazy Admin Menu
Post by: Steve on August 21, 2014, 05:56:49 PM
Works a treat for me now. :D
Title: Re: Lazy Admin Menu
Post by: Ninja ZX-10RR on August 21, 2014, 06:13:48 PM
Quote from: dougiefresh on August 21, 2014, 04:57:30 PM
@Ninja ZX-10RR: Thank you for the bug report!
You're welcome! Thank you for the mod actually!

Quote from: dougiefresh on August 21, 2014, 04:57:30 PM
This should fix the issue.
It does. N1.
 
Quote from: dougiefresh on August 21, 2014, 04:57:30 PM
Sorry it took so long for me to figure out what was happening.....
Shut up you rock dude it took you less than a day! Awesome!

Quote from: dougiefresh on August 21, 2014, 04:57:30 PM
P.S.: If you want, you can also remove your mod list from the above post, since I also didn't pay attention to your statement that the mod list is irrelevant to the issue at hand.....
Don't worry ;)
Title: Re: Lazy Admin Menu
Post by: dougiefresh on August 21, 2014, 07:42:08 PM
Quote from: Ninja ZX-10RR on August 21, 2014, 06:13:48 PM
Quote from: dougiefresh on August 21, 2014, 04:57:30 PM
Sorry it took so long for me to figure out what was happening.....
Shut up you rock dude it took you less than a day! Awesome!
Actually, it's more like a month.....  But who's counting!  :P
Title: Re: Lazy Admin Menu
Post by: Ninja ZX-10RR on August 25, 2014, 09:59:13 PM
The mod works just fine since the last update but I found something that made me swear multiple times... When I point the mouse over the menu created by this mod it works as intended but if I get even only a pixel out of it it just closes and leaves my pointer in mid air often making me click something wrong that was hidden by the menu a second before -.-" is there a way to put some kind of a delay before closing the menu? Thanks in advance dougie, love it anyway :)
Title: Re: Lazy Admin Menu
Post by: Arantor on August 26, 2014, 03:13:59 AM
Same thing happens in all standard SMF menus and is somewhat hard to fix.
Title: Re: Lazy Admin Menu
Post by: Ninja ZX-10RR on August 26, 2014, 03:29:51 AM
But in this case it's worse since the menu is on the top and if I scroll the page I often get out of it despite I try not to >_<
Title: Re: Lazy Admin Menu
Post by: dougiefresh on August 26, 2014, 04:39:26 PM
Quote from: ♦ Ninja ZX-10RR ♦ on August 25, 2014, 09:59:13 PM
The mod works just fine since the last update but I found something that made me swear multiple times... When I point the mouse over the menu created by this mod it works as intended but if I get even only a pixel out of it it just closes and leaves my pointer in mid air often making me click something wrong that was hidden by the menu a second before -.-" is there a way to put some kind of a delay before closing the menu? Thanks in advance dougie, love it anyway :)
I don't feel like this is within the already-defined scope of this mod....  I'd have to write something new if I were to tackle that problem, and chances are pretty good it would conflict with anything else using jQuery and the like.....
Title: Re: Lazy Admin Menu
Post by: Ninja ZX-10RR on August 26, 2014, 05:38:55 PM
Yeah I already understood that from Arantor's message >_< that's a pity though. Anyway still thank you for the mod as it's superb :) and no worries it was just a suggestion, if it can't be done then whatever :)
Title: Re: Lazy Admin Menu
Post by: dougiefresh on August 27, 2014, 01:42:32 PM
Quote from: ♦ Ninja ZX-10RR ♦ on August 26, 2014, 05:38:55 PM
no worries it was just a suggestion, if it can't be done then whatever :)
Never said it can't be done....  It just won't be a part of this mod.
Title: Re: Lazy Admin Menu
Post by: Ninja ZX-10RR on August 27, 2014, 02:55:44 PM
Quote from: ‽ on August 26, 2014, 03:13:59 AM
is somewhat hard to fix.
If Arantor says that it's quite hard to fix everywhere I think of it as "not doable without inhuman effort"  :)
Title: Re: Lazy Admin Menu
Post by: Arantor on August 27, 2014, 02:57:21 PM
It's not so much that it's technically difficult in its own right - because against Curve on its own it's not entirely terrible. But from a mod support angle, it's significantly more difficult because of how all the other things interact with it in other themes.
Title: Re: Lazy Admin Menu
Post by: NekoJonez on September 07, 2014, 08:51:10 AM
I now have only massive error log dumping from the global moderators :/

It's those Simple Portal errors again. :c
Title: Re: Lazy Admin Menu
Post by: dougiefresh on September 07, 2014, 10:26:04 AM
Uploaded v1.7 - September 7th, 2014
o Modified Simple Portal language loading code so that it is loaded for mods and global mods.  Thanks, NekoJonez (http://www.simplemachines.org/community/index.php?action=profile;u=322341)!
Title: Re: Lazy Admin Menu
Post by: kat on September 07, 2014, 11:06:08 AM
Works a treat, too!

Thanks to Neko and you, Dougi!
Title: Re: Lazy Admin Menu
Post by: Steve on September 07, 2014, 12:10:40 PM
I'm assuming those of us who don't use Simple Portal need not update, yes?
Title: Re: Lazy Admin Menu
Post by: dougiefresh on September 07, 2014, 03:12:10 PM
Quote from: Steve on September 07, 2014, 12:10:40 PM
I'm assuming those of us who don't use Simple Portal need not update, yes?
That is correct. 

QuoteMy exercise routine consists of diddly sqauts and 12 oz curls.
@Steve: Btw, love your signature!
Title: Re: Lazy Admin Menu
Post by: Steve on September 07, 2014, 04:24:03 PM
Regarding sig ... I cannot lie! lol
Title: Re: Lazy Admin Menu
Post by: dougiefresh on September 08, 2014, 09:02:56 AM
Uploaded v1.8 - September 8th, 2014
o Bug fix for v1.7 did not include globalized variable $user_info within function.

Once again, users that do not have SimplePortal installed do not need to upgrade.
Title: Re: Lazy Admin Menu
Post by: kat on September 08, 2014, 09:34:26 AM
Heh... Updates coming along more often than a #144 bus. ;)

Again, went on without any hassles and works a treat! :)
Title: Re: Lazy Admin Menu
Post by: Hj Ahmad Rasyid Hj Ismail on September 08, 2014, 09:41:06 AM
Lols. I'd also say that were updated very fast indeed. Gread job dougiefresh.
Title: Re: Lazy Admin Menu
Post by: dougiefresh on September 08, 2014, 10:18:09 AM
:-X Yeah, well, I wish I could've remembered to check to make sure that variable was declared global before trying to use it....   :P
Title: Re: Lazy Admin Menu
Post by: kat on September 08, 2014, 10:21:55 AM
You fixed it, when it was noticed.

Can't say fairer than that! :)
Title: Re: Lazy Admin Menu
Post by: Hj Ahmad Rasyid Hj Ismail on September 08, 2014, 10:27:33 AM
Quote from: dougiefresh on September 08, 2014, 10:18:09 AM
:-X Yeah, well, I wish I could've remembered to check to make sure that variable was declared global before trying to use it....   :P
Don't worry that much. I too sometimes did the same mistake myself.
Title: Re: Lazy Admin Menu
Post by: Arantor on September 08, 2014, 11:32:18 AM
Don't forget you can always be cheeky and use $GLOBALS to avoid that sort of fun and games if you want to reduce edits ;)

$GLOBALS['modSettings'] for example.
Title: Re: Lazy Admin Menu
Post by: Rk2910 on September 14, 2014, 02:14:17 PM
Hi Dougie - thanks for picking up this Tip and making a mod of it - it's great.  O:)
I just installed a 2.0.8 theme (Blue Shame) and the Lazy mod doesn't seem to work the way it does on the other themes - seems like the submenu of each menu item does not go out to the side, it shows up below the menu item and that doesn't allow you to pick anything from it. 
Is there anything I can change in the code to help it work on this theme?
Title: Re: Lazy Admin Menu
Post by: dougiefresh on September 14, 2014, 06:25:46 PM
Quote from: Rk2910 on September 14, 2014, 02:14:17 PM
Hi Dougie - thanks for picking up this Tip and making a mod of it - it's great.  O:)
I just installed a 2.0.8 theme (Blue Shame) and the Lazy mod doesn't seem to work the way it does on the other themes - seems like the submenu of each menu item does not go out to the side, it shows up below the menu item and that doesn't allow you to pick anything from it. 
Is there anything I can change in the code to help it work on this theme?
I wouldn't think so.  That is a theme-specific issue.  The solution is probably going to be found in the CSS files of that theme....  You might wanna try asking the author of the theme.
Title: Re: Lazy Admin Menu
Post by: Rk2910 on September 14, 2014, 07:09:58 PM
Ok, will do - thanks again for the Mod Dougie 8)
Title: Re: Lazy Admin Menu
Post by: Steve on October 03, 2014, 11:25:08 AM
Hey DF ... I love this mod!

I do have a question though. Before the mod, the Admin button on the index page would show the number of errors in the error log like this: Admin (xx)

After installing your mod, one has to open the menu until the error log shows to see that number.

Any chance of making the number of errors show on the top level Admin button like it used to. The way it is now, I forget to check the log because I don't see there are errors right away.

If it involves significant code changes, don't bother. It's not a big deal and I can certainly live without it.

Again, great mod! :D
Title: Re: Lazy Admin Menu
Post by: Ninja ZX-10RR on October 03, 2014, 03:09:18 PM
Quote from: Steve on October 03, 2014, 11:25:08 AM
I do have a question though. Before the mod, the Admin button on the index page would show the number of errors in the error log like this: Admin (xx)
:o it doesn't in a default SMF install AFAIK... :o
Title: Re: Lazy Admin Menu
Post by: dougiefresh on October 03, 2014, 04:57:58 PM
@Steve: What mod do you have installed that does that?  Cause, as Ninja ZX-10RR said, core SMF doesn't do that....

EDIT: The mod attempts to save the text for the error log line in the original Admin menu before making it's changes.  The mod I use to report the number of errors in the log is Error Log Counter (http://custom.simplemachines.org/mods/index.php?mod=2441).  But my mod doesn't change the top menu text of the Admin menu, so that SHOULDN'T be effected by this mod....
Title: Re: Lazy Admin Menu
Post by: Steve on October 03, 2014, 07:13:07 PM
Oops ... I guess this got installed when I initially got my board set up ... it's this mod that displays the error number:

http://custom.simplemachines.org/mods/index.php?mod=3481
Title: Re: Lazy Admin Menu
Post by: dougiefresh on October 04, 2014, 04:53:38 PM
I just installed the DevCenter (http://custom.simplemachines.org/mods/index.php?mod=3481) mod on a clean SMF 2.0.9 install, then Lazy Admin Menu.  On my system, the Admin menu retains the number of errors like before installing the Lazy Admin Menu.  But after clearing the error log, the Admin text doesn't change back.....  Lemme look into this....

EDIT: Found what's causing this.  Fixed it by changing what part of the admin menu the mod caches....
Title: Re: Lazy Admin Menu
Post by: dougiefresh on October 04, 2014, 05:05:49 PM
Uploaded v1.9 - October 4th, 2014
o Changed caching code from caching entire admin menu to only the sub_buttons of the admin menu.
Title: Re: Lazy Admin Menu
Post by: Ninja ZX-10RR on October 04, 2014, 05:16:43 PM
Omg, how could you do it THIS fast? :o
Title: Re: Lazy Admin Menu
Post by: Steve on October 04, 2014, 05:48:21 PM
I don't see what the difference is? Nothing seems to have changed for me. :(
Title: Re: Lazy Admin Menu
Post by: dougiefresh on October 04, 2014, 07:45:15 PM
Quote from: ♦ Ninja ZX-10RR ♦ on October 04, 2014, 05:16:43 PM
Omg, how could you do it THIS fast? :o
I'd love to say "MAGIC", but that's a lie.....  The mod was caching the entire admin menu entry, instead of just what the mod rebuilds....  So I changed what it cached...

Quote from: Steve on October 04, 2014, 05:48:21 PM
I don't see what the difference is? Nothing seems to have changed for me. :(
And you won't unless you are running the DevCenter (http://custom.simplemachines.org/mods/index.php?mod=3481) mod, or a similar mod that makes changes to the Admin top menu TITLE....    See my response to ♦ Ninja ZX-10RR ♦  :P
Title: Re: Lazy Admin Menu
Post by: NekoJonez on October 05, 2014, 08:17:13 AM
I found another bug with SimplePortal but I don't know what you can do about it. :/

Because one of my members, who isn't an admin, helps me with editing the news. So, he has access to the admin center. But those errors still drop...
Title: Re: Lazy Admin Menu
Post by: Steve on October 05, 2014, 08:23:42 AM
Quote from: dougiefresh on October 04, 2014, 07:45:15 PM
Quote from: ♦ Ninja ZX-10RR ♦ on October 04, 2014, 05:16:43 PM
Omg, how could you do it THIS fast? :o
I'd love to say "MAGIC", but that's a lie.....  The mod was caching the entire admin menu entry, instead of just what the mod rebuilds....  So I changed what it cached...

Quote from: Steve on October 04, 2014, 05:48:21 PM
I don't see what the difference is? Nothing seems to have changed for me. :(
And you won't unless you are running the DevCenter (http://custom.simplemachines.org/mods/index.php?mod=3481) mod, or a similar mod that makes changes to the Admin top menu TITLE....    See my response to ♦ Ninja ZX-10RR ♦  :P

I AM running that mod.

Quote from: Steve on October 03, 2014, 07:13:07 PM... it's this mod that displays the error number:

http://custom.simplemachines.org/mods/index.php?mod=3481

That's what got this whole conversation started.

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi1262.photobucket.com%2Falbums%2Fii614%2FOPStuph%2Fall2%2Fadminbutton1.jpg&hash=22f8b4ac347bf80bd84a7194cf83b33dd6ff6145)

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi1262.photobucket.com%2Falbums%2Fii614%2FOPStuph%2Fall2%2Fadminbutton2.png&hash=0d5bb6b8bb17cc07ef3935fc32f57328bc6f14eb)
Title: Re: Lazy Admin Menu
Post by: dougiefresh on October 05, 2014, 08:49:53 AM
@Steve: Ah, man....  Sorry, I goofed.  Lemme look into it again....
Title: Re: Lazy Admin Menu
Post by: Steve on October 05, 2014, 08:51:00 AM
No worries my friend. The fact that you're looking at it at all is awesome. :D
Title: Re: Lazy Admin Menu
Post by: dougiefresh on October 05, 2014, 09:53:58 AM
This morning, I retested the DevCenter mod with the Lazy Admin Menu mod.  The newest version of the LAM mod doesn't touch the title of the Admin top menu area, which means when DevCenter changes the admin menu, it's not cached...  Meaning, when you clear the error log, the Admin title gets changed back to showing no errors....
Title: Re: Lazy Admin Menu
Post by: Steve on October 05, 2014, 10:25:04 AM
In other words, I pretty much have to leave it as is (which is okay)? :)
Title: Re: Lazy Admin Menu
Post by: NekoJonez on October 05, 2014, 12:54:03 PM
I have a 2nd bug to report today :/

The lazy admin menu doesn't work with the arcade mod.
Title: Re: Lazy Admin Menu
Post by: Steve on October 05, 2014, 01:55:00 PM
It works just fine for me with the arcade mod Neko. :)
Title: Re: Lazy Admin Menu
Post by: dougiefresh on October 05, 2014, 04:03:49 PM
Quote from: Steve on October 05, 2014, 10:25:04 AM
In other words, I pretty much have to leave it as is (which is okay)? :)
I don't understand.  I thought I fixed the issue, did I not?

Quote from: NekoJonez on October 05, 2014, 12:54:03 PM
The lazy admin menu doesn't work with the arcade mod.
In what way does it not work with the arcade mod?  I've got the 2.6 alpha version from Github (https://github.com/SMF-Arcade/SMF-Arcade) running on SMF 2.0.9....

EDIT: Nevermind, I know why the Arcade doesn't show up in the Admin menu.  It's because the Lazy Admin Menu hook is executed before the Arcade hook....  I'll change the mod to make sure this never happens again...
Title: Re: Lazy Admin Menu
Post by: dougiefresh on October 05, 2014, 04:51:34 PM
Uploaded v1.10 - October 5th, 2014
o Modified SimplePortal so that the language file will hopefully be loaded if the user can adminstrate anything...
o Moved Lazy Admin Menu hook to Subs.php to make sure additions made after it show up.
Title: Re: Lazy Admin Menu
Post by: Steve on October 05, 2014, 06:38:10 PM
Whoa! That gave me a fatal error on my board! Was able to replace Subs.php from the backup folder then uninstall LAM completely. At least, I hope I did it right.
Title: Re: Lazy Admin Menu
Post by: Steve on October 05, 2014, 06:49:30 PM
Quote from: dougiefresh on October 05, 2014, 04:03:49 PM
Quote from: Steve on October 05, 2014, 10:25:04 AM
In other words, I pretty much have to leave it as is (which is okay)? :)
I don't understand.  I thought I fixed the issue, did I not?

Let's make sure were on the same page.

Before installing LAM, I had and still have DevCenter installed. That put the number of errors next to the word 'Admin' on the admin button so it looked like this:

Admin (23) or whatever number of errors existed. If there were no errors or I cleared the log, the button would just say 'Admin'.

After installing LAM, the errors no longer showed up on the Admin button. I had to open the menu as shown to see if I had errors:

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi1262.photobucket.com%2Falbums%2Fii614%2FOPStuph%2Fall2%2Fadminbutton1.jpg&hash=22f8b4ac347bf80bd84a7194cf83b33dd6ff6145)

I then asked if you could make the number of errors show up on the Admin button again and you came out with vers 1.9 which you believed did what I asked.

I installed it and saw no change. I still had to open the menu as shown in the above image.
Title: Re: Lazy Admin Menu
Post by: dougiefresh on October 05, 2014, 07:38:23 PM
Okay, evidently editing Subs.php to do this is a VERY BAD idea!  Reverted the downloadable version back to v1.9.....

I'm gonna need to do some more investigating as to why this is happening.....
Title: Re: Lazy Admin Menu
Post by: Arantor on October 05, 2014, 07:54:37 PM
As a thought, you could always just build in compatibility with DevCenter yourself when rebuilding the admin menu.

Check that $modSettings['devcenter_menu_count_log_entries'] isn't empty, and if it isn't, you can pretty much assume the mod is installed - and then work off $modSettings['devcenter_error_count'] as the number of errors.

At least, that was what it looked like to me at a glance of the code.
Title: Re: Lazy Admin Menu
Post by: dougiefresh on October 05, 2014, 08:09:25 PM
@Arantor: But if I assume that I can just replace the title of the Admin top menu, then if DevCenter is installed after Lazy Admin Menu, then the Admin top menu title looks like this: Admin [2] [2] instead of Admin [2]............

@Steve: Can you uninstall DevCenter, then reinstall it?  The hooks might be screwed up.....
Title: Re: Lazy Admin Menu
Post by: Arantor on October 05, 2014, 08:36:42 PM
You could just look at the end of the string to see if substr($title, -1) == ']' ;) (or whatever variable you're using) and if it is already there, assume it's been done.
Title: Re: Lazy Admin Menu
Post by: Steve on October 05, 2014, 08:54:24 PM
Quote from: dougiefresh on October 05, 2014, 08:09:25 PM@Steve: Can you uninstall DevCenter, then reinstall it?  The hooks might be screwed up.....

With which version? 1.9?

Edit: I tried what you asked and it does put the number of errors on the admin button but anything I do generates more errors. If I go into a board, two more errors, etc.
Title: Re: Lazy Admin Menu
Post by: Steve on October 05, 2014, 09:09:49 PM
Edit 2: I uninstalled devcenter and LAM.

I reinstalled devcenter and THEN LAM and everything works perfectly!!

The admin button shows the number of errors and none are generated by normal actions around the board. WOOT! :D
Title: Re: Lazy Admin Menu
Post by: dougiefresh on October 06, 2014, 07:16:39 AM
Quote from: Arantor on October 05, 2014, 08:36:42 PM
You could just look at the end of the string to see if substr($title, -1) == ']' ;) (or whatever variable you're using) and if it is already there, assume it's been done.
That's fine and dandy IF the DevCenter hook is executed before the Lazy Admin Menu hook.  But what if it's the other way around?  The DevCenter mod blindly appends the error count to the Admin title.... and there lies the problem.

The other problem with this is that use the hook handler as a normal function call in Subs.php results in errors while uninstalling, completely breaking the forum software....  OBVIOUSLY not a good thing....

EDIT: I could check to make sure the file exists before requiring it.....

Quote from: Steve on October 05, 2014, 09:09:49 PM
I uninstalled devcenter and LAM. 

I reinstalled devcenter and THEN LAM and everything works perfectly!!

The admin button shows the number of errors and none are generated by normal actions around the board. WOOT! :D
Awesome!
Title: Re: Lazy Admin Menu
Post by: Arantor on October 06, 2014, 08:01:05 AM
You could even do a function_exists() check before calling it ;)
Title: Re: Lazy Admin Menu
Post by: dougiefresh on October 06, 2014, 08:46:33 AM
Quote from: Arantor on October 06, 2014, 08:01:05 AM
You could even do a function_exists() check before calling it ;)
Well, if the file exists, then the function definitely exists....  Seems to be overkill to check both (at least to me, it does)
Title: Re: Lazy Admin Menu
Post by: Arantor on October 06, 2014, 09:43:28 AM
Then just check the function exists ;) I've always found it safer to rely on functional existence rather than file existence due to edge cases around mod installations and hooks.
Title: Re: Lazy Admin Menu
Post by: NekoJonez on October 06, 2014, 03:10:37 PM
I think I caught another bug D:

As soon as I installed v1.9 a lot of errors dumped of Simple Portal... They came from the shoutbox o.O?
Title: Re: Lazy Admin Menu
Post by: dougiefresh on October 06, 2014, 03:29:47 PM
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi182.photobucket.com%2Falbums%2Fx230%2FFinalAlmond%2Fth_bang-head.gif&hash=6a7e1d4918c54b01501bdd209eb9d809ad1d5c25)

LOL!  Now that I got that outta my system, lemme look into it....
Title: Re: Lazy Admin Menu
Post by: dougiefresh on October 06, 2014, 05:19:55 PM
Uploaded v1.11 - October 6th, 2014
o Added some code to Subs.php to prevent screwing up forum during uninstallation of mod.
o Upgrade possible from v1.10 to v1.11 since uninstalling mod screws up the forum.
o Added code for 2-second cache to the admin area to prevent double code execution...




@NekoJones: Thank you for reporting that this mod generates some errors.  I think I took care of those errors, however, since you didn't show which errors you had, I can't be 100% sure....

@Steve: Thank you for reporting the problem you've had.  I've gotten this mod to work as a post-integration function, so that the user-experience is what is expected....
Title: Re: Lazy Admin Menu
Post by: NekoJonez on October 07, 2014, 02:45:12 PM
Does v1.11 also update the arcade thingy? (Dumb question perhaps since it was in the 1.10 patch)

It works.

But the 2nd admin... Well, the errors of Simple Portal are back :/

http://www.arpegi.be/index.php?action=portal;sa=shoutbox;shoutbox_id=1;time=1412704457;xml
8: Undefined index: sp-positionTop
File: /****/Sources/Admin.php


That and it has the error for  sp_admin_shoutbox_add, sp_admin_shoutbox_list, sp_admin_shoutbox_title... In total 25 errors.




I was also ... affected by this: http://www.simplemachines.org/community/index.php?topic=528577.0

I fixed it and maybe that caused the errors. I'll keep you up to date if the errors show up again. But if I'm totally derping here... (When it has nothing to do with the errors I mentioned earlier) ignore this edit plz.
Title: Re: Lazy Admin Menu
Post by: dougiefresh on October 07, 2014, 03:12:29 PM
Quote from: NekoJonez on October 07, 2014, 02:45:12 PM
Does v1.11 also update the arcade thingy? (Dumb question perhaps since it was in the 1.10 patch)
:o Not a dumb question, as I forgot about that bug report....  :-[  I'm pretty sure that neither v1.10 or v1.11 resolves the Arcade issue.....
Title: Re: Lazy Admin Menu
Post by: NekoJonez on October 07, 2014, 03:14:51 PM
Hey dude, the arcade thingy is working :)

Well, the life of a coder never stops eh? Don't worry, I know the feel. I'm working at a reception.
Title: Re: Lazy Admin Menu
Post by: dougiefresh on October 07, 2014, 03:16:16 PM
Does the arcade thingy produce errors?
Title: Re: Lazy Admin Menu
Post by: NekoJonez on October 07, 2014, 03:18:06 PM
Nope, the errors that are in the log start all with sp_* and come from that (kind) of url mentioned in one of prev posts.

I bet it's SimplePortal being a b-cth to this mod.
Title: Re: Lazy Admin Menu
Post by: dougiefresh on October 07, 2014, 07:16:57 PM
Well, I can imagine that there are other mods that will need "assistance" to work properly with this mods....  I so look forward to the bug reports  ::)
Title: Re: Lazy Admin Menu
Post by: Ninja ZX-10RR on October 10, 2014, 04:45:48 PM
Howdy, I missed the last 4 pages or so XD so are you done with that crap? :P
Title: Re: Lazy Admin Menu
Post by: dougiefresh on October 10, 2014, 07:13:23 PM
Done with what crap?  Simple Portal?  If so, I hope so....
Title: Re: Lazy Admin Menu
Post by: Ninja ZX-10RR on October 11, 2014, 07:11:13 AM
Yeah don't misunderstand me, with that I meant bugs (hate them pretty much), SP and weird compatibility problems :) I will update when I have some time.
Title: Re: Lazy Admin Menu
Post by: dougiefresh on October 11, 2014, 05:00:43 PM
Quote from: ♦ Ninja ZX-10RR ♦ on October 11, 2014, 07:11:13 AM
Yeah don't misunderstand me, with that I meant bugs (hate them pretty much), SP and weird compatibility problems :) I will update when I have some time.
Ah!  Well, I hope I'm done with all that stuff.....  But I'll fix bugs as they are reported.
Title: Re: Lazy Admin Menu
Post by: Ninja ZX-10RR on October 11, 2014, 07:51:28 PM
/me  likes the message above :)
Title: Re: Lazy Admin Menu
Post by: NekoJonez on October 12, 2014, 07:29:15 AM
Well, Simple Portal released v2.3.6, Let's hope that the errors go away. :D
Title: Re: Lazy Admin Menu
Post by: dougiefresh on October 12, 2014, 11:08:23 AM
@♦ Ninja ZX-10RR ♦ and @NekoJones: Are you by any chance running my Split Forum mod with Simple Portal?
Title: Re: Lazy Admin Menu
Post by: Ninja ZX-10RR on October 12, 2014, 11:32:05 AM
None of the two XD and I have over 110 mods... I hate SP and don't really need to split the forum at least for a few years, I will probably need it later though...
Title: Re: Lazy Admin Menu
Post by: NekoJonez on October 12, 2014, 02:16:54 PM
Quote from: dougiefresh on October 12, 2014, 11:08:23 AM
@♦ Ninja ZX-10RR ♦ and @NekoJones: Are you by any chance running my Split Forum mod with Simple Portal?

Nope, I'm not doing that.
Title: Re: Lazy Admin Menu
Post by: dougiefresh on October 12, 2014, 09:00:57 PM
Thanks for the response!
Title: Re: Lazy Admin Menu
Post by: Ninja ZX-10RR on October 13, 2014, 09:00:43 AM
Sorry :( I also don't have enough time to test it even on my test site... You don't know it but I'm at my gf's and I'm actually stuck here since my hometown is being completely destroyed by one of the worst floods in its history... So I can't really do anything.
P.s. The town is Genova, in Italy, you can google it...
Title: Re: Lazy Admin Menu
Post by: NekoJonez on October 15, 2014, 01:23:42 PM
I do run Simple Portal v2.3.6 , not the split forum mod. To clear up possible doubts.
Title: Re: Lazy Admin Menu
Post by: dougiefresh on October 15, 2014, 03:21:47 PM
The reason I was asking is I found a major bug with Split Forum's copying block functions, and if you were running them, that could explain some or all the errors....  But no, that would be easy  :P  Oh well.... Once again, thanks for the responses! 

@♦ Ninja ZX-10RR ♦: I'm sorry to hear about your hometown....  I wish you the best of luck with that situation.
Title: Re: Lazy Admin Menu
Post by: Ninja ZX-10RR on October 15, 2014, 04:48:09 PM
I'm still at my gf's, if there will be still mess when I will be back then I will help just the way I did 3 years ago when the same crap happened, and this time it was the municipality that screwed up. Somebody MUST be punished for this, a person died for this and there are millions of euros of damage. Thank you so much for your solidarity though, I appreciate it very much.

Sorry for the OT, I hope you will get it sorted with those SP things, I can't help with that though because I don't have it installed :/ I might install it on my test forum when I will be back home but the ETA is about a week, can't possibly do that earlier >_<
Title: Re: Lazy Admin Menu
Post by: dougiefresh on October 15, 2014, 07:14:40 PM
Regarding OT: No problem....  I understand that why shi# happens, well, sometimes it happens in a big way....  And it usually is never good.... Take your time.

Well, I eliminated the bug in Split Forums Mod, so as far as I know, all the bugs are fixed  :P  Hopefully, all the bugs in this mod are fixed, too....  Although I'm sure someone will find a way to break it again  :P
Title: Re: Lazy Admin Menu
Post by: Ninja ZX-10RR on October 15, 2014, 07:20:39 PM
Then awesome work, thanks again :D
Title: Re: Lazy Admin Menu
Post by: NekoJonez on November 08, 2014, 03:29:57 PM
so, I updated from v2.3.5 to v2.3.6 of Simple Portal and I got blank entries at the Simple Portal sub-menu. My best guess is that's what is causing the errors I have I talked about earlier.
Title: Re: Lazy Admin Menu
Post by: dougiefresh on November 09, 2014, 08:02:06 PM
I think you may need to uninstall, then reinstall the Lazy Admin Menu.  LAM makes changes to a file within SimplePortal so that the language file(s) load when requested.....  and upgrading SimplePortal from v2.3.5 to 2.3.6 definitely overwrote the changes made by LAM....

Let me know if this solves your problem.  Thanks!
Title: Re: Lazy Admin Menu
Post by: NekoJonez on November 11, 2014, 05:58:13 AM
That fixed it, but the errors I talked about earlier still dump.

But not from the shoutbox anymore, they come from different kind of urls.
Title: Re: Lazy Admin Menu
Post by: dougiefresh on November 12, 2014, 06:34:53 PM
@NekoJonez: I need a copy of the errors so I can try to track down what is causing them. 
Title: Re: Lazy Admin Menu
Post by: dougiefresh on November 12, 2014, 07:22:01 PM
Uploaded v1.12 - November 12th, 2014
o Removed SimplePortal changes in favor of loading language files via Subs-LazyAdmin.php...
o Added support for Error Log Counter (http://custom.simplemachines.org/mods/index.php?mod=2441) mod so that number of errors show up in the top menu.
o Added code to preserve language strings in the event there is a conflict between two strings....




@NekoJonez: I figured out that the language files aren't being loaded at many points duing SMF's execution.  So what I did was removed SimplePortal changes and made Subs-LazyAdmin.php load the language files itself.....  Let me know if this solves this problem.  Thanks!
Title: Re: Lazy Admin Menu
Post by: NekoJonez on November 15, 2014, 08:18:09 AM
I'll try it out soon, but I have a busy weekend and week... I'll keep ya up to date. Promised.
Title: Re: Lazy Admin Menu
Post by: NekoJonez on November 28, 2014, 12:38:35 PM
Okay, I found this out: The errors where because of the SP changing mod code D:

When I upgraded to v2.3.6, the edit you did was removed
Title: Re: Lazy Admin Menu
Post by: dougiefresh on November 29, 2014, 08:13:40 AM
Quote from: NekoJonez on November 28, 2014, 12:38:35 PM
When I upgraded to v2.3.6, the edit you did was removed
With version 1.12, I forced the language file loading from Subs-LazyAdmin.php instead of making changes to the SimplePortal files, which I believe solves this particular problem with the Simple Portal mod...  If you don't want to upgrade, then you will have to remove Lazy Admin Menu and reinstall.
Title: Re: Lazy Admin Menu
Post by: Ninja ZX-10RR on November 29, 2014, 12:00:52 PM
Well I have Simple Portal now as well and there are no errors here, just as a reference... (yeah I installed that one too, 125 mods installed #_#, 6 from you - if I'm not mistaken - dougie :P)
Title: Re: Lazy Admin Menu
Post by: dougiefresh on November 29, 2014, 01:55:02 PM
No worries.... I have 160 mods installed, and it might go up some....
Title: Re: Lazy Admin Menu
Post by: Ninja ZX-10RR on November 29, 2014, 02:21:53 PM
Woah! Without overlapping function is nice :D
Title: Re: Lazy Admin Menu
Post by: NekoJonez on November 30, 2014, 12:23:40 PM
Well, I thought my 70 mods where too many.
Title: Re: Lazy Admin Menu
Post by: dougiefresh on November 30, 2014, 05:26:06 PM
Yeah....  Took some tweaking in order for everything to install, but yeah....  it's nice...  Almost where I want it....
Title: Re: Lazy Admin Menu
Post by: dougiefresh on January 06, 2015, 05:29:29 PM
Uploaded v1.13 - January 6th, 2014
o Added code to deal with already loaded strings in a lot of unrelated mods....
Title: Re: Lazy Admin Menu
Post by: Rk2910 on January 08, 2015, 05:40:22 AM
This is a really nice mod - thanks.  I'm running 2.0.9 and of course am running themes (Blue Shame, OverveiwLight, Core, curve and LightHat).  I was running 1.8 until last night when I uninstalled it and installed 1.13.
The mod works great on all but one theme - BlueShame by SMFTricks (http://smftricks.com/index.php).  I can't seem to select a submenu in that theme, seems it doesn't slide the submenus to the right enough.  I don't know if you've tried this theme.

Nice job on the mod though, thanks again.
Title: Re: Lazy Admin Menu
Post by: Steve on January 08, 2015, 08:19:23 AM
How do you mean? Any chance of a screenshot? Is it like this?

http://www.simplemachines.org/community/index.php?topic=525466.msg3724523#msg3724523
Title: Re: Lazy Admin Menu
Post by: dougiefresh on January 08, 2015, 02:00:52 PM
The issue you mentioned is an issue caused by your theme's CSS stylesheet (CSS file), not one caused by this mod in any form.
Title: Re: Lazy Admin Menu
Post by: Rk2910 on January 08, 2015, 07:44:00 PM
Doug, I figured that.  I am not knocking the mod - works perfect on the other themes.
And the effect is only weird on the main menu of this theme.  Once you get one layer deep it pops the sub-menus out to the right far enough that it works correctly.  Attached are examples.
Doug, unless you can guide me as to where to look I will ask the developer of the theme.
Title: Re: Lazy Admin Menu
Post by: Arantor on January 08, 2015, 08:11:47 PM
You should ask the developer of the theme; looks like the main navigation menu uses different code that doesn't properly support submenus.
Title: Re: Lazy Admin Menu
Post by: dougiefresh on January 10, 2015, 10:36:53 AM
Quote from: Steve on July 25, 2014, 07:41:22 AM
Apparently this mod has an issue with themes other than the Curve theme as shown here:

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi1262.photobucket.com%2Falbums%2Fii614%2FOPStuph%2Fall2%2Flazyadminprob72514.png&hash=9b98c4d2752f4511c15273090803766041852d90)

Just a minor inconvenience though and the benefits outweigh it. :)
Okay, I had to research how to fix the wrapping of the text into the next line, rendering it unreadable on my theme (available here (http://custom.simplemachines.org/themes/index.php?lemma=2802)).  I found that I had to change the following in my theme's CSS:
Code (Find) Select
#topnav li li {
width: 200px;
height: auto;

Code (Replace) Select
#topnav li li {
min-width: 200px;
white-space: nowrap;
height: auto;

then change this:
Code (Find) Select
#topnav li ul {
background: #202020;
position: absolute;
width: 200px;

Code (Replace) Select
#topnav li ul {
background: #202020;
position: absolute;
min-width: 200px;
white-space: nowrap;


I hope this helps....

EDIT: The CSS section may vary on other themes, so you may have to check your index.template.php under function template_menu in order to find the correct DIV name to search for.  For example, the bold text is the DIV name ID you would search for:
Quote<div id="topnav">

EDIT2: You will need to change the width to min-width and add the white-space: nowrap; part to whichever section is ailing ya....  Hope this helps...
Title: Re: Lazy Admin Menu
Post by: Steve on January 10, 2015, 11:14:00 AM
Thanks for that. :)
Title: Re: Lazy Admin Menu
Post by: dougiefresh on January 12, 2015, 12:49:40 PM
Quote from: Rk2910 on January 08, 2015, 07:44:00 PM
Doug, I figured that.  I am not knocking the mod - works perfect on the other themes.
And the effect is only weird on the main menu of this theme.  Once you get one layer deep it pops the sub-menus out to the right far enough that it works correctly.  Attached are examples.
Doug, unless you can guide me as to where to look I will ask the developer of the theme.
I've fiddled with the theme in question some over the last few days.  I don't have the experience to figure out how to get that theme to display the sub-menus correctly....  What makes it worse is the code is completely different from every other theme I've looked into....  Definitely not a "standard" (or run-of-the-mill) theme layout....
Title: Re: Lazy Admin Menu
Post by: dougiefresh on January 16, 2015, 08:16:54 PM
Uploaded v1.14 - January 16th, 2015
o License change to Simplified BSD.  No functionality change.
Title: Re: Lazy Admin Menu
Post by: Rk2910 on January 17, 2015, 09:57:36 AM
Doug, here is what the author said
QuoteThe theme is not designed for a 3rd level of submenu, I'll see what can I do
I am not a programmer so I have no idea what he is referring to.  My mind sees "third level" and thinks deeper in the menu than the main/first level.
Thanks for all you do to help all of us Doug.
Title: Re: Lazy Admin Menu
Post by: dougiefresh on January 17, 2015, 11:37:27 AM
I'm guessing that the "first-level menu" is the top menu, and the "second-level menu" is the drop-down menu.  The "third-level menu" would be the submenus that are grouped in each of the "second-level menus"....
Title: Re: Lazy Admin Menu
Post by: RSI on February 06, 2015, 05:54:00 PM
Hi,

Has anyone said anything about installing this mod since last month?

I'm getting the fatal error below during install. Did you ever check the install paths with the last uploaded revision?

Fatal error: require(): Failed opening required '/home/me/public_html/Packages/temp/add_remove_hooks.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/me/public_html/Sources/Packages.php on line 939
Title: Re: Lazy Admin Menu
Post by: dougiefresh on February 07, 2015, 08:59:44 AM
@RSI: Nope, you're the first to mention it.  Evidentally, I can't update the first post of my thread anymore.....  But I've updated the mod to v1.15, which corrects this issue...
Title: Re: Lazy Admin Menu
Post by: RSI on February 07, 2015, 10:35:07 AM
That fixed it, thanks...
Title: Re: Lazy Admin Menu
Post by: Steve on February 10, 2015, 07:23:15 PM
Hey dougie ... I installed Arantor's media gallery and when I hover over the admin button it shows when I'm in the admin section but not on the forum index.

The first pic is the forum index and the second in while I'm in admin:

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi1262.photobucket.com%2Falbums%2Fii614%2FOPStuph%2Fall2%2Fadminmenu1.jpg%7Eoriginal&hash=819b7dc70239d5da46c28992db7e5921d6a44fe9)  (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi1262.photobucket.com%2Falbums%2Fii614%2FOPStuph%2Fall2%2Fadminmenu2.jpg%7Eoriginal&hash=7af555cfe40eb9ccf9c0e6bc3cdc61143ba0ac61)

Any way to move the Media option to the forum index hover?
Title: Re: Lazy Admin Menu
Post by: dougiefresh on February 11, 2015, 03:03:32 PM
@Steve: Please attach your Sources/Admin.php file so that I can see what's going on in there.  I also need a link to the mod in question, as I cannot find a gallery mod by Arantor in the SMF Customization Site listing.  If it is a paid mod and the problem isn't a part of the Sources/Admin.php file, then I won't be able to get the mod to figure out what is going on....
Title: Re: Lazy Admin Menu
Post by: margarett on February 11, 2015, 03:08:33 PM
It's probably using hooks to add the menus so you should have really nothing added to Admin.php ;)
Title: Re: Lazy Admin Menu
Post by: Steve on February 11, 2015, 06:15:00 PM
Quote from: dougiefresh on February 11, 2015, 03:03:32 PM
@Steve: Please attach your Sources/Admin.php file so that I can see what's going on in there.

Attached. And no worries if it's not doable. :)
Title: Re: Lazy Admin Menu
Post by: dougiefresh on February 12, 2015, 05:37:39 PM
I had a few minutes to look at your Admin.php file.  The mod in question apparently makes no changes to the Admin.php file that I can see, so it's probably added via hooks.  Without access to the mod in question, I am unable to answer how to move that mod to the forum index.  If I could download the mod from somewhere (I assume it's free, right?), I could answer this question.....
Title: Re: Lazy Admin Menu
Post by: margarett on February 12, 2015, 06:02:39 PM
Nop, it isn't free ;)
Title: Re: Lazy Admin Menu
Post by: Steve on February 12, 2015, 06:48:49 PM
Yea, it's a paid mod installed totally with hooks.

Okay, thanks for looking for me. :)
Title: Re: Lazy Admin Menu
Post by: dougiefresh on February 12, 2015, 08:31:02 PM
Wish I could've been more of a help....
Title: Re: Lazy Admin Menu
Post by: Steve on February 12, 2015, 08:43:06 PM
No worries my friend. You've already helped me a lot with other things. ;D
Title: Re: Lazy Admin Menu
Post by: CHRIS-7 on April 04, 2015, 11:02:19 PM
Oh , This Is Useful Mod For Any Admins.

Thank You  :)
Title: Re: Lazy Admin Menu
Post by: dougiefresh on April 06, 2015, 04:58:19 PM
Uploaded v1.16 - April 4th, 2015
o Updated for SMF 2.1 Beta 1




@CHRIS-7:  You're welcome!  I completely agree that it is useful for any admin!
Title: Re: Lazy Admin Menu
Post by: CHRIS-7 on April 08, 2015, 01:08:07 AM
Quote from: dougiefresh on April 06, 2015, 04:58:19 PM
Uploaded v1.16 - April 4th, 2015
o Updated for SMF 2.1 Beta 1




@CHRIS-7:  You're welcome!  I completely agree that it is useful for any admin!

:) Thank You For Attention
Title: Re: Lazy Admin Menu
Post by: dougiefresh on November 02, 2016, 02:06:31 PM
Uploaded v2.0 - November 2nd, 2016
o Rewritten to use only hooks in order to gather the required information.




@Everybody: This update resolves several issues that I felt were easier to address with the mod being entirely hook-based, than how the current situation was.
Title: Re: Lazy Admin Menu
Post by: dougiefresh on November 06, 2016, 08:50:29 PM
URGENT!!!  STOP USING VERSION 2.0 RIGHT NOW!!!
I just got a report of a reproducible MAJOR security issue, and it's a doozie!!!  Lazy Admin Menu is built along the same lines as the Better Profile Menu mod, and is reproducible there as well!!!
Quote
Wanted to let you know I appreciate all the time you took to make the Better Profile Menu mod.  I installed it (SMF 2.0.12) and it worked good.  It was nice having the drop down in the profile fly out.  But after I installed it I could not logout.  Went to a different computer (my wife's) and logged in under a different normal user name and MY admin name and access came up!  And then I could not log out of either account.  Here's what I did to try and fix it....
    * Renaming the Cookies on the forum
    * Switched from Local storage of cookies to subdomain independent cookies
    * Changed the default login cookie length from 60 minutes to 1 minute
    * Changed the unused session timeout from 2880 seconds to 30
    * Cleared all the cookies on my wifes computer
           but it still shows her logged in as me and the moderator options available
    * Emptied the File Cache in the Forum Maintenance
    * Cleared the cookies from my computer

None of that fixed the logout issue.  So I started uninstalling the last few mods I installed in the order I installed them.  I had just installed your mod, Add Join Date, and Mention members.  Removing them one at a time (Mention Members, Join Date and then the Better Profile menu),  Each time I removed one I would try to logout.  It wasn't until I removed the Better Profile Menu that I could logout.  I reinstalled Mention Members & Join Date and the logout is still working.  So I'm guessing it was a conflict in some of those mods and the Better Profile menu.  Either way, I wanted to let you know what happened.  This is in no way a knock on your mod.  I think it was really cool and if it worked with my set up I would be running.  Thank you for making the mod and have a great day.
The mod has been pulled from the Customization Site until the issue has been straightened out!

EDIT/NOTICE: This security bulletin (if you want to call it that) does not effect any of the version 1.x series mods!!!
Title: Re: Lazy Admin Menu
Post by: Steve on November 07, 2016, 09:32:08 AM
Can we get the latest working version put back on the mod site or do you plan to have this corrected soon?
Title: Re: Lazy Admin Menu
Post by: dougiefresh on November 07, 2016, 09:34:29 AM
Quote from: Steve on November 07, 2016, 09:32:08 AM
Can we get the latest working version put back on the mod site or do you plan to have this corrected soon?
I'm working on getting it corrected this morning.  (It's 8:34am here....)  I've altered the other mod to work correctly.....
Title: Re: Lazy Admin Menu
Post by: Steve on November 07, 2016, 09:37:27 AM
Thanks Dougie. Appreciate that. :)
Title: Re: Lazy Admin Menu
Post by: dougiefresh on November 07, 2016, 09:46:33 AM
Uploaded v2.1 - November 7th, 2016
o Fixed bug report that damaged proper user verification functionality.
Title: Re: Lazy Admin Menu
Post by: Steve on November 07, 2016, 09:49:46 AM
Hmmm ... having the same problem with this as I'm having with the Better Profile Menu.
Title: Re: Lazy Admin Menu
Post by: dougiefresh on November 12, 2016, 09:00:01 AM
Uploaded v2.2 - November 12th, 2016
o Fixed issue where menu wasn't changed because no caching of menu could be done.
o Added code to stop bans from Forum Hard Hit mod while using this mod.
o Fixed SMF update bug that prevents unserializing strings longer than 4096 bytes.
Title: Re: Lazy Admin Menu
Post by: Steve on November 12, 2016, 09:05:37 AM
Dang, you're quick! I just posted about this.

But I get nothing after installing this version. No dropdown menu whatsoever.
Title: Re: Lazy Admin Menu
Post by: dougiefresh on November 12, 2016, 09:13:26 AM
@Steve: I just updated v2.2 again because of an error that I missed before uploading the previous v2.2 mod.  Please download again....
Title: Re: Lazy Admin Menu
Post by: Steve on November 12, 2016, 09:18:29 AM
Awesome! Works now! Thanks for all your hard work. :D
Title: Re: Lazy Admin Menu
Post by: dougiefresh on November 12, 2016, 10:33:25 AM
Thank you for all your feedback!  It's been appreciated!
Title: Re: Lazy Admin Menu
Post by: dougiefresh on January 01, 2017, 11:06:04 AM
Uploaded v2.3 - December 31st, 2016
o Modified SMF bug fix to make it compatible with upcoming SMF 2.0.13 patch.
Title: Re: Lazy Admin Menu
Post by: Steve on January 03, 2017, 07:02:17 PM
Hopefully that comes out soon so I can see if there are any problems with your update. I know it works a treat right now. :)
Title: Re: Lazy Admin Menu
Post by: SMiFFER on January 31, 2017, 04:30:47 PM
I cannot uninstall the old L.A.M version1.16 to update to the new one v2.3.

Screenshot of the error:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fabload.de%2Fthumb%2Fbugt5zkyu.png&hash=7170ffc935d403195522bd4062e860ed9053ad77) (http://abload.de/image.php?img=bugt5zkyu.png)


what do I have to do?
Title: Re: Lazy Admin Menu
Post by: Steve on February 01, 2017, 08:26:33 AM
What does clicking on the clipboard icon at the left in the error line tell you?
Title: Re: Lazy Admin Menu
Post by: dougiefresh on February 05, 2017, 09:54:13 AM
In Sources/Load.php, look for the function declaration for loadLanguage.  If you find this:
function loadLanguage($template_name, $lang = '', $fatal = true, $force_reload = false)
you are good to uninstall the mod, ignoring the error that was brought up by Package Manager.

If you find this (or something similar to this):
function loadLanguage($template_name, $lang = '', $fatal = true, $force_reload = false, $get_already_loaded = false)
You need to modify the line so that it matches what is expected before you can uninstall the mod.  If you need help, attach your Sources/Load.php and I'll try to fix your source file for you.
Title: Re: Lazy Admin Menu
Post by: SMiFFER on February 09, 2017, 04:21:25 AM
Quote from: Steve on February 01, 2017, 08:26:33 AM
What does clicking on the clipboard icon at the left in the error line tell you?
Click on UPPER clipboard (as shown on the screenshot) brings:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fabload.de%2Fthumb%2Fupclick2vsec.png&hash=519ba67413cd6a0983fd114d8d11fcd286173f67) (http://abload.de/img/upclick2vsec.png)

Click on LOWER clipboard (as shown on the screenshot) brings:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fabload.de%2Fthumb%2Flowclick1wl2y.png&hash=52456c366e7c67f5273aa6f75523b6f99d2ea726) (http://abload.de/img/lowclick1wl2y.png)
Title: Re: Lazy Admin Menu
Post by: SMiFFER on February 09, 2017, 04:23:15 AM
@Dougie:

It so appears as if I find the latter.
What do I need to fix or do here?
Do my newly posted screenshots help ya?
Title: Re: Lazy Admin Menu
Post by: dougiefresh on February 09, 2017, 09:30:52 AM
Quote from: SMiFFER on February 09, 2017, 04:23:15 AM
@Dougie:

It so appears as if I find the latter.
What do I need to fix or do here?
Do my newly posted screenshots help ya?
I'm betting that you had older versions of both the Lazy Admin Menu and Better Profile Menu mods installed at the same time, since they both make code changes at the same place.... 

In Sources/Load.php, change:
Code (Find) Select
function loadLanguage($template_name, $lang = '', $fatal = true, $force_reload = false, $get_already_loaded = false)
to this:
Code (Replace) Select
function loadLanguage($template_name, $lang = '', $fatal = true, $force_reload = false)
If you don't find the "Find" portion, then just ignore it and uninstall the mod.  (You probably aren't going to find it, since you have an error at that operation).  If it is anything other than the "Find" or "Replace" operations I just told you, send your Sources/Load.php and I'll take a look.
Title: Re: Lazy Admin Menu
Post by: SMiFFER on February 09, 2017, 03:05:19 PM
Quote from: dougiefresh on February 09, 2017, 09:30:52 AM
I'm betting that you had older versions of both the Lazy Admin Menu and Better Profile Menu mods installed at the same time, since they both make code changes at the same place.... 
That is true!


Quote from: dougiefresh on February 09, 2017, 09:30:52 AM
If you don't find the "Find" portion, then just ignore it and uninstall the mod.  (You probably aren't going to find it, since you have an error at that operation).  If it is anything other than the "Find" or "Replace" operations I just told you, send your Sources/Load.php and I'll take a look.
I found only the "Replace" portion.
Ok, I uninstall Lazy Admin Menu 1.16 now as you said.
Title: Re: Lazy Admin Menu
Post by: SMiFFER on February 09, 2017, 03:08:42 PM
Deleted the old files then.
And then installed the NEW L.A.M.  Message confirmed all went good.

But weird: The menu does not present me the extra functions. I just "lost" them now.

Pkg Manager shows
Lazy Admin Menu 2.3 installed OK.

Where did I possibly go wrong?
Title: Re: Lazy Admin Menu
Post by: dougiefresh on February 10, 2017, 11:42:01 AM
Quote from: SMiFFER on February 09, 2017, 03:08:42 PM
Deleted the old files then.
And then installed the NEW L.A.M.  Message confirmed all went good.

But weird: The menu does not present me the extra functions. I just "lost" them now.

Pkg Manager shows
Lazy Admin Menu 2.3 installed OK.

Where did I possibly go wrong?
I just installed Lazy Admin Mod on a clean 2.0.13 forum and could not reproduce the issue you reported.  What forum version and mods do you have installed?
Title: Re: Lazy Admin Menu
Post by: SMiFFER on February 10, 2017, 04:10:38 PM
1.    SMF 2.0.12 Update    1.0     
2.    Signature Option Post    1.1.1    
3.    Better Profile Menu    2.4    
4.    Activity Bar    1.1    
5.    Sorted BBCode List for SMF 2.0.x    1.1    
6.    Global Topics    2.2    
7.    Unknown Actions    1.2    
8.    SimpleColorizer    1.1    [ Install Mod ]   
9.    Admin Notepad    2.0.2    
10.    Display Signatures Only Once Per Page    1.0.3    
11.    Hide ip stuff for users    1.05    
12.    Activity in Profile    1.1    
13.    Indent BBC    1.0.1    
14.    Alternate User Posting    1.0.1    
15.    Last Active On MemberList    1.4    
16.    Tidy Child Boards    2.0    
17.    Lazy Admin Menu    2.3    
18.    SMF Mailing List Mod    2.03    
19.    Redirection Topics    1.0.3    
20.    Post History    1.03    
21.    Join Reason    1.5    
22.    Personal Messages to Membergroups    1.4.3     
23.    SMF 2.0.13 Update    1.0    
24.    SMF Notify Group    2.2    
Title: Re: Lazy Admin Menu
Post by: dougiefresh on February 10, 2017, 10:20:02 PM
I'll need some time to search through the mods and see what might be interfering with the Lazy Admin mod......  Please be patient.
Title: Re: Lazy Admin Menu
Post by: SMiFFER on February 25, 2017, 02:38:21 PM
Thanks for offering your help.
I will be patient.
Title: Re: Lazy Admin Menu
Post by: dougiefresh on February 25, 2017, 05:58:33 PM
Damn...  Your issue fell off the radar!  I'll look into the issue tomorrow, as I'm at work until 10pm and then from 7am to 4pm tomorrow....
Title: Re: Lazy Admin Menu
Post by: dougiefresh on February 26, 2017, 08:28:04 PM
Quote from: SMiFFER on February 09, 2017, 03:08:42 PM
Deleted the old files then.
And then installed the NEW L.A.M.  Message confirmed all went good.

But weird: The menu does not present me the extra functions. I just "lost" them now.

Pkg Manager shows
Lazy Admin Menu 2.3 installed OK.

Where did I possibly go wrong?
I look through the mods and I can't see that any of the mods would interfere with the Lazy Admin Mod.  Have you cleared the cache?  You can do so either by (1) manually deleting the cache files and/or (2) go into the Admin panel under Forum Maintenance and empty the file cache.....

I just noticed that you said you "deleted the old files".  Does that mean that you uninstalled the older version of the mod?  If not, you need to uninstall it PROPERLY in order to make sure that the hooks are "unhooked" and PROPERLY install the new mod so that any hooks required are made.....
Title: Re: Lazy Admin Menu
Post by: dougiefresh on February 26, 2018, 11:12:44 AM
Uploaded v2.4 - February 26th, 2018
o Now uses safe_serialize/safe_unserialize functions when available.
Title: Re: Lazy Admin Menu
Post by: -Rock Lee- on February 26, 2018, 11:20:09 AM
It looks pretty good and I'm sure I'll give it a use without a doubt ...


Regards!
Title: Re: Lazy Admin Menu
Post by: dougiefresh on October 22, 2018, 05:54:52 PM
Uploaded v2.5 - October 22nd, 2018
o No functionality change.
o Updated documentation to point to new website.
Title: Re: Lazy Admin Menu
Post by: KittyGalore on January 02, 2020, 10:38:57 AM
I always had an issue with this where it work the menu fine but once install the IP address both in the who's online and my own profile will have a different IP address and says it's my host IP Once unistalled it goes back to normal and no issues with IP addresses. I would provide pictures but don't want my IP address been shown to everyone. It's the same for the lazy moderator menu also. Not sure if anyone has experienced this issues before or not. I done it on a test forum as well brand new set of files fresh database and the same no mods installed as well.