Jump to content

OrganizedFellow

Members
  • Posts

    657
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by OrganizedFellow

  1. Thank you Joss. I knew it was a simple task but I just couldn't find it. I ended up with this solution (very similar). http://stackoverflow.com/questions/20451171/rewrite-uppercase-url-to-lowercase-url-htaccess CASE CLOSED
  2. I have a simple client with an even simpler website. It is purely static: example.com Today he asks me to add the following: example.com/NewPage So I did, but all lowercase. I told him that it was just "simpler" example.com/NewPage throws a 404 error, but ofcourse in lowercase it doesn't. He has several other pages like this and I made them all lowercase, but he really wants NewPage, ThisPage, ThatPage. I'm guessing this is done with the .htaccess file, right?
  3. Reviving an old thread that's worthy of interest
  4. I found this very useful when dealing with my dev and live configurations. Paste and configure in /site/config.php $base_url = $_SERVER['SERVER_NAME']; switch ($base_url) { case "samplewebsite.dev": // LOCAL CONFIG $config->dbHost = 'localhostdb'; $config->dbName = 'processwire'; $config->dbUser = 'root'; $config->dbPass = 'PaSsWoRd'; $config->dbPort = '3306'; $config->httpHosts = array('samplewebsite.dev', 'www.samplewebsite.dev'); $config->debug = true; break; case "samplewebsite.com": // LIVE CONFIG $config->dbHost = 'livedb'; $config->dbName = 'processwire'; $config->dbUser = 'username'; $config->dbPass = 'pAsSwOrD'; $config->dbPort = '3306'; $config->httpHosts = array('samplewebsite.com', 'www.samplewebsite.com'); $config->debug = false; break; }
  5. I would love to see some ProcessWire related merchandise in the store as well. Maybe a few decals in neat colors of various sizes. Surely a black/white coffee mug?!?!? We gotta sip some #cawfi as we code, right Ryan? A mouse pad comes to mind!
  6. Does anyone know where I can get a replacement F5 key? I'd rather now replace my entire keyboard, as I only need one key.
  7. @r2d2 What exactly are you trying to accomplish with the redirect?
  8. Interesting snippets. I've added them to my gists
  9. I second this!
  10. @netcarver Brother, that's EXACTLY what I did! I followed the above link and used this little code. $git rm --cached That solved it. Thank you!
  11. I have created my .gitignore file at the root, alongside my .git folder. But when I run $git status it shows modified: .gitignore And beneath that, it shows the files that have been modified and are supposed to be ignored. I've looked on StackOverflow earlier but couldn't find anything that worked. Here's the content of my file: /site/assets/cache/* site/assets/cache/* site/assets/cache/ /site/assets/sessions/* site/assets/sessions/* site/assets/sessions/ /site/assets/logs/* site/assets/logs/* site/assets/logs/ /site/config.php site/config.php project.sublime-workspace project.sublime-project
  12. No toots yet. BUt we'll be waiting ... and watching ... silently.
  13. VERY well written and easy to follow! I've bookmarked it for a future project. Thank you!
  14. I no longer get the above error. I had previously gotten the sitemap.xml.php file from another threat that pointed here. I just replaced that code with what Ryan has above. Nicely done Mr Ryan.
  15. Am looking forward to reading your Case-Study amigo.
  16. This thread started with tons of great promise of uniquely useful tools and resources, but it has turned to off topic discussion and spam.
  17. Have there been any new developments in this topic? I've gotten better with git - merging, push/pull and keeping various branches on my dev station while the master here and there are synced.
  18. I found this earlier today! https://sublime.wbond.net/packages/ProcessWire%20Snippets%20-%20Basic https://sublime.wbond.net/packages/ProcessWire%20Snippets%20-%20Advanced
  19. I just wanted to poke my head into here and ask @Luis about his project?
  20. Interesting thread. MVC is still way over my head, but I'll give this a shot
  21. Most of mine get forgotten and later updated to newer more modern techniques. I recently deleted converted a few of my favorite ones to Foundation
  22. Just found this gem here https://sublime.wbond.net/packages/ProcessWire%20Snippets%20-%20Basic https://sublime.wbond.net/packages/ProcessWire%20Snippets%20-%20Advanced Installing on SublimeText3
  23. I get the following error: This XML file does not appear to have any style information associated with it. The document tree is shown below. <p class="error WireFatalError"> Error: Call to a member function getAll() on a non-object (line 66 of C:\www\www\sites\organizedfellow.dev\site\templates\sitemap-xml.php) <br/> <br/> <em> This error message was shown because you are logged in as a Superuser. Error has been logged. </em> </p>
  24. I'm glad to announce that (with my limited php knowledge) I figured it out. // site/config.php $base_url = $_SERVER['SERVER_NAME']; switch ($base_url) { case "samplesite.dev": // LOCAL CONFIG $config->dbHost = 'localhost'; $config->dbName = 'processwiredb'; $config->dbUser = 'devuser'; $config->dbPass = 'DeVpAsS'; $config->dbPort = '3306'; $config->httpHosts = array('samplesite.dev', 'www.samplesite.dev'); break; case "samplesite.com": // LIVE CONFIG $config->dbHost = 'localhost'; $config->dbName = 'processwiredb'; $config->dbUser = 'comuser'; $config->dbPass = 'dEvPaSs'; $config->dbPort = '3306'; $config->httpHosts = array('samplesite.com', 'www.samplesite.com'); break; } I love this community as it encourages me to learn things I would otherwise just Google the answer to. And then, using Adminer, I dumped and copied the database from the development site to the live site. This only took a minute. I had previously fiddled with HeidiSQL but I'm still learning it THanks everyonE!!!
×
×
  • Create New...