Questions and Help with coding
-
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(‘http://mensrightscoalition.org/activity/’) ; 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
- The topic ‘Questions and Help with coding’ is closed to new replies.