Jump to content

Pete

Administrators
  • Posts

    4,034
  • Joined

  • Last visited

  • Days Won

    66

Everything posted by Pete

  1. Just a thought - but the next step might be image tagging like FB? Not sure that falls under the remit of a separate module but I can think of lots of places where that might be useful, though I appreciate that a lot of the time it won't be.
  2. Cheers Ryan - i'll update the module tomorrow.
  3. No problem. The default header code for redirects in PW is a 302 redirect (page has temporarily moved) which is actually the default code for a redirect in PHP itself. The 302 (the way it currently works) might actually the best header anyway as it tells search engines to always check the original URL for a page next time it visits despite the redirect and that the redirect is only temporary. I don't think it affects SEO in any way looking at it - as long as maintenance more isn't left switched on for months of course A 503 suggests the actual server is down for maintenance if I'm reading the description right on Wikipedia, although I see it says it's only temporary: http://en.m.wikipedia.org/wiki/List_of_HTTP_status_codes
  4. Oops - that message you got about the maintenance status was a debug message I left in and might have been the cause of some of your earlier problems, although if it works on a clean install I'd guess the module wasn't causing the issue. I've removed the offending line and updated the original post with the new file which should be version 1.0.3 now. It should be possible to add the option for it to return a 503 - I could into that early next week if I don't get around to it today. My only thought on that would be that most folks who don't know what error codes mean might just think the site is broken.
  5. No problem - I understand what you mean now. I just tried that, and apart from it redirecting to a "404 page not found" page when you save the admin page with the new URL, I was still able to create a new template okay when I went in via the new admin URL. The module redirects to the value of config->urls->admin by default, so it actually won't matter that the page name has changed (internally PW knows the ID of the admin page so it gets the correct admin URL that way - pretty sure that's how it works). What browser and and browser version are you using? It's a long shot, but that might help me to reproduce the issue.
  6. Hmm... can't reproduce your error on my install - I just updated to make sure I had the latest PW download from GitHub as well just to make sure. What do you mean when you say "I changed the loginurl to admin"? Do you mean you installed the module but didn't specify a maintenance page? Or did you actually specify the maintenance page as the admin page? Also, do you have any other modules installed that aren't part of the base installation? Hopefully one of these things will be able to help me track down any issues and we can get this sorted out for you. Can someone else double-check and see if they get a blank screen in the same way Jeroen describes please?
  7. No worries - that's what the community is here for
  8. I'll have a look in a bit and get back to you.
  9. You should be able to do something like this to get an array containing your tour operators: $touroperators = $fields->find("touroperator"); A similar example is on this page: http://processwire.com/api/selectors/ Basically you can use "find" on pretty much anything - templates, fields, users and pages by prefixing find with the object you're looking for.
  10. Okay, updated the file in the original post to version 1.0.2 If the module is installed and you view the maintenance page when you're not logged in as an admin, it takes you straight to the homepage, so that should solve your scenario Diogo. I figured admins might want it to actually render the maintenance page rather than redirect in case they're actually tweaking the look and feel of the maintenance template file and want to see the output I also switched the hook to run before Page::render instead of before Page::loaded - difference being that if you do before Page::loaded it runs the hook whilst iterating through all the parent pages in the tree to get to the current page, whereas adding the hook before Page::render seems to just run it for the final page in the tree, which is what we want. I just thought I'd mention that in case anyone needs to know for future module-writing This last part also means that the module now works for a maintenance page that's not in the site root - prior to this if your maintenance page's parent wasn't the homepage then it would just fail to work, which I only noticed today. Not that I imagine you'd put it under another page in the tree, but you never know. @diogo - Going back to your original question, I think you might be asking if it's possible to render the maintenance page without actually changing the URL. That should definitely be possible and might look into it, but the above should work in the meantime. My only worry would be that if your site was in maintenance mode after it was launched and indexed by Google etc, and then Google re-crawled then it would see every page as having the same content. I'm not sure if there is a similar issue either way though as I suppose it would see all pages redirecting to one maintenance page as well the way it currently works. I guess if you turn this on after the site is launched and indexed then I would suggest doing maintenance fairly quickly
  11. Glad to hear you're finding it useful I think the simplest solution there would be to get the maintenance page to simply redirect them to the homepage once the site is live - a simple php header in the maintenance page's template file should do the trick. I'll look at adding a line or two of code so that it maintenance mode is switched off then it redirects silently to the homepage if the maintenance page is requested when I get some free time.
  12. Does IE8 have a compatibility mode button (can't remember) and does this solve anything if it's toggled? Granted it's more likely to introduce other issues but you never know and if it does work even those on corporate networks should be able to switch that on. Sadly I don't have IE8 to test it myself.
  13. I think you're right Everyone was very friendly and eager to talk about ideas and concepts in that discussion which is nice to see as to me that's what open source should be about.
  14. I can do the British English translation - en-GB
  15. Pete

    PHP Simple HTML DOM

    That really is a very useful link - thanks! @ryan, any chance of a "coding chat" forum where we can group the more code/programming related tidbits like this together? I've seen/posted a few others in here.
  16. No worries - least we could do I'm sure
  17. This has reminded me that I've had similar issues with MODx like this before - some server security modules have really tight rules (usually mod_security) and won't allow HTML to be inputted via forms. In my case there were several rules causing the issue and I was able to ask my host to alter the rules to allow posting HTML in forms so it's worth a shot asking them if you can.
  18. I think you're right slkwrm - definitely not a good first impression if that's your native language at the very least! I edited mine too.
  19. Guessing you're referring to the new site design?
  20. Hehe, except I posted mine twice because I thought the form was broken and both are now up there. Sorry for hogging the page guys!
  21. Made sense to me, but I'm not repeating it here as it's a fairly harsh comment to MODx.
  22. Welcome to the forums Can you show us the code you're using in your front-end template file? Then we might be able to see what the issue is and point you in the right direction.
  23. Very nice theme! Liking the recent edited pages - I think as time goes on there could possibly end up being enough of these "widgets" that maybe the admin homepage could be a dashboard and not necessarily just the page list. Just a thought
  24. In which case I've just never noticed it before. Oh well - thanks for looking into that Antti.
  25. Wow, didn't see that. How long has that been there? It is a bit small though and not immediately apparent what it means - I'm only thinking of first impressions and making it easy, obviously I get what it means now because I know you can configure modules in the admin, however maybe it could use a tooltip?
×
×
  • Create New...