Jump to content

dotnetic

Members
  • Posts

    1,037
  • Joined

  • Last visited

  • Days Won

    15

Everything posted by dotnetic

  1. I think this unnecessary, because there is not a single installer (of which I know) out there that is password protected (not PW, not WordPress, not Drupal, not NextCloud, etc.). And even if it was so, I think that most guys develop on a local machine and then upload to a live server. I know: People do stuff differently. However: Because of the upload functionality, it is a high security risk if people can upload files, without checking for permission. I think this does not matter on a local server, but on a live server it does.
  2. Thank you Bernhard for your efforts. This looks great. Hope I find the time to test it in the next days.
  3. Hey @arjen. This is a list I published in my blog article Why ProcessWire is the best choice for your website (not always, but in most cases) to convince people, that ProcessWire is not so unknown.
  4. Thanks, I added a few to the list. But I was looking for really BIG brands (like Nike, Porsche, etc.)
  5. It would be really nice, if you could share your insights @wbmnfktr @Macrura. Maybe I could update my article with them. @Macrura why isn't it a good idea to post it on the forum? Are there customer specific details in the paper? Maybe they can be removed and you could share it with the public. Would be nice, if you can send it to me per PM. It will help if we bundle our efforts to push ProcessWire´s popularity and acceptance.
  6. <?php /** * * TwigExtensions * * See README.md for usage instructions. * * @author Jens Martsch <jmartsch@gmail.com> * @version 1.0.0 * @see http://www.processwire.com */ /** * Class TwigExtensions */ class FriendChipFunctionsForTwig extends WireData implements Module { /** * Retrieves module meta data * Implementation of the Module interface * * @return array * @see http://processwire.com/apigen/class-Module.html */ public static function getModuleInfo() { return array( 'title' => 'Functions for Twig', 'summary' => 'Allows customizing twig, e.g. add extensions', 'version' => 100, 'singular' => true, 'autoload' => true, 'icon' => 'puzzle-piece', 'requires' => array( 'TemplateEngineFactory', 'TemplateEngineTwig' ) ); } public function init() { if ($this->modules->get('TemplateEngineTwig')) { $this->addHookBefore('TemplateEngineTwig::initTwig', $this, 'addExtensions'); } } /** * Hook add twig extensions * * @param HookEvent $event */ public function addExtensions(HookEvent $event) { $this->twig = $event->arguments('twig'); $this->addRelativeTimeStr(); $this->asset_path(''); } private function addRelativeTimeStr() { $twigWireRelativeTimeStr = new Twig_SimpleFunction('wireRelativeTimeStr', function ($date) { return wireRelativeTimeStr($date); }); $this->twig->addFunction($twigWireRelativeTimeStr); } /** * Returns the revved filename if a rev-manifest exists * else it returns the $filename * @param string $filename relative to the template/assets directory * @return string */ private function asset_path($filename) { $assetPathFunction = new Twig_SimpleFunction('asset_path', function ($filename) { $manifest_path = $this->config->paths->templates . 'assets/rev-manifest.json'; if (file_exists($manifest_path)) { $manifest = json_decode(file_get_contents($manifest_path), TRUE); } else { return $this->config->urls->templates . "assets/" . $filename; } if (array_key_exists($filename, $manifest)) { $manifest_filename = \ProcessWire\wire()->config->urls->templates . "assets/public/" . $manifest[$filename]; return $manifest_filename; } }); $this->twig->addFunction($assetPathFunction); } } or take a look at https://github.com/justb3a/processwire-twigextensions
  7. @wbmnfktr I removed the security related link, which was outdated anyways, as it was for the 2.x legacy version of ProcessWire. Right now, for PW3 there are no documented security flaws. The article is now translated into English and available here: https://jensmartsch.de/blog/why-processwire-is-the-best-choice-for-your-website Additions and comments are welcome. I also updated the first post, with links to both versions.
  8. Regarding my post/bug mentioned here This only happens when I selected or sidebar (left). I know, it's experimental ^^ With the Traditional setting with masthead navigation everything works fine.
  9. The article in German is up. Please see this post for details
  10. Hi guys, I published a new article "Why ProcessWire is the best choice for your website (not always, but in most cases)" on my website It is also available in German "Warum ProcessWire die beste Wahl für Ihre Website ist (nicht immer, aber in den meisten Fällen)". Feel free to comment or give me advice on missing things. Cheers Jens
  11. I am working on an article right now, that covers this topic, it´s called "Why ProcessWire is the best choice for your website (not always, but in most cases)". I hope I can publish it in the next few days. But first it is only available in german and will be translated afterwards (via DeepL and some manual corrections). I will post a link here in the forums, when the article is up.
  12. Hi guys, I am working on a blogpost to convince customers in doubt that ProcessWire is right for them. The article is almost ready, but first only in german and will be published on my website soon. It will be translated after publishing. One question that would be answered is "You have heard that ProcessWire is relatively unknown or not widely used" and I want to bring up some well-known brands as examples, that are using PW. Right now I have this list, but they are not so well-known: BMW Test Drive BMW Dealersites Die Höhle der Löwen Produkte Maxim Markenprodukte Jentschura´s Regenata KF Interactive Werbeagentur Dojo Werbeagentur FriendChip Verband österreichischer Banken und Bankiers Metasystems Informatiktage Captiva Writer Relocations So, do you know any big names, that use ProcessWire as their CMS?
  13. Hi @tpr. I found a bug if you use AdminOnSteroids with the latest AdminThemeUIKit in ProcessWire 3.0.84. If you have activated the setting "Edit modules in modal on long-click" under Module tweaks, then the Save Button has a weird behavior. First of all it does not work anymore, and second it displays multiple buttons (see screenshot). Another problem is, that the CTRL-S shortcut does not work with AdminThemeUIKit. It would be great if you could add this. Cheers Jens
  14. @adrian These additions are great. I think the new console function is very useful. Thank you for all your efforts.
  15. Netcarver is da man. I want it all and I want it now! Where is the download link.... can not wait
  16. I can confirm the wrong behaviour in a fresh PW install (in the backend/admin). This seems to be a general bug in the datepicker. You should file a bug report at https://github.com/processwire/processwire-issues. Eventually make a video/screencast to show the wrong behaviour. For ease to reproduce, export your field configuration and paste it into the bug report. To do this go to Fields -> Export Click the datetime field you want to export click export paste the json data into your bug report
  17. Why don't you publish your signup.php code here? Maybe someone takes a look at it and finds the error. You could also post this in the jobs section.
  18. Please be a little more specific. Which version of PW are you using? What are the settings for your field? You can export the field from the "fields" page and paste the code here.
  19. Somehow your module does not work correctly in my ProcessWire. I am using 3.0.71 right now. I have this code in my body field and your textformatter applied to the body field: <pre> <code class="language-php"> echo "this is PHP"; </code> </pre> After outputting it on my site it shows up as: pre> <code class=" language-php language-php"> <span class="token keyword">echo</span> <span class="token string">"this is PHP"</span><span class="token punctuation">;</span> </code> <script src="/site/modules/TextformatterPrism/prism/prism.js"></script> <script src="/site/modules/TextformatterPrism/prism/components/prism-php.js"></script> So as you can see, it the first pre tag is destroyed/converted and the closing pre tag is removed.
  20. Hi folks, I published "Simple file downloads with ProcessWire tutorial" today which explains how to make a simple download function with ProcessWire (tested with version 3.0+). Basically this is based on my post here in the forums
  21. Hey Adrian, I spotted another bug. If you go to the modules settings and check the "Generate Password" option, then after saving an error occurs: "Session: You need to have digits and at least one of the letter options checked."
  22. No the site is not online, I test here in my dev environment.
  23. I catch emails with Tracy´s mail interceptor, but no email is there.
  24. Yes, I removed that line, but email is still not being sent. I even set autoload to true in the settings file, but that changes nothing. Don't know why the email is not sent
  25. Even when I use: $modules->get("EmailNewUser"); $new_user = new User(); $new_user->of(false); $new_user->addRole("editor"); $new_user->email = "someone@somewhere.com"; $new_user->name ="someone-somewhere.com"; $new_user->sendEmail = true; $new_user->of(true); $new_user->save(); in Tracy console, the mail is not being sent. Or do I do something wrong?
×
×
  • Create New...