Jump to content

DaveP

Members
  • Posts

    868
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by DaveP

  1. Dunno if it's still valid (long time ago), but this thread might be relevant
  2. According to their Twitter feed it's back up. (Oooh, looks like we can embed tweets.) <edit>Although it's still 503 at the moment...</edit>
  3. Just recently set it up on my VPS - not particularly tricky but there's a potential gotcha in that Apache mpm prefork (whatever the heck that is) doesn't support http/2 so you need a different kind of prefork. https://http2.pro/doc/Apache got me through it. BTW if you have that kind of control over the server, mod_PageSpeed can help by at least serving webp instead of jpeg to supporting browsers. (There's much more to it as well, but the jpeg to webp thing is out of the box.)
  4. This doesn't appear to be the usual .htaccess-related kind of thing Visiting shows that the 404 is PW's 404 page and clicking internal links tries to load the appropriate page (browser URL field changes) but it is still 404. Completely groundless wild guess - could it be a multi-language related problem?
  5. Welcome NoWords! Short answer to a long question - Yes, almost certainly. Bit longer answer - Most (if not all) of your needs could be accomplished by creating a ProcessModule. This will require some programming, which you may or may not be comfortable with. See This will allow all the control over member budgets etc that you need. In PW a user page is just a page so any custom fields can be added to a user just as they would any other page. Depending on your requirements around 'events', there are various calendar modules available but without knowing a bit more about that side of things, the built in date support might be all you need. Have a look at @bernhard's tutorial above, and come back to us with any more questions you might have.
  6. /site/assets/files/1234/photo.jpg style image urls. /site/assets/pwpc/pwpc-(longmd5typehash).css tells us ProCache is being used. /site/assets/aiom/css_(longmd5typehash).css is the same, but for AllInOneMinify. 1 alone is a pretty good indication. 2 or 3 in all honesty are probably definitive. 1 + 2|3 and you can be 99.999% certain. Anyone got any other tells?
  7. DaveP

    PW logo

    From https://icongr.am/simple/processwire.svg
  8. There's some discussion of this and related issues here but it doesn't look promising...
  9. ImageSizerEngineIMagick is much more forgiving on large images than the default GD resizing engine, if you can make it available on your hosting. (And faster and all round better IMHO.)
  10. Still a bit of dummy content at http://mbr-mining.com/news/jl/ (complete with a nice picture of MV Teal on Windermere )
  11. Hmmm, there's nothing obvious. What happens if you echo $selector?
  12. Is this any help (from a working site) <?php namespace ProcessWire; if(!$input->urlSegment1) throw new Wire404Exception(); $tag = $sanitizer->name($input->urlSegment1); $tagtitle = $pages->get("template=tag,name=$tag")->title; if(!$tagtitle) throw new Wire404Exception(); In your example this would be from /tag/ template, which is set to use urlSegments.
  13. Very much a guess, but it looks like you are trying to manipulate a page that doesn't really exist yet. Have a look at the basic steps here and see if your flow matches, or perhaps you have missed a $page->save() somewhere.
  14. Don't disagree with 'one' being an option, but what about rather than 1, having an integer? You might want exactly 3 children for a particular requirement.
  15. Starting point - https://processwire.com/api/modules/multi-site-support/
  16. It's the folder that /site/ and /wire/ live in; the one where index.php and .htaccess are (in a standard install).
  17. Further to my earlier reply, in case this might help someone, what I often do is have a 'Fieldset in Tab' on the Home page for sitewide settings something like this... Then, before output, a little bit of code like this $home = $pages->get('/'); allows me to do echo $home->site_title; // or echo $home->images_common->first()->url; (The observant amongst you will have spotted an alarming lack of naming consistency in the code above, but heyho, this is a real example from a real site, warts and all.)
  18. I googled 'cpanel compress tool' and didn't find anything specific. Do you mean you 'zipped' (or otherwise archived) the files? Macs have some odd habits with file extensions - if they were zipped, are you sure you unzipped them after download?
  19. You would be better having your default image attached to an actual page, like your 'home' page, or a hidden 'settings' page, then all the usual PW image methods will work. As you have discovered, they don't work the way you are trying. There might be a module that could help, but if it is just the one image, that might be overkill.
  20. TBQHWY I hadn't ever looked at that panel before now, and it pretty much does the job I had in mind - simply tracking where stuff was happening, included file wise. Docblock stuff would be a bonus, but I would class it as a welcome addition rather than a must-have.
  21. Firstly apologies for the convoluted thread title. This was an idea I had a while ago and was brought to mind by @dragan's recent post. Going back to a project, I took some time to find where various bits of code were lurking - 'standard' files like init.php, ready.php, finished.php (are there any others?), 'non-template' files in /site/templates/ ('_whatever.php' type stuff) or something/somewhere else (folder inside /site/templates/ for example). Anyhow, the idea was for a process module (custom admin page) to check these built-in locations and configurable for others, with a docblock parser, that would report what files were in use and what functions they contain. Is there anything like this already? <edit class='saveReading'>Yep, Tracy (as is so often the case) has it covered</edit> If not, is there any merit in such a tool being created (shouldn't be that hard)?
  22. What about a new field type? Derived from FieldtypeFile but more like FieldtypeMapMarker i.e. a combination type field with all the features of FieldtypeFile but with an added 'index' or 'contents' subfield (is that a thing?). Let's call it FieldtypeIndexedFile. You would certainly need a module, and a way to extend it with different file type parsers (Excel, PDF etc etc). Should be doable, but way beyond my abilities to even attempt. (Just watch someone have one working in about an hour from now.)
  23. FWIW it's Atom for me. Has got much better recently and seems much less of a resource hog than Netbeans et al. Also has a uiKit autocomplete plugin.
×
×
  • Create New...