Jump to content

DaveP

Members
  • Posts

    868
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by DaveP

  1. Stripe (https://stripe.com/de for your needs) is very easy to use and integrate.
  2. I can certainly vouch for client side image resizing working very well - I was looking for this functionality for an intranet site I'm currently working on and Ryan's implementation is very good indeed. It even works with front end editing, with a bit of experimenting as to which method you use and how much output code you enclose. As far as the upgrade process goes, what the guys have said above pretty much covers it. There aren't any major gotchas other than what has already been mentioned, but you might try backing up one site and running it locally on a dev server just to test the process.
  3. +1 for anyone who listens to The Shadows! Been listening lately to one of my local bands - Red Moon Joe. They might not sound like it, but they are from my home town in the north of England.
  4. The default minimum length for words in a mySQL fulltext index is 4 letters, and while your hoster might be prepared to reduce that length for you, it would probably be better to change the way your search page works. Assuming you have ftp access, look for /site/templates/search.php. Its contents probably aren't that much different to the basic install search template, based on the way it appears to work and output results. If that is indeed the case, then look for a line like line 24 in the file I linked above. If it is identical, then replace the equivalent line with the following $terms = explode(' ',$q); $selector = ''; foreach($terms as $term){ $selector .= "title|body%=$term, "; } $selector .= "limit=50"; and you should be good to go. (Touch wood.) If it's very similar, you may be able to figure out what to change, but if not, post what code you have and we'll try to help.
  5. My goodness, that's a long time ago. Key thing for me is @renobird's answer to my original question on showing the user template in the backend. After that, you can add any field at all AFAIK to the user template. 'In PW everything is a page'™ and user pages are no different. Kinda feels dangerous/wrong if you're coming from other systems, but it isn't.
  6. Welcome @cgohio You have a typo in the URL in your question! Anyhow, I found https://www.gcbhs.com/ and the images aren't specified in PW, but are in a folder located at /site/templates/images/brandmarks/.
  7. I just wonder if there could be usability issues here? I don't know the background, obviously, but displaying a random selection and then making them look 'non-random', isn't that risking misleading (maybe that's too strong a word) users that they are seeing everything when they aren't?
  8. You could probably also create a very small (in pixels) variation and scale it up in CSS then lazy load a full size image over it.
  9. Even though I'm using a mac almost exclusively at the moment, a couple of Linux distros worth checking out are ChaletOS and Zorin OS. Both are highly usable Windows replacements, as is Manjaro, as suggested by @GuruMeditation. We installed them at the last place I worked for (a mix of Manjaro, Chalet, Zorin and Mint due to some antediluvian hardware), in the telesales department after one of them managed to get CryptoLocker on her PC. Don't think they even noticed. Also, while I'm chiming in with software recommendations, LibreOffice is a very capable MS Office replacement (and much better than OpenOffice).
  10. Got to disagree - I learnt a great deal, and I'm sure many others will appreciate having our hands held in a thorough and thoughtful way. Very much looking forward to the next one!
  11. Can it be done? Absolutely. Is this an ideal first PW project? Hmmm... $64,000 question. It really depends on your level of front end development experience. I don't even say PHP here because you could use almost any front end - I assume nodebb uses node.js and AFAIK there isn't anything to stop you doing that if you really wanted to (but you'd really have to want to) and just use PHP for template files. My thoughts - Front end member registration, password retrieval, etc. Absolutely - simple (and not so simple) forms are easy with just html - no need for the API - just always use sanitizer. (There are a couple of modules for emailing users and forcing new passwords that might help, however.) Front end thread creation by all members (I assume each new thread would be a separate "page") <?php if($user->hasRole('member')){ echo "<form class='createNewThread'>.....</form>"; } You'll need to expand on the <form>, and server side check $user->hasRole() again for security, but that's pretty much all there is to it. Front end member profile editing See my answer re registration. Picture upload required to create each new thread This works lovely with PW (I'm just using it on a project.), for example. Handling the PW side is made much easier by reference to Soma's gist (which has become the de facto method as far as I'm concerned, at least). (Bonus hint - loads of other good stuff there, too.) Picture upload optional on all subsequent comments inside a thread See above. Front end post and comment uploads restricted to images only – .jpg, .gif, .png Because code referred to above uses WireUpload class, that's easy. Appropriate security to prevent uploading malicious files disguised as images See above, but with any security issue, take care. Optional tagging of each thread as it's being created Just search the forum/modules directory. Automatic SEF urls created based on the thread title ( e.g. http://site.com/forum/title-of-my-thread-12345 -or- http://site.com/forum/12345/this-is-title-of-my-thread ) Already built-in, as others have said. Sitewide search feature You'll need to roll your own, but it's not hard. The search page from Ryan's skyscrapers profile is a good source of ideas. I know much of the above duplicates what others have said, but it surely doesn't hurt to have a bit of confirmation.
  12. Sorry for not being clearer. What I was trying to say was that if, say, you imported a news feed from an outside source at a specific time, or it was updated and new items added all at once, and all of a sudden you had several images being resized for use on the front page, then that might make for a bottleneck. Whatever is causing the issue, let's try to dig a bit deeper. Would I be right in thinking that you are on the Legacy branch (2.8.n) of PW? That's the one where line 390 of /wire/core/WireDatabasePDO.php looks likeliest to trigger an error. It shouldn't make a difference, but you never know. Do you have (or could you ask for) access to the mySQL slow query log? It might not help, but it's another thing to eliminate, especially now that we are looking to resolve a mySQL timeout error that the logs you've posted point to. Depending on your hosting setup, it might not even be your site that is the root of the problem - someone else might be borking the db server for you and you see the symptoms!
  13. One thing that might be relevant is image processing. Are there times when multiple images might be being resized at once, like when a feed changes or something?
  14. DaveP

    Mad Archive Deleting

    We had one at a place I used to work. If I remember correctly, if you browse through the desktop app thingy, you see a thumbnail for each image file, and it takes a big chunk of the limited horsepower available to maintain them. Also, if you only use it for storage and not as a streaming media device you can switch that feature off as well which is supposed to help.
  15. DaveP

    Mad Archive Deleting

    Those mycloud drives are not the quickest gizmos in the world. One trick is to switch off automatic image thumbnail creation, which speeds things up to a crawl, at least when saving new files. The good news is that they run Linux, so you can do all sorts with them. (Albeit slowly...)
  16. There may be other solutions/modules but Ryan's RSS Loader Module would probably be a good starting point. It will obviously depend on the format of your source feed.
  17. I realise this is a (very) late reply, but this problem just won't go away. In reply to @BitPoet user_agent isn't set in php.ini. I was under the impression that the request from the PW backend to GitHub set its own user agent. Can anyone confirm this one way or another? I may be able to upload a custom php.ini if there is a chance it will fix this.
  18. This post seems to suggest that Google is looking to offer search results based on its perception of the capabilities of the website's underlying database. That is one of PW's great strengths. An opportunity?
  19. Sounds to me like a file ownership issue. One thing you might try is installing a PW module through Modules > New > Add module from Directory and enter a Module Class Name (eg first module in directory at the moment is 'JqueryIonRangeSlider', but you could use any). You can always uninstall it again afterwards. The reason I suggest this is that PHP will download and install whatever module you choose. If that works, you can look via FTP and see who owns the module files that have just been installed, and compare to ownership of existing files & folders (especially of caches & suchlike). If there's a difference, then that might give you/us some clues. <edit>Actually, try Tracy Debugger if not already installed - it is wonderful and might help sort this out too.</edit>
  20. DaveP

    Notanotherdotcom

    Looks really good - doesn't scream 'this is built with a framework'. Minor heads-up - Chrome inspector flags up 'Subscribe to our Newsletter' form as pointing to an insecure endpoint.
  21. There are some selectors ($pages->get for example) where in 'include=all' is implied by use of that selector. I wonder if this might be similar?
  22. Update - I can confirm @Richard Jedlička's earlier post is correct. Changing line 171 of ProcessWireUpgradeCheck.module to $branches = $this->getCoreBranches(false, true); fixes the (intermittent) problems I have been experiencing.
  23. Are we talking about an 'in-context' preview or something slightly else? In other words, if author is logged in and preview=1, show appropriate unpublished items as if they were published to world+dog? Seems a very reasonable thing to do. When I first read the OP, I wondered if you were talking about some kind of 'preview' template, just to show the different ways an article might appear across the site, but in-context is probably better. You'll just need to check if one or more unpublished items should be included in the page and adjust any content selectors appropriately, obviously depending on whatever output strategy is in use. It might also be helpful, either in an admin module or an extra bit injected into the site output to list the urls where the content in question can be seen, to help the preview process.
  24. Thanks @adrian that worked for me - was getting 'Error loading GitHub branches' etc, but only for core. That fixed it. <edit>..or at least it did temporarily. It let me upgrade the core (3.0.42 => 3.0.55) and install the new Uikit admin, and now it's back to saying there's a 403 error loading the core repository. Hmmm.</edit>
×
×
  • Create New...