-
Posts
11,097 -
Joined
-
Last visited
-
Days Won
365
Everything posted by adrian
-
BTW - in case you aren't already, you might want to consider adding the ForcePasswordChange module: http://modules.processwire.com/modules/password-force-change/ This helps to reduce the security issues associated with emailing a password. The user will be required to change their password when they first login.
-
Great - glad to hear you got everything working. I am super busy here at the moment and don't have time right now to see if there would be a simple way to remove the need for a blank "pass" column in the CSV field, but I don't think it matters so long as anyone attempting this knows it is required.
-
Hi Ivan, I am still half asleep, so might be completely off here, but you are doing a removeAll on "chalet_dining" - given that, should you be doing: $_page->chalet_dining->add($item); rather than: $_page->pagearray->add($item);
-
Hi @ZGD and welcome to the forums! Sorry you are having troubles with this module. It does sound like a very weird situation indeed. Can you please confirm that the from email address is correctly filled out in the module config settings, like so: If it is, could you try an: error_log($this->data['fromEmail']); just after line 141 and see what it returns.
-
@iNoize, Looking at your code, you are loading: EmailAdminNewUser rather than EmailNewUser. So, you are not using this module at all, but rather a module written by @Beluga - https://processwire.com/talk/topic/9811-frontenduser-login-logout-and-register-users-members/?p=101533 So I am afraid you will need to ask him about it.
-
Great find horst - I am most excited by the ability to save metadata. This has always annoyed me with PNGs in PS.
-
Thanks kongondo - I saw all those posted issues! I haven't thought about the issues involved in making append work, but I do think it is pretty critical functionality. Currently unintentional data loss is very possible and I would assume that append was actually the default behavior. Thanks very much for looking into the custom PHP code option!
-
@uiui - Sorry you are having troubles. I just tested and the only allowed filetype is mp4 (which is correct). I am wondering if perhaps you converted an existing files field to a video field? If so you will need to manually change the valid file extensions on the Details tab. Either that or add a new Video field from scratch. Please let me know if that takes care of things for you. Also, please note that the built-in ->play() uses the Sublime video player which is no longer available. At some point I may add built-in support for another (or several) players, but for the moment you will need to provide the player for the front-end yourself. I like http://mediaelementjs.com/ but there are lots of others.
-
Have a read of this page: http://processwire.com/docs/security/file-permissions/ It tells you what parts of your site should have what permissions. chmod and chown are the commands you are looking for, but depending on your website you can probably adjust these through some sort of graphical user interface as well.
-
What version of PW are you running? This was supposed to be fixed a while ago - https://github.com/ryancramerdesign/ProcessWire/issues/957 Take a look through that Github issue and if your version is after that fix, then maybe add a comment to the issue saying you still have an issue. To fix your current problem, it should just be a matter of creating that "name1082" field in the pages database. You should be able to do that easily via PHPMyAdmin. If you are worried, make a database backup first. Hope that helps!
-
Sorry for the delay - while I was out for dinner I realized exactly what the issue was - I needed the fieldName sanitizer, not pageName. Not sure why it worked before - I guess 2.6.14 enforced no dashes in fieldset names? Anyway, it is fixed now on the dev branch. if you don't want to switch to the dev branch at the moment, here are the changes you need: https://github.com/adrianbj/BatchChildEditor/commit/f1721794a77c1b6dfebcae692485f41ee0df75ea#diff-b79b82291600910335909ae234e40fdb
-
Not sure exactly what changed just yet, but it works for me so long as the Tab / fieldset name is only one word. Not sure if it's a bug that Ryan introduced or what, but if you use a multi word name, I run it through the PageName sanitizer and now it breaks the tab. Will investigate further later, but for now, one word names should work fine.
-
Don't ba amberressad - it heppans to avaryona, avan us netiva Anglish spaekars
-
Something else I am going to need shortly is the ability to check whether the CSV import appends rows, or overwrites - I actually haven't tested - does it currently append, or overwrite? Maybe if append, then it's ok because you can use the "Reset" to clear and then it is effectively an overwrite. Also, the ability to export to CSV would be very handy - it would be much easier to make major edits via Excel and then import when done. Just some ideas for when you're bored, although I might need these sooner than later - if so I'll send you a PR.
-
Hey kongondo - I know you are super-busy at the moment, but I actually have a use case where it would be much easier if it did store empty values. Because I am foreaching through column names I actually ended up having to put "ND" (for No Data) in the cells to get the desired result. This isn't a huge problem because I control the data going into the Matrix tables, but I think it might be a nice option to have. Thanks!
-
Thanks for the advertisement @mr-fan. Just to let you guys know here, the dev version of this module actually has a new "Lister" mode that works without ListerPro and allows you to embed a customized Lister into the editing interface for any page on your site.
- 24 replies
-
- 6
-
-
- draft
- Pro-Modules
-
(and 3 more)
Tagged with:
-
Thanks for reminding me why I didn't use filesizeStr
-
I forgot about that - should have remembered there was something built in
-
I am sure Wanze will be able to offer up a solution to get the filesize from the path. I just wanted to chime in with a nice function for converting to human readable filesizes: http://jeffreysambells.com/2012/10/25/human-readable-filesize-php function human_filesize($bytes, $decimals = 2) { $size = array('B','kB','MB','GB','TB','PB','EB','ZB','YB'); $factor = floor((strlen($bytes) - 1) / 3); return sprintf("%.{$decimals}f", $bytes / pow(1024, $factor)) . @$size[$factor]; }
-
I was a DirectoryOpus fan on Windows, and while I agree that Forklift doesn't have anywhere near as many config options, what it does, it does mostly very well and it has everything I need. It is not perfect but, in hindsight, DOpus almost has too many options. Each to his own right
-
Ionic is great and can work very nicely with ajax calls to a PW db and allows for iOS and Android development together with cordova. If you don't like angularjs (integral to ionic), take a look at famo.us or React Native.
-
Very nice - love the filter tool! Also - great to see the mention of PW on the credits page: http://ohmspeaker.com/credits/ Just one quick thing - the link to badasstheme.com on that page is broken.
-
Ok, just pushed a new version to dev that adds support for choosing an alternate Parent. This allows you to bring in child pages from any other parent in the page tree (like I mentioned in my previous post above). It's a new option under the Content / Deletion / Protection tab - obviously only available for page specific config settings. Also added an option to determine whether Filters/Columns/Actions are available in Lister mode - checkbox under the Lister mode settings tab. This version might require a little extra testing regarding allowed templates for editing/adding pages. Please let me know how it goes.
-
Call to a member function numChildren() on a non-object
adrian replied to Greg Lercher's topic in General Support
What version of PW are you running? I don't see a numChildren() of line 754 on either 2.6.1 stable or the latest dev. -
@mr-fan - thanks for the great feedback, testing, and the PR for language labels. Yep - I think the issue with the Lister view not working when there is an images field selected is a problem with PW dev / Lister I don't quite understand the Normal/Ajax load problem (I am sure I am missing something obvious so will look better later to see if I can figure out why that needs to be an available option when Open is checked. Yep - I was planning on making the Lister EDIT mode configurable to include the modal option, but there is something stopping it from working properly in modal mode - I think it's because Lister is in an iframe, but I will look again and see if I can get it to work - it would be much nicer for times when inline/ajax editing is not enough (or the user doesn't have ListerPro). I am also thinking of making it possible to choose a different parent (or maybe even use a full PW selector) so you can make BCE grab children from somewhere else in the page tree - I think this would only work for Lister, Edit, and Export modes, but could be very cool - kinda like the ability of PageTable to specify a different parent, but even more powerful. I'll hopefully play with this in the next few days and post a new dev version then.