Leaderboard
Popular Content
Showing content with the highest reputation on 10/28/2024 in all areas
-
Another module that was created through the development of RockCommerce ๐ Ever needed a list of all countries of the world? Wanted to show a subset? Needed to translated them to other languages? Check out RockCountries, which can help you with these things: // using tracy debugger's bd() bd(rockcountries()->countries()->get('alpha2=aut')); Download & Docs: baumrock.com/RockCountries4 points
-
No, I haven't. I tried a Mac once and the app window buttons location on the left (instead of the right) just confused me ๐. Thanks for the suggestion thoug.2 points
-
#@!^$ problem was on my side (forgot that i put it here, yesterday) : <?php // Prรผfen, ob der Aufruf per AJAX erfolgt if (!$config->ajax) { http_response_code(403); echo "Forbidden"; exit; } // Beispielantwort echo "Dies ist die Antwort von /ajax/foo"; after deleting the first part, everything works just fine! thank you guys for your support!1 point
-
@herr rilke please provide step by step instructions what you did. Provide every file name you created, every file content you put into it, every url you put into your browser. Every important detail about the pw installation (eg is it in a subfolder or not)... @dotnetic just confirmed that it works for him on windows + in subfolder installation1 point
-
Hey @herr rilke there was an issue with the ajax feature both on windows installations and on subfolder installations. I think they should be fixed now! Please check out v3.23 PS: Thx for your help with the windows path issue @dotnetic, the final fix was a little bit more complicated though ๐ https://github.com/baumrock/RockFrontend/commit/0cf84be630050d212b334e52477d97039823de4f https://github.com/baumrock/RockFrontend/commit/c9fbd2430e166d304cae9af943510cb8a391bcdf1 point
-
1 point
-
No, I haven't. I tried a Mac once and the app window buttons location on the left (instead of the right) just confused me ๐. Thanks for the suggestion thoug. I can second what @szabesz said. I was never a fan of mac. I even installed windows on a macbook air when I once bought one and could not work with it for the same reasons that @kongondo mentioned. But then I had to use one in an agency I was working and I switched the hard way. I did intentionally not change and keyboard mappings and I did intentionally not change mouse wheel direction. It took about 2 weeks to get used to it, but it worked. Now it's the new normal for me and I have to say with MacOS it's a far better experience than what I had with windows. Many things that seem to be "better" on windows are just a matter of habits. But MacOS is so much more polished and less chaotic. And things run so much more reliably. I can't remember when I rebooted my mac the last time. Just leave it after work and in less than a second it's back on the next morning. No more fear of running out of battery life on a 2h meeting. And no sound of annoying fans (on MacBook Air). Nothing. So much better! And last but not least: It's UNIX. rsync, htop, wget... whatever... all there! And no problems because of "wrong" file path delimiters. BTW: If any of the windows users could help me with debugging this RockFrontend issue I'd be very happy: https://processwire.com/talk/topic/27417-rockfrontend-๐ฅ๐-the-powerful-toolbox-for-processwire-frontend-development/?do=findComment&comment=2453361 point
-
Funny thing happened this weekend... I have had the great luck and opportunity to setup a brand new Windows 11 laptop this weekend. And I must say a lot of things I hated in the past have changed significantly. I never felt so un-welcomed, [redacted] and hated things even more than ever before. It was a nightmare right from the start. I had to create an account with Microsoft, which didn't work at all and took about an hour to finish. The 8th confirmation code worked and the session didn't expire in the meantime. Wow! Then the fun begun. It started to finish the basic installation, installed a ****load of updates and created shortcuts/symlinks on the desktop to almost each and every programm you could imagine - even weblinks to the online version of Office365 even though the full version was already pre-installed. Then there was a clash between McAfee, G-Data, and another system tool. What a mix of bloat. After downloading around 6GB of updates for Windows itself, there were even more updates for various apps, firmware, and whatnot. From start to finish: about 6 hours! I had to go for a walk in the forest afterwards so I wouldn't end up as the main topic in a Breaking News/Sondersendung that day. I really don't know and understand how people can live with this kind of p00h. Ok, it was a consumer laptop and nothing a company would buy, but still this was a horrendous experience. Do normal users/consumers don't see this or is this the reason people hate computers that much? And why do 16GB of RAM on a Windows 11 machine feel like 4GB on a Ubuntu Gnome setup? That was the last time I ever touched a Windows machine. Even for family and friends. ๐ญ Side note 1: the hardware of that laptop is actually great and I would use the device, but not with Windows - for sure. Side note 2: took this sunday to re-install all my laptops with Debian 12.7 (custom DE/i3) and it took less than 2 hours in total.1 point
-
That's very sad to hear.. I used to use Linux during my university days (15 years ago) because for computer science, it just made the most sense. Later, I used Windows mainly because I was forced to do so at work (in the past). So finally, I decided to again move away from Windows right about when Microsoft really added an unbearable amount of bloat and tracking bulls*** with Windows 10 and later on 11. I first went with Manjaro because I thought it was an easy introduction to the "Arch way" but that was a mistake: Manjaro is still very opinionated and does a few things which didn't work for me. So this isn't any different to just using Ubuntu with pacman. So I took the courage and went full Arch. Installation isn't too bad if you know your way around the command line. Since I was using WSL on Windows and used to run Linux for years before, this isn't a problem for me. I must say, I have never looked back. Arch isn't very plug-and-play, that's true. But also, it doesn't stand in your way. Back then, I even moved my work PC to Arch after a few weeks because I got very confident with using it at home. There also, I never looked back: Everything is just faster and especially when your machine is idling, it is actually not doing anything. Ever. Gone are random "jetplane takeoffs" and slowdowns (search indexing, updates, antivirus). Also, on my Laptop, the battery lasts forever longer than with Windows. Right now, I am using a simple GNOME desktop environment on top of Arch. I am using PHPStorm and Docker CE for local development. All of these are just a few package installs away. No need to mention that web development is just so much easier on Linux. For my work scenarios: Printers are basically plug-and-play with Linux (much more than Windows!). Same for SMB shares on the network. Microsoft 365 has 99% of it's features in their web apps these days (Outlook, SharePoint, Excel, Word, ...), even Teams works perfectly as long as you are not using Firefox. What am I missing? Basically nothing important! There are a few very small things. One example: We have a Miracast thing in the conference room to share our screens to which just doesn't work for Linux. No biggie, because there is also a HDMI cable ๐1 point
-
Brilliant, and once again very fast. I'll try it out as soon as I can.1 point
-
Hello @DrewPH I have added your request to the new version 2.2.18. Now you can find a new text field inside the module configuration under the AJAX tab, where you can change the info text for the user during an AJAX request. If you enter a custom text into this field, then this text will be displayed globally on each form on the site. In addition I have added a new method too, where you can change the text on per form base, which means that you can use a different text on each form (if needed). I guess this is a use case, that will not be needed very often, but if so.....you can. This new method is called setAjaxMessage() and has to be used with the form object: $form->setAjaxMessage('This is my custom submission text'); This method overwrites the default or global text on per form base. BTW, I have discovered 2 other JavaScript problems beside the problem you have described during the development of this new feature and I have fixed these problems too. You will find the complete description of all changes inside the changelog of this version. As always, please keep an eye if everything works as expected after the update!! Best regards Jรผrgen1 point
-
I had to fix the detection with 'is_resource()' into a combination with 'is_object()', to validate if an image load into memory with GD was successful. And just 15 minutes after I pushed my fixes to github, I thought: lets go into PWs online module section and update it too, - but it already was auto-updated! ๐คฉ1 point
-
Payment Module for RockCommerce that can also be used as standalone module. Download & Docs: baumrock.com/RockMollie1 point
-
@kongondo I recently bought my son a used M2 Air, which was not too expensive and is in pretty good condition and a lot faster than my getting-old 2019 Intel MacBook Pro. Have you ever considered the UNIX experience without all the hassle? Just my two pence... Personally, I am waiting for the M4 Mac mini: https://buyersguide.macrumors.com/#Mac_Mini And sorry for being somewhat off-topic, macOS is not Linux, but it feels similar in many ways and is a lot easier to tame.1 point
-
Ok, so I've done some tracing to see what is going on and it's because the files are being tagged as temporary. This is the key line: https://github.com/processwire/processwire/blob/649d2569abc10bac43e98ca98db474dd3d6603ca/wire/modules/Fieldtype/FieldtypeFile.module#L411 that is causing it to return null. When a file is added, it is initially set to temp: https://github.com/processwire/processwire/blob/649d2569abc10bac43e98ca98db474dd3d6603ca/wire/core/Pagefiles.php#L347 so I guess for some reason the file upload process didn't complete properly so the temp status (timestamp) wasn't updated. Thing is that the files are fully uploaded and there is nothing wrong with them. I just manually changed the created dates in the database, via Adminer of course ?, and now everything works as expected. @Robin S - you seem to be the expert in issue reporting these days - any thoughts on the best way to handle this to explain best to Ryan?1 point
-
Hi @adrianmak You can achieve this by using hooks and my ReCaptcha module. First install the MarkupGoogleReCaptcha module then in file ready.php, write the following code : /* * replace the LAST occurence of $search by $replace in $subject */ function str_lreplace($search, $replace, $subject) { return preg_replace('~(.*)' . preg_quote($search, '~') . '~', '$1' . $replace, $subject, 1); } /* * replace the FIRST occurence of $search by $replace in $subject */ function str_freplace($search, $replace, $subject) { $from = '/'.preg_quote($search, '/').'/'; return preg_replace($from, $replace, $subject, 1); } $captchamod = wire('modules')->get("MarkupGoogleRecaptcha"); wire()->addHookProperty('Page::captcha', function($event) use ($captchamod) { $event->return = $captchamod; }); wire()->addHookAfter('Page::render', function($event) { $template = $event->object->template; $page = $event->object; if ($template == 'admin' && !wire('user')->isLoggedin()) { $captchaScript = $page->captcha->getScript() . '</body>'; $captchaHtml = $page->captcha->render() . '</form>'; $event->return = str_freplace('</form>', $captchaHtml, $event->return); $event->return = str_lreplace('</body>', $captchaScript, $event->return); } }); wire()->addHookAfter('Session::authenticate', function($event) { $page = wire('page'); $template = $page->template; if ($template == 'admin') { if ($page->captcha->verifyResponse() == false) { wire('session')->logout(); wire('session')->redirect(wire('config')->urls->admin); } } });1 point
-
v0.0.6 released. PageTables may now be restricted by role (uses CSS/JS so not suitable for mission-critical restrictions) New options to prevent trash, prevent drag sorting, and removal of all "Add" buttons regardless of template. Improved config system (screenshot in first post updated)1 point