LHAJACK
Forum Replies Created
-
Forum: Plugins
In reply to: Approval for Post/Page Editing/UpdatesSo if anyone else was looking for the same thing, adding the Revisionary plug-in to the mix with User Role Editor appears to accomplish this task.
Have only done minimal testing so far, but it appears to get the job done.
Okay, so I found a (sort of) solution here to what I was looking for, but it still doesn’t quite function the way I’d like.
Now clicking on the thumbs will show that larger image on the same page as opposed to displaying in a pop-up lightbox, which is good.
But this solution loses the “Back/Next” navigation links (which I still need) and displays a blank div where the image is on page load (I need it to be the first image from the gallery on load).
I’m going to keep tinkering/looking, but again any suggestions or help would be greatly appreciated.
Thanks.
Wow, thanks for the incredibly quick response. Updated and everything is working perfectly now.
Forum: Fixing WordPress
In reply to: Local install Admin redirects to Live installThanks for pointing that out. Had to go through a couple of the methods to get it to go. But it’s working now.
Thanks again.
Forum: Fixing WordPress
In reply to: Local install Admin redirects to Live installThe link from your previous post just brings me to the front of the wordpress support forums.
Also I’m unable to get to the settings in the dashboard for the local install, as any attempt to login to the local dashboard redirects me to the live site’s WP-login.
Is there another way to access/change this?
Thanks.
Forum: Fixing WordPress
In reply to: Local install Admin redirects to Live installCould you be a bit more specific?
Are you talking about the ones in the general settings in the dashboard? Because I am unable to get there in the local install as it keeps redirecting me to the live site’s dashboard.
Or is there somewhere else you are referring to?
Forum: Plugins
In reply to: plugin to unlock pageI am looking for essentially the same thing. Right now I’ve been trying the WP-Members plugin to do something similar, but it’s doesn’t quite do what I am looking for, or at least I haven’t figured out how to make it yet.
It restricts the viewable content just fine, but it shows the whole registration form where the blocked content is, when I want it to just show a link to the registration/login page instead.
Let you know if I can get anything going here.
But if someone knows a better way to do this as well, I’m all ears.
Forum: Fixing WordPress
In reply to: Running Multiple Local Test Sites on MAMPThanks for the help. The username and password were already ‘root’ I just changed them here (along with the site names) to be generic and also to make it clear what db/directory/etc was associated with which site.
So this was kind of working for a while after re-installing MAMP, and doing fresh installs of WP and then changing:
127.0.0.1 localhost 127.0.0.1 localhost site-1.dev 127.0.0.1 localhost site-2.devto
127.0.0.1 localhost 123.0.0.1 site-1.dev 127.0.0.1 site-2.devand taking the quotations from the document root paths in the httpd.conf file to have:
NameVirtualHost *:80 <VirtualHost *:80> DocumentRoot "/Applications/MAMP/htdocs" ServerName localhost </VirtualHost> <VirtualHost *:80> DocumentRoot /Applications/MAMP/htdocs/site-1 ServerName local.site-1.dev <Directory "/Applications/MAMP/htdocs/site-1"> AllowOverride All </Directory> </VirtualHost> <VirtualHost *:80> DocumentRoot /Applications/MAMP/htdocs/site-2 ServerName local.site-2.dev <Directory "/Applications/MAMP/htdocs/site-2"> AllowOverride All </Directory> </VirtualHost>For a short time I was able to view both sites through the browser and access both sites in WP. The only problem I was experiencing during this time, was for site-2– after publishing/updating posts and pages or changing certain settings, a blank page would load instead of the same WP page saying “Your post has been updated.” That was acceptable. I could still do everything I needed to do.
But then I tried to add a third site into the mix. This is when things reverted back to problemland. Now site-3 worked fine, both in WP and when viewing the site. But now site-1 was accessible on the backend through WP, but I couldn’t view the actual site (it just loads a blank page, no errors), and site-2 wasn’t accessible through WP (just loads a blank page, no errors), but I can view that site through a browser.
After some digging around and checking error logs I was able to find that the was an extra character/typo in my functions.php files that seemed to be tripping the sites up. Deleted that, and now everything seems to be in working order, at least for the time being.
Thanks again for all of the help.
Forum: Fixing WordPress
In reply to: Running Multiple Local Test Sites on MAMPOk, well here’s what I’ve got/tried, and maybe someone sees what I’m missing/doing wrong. (Sorry a bit long here)
Attempt 1: On this one I tried using the ports and settings that worked before with one site in the MAMP preferences and working based off of that.
On this try all of the source files for Site #1 were contained in /Applications/MAMP/htdocs/site-1
Files for Site #2 were in /Applications/MAMP/htdocs/site-2I have a database set up for each site in phpMyAdmin.
MAMP settings: (these are what MAMP is set to when I click “Reset MAMP ports”)
Apache Port: 8888 MySQL Port: 8889 Apache Document Root : /Applications/MAMP/htdocsSite #1 WP_Config Settings:
/** The name of the database for WordPress */ define('DB_NAME', 'site-1'); /** MySQL database username */ define('DB_USER', 'user); /** MySQL database password */ define('DB_PASSWORD', 'password'); /** MySQL hostname */ define('DB_HOST', 'localhost');Site #2 WP_Config Settings:
/** The name of the database for WordPress */ define('DB_NAME', 'site-2'); /** MySQL database username */ define('DB_USER', 'user); /** MySQL database password */ define('DB_PASSWORD', 'password'); /** MySQL hostname */ define('DB_HOST', 'localhost');This is what I added in the host file:
127.0.0.1 localhost 127.0.0.1 localhost site-1.dev 127.0.0.1 localhost site-2.devAnd this is what I put into the httpd.conf file
NameVirtualHost * <VirtualHost *> DocumentRoot "/Applications/MAMP/htdocs" ServerName localhost </VirtualHost> <VirtualHost *> DocumentRoot "/Applications/MAMP/htdocs/site-1" ServerName site-1.dev <Directory "/Applications/MAMP/htdocs/site-1"> AllowOverride All </Directory> </VirtualHost> <VirtualHost *> DocumentRoot "/Applications/MAMP/htdocs/site-2" ServerName site-2.dev <Directory "/Applications/MAMP/htdocs/site-2"> AllowOverride All </Directory> </VirtualHost>Then I rebooted…
No go. Browsers are unable to find the servers.
Then, after copying the source files into Users/user_name/Sites I tried again with the following settings:
MAMP settings: (these are what MAMP is set to when I click “Set to default Apache and MySQL ports”)
Apache Port: 80 MySQL Port: 3306 Apache Document Root : /Applications/MAMP/htdocsWP_Config Settings: Nothing changed here.
host file: Nothing changed here.
httpd.conf file:
NameVirtualHost *:80 <VirtualHost *:80> DocumentRoot "/Applications/MAMP/htdocs" ServerName localhost </VirtualHost> <VirtualHost *:80> DocumentRoot "/Users/user_name/Sites/site-1" ServerName site-1.dev <Directory "/Users/user_name/Sites/site-1"> AllowOverride All </Directory> </VirtualHost> <VirtualHost *:80> DocumentRoot "/Users/user_name/Sites/site-2" ServerName site-2.dev <Directory "/Users/user_name/Sites/site-2"> AllowOverride All </Directory> </VirtualHost>Rebooted and… still can’t find the servers.
Then I just started throwing things at the wall seeing if anything stuck. Like using the MAMP ports from the first attempt with the httpd.conf settings from the second and different things like that, but no luck still.
I’ve been going at this awhile now and seem to be making no progress.
Anyone see my mistake?Forum: Fixing WordPress
In reply to: Running Multiple Local Test Sites on MAMPSo, I have been trying to get the virtual hosts to work, but no luck so far, and after looking a bit more into this, I think it’s just that I am using the free version of MAMP as opposed to MAMP Pro. From what I gather, one of the incentives for upgrading to Pro is it has the ability to support multiple sites/virtual hosts whereas the free one does not.
I could be wrong though. I am often enough. If it is possible to do on the free version I would appreciate it if someone could enlighten me, otherwise, I’ll have to wait until the boss approves the upgrade and try it again.
Forum: Fixing WordPress
In reply to: Running Multiple Local Test Sites on MAMPThanks for the suggestion. I’ll look into that and see if I can get ti working.
Forum: Fixing WordPress
In reply to: Running Multiple Local Test Sites on MAMP@ Root
If I don’t specify the document root to the site-1 or site-2 folder through the Apache preferences, nothing works correctly when there are two sites in the htdocs folder.On the front end, site-1 still displays as blank pages or 404 errors and site-2 loses all of it’s CSS on the home page, and all of the links/subpages just bring you to a directory listing of the files in the htdocs folder. Plus WP doesn’t come up anymore at all for either site and trying to get to the wp-admin results in a 404 error.
Wouldn’t be surprised if I did something incorrectly on the installation, but I can’t tell what. And what confuses me further is that WP is able to find everything in the dashboard/wp-admin area, but everything is missing when the browser tries to display it.
Forum: Plugins
In reply to: [Contact Form 7] [Plugin: Contact Form 7] Invalid Field Message PositionThat’s the one I am looking for. Thanks!