Jump to content
tpr

AdminOnSteroids

Recommended Posts

No, I haven't noticed this. I'll check it some day, I don't understand all of it atm 🙂

Share this post


Link to post
Share on other sites

Hey @tpr

I have been seeing this a bit lately:

Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /site/modules/AdminOnSteroids/AdminOnSteroids.module on line 2622

 

  • Like 1

Share this post


Link to post
Share on other sites

@adrian Probably yes, I've changed that, thanks.

Yesterday I added a "translatorModal" tweak to Misc that allows editing translations in a modal, hope you find it useful.

translatorModal.gif.588a46196af89bab6521ea3f17782940.gif

  • Like 3
  • Thanks 1

Share this post


Link to post
Share on other sites

Hey @tpr - not sure what its purpose is, but:

html.aos {
    overflow: overlay;
}

does weird things to fixed position elements. For example, when Tracy is disabled, the icon that appears in place of the debug bar (to re-enable it) is positioned under the vertical scrollbar. If I remove this overflow rule, it is positioned as expected.

image.png.e71b3c8d00f12af1e15452edabdc171e.png

Thanks!

Share this post


Link to post
Share on other sites

hey @tpr, is there a way to disable the filterbox on some admindatatables, eg via adding "nofilterbox" class to the table?

Edit: Created a PR

Share this post


Link to post
Share on other sites

All done. @bernhard I had to modify return false to true to to keep processing other tables in the loop (if any).

  • Like 2
  • Thanks 1

Share this post


Link to post
Share on other sites

Hi @tpr,

I found an irritating behaviour when using the submodule ListerTweaks. If I make a custom selection of the Users lister columns,

Screenshot1.png

it will not be reflected in the columns selection on the Users page:
There the default selection is displayed, and trying to change it has no effect.

Screenshot2.png

Share this post


Link to post
Share on other sites

I remember seeing this bug earlier but couldn't fix it. I'll give it another try some day, thanks for bringing this up.

Share this post


Link to post
Share on other sites

Hi, @tpr and thanks you for adding this useful module.
After switching on AdminOnSteroids I noticed a small problem appearing when opening and closing the repeater, but only in Mozilla Firefox and Admi Theme Uikit. After opening the single repeater, it remains in the open position.
I'm not fluent in JS and I do not know where the error is, but the console shows me information as below.

Error: Permission denied to access property "apply"

Admin-on-steroids.thumb.gif.043b81476e905d2468529feb4f4967ba.gif

SERVER DETAILS
ProcessWire: 3.0.126
PHP: 7.3.1
Webserver: Apache/2.4.35 (Win64) OpenSSL/1.1.1a
MySQL: 5.7.24

MODULE DETAILS
AdminOnSteroids: 2.0.13
ProcessTracyAdminer: 1.0.6
TracyDebugger: 4.17.22

Share this post


Link to post
Share on other sites

I'm not sure but perhaps it's a cross-domain issue, perhaps caused by a Firefox addon, I got the idea from here:

Quote

This only happens with Firefox addons that try to insert a <script> tag that points to an external cross-domain script.

 

  • Like 2

Share this post


Link to post
Share on other sites

Thanks for the answer ...
It seems that the LastPass plugin generate error ...
After turning off the add-on LastPass  everything has returned to normal ...

  • Like 2

Share this post


Link to post
Share on other sites

What do you think about appending the field type to the Fields asmSelect list options? I often don't remember the type by the name so it would come handy. However, since it's a plain select HTML element it cannot be styled and in the rendered asmSelect the type appears twice (also at the end of the bars).

asmfieldtypes.gif

  • Like 4

Share this post


Link to post
Share on other sites
8 hours ago, tpr said:

What do you think about appending the field type to the Fields asmSelect list options?

I like it 🙂 Not beautiful but does the trick.

  • Like 1

Share this post


Link to post
Share on other sites

Actually having the field type appended to the name is quite handy when used together with the "add search box to asmSelect" feature because field types can also be searched.

So for example you can easily find CroppableImage3 image o CKEditor fields, etc, which is a huge help when there are a lot of fields.

image.png.6476b86c88f263cdfc408b4cf3af351f.png

  • Like 3
  • Thanks 1

Share this post


Link to post
Share on other sites

OK, due to the popular demand towards this feature it's been added to v2.0.14 🙂 

