• Hello,

    I am new to multisite and also domain mapping. Spent last week & this week moving my WP sites into multisite.

    My new multisite is at https://www.jollyvip.com where I have 4 WP sites.
    I used a child theme of suffusion to built https://www.jollyvip.com.

    One of the site i.e. iedisc.com – eDiscovery blog is not mapped, the 3 others are mapped domains and using suffusion theme and the login template provided by suffusion theme.
    I got my ISP to help with the multisite install & domain setting.(as I my sites were scattered & hence the multisite attempt).

    I did the domain mapping.

    The iedisc.com site is re-directed to /jollyvip.com/edisclosure
    The login is via custom link i.e. /jollyvip.com/login (which essential login to the network (not to iedisc site)

    I do not have many plugins on the multisite – 4 that’s enabled i.e.
    Change WP Mail From Details
    Easy Contact –
    Akismet – only activate on iedisc.com
    Multisite user registration manager

    On all the sites I use Multisite user registration manager v 2.1.2 by Zaantar, which seems to work OK.
    I did tried these plugins;
    WPMS Sidebar Login Widget
    WP Sidebar Login
    But they didn’t work or I don’t understand how user accounts are handled in multisite ?!

    I used the Zaantar plugin for all registration and suffusion login template for the 3 sites that uses suffusion theme.
    On iedisc.com (not mapped and not suffusion theme)I resorted to the custom link /jollyvip.com/login

    I’ve enabled user to create account (not setup site).
    Here’s my dilemma:
    1) on the suffusion theme sites (all mapped domains) i.e. insuredatarisk.com, iadrt.com and craftqi.com :
    when a user registers on the site (i.e. the sub site, not the network site) and login via the site, they see their ‘site tool menu’ (WP site tool menu) indicating they’re login.
    However if they want view their dashboard or change details, they will need to login again (to the network).
    Is this the way multisite supposed to work?

    If the user login via the email registration link (provided by the Zaantar’s registration plugin), they will end up at the dashboard page indicating they have login Login to what? When the user selects the site listed on the dashboard (they have registered to), the WP login screen appears,which meant user has to login to the site they have registered on. This can be confusing as user then has to navigate to the site they have registered to.

    Is there a multisite registration and login that allows user to;
    a) register on the site, login on the site and change their account on the site without having to login to the network to change their account.
    ie. like as in non multisite account.

    Could it be that I have to tweak other files (i.e. .htaccess etc?)

    2)On the subscriber dashboard as shown on this page https://jollyvip.com/dashboard-for-subscriber/

    The dashboard has broken module links.
    Is this indicating I’m missing some more settings that I need to do?

    Any help much appreciated as I’ve searched on the forum and can’t make sense of what I need to do.

    welcome to play with the sites on https://www.jollyvip.com – with message to test only – otherwise I won;t be authorising as I’m still in test mode.

    Many thanks for reading.
    Cher

