Jump to content

adrian

PW-Moderators
  • Posts

    10,912
  • Joined

  • Last visited

  • Days Won

    349

Everything posted by adrian

  1. @Christophe and @jploch - I have committed a very quick fix that allows this module to work even if you don't have ffmpeg installed. Obviously the ability to grab poster images for the video won't work. Also it won't be able to determine the length of the video. Both of these require ffmpeg. I will revisit this again when I am back from vacation and add the ability to manually upload a poster image, but for now at least this module will work and you can now have the benefits of automatically playing videos with a simple: echo $page->video_field->play; Hope that helps as an interim improvement.
  2. Hi @ottogal, I have just committed a new version which handles both your requests: hiding the instructions about the shortcut to protecting the entire site ability to set a default Prohibited Message in the module's config settings. Let me know if you have any problems with this.
  3. Hi @slave - sorry you haven't had a reply until now. I haven't tried that combination myself, so not sure if it will work or not, but the new Repeater Matrix field sounds like it might suit your needs: https://processwire.com/api/modules/profields/repeater-matrix/
  4. I just added another option to this module that can limit the automatic naming to match the title to only unpublished pages. If the page is published, the name will be left untouched. This might help out those users who are steadfast in their opinion that the URL to a page should never change - not judging this opinion by the way - it is a very strong argument. With this new setting you can change the title multiple times while it's still in unpublished (in draft if you will) and the name will change automatically. Once it is published, changes to the title won't affect the name. Hope that wins a few more users over
  5. Thanks for the kudos - and yes, I will look into adding that Xdebug helper module (https://componette.com/jsmitka/nette-xdebug-helper/). There is actually another one that I didn't mention in the post: https://componette.com/milo/xdebugtracepanel/ which is for showing Xdebug traces in a Tracy panel - it is currently abandoned, but the author says he is working on a new version, but not sure on the status of that. I shouldn't be, and I am not really - I was just silly enough to check my email the other day and saw a request from Ryan for a blog post. I am actually away on an extended trip, so I don' really mind
  6. The latest PW blog post is all about TracyDebugger: https://processwire.com/blog/posts/introducing-tracy-debugger/ Hope you guys find some new info and tips in there - sorry, it's a pretty long read
  7. Might be an option. I'll have a play with the new ajax stuff in the latest version of Tracy and see if it's worth it.
  8. Cool, I hadn't seen this yet - could be very handy!
  9. Can I just say that even though it looks cool, it is almost as bad as a 90's splashscreen to me - please don't help to perpetuate the return of that evil! PS - I wouldn't mind it so much if it went straight to the slideshow - but the delay on his name when I can't do anything is my biggest beef with it.
  10. Hi @Tom Walcher and welcome to the forums. It is for getting variations of an image - cropped, resized, etc. So based on a quick look, you probably won't see these variations listed in your images field. Not ideal, but maybe not critical for you needs - hard to say. The getExtension method for DirectoryIterator was added in PHP 5.3.6 so that is your key issue. There are other places it is used in the PW core though too: https://github.com/ryancramerdesign/ProcessWire/search?utf8=%E2%9C%93&q=%22-%3EgetExtension%22 So you might have other issues when viewing log files through Setup > Logs or dealing with multi-language stuff. It actually wouldn't be hard at all to replace this method with another approach to getting the file extension, but given that PHP 5.3.3 is 6 years old I think you might be better off hassling your hosting provider to update their system
  11. Thanks for the report @tpr and for the solution @LostKobrakai. Sorry, I am on the road at the moment (mostly vacation) and so my response time could be several days. It sounds like you have everything working as needed at the moment, but let me know if you think that perhaps Tracy needs to handle this better. Not the same thing I know, but the latest version of Tracy (the core project) now provides details on ajax requests - might be coming soon to this module, but there is a PHP 5.4.4 requirement, so might have to wait until PW drops 5.3 support.
  12. @jploch, It sounds like you have the same needs as @Christophe. I have been meaning to take care of this but haven't managed to get to it just yet. I am currently traveling (mostly vacation), so can't guarantee when I will get to this, but it would be good to get this done shortly and tune this up for official release in the modules directory.
  13. Hi @MikeB, Sorry that you are seeing those errors. I can't figure out why here at the moment. I could add a check to make sure that $value is an object before the code on lines 140 and 145 is processed, but I would like to be able to replicate what you are seeing first. Presumably you are getting this error when saving a page with this template in the admin? Is the phone field in a normal template, or is it part of repeater, or some other combined field situation? Let me know more and I am sure this will be an easy fix. PS - I am on the road at the moment, so forgive me if my responses are delayed.
  14. I am not completely sure either, but here are a couple of links that mention the concept: http://research.microsoft.com/en-us/people/xingx/tic1.pdf http://ieeexplore.ieee.org/xpl/login.jsp?tp=&arnumber=1407778&url=http%3A%2F%2Fieeexplore.ieee.org%2Fxpls%2Fabs_all.jsp%3Farnumber%3D1407778 http://link.springer.com/chapter/10.1007%2F978-3-540-74784-0_17 Without really having read these, I think an example might be serving up smaller images for mobile devices, or maybe he is talking about AWD vs RWD? Maybe I need to read some more, or maybe Guy will chime in and explain!
  15. They are the default user template and page: Templates table Pages table
  16. Thanks for the kudos Peter: http://significatojournal.com/bliss/an-exaltation-of-creativity-and-bliss/the-significato-journal-is-now-a-mobile-first-responsive-website/
  17. Here's an article that is mostly about Concete 5, but makes some comparisons with PW - maybe some ideas in there! http://www.spiria.com/en/blog/websites/concrete-5-top-user-friendly-cms Note that Guy also wrote a dedicated PW post: http://www.spiria.com/en/blog/websites/processwire-light-powerful-elegant Not sure if that has been posted here before or not.
  18. Sorry, no time for a detailed answer, but this might be helpful: This hooks into the check for whether a page is editable. Currently it is preventing access (returning false) for any page with the "mytemplate" template. You could modify this to check for certain users/roles. $this->addHookAfter('Page::editable', function($event) { if($event->object->template == "mytemplate") { $event->return = false; } }); You might also find some useful code/ideas in these two modules: http://modules.processwire.com/modules/admin-restrict-branch/ http://modules.processwire.com/modules/page-protector/ Hope that helps to get you going!
  19. It's still there for me. Remember this will only be on the main module config settings page, not the settings tabs for individual pages. Also, note that once you have protected the homepage, this shortcut is no longer available - it doesn't have any purpose in this case.
  20. @ottogal - I just tested here to confirm it is still working as expected with PW 3 and everything seems to be fine. Unfortunately I am traveling at the moment with very limited internet access so I don't really have much time to help you at the moment. Is it possible you also have some other modules that are impacting access permissions? I would try testing on a clean PW install to see if you can narrow down the issue. I'll check back in again when I can to see where you're at.
  21. It sounds like you are using the PageProtector module. It only prevents users from viewing pages on the front-end. I can't tell if that's what you want or if you expect them to also not be able to view and edit them in the backend? Also, you say that you selected all roles, except the member role. Do the members also have one of the other selected roles? Including "guest"?
  22. Hi @paulkoan - welcome to the forums. Can you please let us know the version of PW you are running. Could you also right click and inspect element and show us the classes attached to the button. Any chance you are adding any custom css via "AdminCustomFiles" or some other way?
  23. You don't appear to be saving the page anywhere, so do this: $p->save('textJSon'); after you set the $value
  24. Hi Peter - have you seen this: https://github.com/plauclair/WireMailMailgun
  25. Based on line 112 having the word "include" on it, I am guessing it might be related to this: https://github.com/ryancramerdesign/ProcessWire/issues/1739 although I would have thought that your error message would have been from site/assets/cache/FileCompile/site/modules/ServicePages/ServicePages.module
×
×
  • Create New...