beatstore
Forum Replies Created
-
Forum: Plugins
In reply to: [GEO my WP] Object Cache Pro compatibilityThat worked, thank you! I will see if I can do this for the geo my wp queries too.
Forum: Plugins
In reply to: [StagTools] Instagram widget errorsSame problem here. Recent updates to the instagram website might be part of the cause
Forum: Networking WordPress
In reply to: Wildcard SSL on Subdomains w/ nginxThanks Patrick I think that makes sense as the best way to do it since I’m using CloudFlares SSL already and its just one page rule to set
Forum: Networking WordPress
In reply to: Wildcard SSL on Subdomains w/ nginxYes please excuse my inability to realize that its a simple redirect and should be done very similar in nginx. I don’t know how simple redirects work actually, because I’m trying to add a simple one to set https for all pages and now I’m getting a redirect loop ??
I added this to the server section
server { return 301 https://www.mydomain.com$request_uri; }
I put this into my own plugin, but I guess it could be used in the functions.php of your active theme , too. Just wanted mine to be part of the site regardless of what the active theme is.
function yourwebsiteprefix_remove_users_from_mainblog() { /* First establish the current user ID and the value of constant BLOG_ID_CURRENT_SITE */ $user_id = get_current_user_id(); $blog_id = BLOG_ID_CURRENT_SITE; //we dont want super admins if ( !is_super_admin() ) { //check to see if the current user is a member of the Main blog. if ( is_user_member_of_blog( $user_id, $blog_id ) ) { //Remove them from the main blog remove_user_from_blog( $user_id, $blog_id ); // Redirect user to their dashboard wp_redirect( admin_url() ); } } } add_action('wpmu_new_blog', 'yourwebsiteprefix_remove_users_from_mainblog');
Thanks for clarifying growsocial. It’s taken a minute but I ended up writing a script that solves the problem . I’ll post it in a moment here.
Forum: Networking WordPress
In reply to: Wildcard SSL on Subdomains w/ nginxThanks Mika,
Since I am using nginx I cannot use an .htaccess rule I believe.Patrick, here is the nginx configuration:
https://pastebin.com/uyuxMfgrThank you!
Forum: Networking WordPress
In reply to: Wildcard SSL on Subdomains w/ nginxSince this is a production site, I had to turn off SSL and can’t provide a link
Note: It looks like ALL subdomain sites stop working and refuse to load after turning on force_ssl_admin .
Ok thank you!
Forum: Fixing WordPress
In reply to: download problem rewrite classkeesiemeijer, Thank you for posting such helpful replies.
I am so far successful with my rewrite, but I am having a problem checking if I am on the normal author page or the Author Settings page.
I’m using this snippet in my author.php file:
<?php $settingspage = get_query_var('settings'); if($settingspage == 'settings' ) { echo "show author settings here"; } else { echo "show normal author archive page here"; } ?>
Even when I’m on the /author-name/settings page it doesn’t echo “show author settings here” like it should. Wondering if you have had similar problems or know of solution. Thank you