Jump to content


  • Posts

  • Joined

  • Last visited

  • Days Won


Everything posted by Andy

  1. @bernhard It wasn't really a website. It's a catalog of machine parts for the company. We were then looking for a CMS that could display the hierarchical structure of the catalog well. In addition, we needed the templates to have a different structure for different types of parts. One of our young programmers at the time said: there is a great American CMS - ProcessWire, it is perfect for our task. That was in 2012. In any case, we finished this project in 2012. I found a backup now. We used ryancramerdesign-ProcessWire v 2.2 In 2013, we moved our windsurfing store project from a self-described CMS to PW 2.4. By the way, the self-written CMS has been around since 2000. At that time @Soma cheatsheet helped us much. We still maintain that project, but have updated PW each time for new features from @ryan. Back then, there was no PW module for a full-fledged store. But in 2012, @apeisa published an example of such a module Shop-for-ProcessWire. We took it as a basis and now it is a working online shop. In fact, I made my first site in 1994, and it is now also converted to PW. It was such a long story with a happy ending.
  2. @ryan What I love about PW is that you can do the craziest projects with it. The flexibility of PW allows you to implement anything from a payment terminal to an e-book with maps. And even the older versions remain reliable and work as designed. I have PW version 2.3 running somewhere - no complaints from customers. This is a genius invention. Thanks. I hope to post a new project on PW here soon that implements a remote medical equipment management system.
  3. Hi @7Studio Very clean and concise design. Beautiful work. Progressive layout technology. About multilingualism. I recommend to include multilingual features at the very beginning of the site. Otherwise there may be problems that you will have to solve from the beginning.
  4. @fruid I looked for a solution on the forum. I couldn't find it. I had to write an answer for future generations.
  5. Make a static page 404.html Fix the line in the .htaccess file From ErrorDocument 404 /index.php to ErrorDocument 404 /404.html Also, it would be useful to read the article "Optimizing 404 requests in Processwire"
  6. Discovered another bizarre situation. If you upload a video in webm format, the video is uploaded to the editor, but it is not saved. This does not happen with the mp4 video format. The mp4 format is saved and displayed in the frontend.
  7. I was able to install without errors. With the configuration utf8 MyISAM When a delete COLLATE=utf8mb4_0900_ai_ci Other way with configuration utf8mb4 MyISAM - gives an error: A SQLSTATE[42000]: Syntax error or access violation: 1115 Unknown character set: 'utf8mb4mb3' My version MySQL 5.5.62
  8. Some as this problem with installation: SQLSTATE[HY000]: General error: 1273 Unknown collation: 'utf8mb4_0900_ai_ci' Created DB - utf8_bin Server version: 5.5.62 - MySQL Community Server (GPL) Database client version: libmysql - mysqlnd 7.4.30 Here was this collision, I think: CREATE TABLE `textformatter_video_embed` ( `video_id` varchar(128) NOT NULL, `embed_code` varchar(1024) NOT NULL DEFAULT '', `created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `data` text, PRIMARY KEY (`video_id`), KEY `created` (`created`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci; in file - install.sql
  9. Ready to participate in beta testing. It is definitely an interesting development.
  10. @ID Studio Web Agency Sometimes creativity is a delight. The 3D editor in PW is very cool.
  11. Hi @bernhard Thanks for the quick response. I see that you changed the status of RockForms to [deprecated]. Can I practice on the old version or have the terms of use changed? If the module became paid, what are the terms of use for the new module?
  12. Hi @bernhard RockForms looks extremely intriguing. I should definitely give it a try. However, I haven't found how to use the datepicker in the form. Does it have to be external or I just don't get it?
  13. Hi @bernhard Impressive project. It's a little jealous that I can't do that yet. Tell me please, why did you use RockForms here when you have the PW Form Builder?
  14. How to enable archive support in PHP. Your web hosting provider must have these options enabled when running PHP. If you control this yourself, add these keys on the PHP command line: --with-bz2=/usr --with-zip --with-zlib Detailed instructions are here: https://bobcares.com/blog/enable-php-zip-extension-cpanel/
  15. Hi @ryan I made a small function to help Slavic translations. function my_decl($n, $forms){ $modulo = $n % 10; $dec = $n % 100; return $n . ' ' . (($dec > 9 && $dec < 20) || $modulo > 4 || $modulo == 0 ? $forms[2] : ($modulo == 1 ? $forms[0] : $forms[1])); } echo my_decl($leta, ['rok', 'roky', 'let']); // cz echo my_decl($chas, ['година', 'години', 'годин']); // ukr echo my_decl($girls, ['девушка', 'девушки', 'девушек']); // ru Czech version: When $leta=0, it returns the string '0 let'. When $leta=1, it returns the string '1 rok'. When $leta=2, it returns the string '2 roky'. When $leta=30123, it returns the string '30123 roky'. When $leta=30120, it returns the string '30120 let'.
  16. @Thromisios By the way, Ryan wrote an article on how to start a PW installation. https://processwire.com/blog/posts/starting-with-the-blank-profile/ It can be helpful.
  17. Hello @Thromisios First, I would refer you to the ProcessWire documentation - https://processwire.com/docs/start/ And then, look through the sections of the forum: https://processwire.com/talk/forum/8-getting-started/ https://processwire.com/talk/forum/13-tutorials/ https://processwire.com/talk/forum/6-faqs/ Next, I would look at the sections of the forum and documentation that raise more questions for me. And of course https://www.php.net/ when you don't understand how PHP works. Good luck with your adventures.
  18. Hi @ryan Slovenian "Language: sl\n" "Plural-Forms: nplurals=4; plural=(n%100==1 ? 1 : n%100==2 ? 2 : n%100==3 || n%100==4 ? 3 : 0);\n" msgid "%d translated message" msgid_plural "%d translated messages" msgstr[0] "%d prevedenih sporočil" msgstr[1] "%d prevedeno sporočilo" msgstr[2] "%d prevedeni sporočili" msgstr[3] "%d prevedena sporočila" Russian "Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" msgid "%d day ago" msgid_plural "%d days ago" msgstr[0] "%d день назад" msgstr[1] "%d дня назад" msgstr[2] "%d дней назад" Czech (some as Russian) msgid "Updated %d path" msgid_plural "Updated %d paths" msgstr[0] "Aktualizována %d cesta" msgstr[1] "Aktualizovány %d cesty" msgstr[2] "Aktualizováno %d cest" Almost all Slavic languages have such plural forms. If you get support for these multiple forms, it will greatly improve the translation. Gettext algorithms for all languages can be found here: http://docs.translatehouse.org/projects/localization-guide/en/latest/l10n/pluralforms.html
  19. @ryan It's written like a good detective novel. It's a pleasure to read.
  20. @ryan When Cyrillic letters are used in the name, capital letters are no longer transliterated. Small letters work fine, but capital letters does not work. echo $sanitizer->pageNameTranslate('Город'); // "gorod" The problem started after upgrading ProcessWire to 3.0.184 Before that everything was working fine. If anyone has any thoughts on this, I'd love to hear them.
  21. @Адриан I found today that not all phrases are translated. This applies to the configuration file. I can't understand why this is happening. array( 'type' => 'checkbox', 'name' => 'autoload_assets', 'label' => __('Autoload Assets'), 'description' => __('Autoload module CSS and JS files.'), 'notes' => __("If you disable this, you will need to load these files manually:\n```&lt;link rel='stylesheet' type='text/css' href='/site/modules/CookieManagementBanner/assets/css/CookieManagementBanner.css' /&gt;\n&lt;script defer src='/site/modules/CookieManagementBanner/assets/js/CookieManagementBanner.js'&gt;&lt;/script&gt;```\nNOTE: you must load the JS file with the defer attribute."), 'value' => 1 ), The configuration does not use translation, but shows the original text. The angle brackets are not displayed as they should be.
  22. @kixe No. That's not how it works now. // Single select example $page->of(false); $page->multy_select_field = PageArray( wire('pages')->get(1111) ); $page->save(); $page->of(true); // Multyple select example use construction $a = PageArray([ $page1, $page2, $page3 ]); $page->of(false); $page->multy_select_field = PageArray([ wire('pages')->get(1111), wire('pages')->get(2222) ]); $page->save(); $page->of(true);
  23. @bernhard At one time a module was written to manage customer orders. In 2013, Apeisa published Shop for Processwire version of DEV. There were a lot of interesting points there that we used. Payment gates with our bank were gradually added. Most importantly, it's all written for the kind of commerce our store uses. Usually CMS for trading offer their own trading algorithm. And this is not always convenient.
  24. @clsource Nice article. All in all, very true. However, I disagree with one point. At one time, I went through a lot of CMS in search of a basis for the development of the store. In the case of complexly organized product hierarchy, all other CMS do not allow to implement an effective solution. And only ProcessWire makes it easy to implement the most complex hierarchy. At the same time, it can handle the load of a million requests. Moreover, I started my work in 2013. Now ProcessWire has many more features and capabilities.
  25. @3fingers It's a neat solution. Thank you.
  • Create New...