Some changes:

  • the new suffix contains the field type (eg. "Textarea"), and the inputfield class if it's different from it (eg. "CKEditor")
  • the optional inputfieldClass is not added if it's the language variant (to avoid situations like "excerpt - TextareaLanguage (Textarea)"
  • on the right side of the bars the original field type string is removed (before the percentage) not to display it twice

image.thumb.png.d05432f32b4e1fa2f5015653e464629e.png

  • Like 7

Share this post


Link to post
Share on other sites
12 hours ago, tpr said:

due to the popular demand

Thanks a lot for caring! I'm pretty sure that those who could not click the like button are just away for a long weekend 🙂

  • Like 1
  • Haha 1

Share this post


Link to post
Share on other sites

I've added data-attributes to field wrappers in v2.0.15 containing information about the included field. Unlike the info currently available it's not on the inputfield itself but on its wrapper, making admin CSS/JS customizations easier to apply.

https://github.com/rolandtoth/AdminOnSteroids/wiki/Misc

image.png.292388e43f5993178602837a16998464.png

  • Like 2
  • Thanks 1

Share this post


Link to post
Share on other sites

Hello!

I'm brand new to ProcessWire (having been a Joomla! guy for many years and then adding Wordpress to my toolkit more recently). I've taken on a new client and their site uses ProcessWire. Last night I got the joy (lol) of moving their site to my large VPS and learning the ins and outs of PW. They were running PHP 7.0 and I bumped them to PHP 7.3. After fixing a bunch of front end issues with their theme, everything looks good except that in the admin, AdminOnSteroids is throwing some notices:

PHP Notice: Trying to get property 'template' of non-object in .../AdminOnSteroids/AdminOnSteroids.module:2970   
PHP Notice: Trying to get property 'name' of non-object in .../AdminOnSteroids/AdminOnSteroids.module:2970

Does anyone know how to fix this? I can hack my way around some PHP, but I'm not a programmer, so this one is a bit beyond my understanding. Any help would be appreciated.

Share this post


Link to post
Share on other sites

@Brian Peat Hello Brian,

