Jump to content

Christophe

Members
  • Posts

    688
  • Joined

  • Last visited

Everything posted by Christophe

  1. tus and the Uppy File Uploader (an official implementation by the same people) seem really interesting. As well as resumablejs and transfer.sh (mentioned in a linked topic).
  2. Or Stripe Checkout: https://stripe.com/checkout https://stripe.com/docs/checkout (Integrating Checkout, etc.) https://stripe.com/docs/checkout/php Edit: http://modules.processwire.com/modules/payment-stripe/
  3. Hello, Nice! If I have the choice I prefer to use a program like FileZilla for (S)FTP. I still have to try FreeFileSync (that I'm using for computer backups) for (S)FTP synchronization, but it seems easier to set up (and use) for Windows or Mac OS X than for Linux. You could perhaps at least lower your folders' permissions to 755 (instead of 775, like it's the case for assets/ and templates/). Perhaps quickly check your (sub-)folders' and ("sub-")files' permissions (even outside site/). Have a nice weekend!
  4. Hi, 755 for folders and 644 for files (with FileZilla, for example, you can easily do it - recursively). But you can/could lower the permissions for some files like site/config.php, .htaccess, index.php, ready.php, etc., depending on your hosting environment, as long as it works. See also https://processwire.com/docs/security/file-permissions/ Perhaps you should empty your site/assets/cache/ folder. You can also look at the results in Google for the following request: site:processwire.com/talk 'failed to open stream: Permission denied' warning Edit: verify the site/assets/ folder permissions as well as the permissions of all its (sub-)folders and ("sub-")files. (Perhaps, also try refreshing the modules cache.)
  5. Hello, And thank you for the code for site/ready.php. WIth comments,etc. I think I understand its logic, at least enough for the moment. I've started looking at the Hooks pages/docs again. The code doesn't seem to work currently. I can't know why. No error messages. I've modified the id's. Yes, in case the website has another language activated, it's better to use id's :). And for qui_1->id, the id is the id of the page being referenced as a choice, so I changed it well normally. The field is mandatory. I've filled in and sent 2 fake form instances to test ready.php. When I click on publish for these pages nothing seems to happen. The page stays under the temporary parent, with the temporary template. I see "Session: Page saved: /.../ (1 change/modification). And also, I see "Session: Modification : status" and "Session: page still unpublished" but only after publishing then unpublishing the page(s). I have debug mode (still) on. Perhaps $page->save(); should be used twice? As the new template is only available when the new parent is "saved". But perhaps it's different with the api(?). It could be anything that makes it not working of course :/. (If it's needed, I can provide more information, etc.) Have a nice day/week! NB: perhaps the order of some things/"commands" have to be changed(?). Or perhaps in finished.php (But, "Admittedly, this is probably not the place you would put hooks,..."). Edit: should I install Tracy Debugger?
  6. Hi @FlorianA, Could you post more details related to your piece of code? I have the impression that it's a little (missing) detail that's making it not working.
  7. Hi, Try this in Google: site:processwire.com/talk/ "The process returned no content" errors There are even processwire-related results without the site:processwire.com/talk/ part.
  8. Hello, How to automatically change a page's parent then its template once/after the page is published (while being a child of a temporary parent)? The new template is only available for a child of the new parent (and the old template is also available). Does someone know how to do this? It's the first thing I have to find a solution for. To translate the following to a hook in ready.php, or in another more adequate file? If a page using the directory_page_temporary template (or perhaps it's better to say if a page whose parent has the name annuaire-repertoire-temporaire-avant-validation, or is using the directory_listing_temporary template) is set to published: if the page's qui_1 (radio button) field is set to mannequin-modele (page reference), then: change its parent to/move it under the parent whose name is mannequins-modeles (or who is using the template directory_listing_mm), change its template to directory_page_mm. if the page's qui_1 (radio button) field is set to autre-artiste (page reference), then: move it under the parent whose name is autres-artistes (or who is using the template directory_listing_autres_artistes), change its template to directory_page_autre_artiste. qui_1 is of type Page Reference. In the Field tab, in Selectable pages, Parent is set to Choix Mannequin/Modèle ou Autre Artiste (Choix translating to Choice). This Choix Mannequin/Modèle ou Autre Artiste page's path is /fr/outils/choix-mannequin-modele-ou-autre-artiste/ (the website is multilingual-ready, but only French is currently activated/used). And Choix Mannequin/Modèle ou Autre Artiste's children are, as you have probably guessed, Mannequin/Modèle (mannequin-modele being the name) and Autre Artiste (autre-artiste being the name). Outils and its children are Hidden. Edit: the page should be automatically added to the top under its new parent. Thanks in advance for any help! [ Related topic: https://processwire.com/talk/topic/18497-help-needed-to-improve-a-websites-functionalitiesfeatures/ ]
  9. What are you using on localhost and the other server? On (Laravel's (?)) Forge, Nginx is used, not Apache apparently. Edit: so you are (perhaps) using Digital Ocean on Laravel's Forge, which is where it doesn't work? But you mentioned another server where it works, which one is it? There are perhaps some tweaks that are needed.
  10. Hello, Do you at least see the changes in the backend/admin ("message that data is saved")? If you see the modifications in the backend, could it be a cache issue (browser, server, processwire...), and because of that you don't see the changes on the frontend of the website? Can you give more details (hosting...)? What are the technical differences between your local and live environments?
  11. Hello, And thanks for your message. [ Edit: I'll look at this "Login Register" module. But, the website uses ProcessWire 2.8.62 (I've updated it). I'm "afraid" of upgrading it to version 3. I have to check again what to change for the update. But I just have the following modules installed: Form Builder 0.3.0, Social Share Buttons, Database Backups, and Upgrades (the "Upgrades" module not working like before since the last ProcessWire update). ] First, when the data entered in the inscription form [ https://goo.gl/LF57a3 ] is sent via Form Builder, apart from currently sending an email with the information, a processwire page is also created under a (common) temporary parent/"directory" (with its own template), whatever the choice is (Model or Other artist) for the radio button field. I've made the change to the (radio button) field so that it cannot be edited. What I would first need now, before anything else, is, for example, an automated way, as soon as the client validates the page by publishing it, to move it under its non-temporary/real parent page (depending on if the page is set to Model or Other artist) and after to change its template (depending also on the same). There is "Annuaire des books", the real "directory" (the "Grandparent"), and under it, the "Mannequins/Modèles" parent and the "Autres Artistes" parent (each one having its own template available. So, as I said earlier, currently, the parent change then the template change have to be done manually, and changing the template from the temporary one to the new adequate one removes the unnecessary fields after confirmation. And, of course, their children have their own unique template.). So, there are 6 templates: directory_listing_autres_artistes directory_listing_mm directory_listing_temporary directory_page_autre_artiste directory_page_mm directory_page_temporary (By the way, URL Segments are used for the Models or Others artists on the front-end.) I don't know what would be the best option in order to automate these two things and how to do it. With a hook(s) in ready.php or elsewhere, and which one(s)/how? Or with the "Admin Actions" module, and how? I'm going to keep in mind (at least) the following modules, for when I have the first automation solution already working and I can continue: Email New User Password Generator Force Password Change Restrict Tab View PageEditPerUser (and/or https://processwire.com/talk/topic/214-lock-user-to-be-able-to-view-and-edit-one-page-only/) Some of these modules seem to solve part of the automation processes. I'll have to see/know what is(/are) the best and most secure way(s) to create users, how they can be created automatically, from the existing email (complete or the part before "@") or "pseudo"/"alias" field (without duplicates possible), for example. Or perhaps it would be better to "generate" a(n) (manual or automatic) "action" from time to time (with the "Admin Actions" module or another one/way) in order to create the users when new pages are created and the users for these pages haven't been created yet. Also, I'll have to find how to use the front-end editing for these users. So many (new) things/steps. I guess Models and Other artists users could have the same role. [ Post moved to https://processwire.com/talk/topic/18523-how-to-automatically-change-a-pages-parent-and-template-once-the-page-is-published/ ]
  12. Hello, I hope you are all doing (as) well (as possible)! There is a website (currently powered by ProcessWire 2.8.35, but I'm going to try to update it to ProcessWire 2.8.62). The client's project is not really "live" for the moment, even though it has been online for a few years. From time to time, he contacts me and asks me to add functionalities (at least once a year). He travels a lot and has (too) many projects. On this website there is a conditional form made with Form Builder (topic(s) in the module's Forum). With the first field (radio button), you can choose Model (default) or Other artist. Depending on the choice, some fields are added and some removed. Some other fields are the same. The form being a conditional one, every form sent is (also) being converted automatically to a(n) (unpublished) page, but under a temporary (directory) parent page. It is added at the top in the list of children in the admin. Using a template that has all the fields corresponding/equivalent to the Form Builder conditional/double form fields. In a page under this temporary parent, the first field (Model or Other artist) is still editable. (1)a)) I guess I have to (find a way to) show it without it being editable by the client's user account (only the superuser should be able to edit it, but normally he wouldn't need to edit it also, just to see it - with or without seeing the other option). [DONE. Field -> "Field" tab -> "Visibility" -> "Presentation" -> Options] He can review and validate it, and then publish it. Or he could do it after moving the page from the temporary parent. Then the client moves the page under the Model or the Other artist parent. Their children have the temporary template available, and also their respective template. So only 2 choices, and after having moved the page he switches to the adequate template, which removes the first (radio button) field and the fields that are not needed/used for the child under the chosen parent. 1)b) I am wondering if there is a way to automate the change of parent and template depending on the first field (radio button) once the page is created under the temporary parent, and/or if there can be a button added somewhere that the client can press/a way so that it is done automatically. And/or perhaps to do it for one, or several pages at once, with an "action' or automatically once a page (under the temporary parent) is validated/set to "published" by the client (perhaps this would be the best in this case). 2) In fact, I now have to think about all this because the client would like the model or other artist to be able to edit it's page later. Starting from what exists (I'm not going to change all the "processes"/steps' order now), once the page is published and under the right parent, an account with an email (existing field) as the username (or the part before the "@"), for example, or another solution ("pseudo"/"alias" field value, etc.), and a default password (always the same, an automatically generated one...) would be automatically created (and sent manually or automatically to the person (?)). 3) The person shouldn't be able to see/edit the "Parameter" tab (template, publish...). I guess it would be better that he/she edits from the front-end, and sees only what he/she could need to edit. So a "lot of things". Starting from 1) normally. Thank you in advance for helping me find solutions and know what's possible and not. I can add screenshots if needed. NB: please moderators, feel free to move this topic to a more adequate sub-forum. I was not sure where to put it. Not sure how to name this topic.... Feel free to modify the name. PS: this message has taken me so long to write, check and publish... like often.
  13. Hello, Just for information (one of my recent bookmarks, featuring Stimulus and Turbolinks): https://m.signalvnoise.com/stimulus-1-0-a-modest-javascript-framework-for-the-html-you-already-have-f04307009130 Have a nice week!
  14. Hi, It's better to put them in /site/modules/... in order to keep the additional symbols after each update. Also, you can normally add them via the backend.
  15. Hi, The "Form Builder Support" forum is the best place for help. If you don't have access to it yet, you can normally ask @ryan to activate it if you have a license/licence. @thmsnhl Edit: "...the support and upgrades period lasts for 1-year..." and " After 1-year, you can optionally renew your access to the support/upgrades board for a nominal fee..." (depending on your license level).
  16. Hi, Also, you don't have the non-www version redirected to the www version, or vice versa. And you should normally only have one meta name="canonical" version in your source code. Currently, it changes depending on the non-www or www version.
  17. Reading privileged memory with a side-channel https://googleprojectzero.blogspot.fr/2018/01/reading-privileged-memory-with-side.html Meltdown and Spectre Bugs in modern computers leak passwords and sensitive data. https://meltdownattack.com/
  18. Please try with backface-visibility: hidden added to .grid {...}. (For my browsers, there is no need to use the -webkit- version, but you could use both.) I haven't tested it in IE or Edge. Edit: you have 528 posts and 528 likes :).
  19. For http://artistblacksmith.org.uk/, there is something that I see on the homepage with Chromium and Opera, but not with Firefox and Vivaldi: the 3 columns of (linked) images appear starting from the left but then the second one disappears, and just after the third one. They only appear again for +- 1 second when the mouse is over one of the 3 columns, then only the image's gray/grey background and title stay when the mouse is over them - if it's on the second or third column. I haven't looked at the other pages yet. Edit: on the Linux platform at least.
  20. @SamC And if Gravit Designer doesn't suit your needs, you can always acquire Affinity Designer (no Linux or web-based version) - during the Black Friday period. Edit: you also currently have a special offer until the 16th for the launch of the 1.6 version. It's possible (some of) the free gifts will still be offered during the Black Friday period.
  21. Google Chrome/Chromium -> Ctrl+Shift+I (or Ctrl+Shift+J) -> Sources. (Or with another browser's developer tools.) Please see the attached image. [ Keyboard Shortcuts Reference: https://developers.google.com/web/tools/chrome-devtools/shortcuts ]
  22. Hi, In site/external/style/style.css, just add: .template-phone a { color: #999; } between .contact-details li::before { ... } and /* --- social icons --- */ (currently line 2209). Edit: do you want to keep the color that is currently orange for the phone number on the contact page?
  23. Hi, I see it on my (very) large screen (full height window) but only if the zoom is, for instance, 150% and with the development tools' panel opened - on chromium. Same on Firefox, Opera, and Vivaldi. All Linux. So apparently it depends on the height of the window, on the top space taken vertically by each browser, on the zoom %, and on the development tool or Firebug panel's height. Edit: adding max-height: 100%; to header .logo img {} could be a solution (works for different window widths). But the Palácio Santa Catarina part will still appear (very small).
×
×
  • Create New...