Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • graphys

    (@graphys)

    Hello, why not just adding a few lines of code in the function.php file rather than the wp-config.php :

    function remove_contact_menu () {
    global $menu;
    	$restricted = array(__('Contact'));
    	end ($menu);
    	while (prev($menu)){
    		$value = explode(' ',$menu[key($menu)][0]);
    		if(in_array($value[0] != NULL?$value[0]:"" , $restricted)){unset($menu[key($menu)]);}
    	}
    }
    add_action('admin_menu', 'remove_contact_menu');
    if(!current_user_can('level_10')) {
    	add_action('admin_menu', 'remove_contact_menu');
    }

    It works great!

    Thread Starter graphys

    (@graphys)

    Thanks! And the “or make sure you updated sunrise.php” is a good thing ??

    Also, despite of the explanations on the wordpress plugin page I don’t understand the options. Perhaps it’s a language problem (I’m not english)..

    For example my main blog is : https://blogs.example.com and I have a “child blog” : 2010.example.com and another : https://www.2010.com and I have checked only # Permanent redirect + # User domain mapping page. All is working perfectly. PS : nowhere in the 2 “children blogs” you (fortunately) will find a reference to the main blog.

    So I would like to understand these options:

    1 = “Remote Login” can be disabled. Useful if you’re hosting totally separate websites.
    “remote login” seems to mean that (fortunately) someone can login everywhere :p Well, I didn’t dare to check this option, what happens if I activate it? Now, users log in at the child blog.

    2 = “Permanent redirect” uses a 301 redirect rather than 302 to send visitors to your domain mapped site.
    …My installation is new, do I need to check this option? I haven’t old pages :s ? Perhaps I should check it if I delete a post?

    3 = “User domain mapping page” allows you to disable Settings->Domain Mapping that the user uses.
    …the plugin is used to mapping. This option proposes to cancel its effects? Are you rather talking about Permalinks?

    4 = Redirect administration pages to network’s original domain
    ok, it works ^^ (I didn’t checked this option, users log in at their blogs url https://www.2010.com/wp-admin/ and 2010.example.com/wp-admin/)

    5 = Disable primary domain check. Sites will not redirect to one domain name.
    I didn’t checked this option but (fortunately) sites are not redirected to the main blog! I don’t understand at all this option :s

    So, you can see that I do not understand many things! ?? :))

    Thank you ahead for your answers!! ??

Viewing 2 replies - 1 through 2 (of 2 total)