shopcentral
Forum Replies Created
-
Forum: Networking WordPress
In reply to: global redirect to main blog loginokay – I have the contents of the file as follows (I have given you credit on this one… I hope you don’t mind):
file name: my_filter_function.php which resides in /wp-content/mu-plugins
<?php /* Plugin Name: my_filter_function Plugin URI: Description: global redirect for WP Multisite to root site login Version: V1.0 Author: David Sader Author URI: http://profiles.wordpress.org/users/dsader/ License: A "Slug" license name e.g. GPL2 */ ?> <?php add_filter( 'login_url', create_function( '$url,$redirect', 'return network_site_url("wp-login.php");' ), 10, 2 ); ?>I am getting the following errors:
Warning: Cannot modify header information – headers already sent by (output started at /home/stuff/public_html/wp-content/mu-plugins/my_filter_function.php:13) in /home/stuff/public_html/wp-content/plugins/woocommerce/classes/class-wc-session-handler.php on line 63
Warning: session_start() [function.session-start]: Cannot send session cookie – headers already sent by (output started at /home/stuff/public_html/wp-content/mu-plugins/my_filter_function.php:13) in /home/stuff/public_html/wp-content/plugins/e-newsletter/e-newsletter.php on line 2043
Warning: session_start() [function.session-start]: Cannot send session cache limiter – headers already sent (output started at /home/stuff/public_html/wp-content/mu-plugins/my_filter_function.php:13) in /home/stuff/public_html/wp-content/plugins/e-newsletter/e-newsletter.php on line 2043
Forum: Networking WordPress
In reply to: global redirect to main blog loginWOW!! – Thank you!!
I am very appreciative of the time and effort you have given me – can I Paypal you a beer at the end of all this?? lol.
few q…
do these stay as they are or need to be replaced with anything?
In other words, do I simply copy cut paste what you have here or are there variables in that snippet that need changing?
Sorry to make you have to spell all this out for me/us/the community noobs out here…..
login_url
$url
$redirect
return network_site_url(“wp-login.php”)
Forum: Networking WordPress
In reply to: global redirect to main blog loginalso, what’s the 10, 2 elements of that script snippet?
Forum: Networking WordPress
In reply to: global redirect to main blog loginthanks – but being a noob, where exactly should I add this?
Forum: Networking WordPress
In reply to: global redirect to main blog loginthanks, but not AFTER login
need subdomain.domain.com/wp-login.php to redirect to domain.com/wp-login.php
Forum: Plugins
In reply to: [Logged Out Admin Bar] tweak to register & Log in linksme again….
in this line here… I wish to redirect all subdomain visitors to the main blog login when they click on the link in the admin bar
$wp_admin_bar->add_menu( array( ‘title’ => __( ‘Log In’ ), ‘href’ => wp_login_url(), ‘parent’ => ‘top-secondary’ ) );
… how can I hard code this to our main blog?
Forum: Plugins
In reply to: [WP Customer Reviews] Star Rating Onlyhi there
I just started using this plugin today – kinda worries me that your posting is 6 months old and no response!!
There is another plugin if you haven’t found it already that does that –
http://wordpress.org/plugins/rating-widget/
You’ve prob found this by now but thought I’d throw it up to help others out there….