Jump to content

Christophe

Members
  • Posts

    704
  • Joined

  • Last visited

Everything posted by Christophe

  1. https://affinity.serif.com/en-gb/supporting-the-creative-community/ + A new 90-day free trial of the Mac and Windows versions of the whole Affinity suite + A 50% discount for those who would rather buy and keep the apps on Mac, Windows PC and iPad + A pledge to engage more than 100 freelance creatives for work, spending the equivalent of our annual commissioning budget in the next three months (more details of this will be announced soon).
  2. An update soon. It seems that I have found a solution for at least the "add one or more events to a day" part. I have to adjust some php, html, css and other things. Also perhaps to change under which page(s) the template code has to be, under Agenda as it currently is or the pages for the years. The code is still quite short.
  3. In case someone needs it. Part of a PM. "Here is my "test" code(s) (created and tested in a online php tester) : First version before adding the name of the days (part): <?php setlocale(LC_ALL, 'fr_FR'); $year = "2020"; // change with processwire name $months_in_year = range(1, 12); echo "<h2>" . $year . "</h2>"; foreach ($months_in_year as $month) { $month_name = utf8_encode(strftime('%B', mktime(0, 0, 0, $month))); $days_in_month = date( 't', strtotime( $year . '-' . $month ) ); echo "<em>" . $month . "° mois : " . $days_in_month . " jours</em>"; echo "<h3>" . ucwords($month_name) . "</h3>"; foreach (range(1, $days_in_month) as $day) { echo "<p>" . $day . "</p>"; } echo "<hr />"; } Second version: <?php setlocale(LC_TIME, 'fr_FR.utf8','fra'); $year = "2020"; // change with processwire name $months_in_year = range(1, 12); echo "<h2>" . $year . "</h2>"; foreach ($months_in_year as $month) { $month_name = strftime('%B', mktime(0, 0, 0, $month)); $days_in_month = date( 't', strtotime( $year . '-' . $month ) ); echo "<em>" . $month . "° mois : " . $days_in_month . " jours</em>"; echo "<h3>" . ucwords($month_name) . "</h3>"; foreach (range(1, $days_in_month) as $day) { $day_name = strftime('%A', mktime(0, 0, 0, $month, $day, $year)); echo "<p>" . ucwords($day_name) . " " . $day . "</p>"; } echo "<hr />"; } setlocale because "Février" for example had accent encoding issues. Perhaps I won't need it. [ ucwords() OR ucfirst() ] mktime will only work correctly until 2038 apparently but I guess it's ok. (I suppose the Julian system is used by default.) There was also jddayofweek, for instance, but I couldn't quickly make it work so I tried and did the same as with $month_name At the beginning I also tried DateTime: a bit." I'm really not sure how to handle the next steps for the moment. I've had some suggestions. I've been away for some time, not using the computer a lot. I've created the php calendar/agenda part quite recently. It still needs adjustments. I still have to figure out how to add one or several events to a day, etc. And if, for example, I need to have years as pages or not in the admin, or as other fields elsewhere. (I guess at least 2 years should be available (for statistics/an annual report, and the following year). (Then will come the registered users solution(s) later. I still have several steps before.) I've just started now with: Agenda [template agenda] Years [template years] 2020 [template year] Events [template events] Event 1 [template event] Event 2 [template event] But I'm just beginning again. Perhaps it will change soon. I don't really know how I managed to create the calendar/agenda part. Just with some suggestions, searches on the Internet and trials and errors. ?
  4. Hi, I help sometimes a small non-profit organization by, among other things, improving the website that I created for them. Recently they asked me if I could add a functionality. So, they would like a kind of agenda/calendar. The editor(s) would enter the events, and the members of the association/organization would connect to the website, only to be able to add their names to the list of persons who would attend the event. They would also be able to remove themselves from the list. Perhaps even the number of persons would be a nice addition, but not obligatory. The list could only appear on hovering or clicking the mouse, it shouldn't necessarily need to be visible from the beginning. It should be visible from the other members connected to the website (on the frontend). Each member should have his/her own account, username and password. Of course their access to the admin should be very limited and secured. I already have some pro modules (even some that I haven't used yet), and I am willing to acquire a new one if it helps. I'm welcoming every suggestion (even though I already have some ideas and will continue researching). Have a very nice weekend!
  5. https://developer.mozilla.org/en-US/docs/Learn/HTML/Introduction_to_HTML/The_head_metadata_in_HTML Another note that might also interest you:
  6. Christophe

    other CMSs

    Just to share an accidental discovery. I've just stumbled upon this website: https://getpublii.com
  7. https://www.litespeedtech.com/products/cache-plugins Where is the ProcessWire LSCache module ??
  8. https://scout-app.io http://livejs.com https://www.sassmeister.com https://www.npmjs.com/package/livereload (?) https://compass.kkbox.com (?) (I didn't include some that are only free, and not open source.)
  9. https://github.com/oklai/koala "The project has been stopped!! The development method has changed a lot be from the project start time to now, and there are many better alternatives in the open source community. So I think the projet is outdated, and decided to stop maintenance. Sorry about for this. If someone is still willing to continue maintenance, welcome to create a new project, it will be the best way." Too bad!
  10. [ After a quick search for Koala (that I already knew but haven't used for the moment) with things that you are looking for. ] Listed in the video description: https://code.visualstudio.com http://koala-app.com https://marketplace.visualstudio.com/items?itemName=ritwickdey.LiveServer https://marketplace.visualstudio.com/items?itemName=ritwickdey.live-sass The video is not in English, but apparently it is understandable. You can surely find other videos on the subject.
  11. I've just noticed this: https://devilbox.readthedocs.io/en/latest/examples/setup-processwire.html The ProcessWire recipe is missing here: https://docs.lando.dev/config/recipes.html#supported-recipes
  12. Has anyone tried https://lando.dev? I've just found it. (I need MariaDB and not MySQL.) *** But the hardware requirements are quite high... https://docs.lando.dev/basics/installation.html#hardware-requirements *** And are some of you happy with Devilbox or Laravel Homestead, for example? (Preferably on Linux.) Are they too complex to install or use, or do they take up too much space, for instance? Is it worth it? What are your opinions? Thanks in advance! NB: For the last projects, I developed online. I will normally soon invest in a new computer for several reasons, one of them - not the most important - being the space left.
  13. https://www.fieggen.com/shoelace/index.htm Website I bookmarked some time ago.
  14. https://affinityspotlight.com/article/comedy-wildlife-photography-awards-2019-the-best-entries-so-far/
  15. https://www.comedywildlifephoto.com
  16. 3 other options among many others: https://leoeditor.com https://leoeditor.com/installing.html https://kaleguy.github.io/leovue/#/t/2 https://jupyter.org (and the new JupyterLab) https://rednotebook.sourceforge.io I'll perhaps add other ones when I find them again in my bookmarks or elsewhere.
  17. Mentioned in a book For CSS Grid (and also Flexbox): https://cssgrid.cc https://cssgrid.cc/css-grid-guide.html
  18. Hello, I hope you are all doing as well as possible. A friend has sent me the following link: https://undesign.learn.uno. And there seems to be interesting things also directly at https://learn.uno. Explore topics, Learning tools... Have a nice week! NB: I was not sure whether it was preferable to put this topic in Pub or in Dev Talk...
      • 3
      • Like
  19. I just wanted to share what I've just discovered after looking at Dragan's "CMS evaluation / checklist / usability (only in german for now)" article, even if I can't read german currently. https://animejs.com https://github.com/juliangarnier/anime
      • 9
      • Like
  20. https://trix-editor.org/
      • 3
      • Like
  21. Compilers/transpilers https://github.com/jashkenas/coffeescript/wiki/list-of-languages-that-compile-to-js [https://flow.org/ | A Static Type Checker for JavaScript. Also in the list.]
  22. In case: https://github.com/Alexia/php7mar https://github.com/phan/phan https://github.com/phpstan/phpstan https://github.com/gisostallenberg/php-to-7-aid https://github.com/swisnl/php7-upgrade-tools https://github.com/wimg/PHPCompatibility
  23. https://www.cnil.fr/en/open-source-pia-software-helps-carry-out-data-protection-impact-assesment "L’outil dispose désormais de 14 langues (français, anglais, italien, allemand, polonais, hongrois, finnois, norvégien, espagnol, tchèque, néerlandais, portugais, roumain et grec) dont six d’entre elles ont été révisées par les Autorités de Protection bavaroise, italienne, finlandaise, hongroise, polonaise et norvégienne." Edit: https://github.com/LINCnil Some repositories are cookie-related. https://github.com/AmauriC/tarteaucitron.js "Comply to the European cookie law"...
  24. Hello again, For YouTube videos, would it be possible to make it work with &rel=0 added at the end of the URL (like it is the case with Video Embed For YouTube/Vimeo). It works with the Video embed for YouTube and Vimeo module. Thanks in advance for considering it. Or if anyone knows how to enable it properly.
  25. Hello, When I try to install Video or Social Post Embed in ProcessWire 3.0.102, I have an error page with: Error Class '\VideoOrSocialPostEmbed' not found and File: /home/********/public_html/wire/core/Modules.php:535 525: ProcessWire::setCurrentInstance($wire2); 526: } else { 527: $wire1 = null; 528: } 529: } else { 530: $wire1 = null; 531: $wire2 = null; 532: } 533: 534: try { 535: $module = $this->wire(new $className()); 536: } catch(\Exception $e) { 537: $this->error(sprintf($this->_('Failed to construct module: %s'), $className) . " - " . $e->getMessage()); 538: $module = null; 539: } In version 2.8.62, the class wasn't found as well. If I disable Tracy Debugger, I see: Fatal error: Uncaught Error: Class '\VideoOrSocialPostEmbed' not found in /home/********/public_html/wire/core/Modules.php:535 Stack trace: #0 /home/********/public_html/wire/core/Modules.php(1704): ProcessWire\Modules->newModule('\\VideoOrSocialP...') #1 /home/********/public_html/wire/core/Wire.php(386): ProcessWire\Modules->___install('VideoOrSocialPo...', Array) #2 /home/********/public_html/wire/core/WireHooks.php(723): ProcessWire\Wire->_callMethod('___install', Array) #3 /home/********/public_html/wire/core/Wire.php(442): ProcessWire\WireHooks->runHooks(Object(ProcessWire\Modules), 'install', Array) #4 /home/********/public_html/wire/modules/Process/ProcessModule/ProcessModule.module(262): ProcessWire\Wire->__call('install', Array) #5 /home/********/public_html/wire/core/Wire.php(380): ProcessWire\ProcessModule->___execute() #6 /home/********/public_html/wire/core/WireHooks.php(723): ProcessWire\Wire->_callMethod('___execute', Array) #7 /home/********/public_html/wire/core/Wire.php(442): ProcessWire\WireHooks->runH in /home/********/public_html/wire/core/Modules.php on line 535 and Error: Uncaught Error: Class '\VideoOrSocialPostEmbed' not found in /home/********/public_html/wire/core/Modules.php:535 Stack trace: #0 /home/********/public_html/wire/core/Modules.php(1704): ProcessWire\Modules->newModule('\\VideoOrSocialP...') #1 /home/********/public_html/wire/core/Wire.php(386): ProcessWire\Modules->___install('VideoOrSocialPo...', Array) #2 /home/********/public_html/wire/core/WireHooks.php(723): ProcessWire\Wire->_callMethod('___install', Array) #3 /home/********/public_html/wire/core/Wire.php(442): ProcessWire\WireHooks->runHooks(Object(ProcessWire\Modules), 'install', Array) #4 /home/********/public_html/wire/modules/Process/ProcessModule/ProcessModule.module(262): ProcessWire\Wire->__call('install', Array) #5 /home/********/public_html/wire/core/Wire.php(380): ProcessWire\ProcessModule->___execute() #6 /home/********/public_html/wire/core/WireHooks.php(723): ProcessWire\Wire->_callMethod('___execute', Array) #7 /home/********/public_html/wire/core/Wire.php(442): ProcessWire\WireHooks->runH (line 535 of /home/********/public_html/wire/core/Modules.php) This error message was shown because: site is in debug mode. ($config->debug = true; => /site/config.php). Error has been logged. EDIT: I've just been able to install it via the backend (via the .zip URL from GitHub). I had done it manually before. I had renamed the folder and the .module file VideoOrSocialPostEmbed (like in the documentation(s)). I hadn't done it again without renaming anything (or had I? I don't remember. Perhaps both, or the folder or the file) so I don't know if it was the reason (or one of them). I've changed the PHP version from 7.1 to 7.2. Not sure it had an effect.
×
×
  • Create New...