FaceLord
Forum Replies Created
-
We’re experiencing this issue as well. We host our websites with Cloudways. They use Apache with NGINX as a reverse proxy. Something about the new .htaccess rule causes an infinite redirect loop.
I tried adding that line of code to the wp-config.php, but it didn’t help
I have been able to fix it by swapping out the new rule with the old rule:
<IfModule mod_rewrite.c> RewriteEngine on RewriteCond %{HTTP:X-Forwarded-Proto} !https RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L] </IfModule>Forum: Plugins
In reply to: [NS Cloner - Site Copier] Missing a database table when cloningThanks for getting back to me.
The table in question is not a global table. There is one created for each site that the plugin is used on. The plugin adheres to the WP table prefix. In this case, the prefix is “bl0g_”, therefor a site with an ID of 123 has a table named bl0g_123_client_info.
Is it possible that it’s not working correctly because I’m using a custom table prefix? Or could there be any other reason this isn’t working?
Oh snap… I just figured out the problem. It’s an issue with the plugin. It has a column in it’s table that defines the site ID. Probably under the assumption that all sites share a global table. Since the table is cloned to a new one, the blog site ID doesn’t change.
This should be an easy fix in the plugin now that I know what’s happening. Sorry to unnecessarily bug you. And thank you so much for your time.
Forum: Fixing WordPress
In reply to: Need help with Mobile site..!!This solution might work for you: http://ww.wp.xz.cn/support/topic/plugin-wp-socializer-disable-on-custom-post-types?replies=3
I found a solution!
I was able to prevent the scripts and css from loading in, and prevent markup from being written to the page by adding these lines of code to the functions.php of theme that my site switches to when displaying mobile pages.
You’ll probably need to figure out a way to make these lines only apply to a specific post type. My situation was a bit simpler, since I could just put it in the theme that applied.
remove_action('wp_footer', 'wpsr_floatingbts_output'); remove_action('wp_head', 'wpsr_scripts_adder'); remove_action('wp_footer', 'wpsr_scripts_adder'); remove_action('wp_footer', 'wpsr_footer'); remove_filter('the_content', array($wpsr_content_op, 'output')); remove_filter('the_excerpt', array($wpsr_excerpt_op, 'output'));Turns out my code was slightly wrong. I had a single quote inside a single quote.
This code actually works:
<a href='?wpmp_switcher=desktop' onclick='document.cookie="wpmp_switcher=desktop;path=/;expires=Tue, 01-01-2030 00:00:00 GMT";'>Switch to our desktop site</a>I’ve been trying to figure out the same thing.
There is an option under Appearance > Mobile Switcher that will add links to your footer on the mobile theme as well as the desktop theme.
The problem with this method for me is; The links it adds aren’t where I want them, and they don’t seem to have a class or ID for CSS styling. It’s just a p tag with an anchor link in it.
I can replicate the code from these links and place my own button where I want.
<a href='?wpmp_switcher=mobile' onclick='document.cookie="wpmp_switcher=desktop;path=/;expires=Tue, 01-01-2030 00:00:00 GMT";'>
But… as soon as I uncheck the box in the settings page, the links no longer work.I’d really like to be able to add my own links.
Forum: Plugins
In reply to: [CF Internal Link Shortcode] [Plugin: CF Internal Link Shortcode] Link imagesIt appears WordPress 3.1 has internal linking support built in. So I guess this plugin is no longer necessary.
Forum: Networking WordPress
In reply to: Multisite -> single blog conversion and backThanks for the tip. This will be invaluable for my development cycle