Jump to content

All Activity

This stream auto-updates     

  1. Today
  2. could someone help me find the javascript bug? https://codepen.io/bbblgmsp/pen/LYxWJJa or here: https://foobar.roofaccess.org/carousell/ I want it to be NOT draggable on desktop but draggable on mobile devices. Also, on mobile, the element that I drag into focus should automatically be active, but on desktop, only when I click it. It works fine on desktop, but when you drag on mobile, after the dragged element is active and you click it, it switches back and forth between this and the previous element (assigns the active class to the previous element). I already tried to find help elsewhere, since this is not directly PW related but only frontend, but it's hard to find support or a community for uikit. PW seems to be using it quite a lot though… Thanks for help
  3. Not sure if there is a performance benefit, but I'm always using $this->wire->... because this supports intellisense while the other variants do not: $this->wire->... correctly suggests the class properties and methods: $this->wire('files')->... does not:
  4. @ryan Thanks for update! For some time I see a lot of such changes in the commits: //before $config = $this->wire('config'); $log = $this->wire('log'); //after $config = $this->wire()->config; $log = $this->wire()->log; Is there is some technical background for such changes or it's just a matter of preference? (I remember that you have explained it in some other thread or blog post, but I could not find it).
  5. hi, just my two cents 🙂 whatever system you're on, have a look at your source code, if ever any image or content is in the source linked from an http:// (not https://) src, your browser with display an not protected error near the url an outgoing link will not cause problem have a nice day
  6. hi, answering to myself, yes, - a little late i know but in the meantime i've made many people happy with their new website in pw - and i know it may sound a little strange but in case in may help someone else looking for the same thing, i've found a funny way to do what i was looking for apparently the easiest way to do this would be to install pw last release, install language support of course ans then go to the language settings, default language, select all the wire files to translate, submit, save and then... copy paste all the labels in the text inputs, this generates a full and filled default language json files pack now, wriggling on my chair waiting for the next prod release, in the starting block to make a full french translation 🙂 i know this may sound funny but there may be some other silly old guys like me that still love working in text files, so, i this can help them 🙂 have a nice day
  7. Yesterday
  8. This week I've been working on a combination of core improvements, optimizations, and fixes, plus a dozen pull requests have been added. Thanks for all of the great pull requests to the core that many of you have submitted. PR authors will appear in our GitHub contributors list once the changes are merged to the master branch (that's apparently how GitHub works). I do think soon we'll focus on getting a new master version out, as 3.0.165 is starting to feel old relative to the current dev branch. You can see all that's been changed and added this week in the dev branch commit log. Next week we'll be doing more of the same, though planning to get into some of the PRs that I didn't this week because they required more review and testing (those that involved more than a few lines of code changes). We're not going to bump the dev branch version till likely next Friday, since this week's work will continue into next week. Thanks for reading and have a great weekend!
  9. Maybe it's a temporary solution. It almost looks like it. Let's see what happens and how it might change for the better.
  10. @rick I meant code (css, php, …) changes, not content. For example, if I try a change in the footer: <footer class="bgcolor-secondary"> to <section class="bgcolor-primary"> Nothing changed in the source code of the browser, in Safari, Chrome and Firefox. I clear the cache, no change, I restart the browser, no change. I have used MAMP and MAMP Pro (demo). Because I couldn't find a better idea, I have deleted MAMP / Pro from the Mac, and installed XAMPP. I previously saved the layout with ProcessExportProfile. Then I reinstalled Processwire with that profile, and yes, now I see changes when I refresh the browser via cmd + r, it works! I don't know why it behaved this way in MAMP, I worked with MAMP many years ago with ver. 1+2, I haven't used it since. In XAMPP it works now, so I simply forget about the problems with MAMP.
  11. Images disappeared when they were first reordered and then the page was saved. Actual images are in the page folder but db save did fail with attached error so media field is blank. ProcessWire v.3.0.174. Page uses standard ProcessWire media upload but the field is inside a repeater. No custom hooks in saving process. The images in that page are quite big since the page is basically used as image storage. Any ideas why this happened?
  12. Last week
  13. This is what you got with WordPress and Elementor ...
  14. Hi @netcarver, the combination of installation salt and password reset finally let me log in. The rest is easy though annoying work, but stupidity needs at least mild punishment. Thanks a lot for your help!
  15. Hi @rash You will need the salt from the original config file in order to allow existing users in the DB to log in with their current passwords. However, you can use the Recipe here for resetting an admin account password: https://processwire-recipes.com/recipes/resetting-admin-password-via-api/ That should, at least, let you log in as admin and use the interface. You might also try installing the ForgotPassword module in order to let other users reset their passwords.
  16. Hi all, due to pure stupidity I managed to delete the complete root directory of a site without having a backup. [ short break to shake head, rofl etc. ] Luckily the database still exists and so do nearly 100 percent of the site directory. My first thought was to simply make a fresh install and change config.php data to use the existing database. Unfortunately the backend keeps me out and suspects whatever to be 'forged'. I guess it has to do with $config->userAuthSalt and/or $config->tableSalt. So is there any chance to connect a fresh install with an existing database? That would at least save me a few hours.
  17. I'm not understanding this statement. Of course nothing you changed will be reflected until you save those changes. You edit existing content. Save those edits. Refresh the browser. Am I misunderstanding your goal?
  18. You have a couple of options: You can create the required fields (and templates, if any) programmatically in the install() method of your module (see the documentation). Creating fields through the API is pretty straightforward, though you might have to dig a bit to find the properties you need if you want to customize the field's settings. In this case, you should probably also handle removing those fields in the uninstall() method so your module can be uninstalled cleanly (make sure to warn the user that uninstalling the module will remove all of it's data in this case!). The benefit of creating regular fields in your module is that your module's data can be managed through ProcessWire's regular interface, and you don't have to provide your own custom interface for simple CRUD operations. An approach that might be better suited if your module is targeted at developers is to make the fields to be used for storing data configurable. You can build module configuration options to let the developer select which templates and fields are used to store the data your module uses. Though this doesn't work for every use case. Finally, you can bypass regular fields entirely and store your module's data seperately. The advantage of that is that it's easy and quick. The downside is that you will have to provide your own interface for displaying and editing your modules data. Of course, that doesn't apply to every module – for example, you wouldn't need an editor interface to edit a user's cart. But if you store completed transactions, your module users will probably expect an interface to list (export, edit, delete, ...) all transactions, at which point you would have to build your own interface for that. Where you store the data is up to you: In the session or cookies (only for ephemeral data, like a cart). In a page's meta() data. I do that in some of my modules, see my post here. You can also use a custom database table for more elaborate storage capabilities. Again, you would use the install() and uninstall() methods of your module to create and (optionally) tear down your custom tables. See this post for some examples. Personally, I prefer modules that adopt best practices of the system they're build for – in the case of ProcessWire, I'd say it's best practice to create regular fields and templates instead of custom tables. But the ultimate answer is – as always – "it depends".
  19. OK so this might be a very dumb/basic question which is why I can’t find any docs on this topic. I want to develop a module, namely a very basic e-commerce checkout function. For that to work, I need to store the purchases and the user input somewhere in the database. I haven’t really developed any PW module as such before, just simple pages with fields, any user input either ended up being sent via email or being stored in some field on the page. I guess it‘s not the best practice to create a field solely for that purpose on the page the checkout happens on, just as I‘m not putting the code on a page template either, since it‘s supposed to be a module and not just a page. The user input I would display in some sort of dashboard, somewhere on the module‘s admin page. So where and how and do I at all create a „fields“ for that reason or what is the right way to go about this? Thanks for help.
  20. Very interesting thread! I've had a couple people pretty amazed too by the volume PW can handle but this case is really interesting!
  21. @BitPoet I activated the lines in php.ini (php7.4.12), they were commented: opcache.validate_timestamps=1 opcache.revalidate_freq=0 Settings: Cache was "off", I changed it to "OPcache", due to the change in php.ini Unfortunately nothing changed. Changes will only be visible after a "save" in the editor. I have installed a module, Cache Control. Even "clear all" makes no difference in the frontend. I guess I have to live with it.
  22. You're right that this is by design and is not best practice. I actually don't know there is any proper way of doing this, but my first port of call would be to try hooking the session::loginFailure() method and then looking at the reason argument. Check out wire/core/session.php and look at the code in login() and the ___loginFailure() hook.
  23. Unless things changed lately, MAMP activates OPCache by default. Make sure that the following settings are the same in your php.ini: opcache.validate_timestamps = true opcache.revalidate_freq = 0 Also check in MAMP config settings if caching is enabled for PHP (not sure if that option is still there, but with PHP 5.5, you could enable frontend caching).
  24. @elabx I run localhost:8888 with MAMP (Mac). I don't use developer tools, it is a simple PW blank installation.
  25. Maybe some sort of server cache layer? Are you working local or on a server? Last but not least, the cache on your developer tools.
  26. The client's site has front end login, currently using the LoginRegisterPro module. I understand it's a security feature that the only error message that's shown is "Failed Login". Since the site is dealing with students, and thousands of members, they requested that I show the more explicit "Incorrect Password" error message when it applies to reduce support requests and they understand the risks. The only place I've found the "Invalid password" spelled out was the Session log but couldn't find where it is generated. Can someone point me to the right direction on how i could enable "User with this email not found" and "Incorrect password" type of error messages on front end?
  27. So... you didn't activate or use any kind of cache? Then @ricks solution might work for you. Another thing... are you using Opera? That thing annoys me with cache issues each and every time I use it.
  1. Load more activity
×
×
  • Create New...