Leaderboard
Popular Content
Showing content with the highest reputation on 05/17/2023 in all areas
-
I've been following the news on the new editor and I'll be adding that to the next version of the module. The module is already getting refactored so I'll be able to plan for this much more easily. I'll work on posting some updates here with some details on what's planned!4 points
-
with this code you are setting the template of the page to 'myTemplate'. You need to use == or === as a comparison operator if(($page->template == "myTemplate") EDIT: don't worry, we've all been there ?3 points
-
Hello Again Processwire Gurus. Yes i discovered when upgrading that Processwire asked me wich module i wanted to use and had the core module pre-selected as default. I just had to delete the standalone one and do a refresh under modules and everything worked like a charm.2 points
-
Hey @adrian I don't want to mess up your dedicated forum with bug reports that might hurt in everyone's eyes so I think it's better to have a single bug report topic. At least for me. Here's the current one that I got after upgrading an old site from php 7.4 to 8.1: I tried submitting the module config page and also a cookie+modules refresh but the error is still there. Adding this to the top of findPageTemplateInCookie() fixes it: if (!$cookie) return false;1 point
-
Sure, until I bought PphStorm years ago, which spots this (and more...) and warms me right away.1 point
-
What @gebeer said. It explain everything - the typo was provoking an assignment to the page's template passed to this condition. Good catch and thanks for getting back on this, bug killed?1 point
-
So after going through the database for days without finding any suspicious entries I had a long talk with my client and it turns out - the error wasn't there in the beginning. So @flydev: duplicator is definitely innocent. The error was a simple typo in production ready.php (they are both quite different so it wasn't too obvious). I had two lines with: if(($page->template = "myTemplate") But why this altered the output the way it did I have no idea.1 point
-
Check phpinfo for ini setting opcache.restrict_api. AdminLinksInFrontend tries to use opcache for performance. The warning means that there's a path in that setting that doesn't match with the path to AdminLinksInFrontend.module. The module tries to call opcache_get_status() in that line, which triggers the warning. Putting the line ini_set('opcache.restrict_api', '/usr/www/users/floreng/000'); or ini_set('opcache.restrict_api', ''); into site/config.php might be enough to get rid of the warning.1 point
-
1 point
-
Small FYI: apparently I was wrong... I updated my local setup to 3.0.217 and after refreshing the modules I got a notification inviting me to choose which copy of the duplicate module to use: This was after I confirmed but by default it seemed to have the core one selected. Though there are no problems to report because of this1 point
-
@FireWire I imagine that TinyMCE is a whole different beast and would require a ton of refactoring, but I was wondering whether you have considered working on a version that would support Processwire’s new default editor. Thanks for your work!1 point
-
but a couple of modules that do fiddle around with user rights ( Admin Restrict Branch and Page Edit Per User). u.try disabble theese mods ( temproraley) to.see if is it?1 point
-
Hi, With javascript you can achieve it easily. The idea is to add an event listener to each input and re-order an array when the user change an input: <form id="form"> <label for="filter1">filter 1 :</label> <input type="text" id="filter1" name="filter1"><br> <label for="filter2">filter 2 :</label> <input type="text" id="filter2" name="filter2"><br> <label for="filter3">filter 3 :</label> <input type="text" id="filter3" name="filter3"><br> <button type="submit" name="submit">Send ☑️</button> </form> <script> // get form and all input const form = document.querySelector('#form'); const filter1_field = document.querySelector('#filter1'); const filter2_field = document.querySelector('#filter2'); const filter3_field = document.querySelector('#filter3'); // array to store the order of the input const order = []; // listen for input fields change to update the order array filter1_field.addEventListener('input', () => updateOrderArray('filter1')); filter2_field.addEventListener('input', () => updateOrderArray('filter2')); filter3_field.addEventListener('input', () => updateOrderArray('filter3')); // update the order array function updateOrderArray(fieldName) { if (!order.includes(fieldName)) { order.push(fieldName); } } form.addEventListener('submit', (event) => { event.preventDefault(); const baseUrl = 'https://example.test/form.php'; // L'URL de base // build the url with the GET parameters in the order specified by the order array let url = baseUrl; order.forEach((fieldName, index) => { const value = encodeURIComponent(document.querySelector(`#${fieldName}`).value); url += `${index === 0 ? '?' : '&'}${fieldName}=${value}`; }); // redirect window.location.href = url; }); </script> Result: /form.php?filter3=processwire&filter2=is&filter1=awesome1 point
-
Imagine why Microsoft's BING AI is in some parts way better than anything else? Hint: Github Absolutely everything in terms of code is in Microsoft's hands right now. No matter that... there are more ethical questions in regards to this. What's allowed and what not. On the other hand, there are already models that found possible cures for lots of illnesses, more critical things in terms of society and such, some are already in real-life studies, like some possible cancer cures and even old Nicola Tesla patents and whatnot. I hope and wish people want unopinionated and unbiased models. Otherswise the echo chambers just became million times bigger than already. BUT... noone can say which model/AI is really that neutral. So... yeah. In terms of writings and suggestions... GPT4 is already quite good as this. Feed it your last 10+ books you read and you will get awesome results. Depending on your input and your prompt... you might be impressed. You can. I tried it with Inferno (Dante, not Dan Brown) and some other similar books. You could ask whatever you want. Just ask with some optimized prompts. Maybe even try DAN prompts or use extensions to allow internet access. ? There is so much going on right now. If you are interested in models and specialiced prompts... follow Brian Rommele on Twitter. He has some interesting prompts that show you how to "manage" the deeper level https://twitter.com/BrianRoemmele Just tried to find a bookmark of someone that trained GPT on a local Raspberry Pi for his needs. There are already so many solutions out there. Most of the things we experience right now... are 6+ months old already and were just made public to us. Or how could so many companies, services and even single person offer such incredible tools within weeks? BING AI, Canva AI, Mozilla AI, Brave AI... and... much... more...1 point
-
Not helping here but just saying, I imported recently more than 800k pages, it took about 16 hours ✌️ I can't remember how much pages I deleted from the trash, but it took the night..1 point