-
Posts
10,902 -
Joined
-
Last visited
-
Days Won
349
Everything posted by adrian
-
I was just writing this when your new post came through If you haven't already started the version checking, perhaps first try this latest change to the Tracy core which looks like it might possibly be the issue: https://github.com/nette/tracy/commit/5ecd8e7b011580f44191be7ef40487e8b09a2555#diff-36dcf2914a684042e3718478c5c6faa9 You can just manually add that "isset" to the src/Tracy/assets/Bar/loader.phtml file. Also, perhaps it might be worth trying the stable branch of Tracy - remember I recently (v1.2.6) added the master (dev) branch if you have php 5.4. Easiest way to do this is probably to edit this line: https://github.com/adrianbj/TracyDebugger/blob/f8d4ca6c1f8afe31331bdaa94a89b50874371586/TracyDebugger.module#L103 so that it loads stable anyway. So could you please check both those approaches in that order please. Hopefully it's the first one.
-
@tpr - sorry to hear that - definitely weird as it's working fine here. Obviously hard for me to debug without any errors. It would be awesome if you could figure out the exact commit that breaks it for you. You can download the zip from Github for each commit quite easily. That will take you to a link like this: https://github.com/adrianbj/TracyDebugger/tree/0b9696921bcd33ac18460b5501f13c8784b4188b From each of these you can use the normal "Download Zip" button. Sorry this could be quite time consuming for you. You probably do this already, but in this situation I always grab the middle commit between the one I know is working and the one that isn't. If that works then split the difference to the latest and if it doesn't split the difference to the oldest and so on - that should reduce the effort significantly. Thanks for taking this on!
-
If you're using that module of mine, you currently need ffmpeg and php-ffmpeg installed to generate poster/thumbnail images. I am planning on adding the option to manually add an image at some point, but it will be much easier if your host has ffmpeg available. As for autoplay, just edit the the play code in the module's config setting. Although I should probably add the ability to pass various options like autoplay via play() If you want to go back to the plain html video tag, it shouldn't be hard to get the path correct. I am not sure this makes sense yet because as far as I know, you need to provide mp4 and webm versions for all modern browser support, whereas with my module and its use of mediaelementjs you can just supply an mp4. On further reading, I am actually not sure of the support for mp4 anymore. It seems contradictory between http://caniuse.com/#feat=mpeg4 and http://mediaelementjs.com/ Are the videos being uploaded via a files field? or manually uploaded to site/templates/video/ ? <?php echo $config->urls->templates; ?>video/voorstelling_orgelpijpjes_2016.mp4 If so, then it should work fine. What is the URL that is shown when you view source?
-
Does this help: https://processwire.com/talk/topic/8553-how-to-increment-file-download-counter/
-
http://modules.processwire.com/modules/process-custom-upload-names/ That module will ensure nice filenames - you can configure however you want. That's great for future images, but for the current ones - there is an option in the module to "Rename on save" - generally I don't recommend this one, but in this case it would allow you to create an API script to loop through all pages and resave them. I would test first on a sandbox PW install to make sure everything works as expected.
-
Looks like it can't get the SVG's attributes which suggests that the SVG in questions doesn't have a width/height set. That is OK though - that is a valid situation. However line 182 includes the shutup operator to silence this error: $a = @simplexml_load_string($xml)->attributes(); Is your config overriding the silencer?
-
Or perhaps another approach would be to use a standard SQL query to get an array of page IDs that match the desired controlnumber and then get the pages like this: $pageIDs = array of pages_id results from SQL query of the field_controlnumber table $matchingPages = $pages->getById($pageIDs);
- 3 replies
-
- selector
- partial match
-
(and 1 more)
Tagged with:
-
Ok, the latest version now respects the maxFiles settings for the image field. Please let me know if you have any problems with this feature and if it works as expected for you.
-
PW 3.0.15: New quick-tree, debug, view panels and more
adrian replied to ryan's topic in News & Announcements
I have just started playing with the page tree panel and I think I'd rather see it appear beside the current view's content, rather than on top of it. That way I could leave it open and return to what I was doing - it can be a handy reference for other tasks. It would work the same way as the side menu in the Reno theme works. I'd actually like to see it remember it's open/collapsed status also. I know you are worried about the overhead of rendering a page tree on every request, but with the new page tree from 3.0.8, isn't that less of an issue now? Now it's just rendering, rather than querying? Or do I have that wrong - I actually haven't checked the source to see what's actually going on there. I am also not sure why it has to be so wide - currently to close it you have to move your pointer to the middle of the screen to either click the panel label or the main page to make it disappear. Any reason it can't be the width of the widest page title? Also, I have what I think is a bug. If you are on the Setup page: http://pw.dev/processwire/setup/ and you click the sitemap icon in the breadcrumbs, it loads the Page Tree fully, not in a panel. -
You're right - I rushed that last update - there are two ways to get the title and the second one still works. I have reinstated that and it should be working again now. I am still going to wait till tomorrow to deal with the max files setting - I definitely need to think this through a little better first.
-
Hi @Robin S, Thanks for the report - I have a fix for the "Unable to Copy". However it looks like Youtube has also finally removed direct access to the video's RSS feed for getting the title and description. I have committed a quick update that takes care of the first problem and prevents errors for the second, so it should work for you now. I will try to find some time tomorrow to implement the changes needed to fix access to the feed and also look at the max images setting issue.
-
It gives your site editors the ability to add different content types "blocks" in whatever order they wish. For example, a block of text, then an image, or a video, or a two column block of text, perhaps a map - whatever you set up for them. The great thing about this, compared to letting them embed images etc within a CKEditor textarea is that you can control the output of these, rather then letting them potentially mess things up
-
Getting back to topic Third part in Maurizio Bonani's excellent series: http://blog.mauriziobonani.com/processwire-basic-website-workflow-part-3/
-
Looks good to me - thanks again!
-
Hi Martijn, I agree - it's weird what the Nette/Tracy folks did by injecting the debugger bar code after the closing <html> tag. I don't really know if they have a valid reason or not. I should post an issue with them though and see what they say.
-
For most modules, I would agree with you, but this one potentially has 8 custom permissions. I think most users will probably only want the "tab-settings-view" or "tab-settings-hide" permission. I'd rather not pollute the permissions list with 7 additional unnecessary permissions if you are planning on only using one. Do you see my point?
-
It would be a good start to temporarily revert to the default core version of ProcessPageAdd to see if that fixes the repetition. This module does hook into Page:addable() and Page::editable() to prevent editing and adding to pages outside the restricted branch. We're getting off topic, but perhaps you should use those hooks rather than editing the core ProcessPageAdd - at least I think you should be able to achieve what you want with those hooks - btw, these are not listed in Captain Hook which is why you may not know about them.
-
Sorry, I have to take that back. A hard reload still results in the FOUC. This however seems to work: $(document).ready(function(){perfmon.elements.main.show()});
-
Works great now - thanks!
-
I am on Chrome/OSX What I am seeing is content from the area with the blue heading. It isn't styled though - just a bunch of text at the bottom left of the page. It only happens when viewing the PW admin - not seeing it on the front-end at all.
-
No problem. One tiny thing I am noticing with your module. There is a quick FOUC when the page loads. Not a huge deal, but it would be nice if the details frame was hidden until the JS kicks in to collapse it.
-
Thanks for the update. Yes, the modules directory will update from Github once a day, but you can also manually update it by simply editing your module in the directory and saving.
-
bernhard - I am rethinking this - I think that szabesz and horst make some compelling arguments - in particular I like the idea that Tracy can make your life easier when you're not at your normal dev machine, so adding this could be useful. Do you have a preferred solution? How did you set up what you have in that screencast? I was looking at: https://github.com/micheh/w3c-validator but was wondering if you were just passing a URL to an iframe of the w3c validator? I actually like the idea of being able to color the panel icon in Tracy depending on the report status, so I think something like that Github library might help in that. PS Mismatched html tags is a great example of a bug that should be dealt with, so from that perspective I think it might fit nicely with Tracy.
-
Still waiting to hear from you @SteveB! But in the meantime I thought a little more about name vs path matching and I have made some additions in this area. You can now either return a name or a path in the custom PHP code option. Path is the recommended option. This change doesn't affect the other two matching modes, but it should make this mode more efficient.
-
Hi @SteveB, I just tested using that approach (with "data" instead of "/data/") and it looks to be working just fine here. You have me thinking though that maybe the custom PHP code approach should be path, not name. I'll need to think about this more. In the meantime, is there any chance I can get access to this PW install to see if I can figure out why you are getting that repetition? I am sure it won't be hard to fix once I know why.