AndZyk
Members-
Posts
713 -
Joined
-
Days Won
10
Everything posted by AndZyk
-
@ryan The export/import module is great, but it would be nice if it could import focus points of images and SVG files. ? Not sure if I should post this to the Wishlist board or as processwire-request issue on GitHub. Just wanted to mention it. Regards, Andreas
-
Just noticed that every fatal error message starts different: I don't make errors, so that was new to me. ? Nice feature. ?
-
ProDrafts is working good with repeaters. In rare occasions there are some quirks, but you could customize your ProDrafts settings in that case. Another solution would be to have a staging website and a production website, which I would recommend in any case. The client could prepare new pages on the staging website and you could export and import them to the production website with the import/export feature. For small changes that would be overkill, but for large changes to the website this is also a good way. Regards, Andreas
-
Sorry, if I didn't understand your case, but if you are looking for a survey tool I can recommend LimeSurvey. Of course you could do this with ProcessWire, but a survey tool has most of your points already covered. ?
-
German language pack (de_DE) with formal salutation
AndZyk replied to dotnetic's topic in ProcessWire Language Packs
Thank you for the update. Could you please consider following changes: ProcessPageClone.module: Copy = duplizieren => Duplizieren, because every other action has a capital letter. WireDateTime.php: days = Tage => Tagen, because the relativeTimeStr is "seit X Tage". Or is "days" anywhere else used? If not this change would make more sense and could be applied to seconds, months and years as well. Or should I post this as GitHub issue? ? Regards, Andreas -
Strange, that you can see a different cursor. There are no pointer stylings on this element and you should get the standard text cursor. Maybe it is a caching issue. Either way this website was designed for smartphones and tablets, so visitors don't see a cursor anyway. ?
-
The ecumenical city pilgrim trail in Villingen, Germany is a small trail through the city where you can visit churches and other places of interest. This Progressive Web App is a small website to guide visitors through these places and give additional informations. You can install it on your smartphone or tablet and walk the trail with it. app.stadtpilgerweg-villingen.de Features: Interactive Map Progressive Web App Interactive Map Before entering the map you get a little tutorial where you can choose between two routes, the standard trail or a more accessible trail. You can track your position on the map and click on the markers. Each marker is a view with additional information to the place. The views can contain texts, quotes, images or a chat element. The map was realized with Leaflet and styled with Mapbox. Progressive Web App The website can be installed as Progressive Web App on your smartphone or tablet for a better experience. The PWA remembers the last visited view and has no unnecessary browser navigation. It can also partly work offline and caches almost everything. The PWA was realized with the help of Workbox. Modules used: Repeater Matrix ProCache Map Marker (Google Maps) Sitemap ProcessWire Upgrade TOTP two-factor authentification Tracy Debugger Regards, Andreas
-
Ah maybe this could be it. I found out that it is neither an issue with the latest ProcessWire version nor the TfaTotp module. The Error occurs when I activate TfaTotp locally first (PHP 7.4) and import the database on our web hoster (PHP 7.3). If I activate TfaTotp on our web hoster first and then import the database locally, then there is no error. I don't know what changed because the first way always worked for me. ?
-
Hello, I get with the latest version 3.0.162 dev and the module TfaTotp 0.4 the exception "Invalid base32 string" on our web hoster after the login attempt. On my local Mac it works like before. Has anybody else this issue? I don't think the web hoster changed something. Also the TFA reminder for superusers is still visible, even though it should be fixed with one of the latest commits. ? Regards, Andreas
-
Thank you, these new search operators sound great. ? What combination would you recommend for a classic website search form? I use until now %= (contains text like). Maybe I could improve my search form with a combination like ~|%= or so. I use for my search form also this: FieldtypeText.extends%= But this is not supported by the new search operators yet? Regards, Andreas
-
Thank you. ? Of course I haven't looked there. ?
-
I just wanted to try out a barDumpBig. But I get an undefined function error: <?php barDumpBig($largeObject); bdb($largeObject); Am I missing something? I have never used it before. ? Regards, Andreas
-
This solves the error in my RequestInfoPanel, thank you. ?
-
Hello, my RequestInfoPanel shows this error on all of my projects: I have ProcessWire 3.0.161 dev and Tracy Debugger 4.21.17. I am on macOS with MAMP PRO 5.7. Has anybody an idea what causes this error? Thank you @adrian again for your great work with this module. ?? Regards, Andreas
-
Thank you for this update. ? The "Remember this computer?" function is really handy for someone like me, who logs in daily into 10+ websites. Password managers like 1Password make this easy, but you always have to make an extra click. I would support adding the TFA modules to the core, because in my opinion there are an essential security feature and I always install the TfaTotp module on every new website. I have noticed a small bug: If you have the TFA reminder enabled for superusers in the ProcessLogin module and remember this computer, the notification is displayed, even if you already have TFA enabled. Regards, Andreas
-
Cannot add new pages with permission page-edit-created
AndZyk replied to AndZyk's topic in API & Templates
Hello @elabx, I haven't but adding it makes no difference. I reproduced it on a fresh installation and either I am misunderstanding the concept or this a bug. ? I have created an issue on GitHub to be sure. Regards, Andreas -
Hello, I have a user role employee with the permission page-edit-created. This user role has access to add new pages to the template posts with the template post. The template posts should have children with the template post. The template post should have the parent with the template posts. Now every time I try to add a new page with the template post, an exception throws: You don't have access to the template required to add pages here Is this a bug in this permission or have I not configured the permissions correct? Is there a hook to allow to add pages to the template posts for the role employee? I would appreciate some help. ? Regards, Andreas
-
The import/export module sounds amazing and it works fine with regular pages. But has somebody tested it with a Repeater Matrix in a multilanguage site? If I try this, i get the error: Call to a member function setLanguageValue() on array I know that the Repeater Matrix is a special field, but I think it should work in theory. ? Regards, Andreas Edit: Nevermind, I had an old version of the Repeater Matrix. With version 0.0.5 it works as expected. ?
-
Thank you for the updates. ? But I think there is a small bug with the image field. I cannot search image descriptions like this anymore: <?php pages()->find("content>0, content=[image.description%=$q, include=all]"); Content is a repeater matrix and $q a search term of a search function. Can somebody reproduce this? Regards, Andreas
-
Allow protocol file:// in FieldType URL and CKEditor links
AndZyk replied to AndZyk's topic in General Support
My solution for textareas with CKEditor is now a simple Textformatter module. ? <?php class TextformatterReplaceLinks extends Textformatter implements Module { public static function getModuleInfo() { return array( "title" => "Replace Links", "version" => "1.0.0", "summary" => "Find and replace links of domain.", "author" => "AndZyk", "singular" => true, "requires" => "ProcessWire>=2.6", "icon" => "link" ); } /** * Find and replace the input string * * @param string $str The block of text to parse * * The incoming string is replaced with the formatted version of itself. * */ public function format(&$str) { $str = preg_replace("/(http|https):\/\/example.com/", "file://example.com", $str); } } Regards, Andreas -
Thank you @ryan. I did not know how to just modify the comment text. ? Personally I like markdown, but in my case I just want to replace links, so I modified this snippet to just replace links with html links: $wire->addHookBefore("CommentList::renderItem", function($event) { $comment = $event->arguments(0); /** @var Comment $comment */ $text = $comment->getFormatted("text"); $textOriginal = $text; // look for link $regex = '@(http)?(s)?(://)?(([a-zA-Z])([-\w]+\.)+([^\s\.]+[^\s]*)+[^,.\s])@'; $link = '<a href="$0" rel="noopener noreferrer nofollow" target="_blank">$0</a>'; $text = preg_replace($regex, $link, $text); // populate changed comment text if ($text !== $textOriginal) { $comment->set("textFormatted", $text); } }); Regards, Andreas Edit: The regex I copied from Stack Overflow else doesn't seem to be that correct. Regex is always a big question mark for me. I have to look further. ?
-
Hello, I don't want to hijack this topic, but since this topic is about the comments field I just wanted to ask this short question, because a client just asked me about this: Is there an easy way to convert links inside comments to clickable HTML-links? I know that HTML tags aren't allowed in the comments field and for a good reason, because that would be unsafe. But our client has a blog and wants to link to an internal blog post inside a comment. I could use preg_replace with a pattern to find links and add markup to them, but this way I would have to recreate the whole markup of: $comments->render() I would appreciate some help and I can create a new topic if this is not the right place. ? Regards, Andreas