All Activity
- Today
-
Nomak started following Customize selectable pages in CKEditor link dialog window
-
Dear community, I am searching for a solution to show the items of a repeater field in the link dialog window. More in detail: the items of repeater_1 (Repeater field) should be selectable in the link dialog window of text_1 (TextareaLanguage/CKEditor field). The two fields are located in the same template. The repeater items should be selectable just as you normally can select pages. Any suggestions? I would really appreciate your help! Best Nomak
-
Thanks, will there be no free allowance at all? What about the free credit you get per month with Cloud Console? I don't believe it, I just pushed this live for a client and right away they got a spam submission that scored 0.9/1! Judging by the contents of the form it can't possibly be a human. How on earth is it scoring so highly? Will Google “learn” from this once a few come through?
-
I like Google reCAPTCHA but at the end of the year it won't be free anymore. So its time to look for an alternative. But right now I have no alternative to recommend. ☺️
-
DrQuincy started following Thoughts on Google reCAPTCHA V3
-
I tend to use things like time delay, force JS, honeypot for spam protection and then only add other measures once they don't seem to work on a site. I do have a couple of sites getting a lot of spam and I am trying out Google reCAPTCHA v3 since it's free for my degree of usage and seems to be done without the user knowing about it. I have used V2 before but I hate it as a user experience; some of the tests have been ridiculously long. I just wondered what your thoughts were on it. My main concern is: do things like uBlock and Firefox in strict mode work with it? I have uBlock running and use Firefox in Ehanced mode and it seems okay. What's a suitable fallback? And are false positives common? I am going to use PW's logging system, at least initially, to log those that doesn't make it through. Curious to hear people's opinions and if there are any gotcahs I might've missed. Thanks. 🙂
-
Nicole H started following Help with caching
-
$user->hasRole('superuser') block still visible to guests
Leftfield replied to Leftfield's topic in General Support
Thanks @FireWire Heck, the same thing - default PW module for caching is keeping this URLs in navigation visible for everyone. Strange. Gonna report. Hey @ryan I didn't know where to post this prob, so I've tagged you. Sorry. - Yesterday
-
@adrian, it might be something that only happens with particularly complex modules, because I think I've added the namespace to a bunch of my earlier modules and never struck that problem. And if I test with a dummy module... <?php class TestModule extends WireData implements Module { public static function getModuleInfo() { return array( 'title' => 'Test Module', 'summary' => 'Test applying namespace', 'version' => '0.1.0', 'autoload' => true, ); } public function ready() { $this->addHookAfter('AdminTheme::getExtraMarkup', $this, 'doSomething'); } protected function doSomething(HookEvent $event) { $parts = $event->return; $parts['masthead'] .= "hello"; $event->return = $parts; } } ...then I can add the namespace without issue. If I remove the namespace from a namespaced module then I get a server error, but that's not something anyone would need to do. Just a guess, but you could try removing the previously compiled module files from /site/assets/cache/FileCompiler/site/ in the upgrade() method to see if that makes a difference.
-
Hi @MarkE, first of all, thank you for making this module possible! I have set it up on my server, using DirectAdmin instead of cPanel. The pipe seems to be working, but I am getting the following error message: Declaration of ZBateson\MailMimeParser\Stream\MessagePartStreamDecorator::read(int $length): string must be compatible with PsrExt\Http\Message\StreamInterface::read($length) Do you have any idea what the cause could be?
-
@horst - we can't add those labels ourselves.
-
- 1 reply
-
- 2
-
-
-
@adrian - thanks! Another question arrived. And sorry if it sounds a bit stupid. 🙂 I opened a GitHub-Issue and wanted to add the label "AdminThemeUikit" to it, but could not find out how to add labels at all?!? 😅 The last two or three years I only use Git on CLI, (together with the gh.exe), not the online GUI. Can we self add labels there, and if yes: how? Or is it left to @netcarver as issue-repo-admin? (greetings! 👋🙂) https://github.com/processwire/processwire-issues/issues/2154
-
New blog: Throttling AI bot traffic in ProcessWire
Macrura replied to ryan's topic in News & Announcements
We had one site that was struggling under the strain of AI bots (the admin became almost unusable); The hosting support confirmed they were getting hit massively by AI bots. They ended up implementing apache level blocks. Then we had 2 other sites (running on Digital Ocean droplets) which started to get hit and were crashing, hitting 100% CPU. I have since installed WireRequestBlocker on those 2 sites (and had to up the memory, CPU and storage) On one of them we are now seeing a lot of activity, and IPs being blocked, and have been running smoothly since. In the meantime i'm trying out the ai.txt which can be generated here: https://site.spawning.ai/spawning-ai-txt Has anyone else tried it? -
WSL is not docker. It is a virtualization technique tough.
- Last week
-
I am creating a module. The first-time install works without error, and the module functions without error. However, when I uninstall the module, then attempt to install the module again, I get the following error: "Unable to install module [module]: Role collision detected ([role]): role already exists." The role was deleted successfully, and no reference to that name exists in the database. Has anyone come across this before?
-
Ohh I hadn't understand this about WSL! So it's a case of docker inside docker? Interesting!
-
Let's say you have a repeater field. ProcessWire renders it in the default ProcessWire way in the page editor, which is fine, however there are times where you may want to render a particular repeater field in a more streamlined way, like a table, while maintaining the ability for the user to make changes to field values of the respective repeater items. The problem with this however if that you must be very careful because if you do not represent a field of that repeater (and represent it correctly with the correct form "name"), then ProcessWire will wipe out the data because it expects it to exist when saving!!! This includes the "native" fields for a repeater item (which are "loaded", "sort" and "publish"). THOSE MUST ALSO BE REPRESENTED! For fields in your repeater that are hidden however, they do not need to be represented, so you can ignore rendering those. You have to be very careful here because you may one day decide to add a new field to a repeater and keep it as "Open", and forget this requirement and not add it to the your custom renderer. Then if you wrote data to the field in some way, and then a user went to edit a page that contains that repeater field and they save, your data will get wiped out!
- 1 reply
-
- 1
-
-
@horst - there are lots of new theme issues being posted to Github
-
... I'm a bit late to it! 🙂 Used it first time now, and found some style errors on configurable module pages, when changing between "Light mode" and "Dark mode". Into which thread can / should I send this? Or have I to post it on Github? ...
-
@Spinbox I'm not sure why that wouldn't be working if the fields are initialized with a translate button. I've never nested RPB fields. I'd like to support whatever features RPB has. I've reached out to @bernhard to see if there's anything that he may know of to help or confirm that nesting is supported. Will come back with more info when I can.
- 301 replies
-
- 1
-
-
- translation
- language
-
(and 1 more)
Tagged with:
-
$user->hasRole('superuser') block still visible to guests
FireWire replied to Leftfield's topic in General Support
Perhaps give $user->isSuperuser() a shot instead. It's documented as faster and is my go-to since it's a dedicated method. -
Hi @All The condition should show these nav links only to logged-in superusers, but they are still visible to guests in incognito windows and even on other devices. Cache cleared etc. <?php if ($user->isLoggedin() && $user->hasRole('superuser') && $page->editable()): ?> <li class="nav-item"><a class="nav-link px-le-2" href="<?= $page->editUrl; ?>">Edit</a></li> <li class="nav-item"><a class="nav-link px-lg-2" href="<?= $pages->get(2)->httpUrl; ?>">Admin</a></li> <li class="nav-item"><a class="nav-link px-ls-2" href="<?= $pages->get(1137)->httpUrl; ?>">Analytics</a></li> <?php endif; ?> ProcessWire 3.0.246
-
Using DDEV for local ProcessWire development (tips & tricks)
BrendonKoz replied to bernhard's topic in Dev Talk
Yes, I saw your post in this thread - but I hadn't (prior to posting) ssh'd into the server/guest machine/container, and since the DDEV shell on WSL runs inside the WSL container I thought it was the live environment, and couldn't even find a /var/www folder. Once I used `ddev ssh` the pieces started to make a bit more sense. I hadn't tried searching for the symlink at that point though. -
From how I understand it docker just doesn't know anything about the symlink if it's coming from the host, as if it's not even there. I think a way to confirm this assumption would be to ddev ssh, and navigate to htdocs, should be empty or with odd permissions? I use this trick to load composer libraries locally, but keeping them all in a central part of my host computer, I have a post about this somewhere around this thread.
-
Thank you, @BrendonKoz. Indeed, my multi-image field is called "images", and, as you see in my code snippets, all the attribute properties are in quotes (some in single ones, others in double quotes). Same in my real use case.
-
Using DDEV for local ProcessWire development (tips & tricks)
BrendonKoz replied to bernhard's topic in Dev Talk
That did it! I assumed since WSL auto-mounted that I wouldn't need to mount yet again within DDEV's config, but apparently there's some other magic going on that I don't fully understand, and therefore this was necessary (I think it's how DDEV binds its own mounts within the various underlying containers). Thank you, @elabx! I'll probably adjust this solution a tad, but knowing how to make it work was the largest hurdle - thanks so much!!!!