Configuring the Ultimate Member with a Multisite
-
Tell me where to read the information on setting up and integrating the Ultimate Member with the multisite?
-
I have installed UM in a multisite environment but have problems with restricting access to the restricted area only to users who have registered in an individual site and have logged in to that site. Today all users of the multisite can access all restricted pages in all individual sites… which is not what we wish! Any ideas are welcome.
Could you create a registered user for each site? I.e. Site1User, Site2User, Site3User. Just trying to think it through.
Yes, in each subsite I have several member and admin users, more than 1600 in total. They all appear on te list of users at network level with an list of the subsites on which they are registered. So far everything works well so far. They have access to these sites, but they also have access to all other sites irrespective of the sites in which they are registered… That is the problem!
In looking further, I found an article on Internet that indicates that when you create a user on a multisite, the user is considered as guest in all subsites. Should I deny access to guests at subsite level.
Additional info that may be important: in the network we also have (old) sites with a different theme, where we use the plugin Member, so we installed UM selectively in the new sites only, to avoid compatibility issues.
Oh god 😐 I worked with this almost a week, now everything is ready on the network_home, attuned to this plugin, and now brighten up, when I tested with a member, THIS NOT WORKING ON MULTISITE!
Can not be set globally user roles, if I have a bigger network, I need to go all the way thousands of times on the settings. If a member create a new site, this plugin create new and new and new subpages of login, register etc, and nothing global settings…
edited:
OKay, maybe exists one solution, but pretty ridiculous and for the time being I dont know I would dare to use it on my live network… so whereas settings the plugin on your network home site, go to network dashboard/plugins and deactivate the Ultimate Member. (Not uninstall, only deactivate.) Your settings, such as roles (and for the time being it seems the features as well) retained on your network home, but the plugin in deactivated condition not create new login,register,user pages on the new subsites.
Cons:
The “profiles” item on the wordpress toolbar shows to the actual subsites/user. This not working, because the page dont exist (This still better, as though duplicated thousands of times), so in this case you need to modify these “My Account” item links in includes/admin-bar.php. So example if you use sub-directorys, replace the
‘href’ => $profile_url
to this:
‘href’ => network_home_url( ‘/user/’ . $current_user->display_name )… Thinkable, that I writeing to here in the next few weeks, because as I see it there is no solution 7 months ago….
-
This reply was modified 8 years, 3 months ago by
noitcif.
Okay, so with the above-mentioned solution you need changes the codes in “includes/admin-bar.php”, and in “yourtheme/comments.php”, because the avatars and author links not working on subsites.
example (maybe this is the most complicated, so according to this you can learn to do it everywhere):
you get the comment author’s UM avatar like this:<?php $author = get_comment_author( $comment_ID ); ?> <?php $the_user_id = get_the_author_meta('ID') ?> <?php echo '<img src="' . network_home_url( '/wp-content/uploads/ultimatemember/' . $the_user_id . '/profile_photo-80.png') . '" class="avatar" alt="' . $author . ' logo" width="" height="">'; ?>By the way, I thought about it, that in the future subscribe to the premium UM private message extension, but now I dont now, this extension to work on subsites, if the plugin run only the network_home… I think no, and until I don’t see it, how it works (where it works), I dont even know, that with minor modifications I can get to compatible to an open multisite.
I think this plugin it would be perfect, if primarily works with globally settings, such as buddypress, so you can set up in your network admin panel. I really dont know, what the reason at all this duplicating system. This is horrible of SEO. On a multisite in 90% you want manages users on only the network home, or no?
-
This reply was modified 8 years, 3 months ago by
The topic ‘Configuring the Ultimate Member with a Multisite’ is closed to new replies.