Welcome to the forum & thank you for your first post. I hope @tpr - the author of this module - picks this up quickly for you (he's usually very responsive.) Although I'm reluctant to suggest a fix for that line in the module (I'm not wholly familiar with TPR's intention there and simply suppressing the notice might be hiding a larger issue) I do hope you end up enjoying working with ProcessWire and interacting here in the forums!

Best wishes,
Steve

Share this post


Link to post
Share on other sites

@Brian Peat welcome. One thought regarding the module: what version is the AOS module?  When going in admin under modules site adminonsteroids, there is a feature to directly check for newer versions. Maybe you are not running the latest version, where these issues are already fixed? At least there is no harm with updating AOS to the latest.  

 

Share this post


Link to post
Share on other sites

@horst I'm up to date as far as I know. It's running 2.0.15.

I may edit my hosts file so I can see their old site again and check in there. It's possible they've been ignoring the errors for a while, but I'm not sure.

Thanks!

  • Like 1

Share this post


Link to post
Share on other sites

Hi @Brian Peat,

that line fails if a template doesn't have a name

I was wrong, it's the editedPage being null, will add a check.

  • Like 1

Share this post


Link to post
Share on other sites

@tpr No, I haven't fiddled in the database. I'm thinking this template is old though, and is likely missing some things. I had to add the name space to a few files and also fix a few things that wouldn't play nice with PHP 7.3.

Share this post


Link to post
Share on other sites

Hey there. This morning I upgraded AOS for a project to latest version 2.0.15 and started noticing some issue viewing the hidden/unpublished pages in the admin. Tried to uninstall the module and grabbed a fresh copy, however the same issue appeared.

image.png.bde7d15019041782c808cedf7d7b3d1d.png

If I move my mouse over those that are not showing but only ID's are listed, they all appear fine:

image.png.483693e33aa5f9976094218a237677bb.png

Started disabling options of AOS in order to check which one would be causing the issue and it appeared that it is the PageList tweaks and more specifically: Show page IDs (SuperUser only) . I did not set any other options, however if I remove this one, the list shows properly. The issue seems to appear on both themes - default and uikit. Any ideas how could I keep the page ID's showing but keeping the hidden pages visible? Is this a feature/option I've missed or else?

  • Like 1

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content

    • By d'Hinnisdaël
      Happy new year, everybody 🥬
      I've been sitting on this Dashboard module I made for a client and finally came around to cleaning it up and releasing it to the wider public. This is how it looks.
      ProcessWire Dashboard

      If anyone is interested in trying this out, please go ahead! I'd love to get some feedback on it. If this proves useful and survives some real-world testing, I'll add this to the module directory.
      Download
      You can find the latest release on Github.
      Documentation
      Check out the documentation to get started. This is where you'll find information about included panel types and configuration options.
      Custom Panels
      My goal was to make it really simple to create custom panels. The easiest way to do that is to use the panel type template and have it render a file in your templates folder. This might be enough for 80% of all use cases. For anything more complex (FormBuilder submissions? Comments? Live chat?), you can add new panel types by creating modules that extend the DashboardPanel base class. Check out the documentation on custom panels or take a look at the HelloWorld panel to get started. I'm happy to merge any user-created modules into the main repo if they might be useful to more than a few people.
       Disclaimer
      This is a pre-release version. Please treat it as such — don't install it on production sites. Just making sure 🍇
      Roadmap
      These are the things I'm looking to implement myself at some point. The wishlist is a lot longer, but those are the 80/20 items that I probably won't regret spending time on.
      Improve documentation & add examples ⚙️ Panel types Google Analytics ⚙️ Add new page  🔥 Drafts 🔥 At a glance / Page counter 404s  Layout options Render multiple tabs per panel panel groups with heading and spacing between ✅ panel wrappers as grid item (e.g. stacked notices) ✅ Admin themes support AdminThemeReno and AdminThemeDefault ✅ Shortcuts panel add a table layout with icon, title & summary ✅ Chart panel add default styles for common chart types ✅ load chart data from JS file (currently passed as PHP array) Collection panel support image columns ✅ add buttons: view all & add new ✅
    • By Gadgetto
      Status update links (inside this thread) for SnipWire development will be always posted here:
      2020-01-14 --> new date range picker, discount editor, order notifiactions, order statuses, and more ... 2019-11-15 --> orders filter, order details, download + resend invoices, refunds 2019-10-18 --> list filters, REST API improvements, new docs platform, and more ... 2019-08-08 --> dashboard interface, currency selector, managing Orders, Customers and Products, Added a WireTabs, refinded caching behavior 2019-06-15 --> taxes provider, shop templates update, multiCURL implementation, and more ... 2019-06-02 --> FieldtypeSnipWireTaxSelector 2019-05-25 --> SnipWire will be free and open source If you are interested, you can test the current state of development:
      https://github.com/gadgetto/SnipWire
      Please note that the software is not yet intended for use in a production system (alpha version).
      If you like, you can also submit feature requests and suggestions for improvement. I also accept pull requests.
      ---- INITIAL POST FROM 2019-05-25 ----
      I wanted to let you know that I am currently working on a new ProcessWire module that fully integrates the Snipcart Shopping Cart System into ProcessWire. (this is a customer project, so I had to postpone the development of my other module GroupMailer).
      The new module SnipWire offers full integration of the Snipcart Shopping Cart System into ProcessWire.
      Here are some highlights:
      simple setup with (optional) pre-installed templates, product fields, sample products (quasi a complete shop system to get started immediately) store dashboard with all data from the snipcart system (no change to the snipcart dashboard itself required) Integrated REST API for controlling and querying snipcart data webhooks to trigger events from Snipcart (new order, new customer, etc.) multi currency support self-defined/configurable tax rates etc. Development is already well advanced and I plan to release the module in the next 2-3 months.
      I'm not sure yet if this will be a "Pro" module or if it will be made available for free.
      I would be grateful for suggestions and hints!
      Please have a look at the screenshots to get an idea what I'm talking about (open spoiler):
      (Please note: these screenshots are from an early development state of SnipWire. To see actual screens please have a look at later posts below!)
       
    • By Robin S
      This module is inspired by and similar to the Template Stubs module. The author of that module has not been active in the PW community for several years now and parts of the code for that module didn't make sense to me, so I decided to create my own module. Auto Template Stubs has only been tested with PhpStorm because that is the IDE that I use.
      Auto Template Stubs
      Automatically creates stub files for templates when fields or fieldgroups are saved.
      Stub files are useful if you are using an IDE (e.g. PhpStorm) that provides code assistance - the stub files let the IDE know what fields exist in each template and what data type each field returns. Depending on your IDE's features you get benefits such as code completion for field names as you type, type inference, inspection, documentation, etc.
      Installation
      Install the Auto Template Stubs module.
      Configuration
      You can change the class name prefix setting in the module config if you like. It's good to use a class name prefix because it reduces the chance that the class name will clash with an existing class name.
      The directory path used to store the stub files is configurable.
      There is a checkbox to manually trigger the regeneration of all stub files if needed.
      Usage
      Add a line near the top of each of your template files to tell your IDE what stub class name to associate with the $page variable within the template file. For example, with the default class name prefix you would add the following line at the top of the home.php template file:
      /** @var tpl_home $page */ Now enjoy code completion, etc, in your IDE.

      Adding data types for non-core Fieldtype modules
      The module includes the data types returned by all the core Fieldtype modules. If you want to add data types returned by one or more non-core Fieldtype modules then you can hook the AutoTemplateStubs::getReturnTypes() method. For example, in /site/ready.php:
      // Add data types for some non-core Fieldtype modules $wire->addHookAfter('AutoTemplateStubs::getReturnTypes', function(HookEvent $event) { $extra_types = [ 'FieldtypeDecimal' => 'string', 'FieldtypeLeafletMapMarker' => 'LeafletMapMarker', 'FieldtypeRepeaterMatrix' => 'RepeaterMatrixPageArray', 'FieldtypeTable' => 'TableRows', ]; $event->return = $event->return + $extra_types; }); Credits
      Inspired by and much credit to the Template Stubs module by mindplay.dk.
       
      https://github.com/Toutouwai/AutoTemplateStubs
      https://modules.processwire.com/modules/auto-template-stubs/
    • By Mike Rockett
      Jumplinks for ProcessWire
      Release: 1.5.60
      Composer: rockett/jumplinks
      ⚠️ NOTICE: 1.5.60 is an important security patch-release for an XSS vulnerability discovered by @phlp. It's HIGHLY RECOMMENDED that all Jumplinks users update to the latest version as soon as possible.
      Jumplinks is an enhanced version of the original ProcessRedirects by Antti Peisa.
      The Process module manages your permanent and temporary redirects (we'll call these "jumplinks" from now on, unless in reference to redirects from another module), useful for when you're migrating over to ProcessWire from another system/platform. Each jumplink supports wildcards, shortening the time needed to create them.
      Unlike similar modules for other platforms, wildcards in Jumplinks are much easier to work with, as Regular Expressions are not fully exposed. Instead, parameters wrapped in curly braces are used - these are described in the documentation.
      Under Development: 2.0, to be powered by FastRoute
      As of version 1.5.0, Jumplinks requires at least ProcessWire 2.6.1 to run.
      View on GitLab
      Download via the Modules Directory
      Read the docs
      Features
      The most prominent features include:
      Basic jumplinks (from one fixed route to another) Parameter-based wildcards with "Smart" equivalents Mapping Collections (for converting ID-based routes to their named-equivalents without the need to create multiple jumplinks) Destination Selectors (for finding and redirecting to pages containing legacy location information) Timed Activation (activate and/or deactivate jumplinks at specific times) 404-Monitor (for creating jumplinks based on 404 hits) Additionally, the following features may come in handy:
      Stale jumplink management Legacy domain support for slow migrations An importer (from CSV or ProcessRedirects) Feedback & Feature Requests
      I’d love to know what you think of this module. Please provide some feedback on the module as a whole, or even regarding smaller things that make it whole. Also, please feel free to submit feature requests and their use-cases.
      Note: Features requested so far have been added to the to-do list, and will be added to 2.0, and not the current dev/master branches.
      Open Source

      Jumplinks is an open-source project, and is free to use. In fact, Jumplinks will always be open-source, and will always remain free to use. Forever. If you would like to support the development of Jumplinks, please consider making a small donation via PayPal.
      Enjoy! 🙂
    • By Robin S
      Add Image URLs
      Allows images/files to be added to Image/File fields by pasting URLs.

      Usage
      Install the Add Image URLs module.
      A "Paste URLs" button will be added to all image and file fields. Use the button to show a textarea where URLs may be pasted, one per line. Images/files are added when the page is saved.
       
      https://github.com/Toutouwai/AddImageUrls
      https://modules.processwire.com/modules/add-image-urls/
×
×
  • Create New...