-
Posts
10,926 -
Joined
-
Last visited
-
Days Won
350
adrian last won the day on February 4
adrian had the most liked content!
Profile Information
-
Gender
Not Telling
-
Location
Canada
Recent Profile Visitors
46,302 profile views
adrian's Achievements
-
@elvina - I am not sure if you will need textarea fields instead of text. I couldn't test text because they were broken for me in the Table GUI - I don't know why - maybe that's a question for Ryan. If you look at the code I added to support ML (https://github.com/adrianbj/TableCsvImportExport/commit/b1cf4b9d9c396f7f50e8a33a7b8ba871614a6f50), I think it should work fine for any text field. I assume you are separating the different values for each language with the multiple values separator and they are in the same order as the languages in the PW admin.
-
Does it return them with links to edit those pages, or just view them? For me it returns the view link which is fine.
-
Hey @bernhard - I don't think I want the ProcessPageSearchLive in my case because I want any user to be able to find view links publicly available pages, but because the module makes these restricted pages uneditable for the user, the edit links for restricted pages aren't returned via the live search anyway. As noted in my source code, ProcessPageSearch::executeFor is for things like pages returned from autocomplete when inserting a link to a page in a CKEditor field. So, I think I am covered, but please do let me know if I have misunderstood or overlooked something.
-
adrian started following [SOLVED] Hide Tracy hides Tracy completely , Request info panel problem and The "return" of RSS!
-
Hi @MarkE - looks like a case of the PW core not handling checking if $value is null before passing it to trim() Not sure why it's being triggered when switching users, but I have noticed some errors like this seem to get lost a lot of the time, but something in that RequestInfo panel seems to root them out. Anyway, I think this is one for Ryan, but you can obviously test and fix by checking $value before it is trimmed in wire/core/DatabaseQuery.php:468
-
Not that RSS ever actually died for us dev types, but it did for regular users. I don't want to get political here because it's not appropriate for these forums, but if anyone is considering removing X/Twitter from their projects, I am seeing that there is some momentum building to bring RSS back to the masses. I remember in the 2000's every site had an RSS feed and email clients supported them - they are a brilliant way to bring the news sources you care about into one place. Of course Google, Apple, Twitter, Meta etc didn't like this because it meant users could read the content they wanted without an algorithm having control and ads being served, so Google Reader was killed off, Apple removed RSS support from Mac Mail, etc. I have continued to use RSS (although less than I used to), but I am now fully back on board and convincing clients to add them to their sites. https://aboutfeeds.com/ is a good resource for those who know nothing about RSS and https://hvandenbergh.medium.com/back-to-rss-e4e177314bc3 is a short read about why RSS is good for the user is this day and age. Spread the word! And as a side note, for those of you who use UIKit, here is a nice little tweak to make their RSS icon actually look decent and match UiKit's other social media icons. /* Fixed the ugly UIKIT RSS icon */ .uk-icon[uk-icon*="icon: rss"] svg path { stroke-width: 3.5; stroke-linecap: round; } .uk-icon[uk-icon*="icon: rss"] svg { transform: scale(0.85); } .uk-icon[uk-icon*="icon: rss"] svg circle { transform: scale(1.2); transform-origin: 0% 100%; /* Scale from the bottom-left corner */ } instead of
-
Thanks @Robin S - when I was testing last night with adding a code prefix, I was forgetting to reload the page with the console panel open. I was just re-saving a snippet and checking that the prefix was added to the saved file, but until the page is reloaded, the loaded snippet code wasn't including the prefix. Thanks for your help testing and fixing. It's now available in the latest version. FYI - next step is to move all the cached stuff from localStorage to IndexedDB so there is the room (and performance) to store the results pane for each entry in the history stack.
-
@Robin S - I just played with this a little more adding this - not sure if it's actually what you are using, but I've seen you use it before so thought it would be a good starting point. But still I can't reproduce the issue you are seeing 😕 <?php namespace ProcessWire; //<editor-fold desc="API variables"> /** * @var Config $config * @var Fieldgroups $fieldgroups * @var Fields $fields * @var Languages $languages * @var Modules $modules * @var Page $page * @var Pages $pages * @var Paths $urls * @var Permissions $permissions * @var ProcessWire $wire * @var Roles $roles * @var Sanitizer $sanitizer * @var Session $session * @var Templates $templates * @var User $user * @var Users $users * @var WireCache $cache * @var WireDatabasePDO $database * @var WireDateTime $datetime * @var WireFileTools $files * @var WireInput $input * @var WireLog $log * @var WireMailTools $mail * @var ProCache $procache * **/ //</editor-fold>
-
Hey @Robin S - thanks for the new theme - I've committed it already. As for the unsaved changes issue, I can't seem to replicate that here when I add something in the code prefix setting. I don't normally use that option but been playing around and not seeing an issue at the moment and as far as I can tell the code prefix should be removed before loading into localstorage where the comparison is done. Perhaps there are some weird characters or a windows line break or something which isn't being stripped? This is the file that is called via AJAX to get all snippets: https://github.com/adrianbj/TracyDebugger/blob/master/includes/ConsoleSnippets.php if you feel like doing some comparisons, or if you'd like to post the contents of your code prefix field I can also take a look here. A bit off topic, but just out of interest for you - not sure if you've ever looked, but the code that is actually run via Tracy is stored here: /site/assets/cache/TracyDebugger/consoleCode.php
-
Hi @Robin S - I have tweaked things in the latest commit to make the tabs a little taller so that the tab labels are further from the code which I think helps, but I have also added the ability to switch to a light theme if you prefer (in the Console settings). If you still don't like the light theme option, feel free to tweak it, or submit a PR with an additional theme option if you'd like. Hope that helps.
-
Hi @AndZyk - sorry about that - not really sure what changed to cause it, but I've implemented a fix. I also moved that show icon up and left just a bit because I always found it was so close to that bottom corner that my mouse pointer (on MacOS) would be triggered by the resize window event on the browser - this should alleviate that.
-
[SOLVED] Vulnerability caused by old version of Adminer
adrian replied to ottogal's topic in Tracy Debugger
Peter has just renamed to AdminerNeo (https://github.com/adminerneo/adminerneo/) so hopefully this new identity will help to keep things alive. -
Just wanted to say that this is an essential module for me on all sites. Being able to see what changes have been made and by whom and to revert if needed is so important.
-
@sz-ligatur - please try changing this line: https://github.com/adrianbj/TableCsvImportExport/blob/b1cf4b9d9c396f7f50e8a33a7b8ba871614a6f50/TableCsvImportExport.module.php#L455 to: require_once __DIR__ . '/parsecsv-for-php/parsecsv.lib.php'/*NoCompile*/; I think that should sort out the issue with this module. Let me know if it works and I'll add to the repo. As for the Tracy panel notices. Not sure about those but it does seem like in general you have some permission/role issues preventing PHP from writing to files in the modules directory.
-
[SOLVED] Vulnerability caused by old version of Adminer
adrian replied to ottogal's topic in Tracy Debugger
Just an update that AdminerEvo is officially dead unfortunately so I have migrated Tracy to use https://github.com/pematon/adminer - Peter Knut is the creator of the theme that Tracy's Adminer uses and has created a few other plugins we use so I think we are in good hands, so if you want to show some love, please go star his repo to help get it better recognition and support from other contributors. -
Note that Nette is now using these: https://blog.nette.org/en/one-line-in-configuration-will-speed-up-your-nette-application-how-is-that-possible so it might be worth looking into how they have implemented them.
- 1 reply
-
- 3
-