Jump to content

gmclelland

Members
  • Content Count

    517
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by gmclelland

  1. Silverstripe - https://www.silverstripe.org/ also does a good job with this. Here is a quick screencast. I wonder though if these are usable on mobile / tablet? silverstripe.mp4
  2. Thanks tpr, but I don't think that is obvious enough. If we rely on drag and drop we will have to explain/train our users on how to use the user interface. IMHO.. I'd rather have a simple button that pops up a modal that includes a standard file chooser input field in case the user just wants to select a file and doesn't want to drag and drop.
  3. Thanks tpr, I created an issue on github for those who would like to follow along. https://github.com/ryancramerdesign/ProcessWire/issues/2047
  4. Hi tpr. Feature Request: If possible one thing I would like to see is better consistency for replacing files in file and image fields. This is a task that content editors have to do constantly, so I would like to make it dead simple and obvious. Here is some quick mockups: For image fields: When the "Replace Image" Button is clicked, a modal dialog pops up. For File Fields: Same thing...It opens a dialog to replace the file Any thoughts?
  5. I already had Tracy Debugger installed, but didn't know about this. Very nice, thanks szabesz!
  6. I just installed this on 3.0.33 devns and so far it seems to work fine.
  7. I see the problem... I installed the site with pwshell and didn't set a timezone. In the response there was this warning Warning: strtotime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. As soon as I set the timezone in the config.php everything started working. Sorry for the alert
  8. Heads up... I just downloaded a fresh 3.0.33 devns and the page tree was failing to load everytime I enabled TracyDebugger.
  9. Works with the default theme now. Thanks tpr!
  10. Just reporting...I added the snippet you provided to the module file and now the default theme has a working sticky header.
  11. I added that snippet to a template file, but it didn't output anything. I also have Tracy debugger and tried using the php console, but it didn't output anything either.
  12. After reading the comment in the scss file // AdminTweaks (default theme tweaks) // note: the default theme adds theme name class only to body, AOS adds to html maybe AOS isn't adding the class "AdminThemeDefault" to the html element in the default admin theme in AdminOnSteriods.module line 243?
  13. Actually I bet what is happening is the AOS css is targeting the html element when it should be targeting the body element on line 2166 of AdminOnSteriods.scss
  14. The default theme is missing the "AdminThemeDefault" class on the html element. After I added that manually it worked.
  15. I just updated to v056 and here are my html element classes <html class=" headSticky HoverDropdown moduleCompact moduleModal" lang="en"> and <body class="id-10 template-admin hasWireTabs AdminThemeDefault ProcessPageEdit-id-1015 ProcessPageEdit-template-left-sidebar pw-ready InputfieldColumnWidthsInit"> So I have classes now, but the header still isn't sticking. Sorry... I'm trying to find the problem as well.
  16. There isn't any classes on the html element.
  17. Strange. It still didn't work. I clicked the clear compiled files button at /admin/module/. I also did a module refresh. I'm using the latest Google Chrome on a mac. Here are my body classes when editing a page. id-10 template-admin hasWireTabs AdminThemeDefault ProcessPageEdit-id-1002 ProcessPageEdit-template-basic-page pw-ready InputfieldColumnWidthsInit
  18. Just wanted to let you know that the sticky header isn't sticking for me with the latest 3.0.32 devns and the default theme. Seems like it started after I upgraded to 3.0.32. I'm also using the latest AOS. I have hard refresh the browser several times.
  19. I haven't tried it yet, but this module looks great! I'm guessing the Media files are stored using PW pages? Is there any way to add more fields to those PW pages? For example, I might want to use a text field to store where I got the image from. I'm also curious how the File Usage works? Does it just count and list the pages where the media file is used in a media field. Does it also take into consideration files that have been inserted into text areas? Does it include pages with text areas that link to the files?
  20. I'm so confused. Today it just started working. I didn't even do anything. Maybe opcache related? Even tested on different PW2 and PW3 sites. HI @adrian and @horst. I tried Tracy debugger and here is what it shows (see attachment) It also confirmed that I was editing the correct php.ini file. Thank you both for your help. I'm hoping it won't happen again
  21. I thought so, but then out of the blue it just stopped working and I can't seem to figure out how to get it working again.
  22. Well crap, now for some reason I can't upload images or files on my mac. Same problem, but I'm just using core image and file fields. It was working, I'm not sure what changed? This happens with PW2 and PW3 sites when I try to upload the files. I've tried the same in firefox, chrome, and safari. When I check my response in Chrome it shows the following: <br /> <b>Deprecated</b>: Automatically populating $HTTP_RAW_POST_DATA is deprecated and will be removed in a future version. To avoid this warning set 'always_populate_raw_post_data' to '-1' in php.ini and use the php://input stream instead. in <b>Unknown</b> on line <b>0</b><br /> <br /> <b>Warning</b>: Cannot modify header information - headers already sent in <b>Unknown</b> on line <b>0</b><br /> [{"error":false,"message":"Added file: globals.jpg","file":"\/site\/assets\/files\/1002\/globals.jpg","size":25337,"markup":"\n\t<li id='file_91ef455ec27970cb238861b2c8895d64' class='InputfieldFileItem InputfieldImage ui-widget'>\n\t\t<p class='InputfieldFileInfo InputfieldItemHeader ui-widget ui-widget-header ui-helper-clearfix'>\n\t\t\t<span class='HideIfSingle HideIfEmpty InputfieldFileDrag'><i class='fa fa-sort'><\/i> <\/span>\n\t\t\t<i class='fa fa-caret-right InputfieldFileDrag HideIfMultiple'><\/i> \n\t\t\t<label class='InputfieldFileDelete'><input type='checkbox' name='delete_images_91ef455ec27970cb238861b2c8895d64' value='1' title='Delete' \/><i class='fa fa-fw fa-trash'><\/i><\/label>\n\t\t\t<a class='InputfieldFileMove InputfieldFileMoveBottom' href='#' title='Move to bottom'><i class='fa fa-fw fa-angle-double-down'><\/i><\/a> \n\t\t\t<a class='InputfieldFileMove InputfieldFileMoveTop' href='#' title='Move to top'><i class='fa fa-fw fa-angle-double-up'><\/i><\/a> \n\t\t\t<a class='InputfieldFileName pw-modal pw-modal-large' title='globals.jpg: globals.jpg (281x386)' href='\/admin\/page\/image\/edit\/?id=1002&file=1002,globals.jpg&rte=0&field=images' data-buttons='#non_rte_dialog_buttons button' data-autoclose='1' data-close='#non_rte_cancel'>globals.jpg <i class='fa fa-pencil ui-priority-secondary'><\/i><\/a> \n\t\t\t<span class='InputfieldFileStats'>25 kB, 281x386 <\/span> \n\t\t<\/p>\n\t\t<div class='InputfieldFileData ui-widget ui-widget-content'>\n\t\t\t<div class='InputfieldImagePreview'>\n\t\t\t\t<a class='InputfieldFileLink' target='_blank' href='\/site\/assets\/files\/1002\/globals.jpg?nc=10'><img height=\"100\" src=\"\/site\/assets\/files\/1002\/globals.0x100.jpg?nc=1452724334\" alt=\"\" data-gridsize=\"100\" \/><\/a>\n\t\t\t\t<div class='InputfieldImageActions'>\n\t\t\t\t\t<a title='globals.jpg (281x386)' href='\/admin\/page\/image\/edit\/?id=1002&file=1002,globals.jpg&rte=0&field=images' class='pw-modal pw-modal-large' data-buttons='#non_rte_dialog_buttons button' data-autoclose='1' data-close='#non_rte_cancel'><i class='fa fa-fw fa-crop'><\/i><\/a>\n\t\t\t\t<\/div>\n\t\t\t<\/div>\n\t\t\t<div class='InputfieldFileDescription'><label for='description_images_91ef455ec27970cb238861b2c8895d64' class='detail'>Description<\/label><input type='text' name='description_images_91ef455ec27970cb238861b2c8895d64' id='description_images_91ef455ec27970cb238861b2c8895d64' value='' \/><\/div>\n\t\t\t<input class='InputfieldFileSort' type='text' name='sort_images_91ef455ec27970cb238861b2c8895d64' value='0' \/>\n\t\t<\/div>\n\t<\/li>","replace":false,"overwrite":0}] I tried disabling xdebug, turning off php error warnings, turning off debug mode in Processwire, always_populate_raw_post_data = -1 and 0 in my php.ini all while restarting apache between each change. In my PHP error logs I get: [Fri Jul 29 19:01:42.816150 2016] [:error] [pid 900] [client 127.0.0.1:50397] PHP Deprecated: Automatically populating $HTTP_RAW_POST_DATA is deprecated and will be removed in a future version. To avoid this warning set 'always_populate_raw_post_data' to '-1' in php.ini and use the php://input stream instead. in Unknown on line 0, referer: http://pw3.dev/admin/page/edit/?id=1019 [Fri Jul 29 19:01:42.816467 2016] [:error] [pid 900] [client 127.0.0.1:50397] PHP Warning: Cannot modify header information - headers already sent in Unknown on line 0, referer: http://pw3.dev/admin/page/edit/?id=1019 I'm running PHP 5.6.24 / Apache/2.4.18 on my mac installed with homebrew. Any other help is appreciated
  23. Nice module. Just a suggestion... Maybe you could add an option to also hide all but the first select input? When someone selects the first option it could show the next select field as so on?
  24. Is there any way to turn off the "quote this" popup when you select text? It's driving me crazy.
×
×
  • Create New...