Jump to content

Christophe

Members
  • Posts

    646
  • Joined

  • Last visited

Everything posted by Christophe

  1. Hello, In Modules > Process > Page Edit Image, couldn't we also have this module include, by default, height attributes in the <img> tag, and a Skip height attributes on image tags? option?
  2. Hi, I enabled the four options on some websites, some with version 2.x, others with version 3.x (updated/upgraded several times), most if not all with the French language as the default one (and keeping the English one active in the admin), some with the multilingual modules and fields installed and/or activated, some without, some with fr/ added to the French urls, some without, etc. I'm not sure I ever made the Update image alt attributes work. Or perhaps once the first time I found it existed. I tried/tested a little the Link abstraction, I don't remember what the result was most of the time. I'll have to do it again. But a few hours ago, with a website updated recently to the last legacy Master (but the result was the same before), that is not multilingual (in the templates or in the backend) with the French language as default (and English kept as secondary), when I activated it and then saved a page, an internal link (via a selected page) in the CKEditor field had fr/ added to the url, which logically pointed to a 404 page. I had to deactivate the option to be able to have the normal url back after recreating the link (in order to be sure) and saving the page. I don't know where the fr/ comes from. Perhaps, the website was multilingual before and I removed all the multilingual things but there is a reference to /fr somewhere in the database. I don't remember for this particular website. I don't see/can't find any mention of fr in the current website's backend (and in site/templates/ neither). Concerning the last two options, I didn't have the opportunity/take the time to test them. So, it's a bit of a mystery. I don't know what is missing for the Update image alt attributes to work. And why the Link abstraction doesn't work correctly, at least in the mentioned website. Fortunately I didn't use the Apply HTML options now... (I'm not sure how many internal links were created via the existing CKEditor fields). And I tried not only in the body field, but also in other CKEditor fields. I would/will have to test again on a new/fresh installation.
  3. The "customized Google Search for Processwire" only brings results from the processwire.com website. -site:processwire.com/talk/ or -site:processwire.com/blog/ or -site:processwire.com, for example, excludes a section or all of the processwire.com website.
  4. Hi, In the Google Search Bar, you can, for example, enter the following request: site:processwire.com/talk/ snipcart paypal And this, in order to have only the responses that are not in the ProcessWire Forums: -site:processwire.com/talk/ processwire snipcart paypal The first answer being this: https://docs.snipcart.com/getting-started/guides-and-tutorials Where there is a ProcessWire-related link which points to this: https://snipcart.com/blog/processwire-ecommerce-tutorial Have a nice weekend! NB: try this with Google -> site:snipcart.com paypal
  5. Perhaps the following could have helped? Google -> site:processwire.com/blog/ "Link abstraction" Admin > Setup > Fields > Edit Field: body Details (tab) -> Markup/HTML (Content Type) -> HTML Options -> Link abstraction: Update href attributes automatically when internal links change
  6. I don't have enough knowledge and experience for that, for the moment. I also like what can be done with these bots. Perhaps I'll try to create one later. I first have to find technical solutions for a project.
  7. Things are "strange" sometimes. I was just thinking, a few minutes ago, that this topic didn't seem to have any success.
  8. I'm still using MailerLite (the free account) from time to time. And I intend to try Sendy one day. I've just noticed, after searching for content for email marketing campaigns, that SendinBlue's free account now enables up to 600 emails/day and unlimited contacts.
  9. Hello, I'm going to (try to) give a quick answer, as I'm so hungry and starting to not be able to think well... This is one of the options I thought about, it would be ideal I suppose. This is one of the things I mentioned, hoping it would create a "relation" between both ids (in case one or both email field values are changed later on, for instance). The page already exists (automatically created by Form Builder). Then, when the page is published, it moves from under the temporary directory parent page to (under) a new parent with a new template (depending on if the user is a model or another artist. Both new parents are under a non-temporary directory page). Perhaps the account could be created when the page is published (but only the first time, and/or if the account doesn't already exist). The "registered" user has to be able to view and edit all the fields in the content tab (not in the other tabs, I can restrict it with Restrict Tab View normally), except the ones I will make non-editable (and perhaps also non-viewable) for the role (like Title, etc.). The pages already exist before as mentioned earlier... A user could (have) be(en) created automatically when a page is published, but some pages are already published. Perhaps, as there are not so many right now, I could manually (or with a "batch"...) unpublish then publish them again in order to trigger the "action". The page has to be published/validated (and under its new parent with the new template) before the user is created (with the email address from the page's email field). (Later the user could/would have the possibility of changing its email address(es) in this page and/or in the profile page - without loosing access.) NB: I don't know how to build a front-end form and a module... and I'm quite a beginner for other php-related things. PS: I'm going to eat and run a little bit before coming back with a clear(er) mind.
  10. Hello, Not sure it's the right place to create this topic. Not sure how to name the Topic. Just trying to gather some suggestions/confirmations/possible solutions/hints... for the moment. I think I'll create a different topic for each part (but some are really "linked" normally). I'm needing your insight, experience... on what would be better, possible, etc. So, I will try to summarize without forgetting anything/too much. Imagine there is a website where a visitor can fill in a "conditional" form (made with Form Builder and field dependencies). One aspect is that the form's submissions are converted automatically to unpublished pages, under the same temporary parent, whether the sender is a model or another (kind of) artist. Field dependencies are also used here (to "match" the form). When one page is published/validated, it automatically moves under its new parent depending on the person being a model or another artist and also has its template changed. (The new parents are under a directory page.) The pages have quite a few fields, but not all are displayed on the front-end via both template files because some contain information too confidential, etc. The thing is that if I enable front-end editing (option D), only the fields displayed on the front-end are editable. And I'll try again, but there is a photo field, restricted to 4 images, and with the "lightbox" 4-images gallery it seems not possible to edit it when clicking on the links near the images. # So my first question is, can access to the admin be acceptable(/secure enough) if the user only has access to the page assigned to him/her (a model or other artist type of page) and to his profile page? (Probably also restricting the other tabs of the page with Restrict Tab View.) # How can this be done? Below, I've listed some solutions/modules that could help. If some were used some other would perhaps not be necessary. # If a user was created (the front-end or back-end access question being resolved), in fact how could he/she be created automatically or semi-automatically? I had thought of creating the account when the page is published but it doesn't appear to be a good idea, and some pages already exist and are published. So, perhaps I could, for example, create a "Create account" or "Account creation approved" checkbox field, only viewable and editable by the superuser and the editor, but not by this user. Then with Lister and/or Admin Actions and/or Batch Child Editor, etc. the editor could search for the pages (with the 2 templates...) that have the approved checkbox not checked and "manually" generate an action on all those pages. (And/)Or perhaps there would be some code in ready.php or elsewhere automatically checking the checkboxes when the pages (with one or the other of both new templates) are published. In both cases, the code would only be executed if the checkbox was not already checked. # So the action and/or code executed would create an account with a "login-register" (or something else) role, using perhaps the Login/Register/Profile module. How(?), that is the question. (The module can apparently enable a redirection to a specific page, for example.) The module would create the user, (access to) his profile page, but also give him/her edit access to only the page that was linked to the creation of the user. (And send the confirmation email of course). Is it possible to "link"/"join"/"connect"... the id of the profile page with the id of the page the person has access to? (vaguely remembering a "join" option (in fields...(?)), but perhaps it has nothing to do with my example.) So that also, for instance, he/she can, in the future, change the email of the profile page and/or the email of the other editable page without loosing the relation between them (if letting this possibility couldn't cause problems). Perhaps by having a one-page Page Reference Field added to the profile page, that would be automatically "filled in" with the authorized/editable page (?). (But again, how?) And, so the problem of restricting the user's access to only the profile page and his other editable page in the admin rises again. (Access to the profile page is via the front-end normally, so perhaps it should be disabled in this way and instead granted via the admin also... (?) Perhaps "embedding" the page inside the profile page could be another possibility.) Probably, it would be good also to use Admin Restrict Branch (and other things) in addition. I'm waiting for your feedback, etc. Thank you in advance. NB: this post is quite long, I'll possibly create separate topics later/afterwards for some of the steps. Some of the modules/things that could help (a lot I haven't used yet): Email New User Password Generator Force Password Change Restrict Tab View PageEditPerUser https://processwire.com/talk/topic/214-lock-user-to-be-able-to-view-and-edit-one-page-only/?tab=comments#comment-1501 ... Also: Dynamic Roles Custom Page Roles The Login/Register/Profile module (I've recently upgraded both the test and the production websites to version 3.0.96 Master) https://processwire.com/talk/topic/371-page-specific-permissions/?do=findComment&comment=8737 ... [ Related: https://processwire.com/talk/topic/18497-help-needed-to-improve-a-websites-functionalitiesfeatures/?do=findComment&comment=161971 ]
  11. I've just tested again by upgrading to version 3 on another server. To ProcessWire 3.0.96 (Master) this time. I've had again messages like Error - Call to undefined function _x(), did you mean _()?. It seems that using $this->_ instead of __ works. But I've kept __ and have used the following instead depending on the template file/case: <?php namespace ProcessWire; <?php namespace ProcessWire; ?> <?php namespace ProcessWire; include('./_head.php'); // include header markup ?> This time I've just put it on one line, inside the same pair of tags, I've not separated the namespace part and the include part. By the way, on this server, I have been able to upgrade thanks to the Upgrades module. On the other one I cannot have access to the ProcessWire core updates/upgrades anymore.
  12. You could also use a Page Table (ProFields), available in ProcessWire's core and freely installable from the backend. You can select a parent for the items (unlike repeaters), enter the table fields you want to display in the administration panel... You could perhaps also use a Page Reference Field, choose a way of selecting that suits you, select a parent page with children pages that only have the fields you need...
  13. Is it a Repeater that you need? http://processwire.com/api/fieldtypes/repeaters/ https://processwire.com/videos/repeater-field-type/ https://modules.processwire.com/modules/fieldtype-repeater/ https://processwire.com/talk/topic/958-repeatable-fields/
  14. Too bad it cannot be released as a one/multiple website(s) commercial and/or opensource/community and/or free profile. It hasn't been used very long.
  15. Hi, Can this module work with ProcessWire versions newer than 2.6?
  16. As I've just put back my user account's backend to French, I'm wondering if the fact that I put it at one point in English is a little bit related (but it shouldn't). But I don't remember when exactly I did it. I'll take a look at the results with site:processwire.com/talk/ "Call to undefined function _x()" in Google.
  17. Hello, It seems fine again. Like before my attempt at upgrading to version 3 (because I could need the LOGIN/REGISTER/PROFILE module in the near future). Perhaps it was related to the PHP environment, to a Let's Encrypt certificate automatic regeneration... and I had to wait a little for some cache cleaning on the server side. And it seems also that they had some network issues at the same time...
  18. I have to go to bed, I haven't slept at all. I've reverted back to more or less day-1files fetching them via a snap-0 (just after midnight) sftp connection, but perhaps it's not far enough. I've tried to revert back to a day-1 database, but I had an error message from within the hosting's Manager (and I couldn't connect to it from PHPMyAdmin). I have this on the login page: Error: Call to a member function setLanguageValue() on array (line 43 of /home/.../www/wire/modules/LanguageSupport/FieldtypeTextLanguage.module) when Debug mode is true, (when Debug mode is false: The server encountered an internal error or misconfiguration and was unable to complete your request.) and this also: Server Error We're sorry! The server encountered an internal error and was unable to complete your request. Please try again later. error 500 | 10. 3. 2018 09:10 and the Server Error message appears alone on the homepage, for example. I've written to the hosting company to know if they had/have problems. Perhaps I'll have to revert a few days back (not really a big problem). Edit: if the database and the files aren't of the same day exactly could it be a problem? Should I remove the Tracy Debugger module manually via sftp?
  19. I've reverted back to PHP 5.6, in case. I've put everything back as it was before, and I've removed the namespace lines where I had added them. I've cleaned the site/assets/cache/ folder again. Now I can't login, everywhere (frontend and backend) I see: Notice Array to string conversion File: .../LanguageSupport/FieldtypeTextLanguage.module:83 73: /** 74: * Format value for output, basically typecasting to a string and sending to textformatters from FieldtypeText 75: * 76: * @param Page $page 77: * @param Field $field 78: * @param LanguagesValueInterface|string $value 79: * @return string 80: * 81: */ 82: public function formatValue(Page $page, Field $field, $value) { 83: return parent::formatValue($page, $field, (string) $value); 84: } 85: 86: /** 87: * Given a value, return an portable version of it as array I'm going to try to revert back (files and database) directly with the help of the hoster's tools. I should have gone to bed.
  20. Good idea :). After seeing the problem, I upgraded from PHP 5.6 to PHP 7.2. Same thing. I'm keeping it at 7.2 for the moment. I'm reverting back to 2.8.62. It should be easy, I still have the renamed old folder and files. I'll wait and try again.
  21. [Update] I also have an error message when accessing any module page in the backend: Warning count(): Parameter must be an array or an object that implements Countable File: .../Inputfield/InputfieldFile/InputfieldFile.module:513 503: return $out; 504: } 505: 506: public function renderReady(Inputfield $parent = null, $renderValueMode = false) { 507: $this->addClass('InputfieldNoFocus', 'wrapClass'); 508: return parent::renderReady($parent, $renderValueMode); 509: } 510: 511: public function ___render() { 512: if(!$this->extensions) $this->error($this->_('No file extensions are defined for this field.')); 513: $numItems = count($this->value); 514: if($this->allowCollapsedItems()) $this->addClass('InputfieldItemListCollapse', 'wrapClass'); 515: if($numItems == 0) { 516: $this->addClass('InputfieldFileEmpty', 'wrapClass'); 517: } else if($numItems == 1) {
  22. Hello, I've just upgraded a website from 2.8.62 to 3.0.62. In the backend everything seems fine. But, when connected, I now see this message on the frontend (Debug mode On + Tracy Debugger): Error Call to undefined function _x(), did you mean _()? File: /home/.../www/site/templates/_head.php:2 1: <!DOCTYPE html> 2: <html lang="<?php echo _x('fr', 'HTML language code'); ?>"> And an Error 500 message when not connected to the backend. Precision: only the French language is currently activated. Any idea(s)? (What other information do you need?)
  23. https://telegram.org/blog/login
  24. Hi, No swear/bad words please (even with *s)! These Forums are currently quite free from them. Thanks in advance. Have a nice day!
×
×
  • Create New...