-
Posts
657 -
Joined
-
Last visited
-
Days Won
1
Everything posted by OrganizedFellow
-
htaccess help: /NewPage/ == /newpage/
OrganizedFellow replied to OrganizedFellow's topic in Dev Talk
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 -
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?
-
Register users and add page same as username
OrganizedFellow replied to Vineet Sawant's topic in Getting Started
Reviving an old thread that's worthy of interest- 30 replies
-
- 1
-
-
- login
- create page
-
(and 1 more)
Tagged with:
-
How to move from local to live server?
OrganizedFellow replied to dees2012's topic in General Support
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; } -
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!
-
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.
-
@r2d2 What exactly are you trying to accomplish with the redirect?
-
Interesting snippets. I've added them to my gists
-
I second this!
-
my .gitignore file is being ignored - Why?
OrganizedFellow replied to OrganizedFellow's topic in Getting Started
@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! -
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
-
No toots yet. BUt we'll be waiting ... and watching ... silently.
-
Another Simple Photo Gallery Tutorial
OrganizedFellow replied to thetuningspoon's topic in Tutorials
VERY well written and easy to follow! I've bookmarked it for a future project. Thank you! -
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.
-
Preview Intranet Application – Office Management
OrganizedFellow replied to Luis's topic in Showcase
Am looking forward to reading your Case-Study amigo. -
Project Management for Developers: How you do it?
OrganizedFellow replied to Vineet Sawant's topic in Pub
This thread started with tons of great promise of uniquely useful tools and resources, but it has turned to off topic discussion and spam. -
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.
- 30 replies
-
- deployment
- tools
-
(and 1 more)
Tagged with:
-
I found this earlier today! https://sublime.wbond.net/packages/ProcessWire%20Snippets%20-%20Basic https://sublime.wbond.net/packages/ProcessWire%20Snippets%20-%20Advanced
-
Preview Intranet Application – Office Management
OrganizedFellow replied to Luis's topic in Showcase
I just wanted to poke my head into here and ask @Luis about his project? -
An almost MVC approach to using templates
OrganizedFellow replied to larrybotha's topic in API & Templates
Interesting thread. MVC is still way over my head, but I'll give this a shot -
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
-
Sublime Text 2 Snippets for ProcessWire
OrganizedFellow replied to evanmcd's topic in API & Templates
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 -
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>
-
Best practice for staging to live database synchronization
OrganizedFellow replied to evanmcd's topic in General Support
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!!! -
Best practice for staging to live database synchronization
OrganizedFellow replied to evanmcd's topic in General Support
Sadly I'm not a twittererer.