Skip to:

Questions and Help with coding

  • newbie2011


    Ok, for about three days I have been pulling my hair out. I have been working on locking out users from wp-admin, creating a generic login-page(not the wp standard), custom members homepage, and adding links to the bp sliding login panel.

    Issue One:

    In the finctions.php I put the following code:
    `add_action(‘admin_init’, ‘no_mo_dashboard’);
    function no_mo_dashboard()
    { if (!current_user_can(‘manage_options’) && $_SERVER != ‘/wp-admin/admin-ajax.php’) { wp_redirect(‘’) ; exit;
    } `
    For the wp_redirect I used the http adress because I couldn’t get the code right for wordpress to render correctly. It worked till I added the wp email plugin. Why would this change that code? The site owner don’t want the members to have access to the dashborad of wordpress, only admins. The wordpress is being used to create a website and community. I searched for a plugin but, every plugin does what I don’t need to be done. Any help would be appreciated.

    Issue Two:
    I installed the A2 custom login plugin and this just isn’t what I am looking for. This site has a basic login page, how could I implement the same type of page?

    Issue Three:
    This is more of a question than an issue. Most social networking sites have a members homepage where a user can see whats going on at a glance. Well, I need to create a section called at a glance. This area will be the page that users see after logging in and gives information about that user activity and the entire site (i.e donations that they contributed, hours they volunteered, forum topics, etc…). Would it be easier to create a plugin or just create a new section in the core files.

    Issue Four:
    I installed the bp sliding login panel and I need to put a link just for the admins and users who can post to the site blog. Again trying to keep limited people to access the dashboard of wordpress. Sorry for the long post but, these are things I haven’t figured out yet. Any help is appreciated. Thanks

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

  • Roger Coathup


    You should ask these as separate questions – the first two issues are general WordPress (not BuddyPress), so best asked on the forums.

    Post issue 3 as sep question on here, and issue 4 you could ask to @pollyplummer on her group for the plugin



    @Roger Coathup – sorry didn’t realized that I should have posted seperately, will do and ash other questions on the wordpress forums, thanks



    Well, I tried to post to her group but, I think I posted to a normal forum. When I select forums the area is blank. Maybe I just don’t know how to use this site lol.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Questions and Help with coding’ is closed to new replies.
Skip to toolbar