Viewing 15 replies - 1 through 15 (of 15 total)
  • Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    For #1 – Yes. It’s a cookie thing and it’s how web-browsers protect you.

    For #2 – Yeah https://jollyvip.com/wp-content/uploads/2012/07/dashboard-subblog.png is right, but generally I suggest using WP Hide Dashboard to avoid that.

    Thread Starter xuefang

    (@xuefang)

    Thanks Mike.

    I’ve now used a (hacked) copy of WP Hide Dashboard as I’ve also installed Custom Admin Bar plugin.

    Maybe my query for #1 is not clear.
    I noticed the cookie thing (esp. on IE). However what I wanted was a login plugin for multisite which is not in a ‘form’ display. For now I’ve hacked the WPMS Sidebar Login Widget (as the ‘create new account didn’t work for me) but I am not declaring it fully ‘tested’. Still looking for a multiside login plugin that allows the same behaviour as in single site installation.

    BTW how do I get rid of ‘redundant’ plugins? I must admit I forgot to deactivate before I hacked/changed files in the plugin folder. I see 2 entries (same version) of the plugin I’ve changed in my plugin list.

    Many thanks again,
    Cher

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    You delete plugins in wp-admin/network/plugins.php or via FTP.

    I’m not sure what you’re asking about with logins… You do always have to log in between subdomain sites, it’s a browser thing. Generally I end up logging back in all on the same day, and it’s annoying but there you are.

    Thread Starter xuefang

    (@xuefang)

    Hi Mike,

    Oh! I can’t remember. Most likely via FTP & then when I saw the duplicate entries I tried to delete via wp-admin.
    What should I do now? I still got 2 entries in wp-admin/plugins

    Thanks again,
    Cher

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    I’m not sure what you mean by 2 entries. Can you take a screenshot?

    Thread Starter xuefang

    (@xuefang)

    Sure. The screen shot is at https://jollyvip.com/plugin-snapshot/

    I don’t know how to post the image here.

    Thanks again,
    Cher

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    Linking is how you post images here ?? You did it perfectly.

    You said you ‘hacked’ the plugin… when you did that, did you make a copy of it? And if so, did you forget to change the header data of your hacked plugin?

    Thread Starter xuefang

    (@xuefang)

    Oh! I didn’t change the header data. It’s my first hack of a plugin.

    I removed all codes that I do not need. This is the content of WP Hide Dashboard.
    Where is the header data?
    Thanks.

    <?php
    /*
    Plugin Name: WP Hide Dashboard
    Plugin URI: https://kpdesign.net/wphidedash/
    Description: A simple plugin that removes the Dashboard menu, the Personal Options section and the Help link on the Profile page, hides the Dashboard links in the admin bar menu (if activated), and prevents Dashboard access to users assigned to the <em>Subscriber</em> role. Useful if you allow your subscribers to edit their own profiles, but don't want them wandering around your WordPress admin section. <strong>Note: This version requires a minimum of WordPress 3.1. If you are running a version less than that, please upgrade your WordPress install now.</strong>
    Author: Kim Parsell
    Author URI: https://kpdesign.net/
    Version: 2.1
    License: MIT License - https://www.opensource.org/licenses/mit-license.php
    
    Copyright (c) 2008-2011 Kim Parsell
    Personal Options removal code: Copyright (c) 2010 Large Interactive, LLC, Author: Matthew Pollotta
    Originally based on IWG Hide Dashboard plugin by Thomas Schneider, Copyright (c) 2008 (https://www.im-web-gefunden.de/wordpress-plugins/iwg-hide-dashboard/)
    
    Permission is hereby granted, free of charge, to any person obtaining a copy of this
    software and associated documentation files (the "Software"), to deal in the Software
    without restriction, including without limitation the rights to use, copy, modify, merge,
    publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons
    to whom the Software is furnished to do so, subject to the following conditions:
    
    The above copyright notice and this permission notice shall be included in all copies or
    substantial portions of the Software.
    
    THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
    IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
    FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
    AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
    LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
    OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
    THE SOFTWARE.
    */
    
    /* Disallow direct access to the plugin file */
    if (basename($_SERVER['PHP_SELF']) == basename (__FILE__)) {
    	die('Sorry, but you cannot access this page directly.');
    }
    
    /* Plugin config - user capability for the top level you want to hide everything from */
    $wphd_user_capability = 'edit_posts'; /* [default for Subscriber role = edit_posts] */
    
    /* WordPress 3.1 introduces the admin bar in both the admin area and the public-facing site. For subscribers, there's also now
    	a pesky link to the Dashboard and a redundant link to the user's profile in the My Account menu. Let's remove the Dashboard
    	link and only show the Profile link on the site. */
    
    /* There's also an admin bar menu in WordPress Multisite that lists all of the network sites that a user belongs to, which includes links
    	to each site's Dashboard. Let's remove the default menu and create one of our own that only links to the sites a user belongs to. */
    
    /* Now for the admin sidebar menu and the profile page. Let's hide the Dashboard link, Help menu, Favorites menu, Upgrade notice, and
    	the Personal Options section. */
    
    function wphd_hide_dashboard() {
    	global $blog, $current_user, $id, $parent_file, $wphd_user_capability, $wp_db_version;
    
    	if ($wp_db_version < 17056) {
    		return;
    
    	} else if ((!current_user_can(''.$wphd_user_capability.'') || !current_user_can_for_blog($blog->userblog_id, ''.$wphd_user_capability.'')) && $wp_db_version >= 17056) {
    
    		/* First, let's get rid of the Help menu, update nag, Personal Options section */
    		echo "\n" . '<style type="text/css" media="screen">#your-profile { display: none; } .update-nag, #screen-meta, .color-option, .show-admin-bar { display: none !important; }</style>';
    		echo "\n" . '<script type="text/javascript">jQuery(document).ready(function($) { $(\'form#your-profile > h3:first\').hide(); $(\'form#your-profile > table:first\').hide(); $(\'form#your-profile\').show(); });</script>' . "\n";
    
    		/* Now, let's fix the sidebar admin menu - go away, Dashboard link. */
    		/* If Multisite, check whether they are in the User Dashboard before removing links */
    		$user_id = get_current_user_id();
    		$blogs = get_blogs_of_user($user_id);
    		if (is_multisite() && empty($blogs)) {
    			return;
    		} else if (function_exists('remove_menu_page')) {
    			remove_menu_page('index.php');							/* Hides Dashboard menu in 3.1 */
    			remove_menu_page('separator1');							/* Hides arrow separator under Dashboard link in 3.1*/
    			remove_submenu_page('profile.php', 'profile.php');		/* Hides Profile submenu link in 3.1. Really don't need to see it twice, do we? */
    		}
    
    		/* Last, but not least, let's redirect folks to their profile when they login or if they try to access the Dashboard via direct URL */
    		if (is_multisite() && empty($blogs)) {
    			return;
    		} else if ($parent_file == 'index.php') {
    			if (headers_sent()) {
    				echo '<meta http-equiv="refresh" content="0;url='.admin_url('profile.php').'">';
    				echo '<script type="text/javascript">document.location.href="'.admin_url('profile.php').'"</script>';
    			} else {
    				wp_redirect(admin_url('profile.php'));
    				exit();
    			}
    		}
    
    	}
    
    }
    
    add_action('admin_head', 'wphd_hide_dashboard', 0);
    
    /* That's all folks. You were expecting more? */
    
    ?>

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    This stuff:

    Plugin Name: WP Hide Dashboard
    Plugin URI: https://kpdesign.net/wphidedash/
    Description: A simple plugin that removes the Dashboard menu, the Personal Options section and the Help link on the Profile page, hides the Dashboard links in the admin bar menu (if activated), and prevents Dashboard access to users assigned to the <em>Subscriber</em> role. Useful if you allow your subscribers to edit their own profiles, but don't want them wandering around your WordPress admin section. <strong>Note: This version requires a minimum of WordPress 3.1. If you are running a version less than that, please upgrade your WordPress install now.</strong>
    Author: Kim Parsell
    Author URI: https://kpdesign.net/
    Version: 2.1
    License: MIT License - https://www.opensource.org/licenses/mit-license.php

    That’s the header ??

    Now again, did you make a copy of the plugin and edit that, or did you edit it in place?

    Thread Starter xuefang

    (@xuefang)

    OH! I did not remove the header.

    I copied the file to another name and then edited it and then rename it to the same name.

    Thks,
    Cher

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    I copied the file to another name and then edited it and then rename it to the same name.

    Okay, so what you need to do is change this line:

    Plugin Name: WP Hide Dashboard

    Make it Plugin Name: Cher's WP Hide Dashboard ?? Problem will magically be solved.

    Thread Starter xuefang

    (@xuefang)

    OK did the change. Now I have a plugin Cher’s WP Hide Dashboard and also the un-activated ‘old’ WP Hide Dashboard. What I did was, I ‘delete’ the plugin entries and also check that no such folder in the plugin directory. Then I copied the WP Hide Dashboard folder (with the changed file) to the plugin directory. Somehow the ‘old’ WP Hide Dashboard reappeared.
    I am missing something again.
    What are the sequence of steps?
    Thanks,
    Cher

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    Honestly? Delete both your hacked plugin and the original from your WP site.

    You shouldn’t be hacking that plugin (especially not if the concept for forking a plugin is proving to be complicated for you, it’s not a slight, it’s just a step you’re not ready for yet).

    Thread Starter xuefang

    (@xuefang)

    I see… Well I’ll never learn if I don’t ‘play’ or hack. If there’s a plugin notes/doc I can refer to, I’ll certainly follow the notes/instruction. As it stand, I’ll just leave things as they’re (& learning stops).

    Thanks for you help.
    Cher

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    Well don’t learn in your live site, though ??

    Learn how to make a test site on your own PC via XAMMP or MAMP and test there. Much safer, and less annoying.

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘user registration & login on mapped domains in multisite’ is closed to new replies.