Home › Forums › Legacy Support › Support queries › How-to & Troubleshooting › Customize and match New role with new sidebar
- This topic has 9 replies, 2 voices, and was last updated 9 years ago by Anshuman Sahu.
Viewing 10 posts - 1 through 10 (of 10 total)
-
AuthorPosts
-
October 20, 2015 at 6:42 am #3731marthawitParticipantI have created 2 sidebars: mentor and parent . and two additional user roles:mentor and parent . How do i link up these user roles to these sidebars so that they can have different dashboards. ?October 20, 2015 at 10:36 am #3785Anshuman SahuKeymasterOkay please note the following points : 1. First install and activate the child theme (blankchild theme available in wplms package) . 2. Ignore 1st point if already using .Now copy the members directory in your child theme from the parent(main) theme . 3. In the member's directory there is a file called dashboard.php .This file contains if else statements to check if it needs to show student or instructor sidebar on this page for current user . Handle your user roles in this file to show their sidebars .October 20, 2015 at 10:41 am #3790marthawitParticipantEach time i try to install a child theme, it distorts my websiteOctober 20, 2015 at 1:11 pm #3823marthawitParticipantPlease is there someone in your team i can pay to do this for me urgently? I dont understand the instruction you gave. I have also tried this and it did not work <span style="margin: 0px; padding: 0px; border: 0px; font-size: 12px; font-family: 'Andale Mono', 'Monotype.com', 'Courier New', Courier, monospace; vertical-align: baseline; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 14px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; color: #0000bb; background-color: #eeeeee;"> add_action</span><span style="margin: 0px; padding: 0px; border: 0px; font-size: 12px; font-family: 'Andale Mono', 'Monotype.com', 'Courier New', Courier, monospace; vertical-align: baseline; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 14px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; color: #007700; background-color: #eeeeee;">(</span><span style="margin: 0px; padding: 0px; border: 0px; font-size: 12px; font-family: 'Andale Mono', 'Monotype.com', 'Courier New', Courier, monospace; vertical-align: baseline; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 14px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; color: #dd0000; background-color: #eeeeee;">'widgets_init'</span><span style="margin: 0px; padding: 0px; border: 0px; font-size: 12px; font-family: 'Andale Mono', 'Monotype.com', 'Courier New', Courier, monospace; vertical-align: baseline; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 14px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; color: #007700; background-color: #eeeeee;">,</span><span style="margin: 0px; padding: 0px; border: 0px; font-size: 12px; font-family: 'Andale Mono', 'Monotype.com', 'Courier New', Courier, monospace; vertical-align: baseline; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 14px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; color: #dd0000; background-color: #eeeeee;">'wplms_dashboard_setup_parent_sidebars'</span><span style="margin: 0px; padding: 0px; border: 0px; font-size: 12px; font-family: 'Andale Mono', 'Monotype.com', 'Courier New', Courier, monospace; vertical-align: baseline; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 14px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; color: #007700; background-color: #eeeeee;">); function </span><span style="margin: 0px; padding: 0px; border: 0px; font-size: 12px; font-family: 'Andale Mono', 'Monotype.com', 'Courier New', Courier, monospace; vertical-align: baseline; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 14px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; color: #0000bb; background-color: #eeeeee;">wplms_dashboard_setup_parent_sidebars</span><span style="margin: 0px; padding: 0px; border: 0px; font-size: 12px; font-family: 'Andale Mono', 'Monotype.com', 'Courier New', Courier, monospace; vertical-align: baseline; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 14px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; color: #007700; background-color: #eeeeee;">(){ if(</span><span style="margin: 0px; padding: 0px; border: 0px; font-size: 12px; font-family: 'Andale Mono', 'Monotype.com', 'Courier New', Courier, monospace; vertical-align: baseline; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 14px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; color: #0000bb; background-color: #eeeeee;">function_exists</span><span style="margin: 0px; padding: 0px; border: 0px; font-size: 12px; font-family: 'Andale Mono', 'Monotype.com', 'Courier New', Courier, monospace; vertical-align: baseline; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 14px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; color: #007700; background-color: #eeeeee;">(</span><span style="margin: 0px; padding: 0px; border: 0px; font-size: 12px; font-family: 'Andale Mono', 'Monotype.com', 'Courier New', Courier, monospace; vertical-align: baseline; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 14px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; color: #dd0000; background-color: #eeeeee;">'register_sidebar'</span><span style="margin: 0px; padding: 0px; border: 0px; font-size: 12px; font-family: 'Andale Mono', 'Monotype.com', 'Courier New', Courier, monospace; vertical-align: baseline; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 14px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; color: #007700; background-color: #eeeeee;">)){ </span><span style="margin: 0px; padding: 0px; border: 0px; font-size: 12px; font-family: 'Andale Mono', 'Monotype.com', 'Courier New', Courier, monospace; vertical-align: baseline; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 14px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; color: #0000bb; background-color: #eeeeee;">register_sidebar</span><span style="margin: 0px; padding: 0px; border: 0px; font-size: 12px; font-family: 'Andale Mono', 'Monotype.com', 'Courier New', Courier, monospace; vertical-align: baseline; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 14px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; color: #007700; background-color: #eeeeee;">( array( </span><span style="margin: 0px; padding: 0px; border: 0px; font-size: 12px; font-family: 'Andale Mono', 'Monotype.com', 'Courier New', Courier, monospace; vertical-align: baseline; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 14px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; color: #dd0000; background-color: #eeeeee;">'name' </span><span style="margin: 0px; padding: 0px; border: 0px; font-size: 12px; font-family: 'Andale Mono', 'Monotype.com', 'Courier New', Courier, monospace; vertical-align: baseline; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 14px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; color: #007700; background-color: #eeeeee;">=> </span><span style="margin: 0px; padding: 0px; border: 0px; font-size: 12px; font-family: 'Andale Mono', 'Monotype.com', 'Courier New', Courier, monospace; vertical-align: baseline; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 14px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; color: #dd0000; background-color: #eeeeee;">'Parent Sidebar'</span><span style="margin: 0px; padding: 0px; border: 0px; font-size: 12px; font-family: 'Andale Mono', 'Monotype.com', 'Courier New', Courier, monospace; vertical-align: baseline; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 14px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; color: #007700; background-color: #eeeeee;">, </span><span style="margin: 0px; padding: 0px; border: 0px; font-size: 12px; font-family: 'Andale Mono', 'Monotype.com', 'Courier New', Courier, monospace; vertical-align: baseline; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 14px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; color: #dd0000; background-color: #eeeeee;">'id' </span><span style="margin: 0px; padding: 0px; border: 0px; font-size: 12px; font-family: 'Andale Mono', 'Monotype.com', 'Courier New', Courier, monospace; vertical-align: baseline; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 14px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; color: #007700; background-color: #eeeeee;">=> </span><span style="margin: 0px; padding: 0px; border: 0px; font-size: 12px; font-family: 'Andale Mono', 'Monotype.com', 'Courier New', Courier, monospace; vertical-align: baseline; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 14px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; color: #dd0000; background-color: #eeeeee;">'parent_sidebar'</span><span style="margin: 0px; padding: 0px; border: 0px; font-size: 12px; font-family: 'Andale Mono', 'Monotype.com', 'Courier New', Courier, monospace; vertical-align: baseline; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 14px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; color: #007700; background-color: #eeeeee;">, </span><span style="margin: 0px; padding: 0px; border: 0px; font-size: 12px; font-family: 'Andale Mono', 'Monotype.com', 'Courier New', Courier, monospace; vertical-align: baseline; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 14px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; color: #dd0000; background-color: #eeeeee;">'before_widget' </span><span style="margin: 0px; padding: 0px; border: 0px; font-size: 12px; font-family: 'Andale Mono', 'Monotype.com', 'Courier New', Courier, monospace; vertical-align: baseline; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 14px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; color: #007700; background-color: #eeeeee;">=> </span><span style="margin: 0px; padding: 0px; border: 0px; font-size: 12px; font-family: 'Andale Mono', 'Monotype.com', 'Courier New', Courier, monospace; vertical-align: baseline; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 14px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; color: #dd0000; background-color: #eeeeee;">''</span><span style="margin: 0px; padding: 0px; border: 0px; font-size: 12px; font-family: 'Andale Mono', 'Monotype.com', 'Courier New', Courier, monospace; vertical-align: baseline; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 14px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; color: #007700; background-color: #eeeeee;">, </span><span style="margin: 0px; padding: 0px; border: 0px; font-size: 12px; font-family: 'Andale Mono', 'Monotype.com', 'Courier New', Courier, monospace; vertical-align: baseline; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 14px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; color: #dd0000; background-color: #eeeeee;">'after_widget' </span><span style="margin: 0px; padding: 0px; border: 0px; font-size: 12px; font-family: 'Andale Mono', 'Monotype.com', 'Courier New', Courier, monospace; vertical-align: baseline; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 14px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; color: #007700; background-color: #eeeeee;">=> </span><span style="margin: 0px; padding: 0px; border: 0px; font-size: 12px; font-family: 'Andale Mono', 'Monotype.com', 'Courier New', Courier, monospace; vertical-align: baseline; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 14px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; color: #dd0000; background-color: #eeeeee;">''</span><span style="margin: 0px; padding: 0px; border: 0px; font-size: 12px; font-family: 'Andale Mono', 'Monotype.com', 'Courier New', Courier, monospace; vertical-align: baseline; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 14px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; color: #007700; background-color: #eeeeee;">, </span><span style="margin: 0px; padding: 0px; border: 0px; font-size: 12px; font-family: 'Andale Mono', 'Monotype.com', 'Courier New', Courier, monospace; vertical-align: baseline; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 14px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; color: #dd0000; background-color: #eeeeee;">'before_title' </span><span style="margin: 0px; padding: 0px; border: 0px; font-size: 12px; font-family: 'Andale Mono', 'Monotype.com', 'Courier New', Courier, monospace; vertical-align: baseline; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 14px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; color: #007700; background-color: #eeeeee;">=> </span><span style="margin: 0px; padding: 0px; border: 0px; font-size: 12px; font-family: 'Andale Mono', 'Monotype.com', 'Courier New', Courier, monospace; vertical-align: baseline; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 14px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; color: #dd0000; background-color: #eeeeee;">'<h4 class="dash_widget_title">'</span><span style="margin: 0px; padding: 0px; border: 0px; font-size: 12px; font-family: 'Andale Mono', 'Monotype.com', 'Courier New', Courier, monospace; vertical-align: baseline; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 14px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; color: #007700; background-color: #eeeeee;">, </span><span style="margin: 0px; padding: 0px; border: 0px; font-size: 12px; font-family: 'Andale Mono', 'Monotype.com', 'Courier New', Courier, monospace; vertical-align: baseline; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 14px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; color: #dd0000; background-color: #eeeeee;">'after_title' </span><span style="margin: 0px; padding: 0px; border: 0px; font-size: 12px; font-family: 'Andale Mono', 'Monotype.com', 'Courier New', Courier, monospace; vertical-align: baseline; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 14px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; color: #007700; background-color: #eeeeee;">=> </span><span style="margin: 0px; padding: 0px; border: 0px; font-size: 12px; font-family: 'Andale Mono', 'Monotype.com', 'Courier New', Courier, monospace; vertical-align: baseline; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 14px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; color: #dd0000; background-color: #eeeeee;">'</h4>'</span><span style="margin: 0px; padding: 0px; border: 0px; font-size: 12px; font-family: 'Andale Mono', 'Monotype.com', 'Courier New', Courier, monospace; vertical-align: baseline; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 14px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; color: #007700; background-color: #eeeeee;">, </span><span style="margin: 0px; padding: 0px; border: 0px; font-size: 12px; font-family: 'Andale Mono', 'Monotype.com', 'Courier New', Courier, monospace; vertical-align: baseline; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 14px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; color: #dd0000; background-color: #eeeeee;">'description' </span><span style="margin: 0px; padding: 0px; border: 0px; font-size: 12px; font-family: 'Andale Mono', 'Monotype.com', 'Courier New', Courier, monospace; vertical-align: baseline; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 14px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; color: #007700; background-color: #eeeeee;">=> </span><span style="margin: 0px; padding: 0px; border: 0px; font-size: 12px; font-family: 'Andale Mono', 'Monotype.com', 'Courier New', Courier, monospace; vertical-align: baseline; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 14px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; color: #dd0000; background-color: #eeeeee;">'Parent Sidebar' </span><span style="margin: 0px; padding: 0px; border: 0px; font-size: 12px; font-family: 'Andale Mono', 'Monotype.com', 'Courier New', Courier, monospace; vertical-align: baseline; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 14px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; color: #007700; background-color: #eeeeee;">) ); } } </span><span style="margin: 0px; padding: 0px; border: 0px; font-size: 12px; font-family: 'Andale Mono', 'Monotype.com', 'Courier New', Courier, monospace; vertical-align: baseline; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 14px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; color: #0000bb; background-color: #eeeeee;">add_filter</span><span style="margin: 0px; padding: 0px; border: 0px; font-size: 12px; font-family: 'Andale Mono', 'Monotype.com', 'Courier New', Courier, monospace; vertical-align: baseline; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 14px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; color: #007700; background-color: #eeeeee;">(</span><span style="margin: 0px; padding: 0px; border: 0px; font-size: 12px; font-family: 'Andale Mono', 'Monotype.com', 'Courier New', Courier, monospace; vertical-align: baseline; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 14px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; color: #dd0000; background-color: #eeeeee;">'wplms_student_sidebar'</span><span style="margin: 0px; padding: 0px; border: 0px; font-size: 12px; font-family: 'Andale Mono', 'Monotype.com', 'Courier New', Courier, monospace; vertical-align: baseline; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 14px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; color: #007700; background-color: #eeeeee;">,</span><span style="margin: 0px; padding: 0px; border: 0px; font-size: 12px; font-family: 'Andale Mono', 'Monotype.com', 'Courier New', Courier, monospace; vertical-align: baseline; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 14px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; color: #dd0000; background-color: #eeeeee;">'parent_wplms_student_sidebar'</span><span style="margin: 0px; padding: 0px; border: 0px; font-size: 12px; font-family: 'Andale Mono', 'Monotype.com', 'Courier New', Courier, monospace; vertical-align: baseline; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 14px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; color: #007700; background-color: #eeeeee;">); function </span><span style="margin: 0px; padding: 0px; border: 0px; font-size: 12px; font-family: 'Andale Mono', 'Monotype.com', 'Courier New', Courier, monospace; vertical-align: baseline; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 14px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; color: #0000bb; background-color: #eeeeee;">parent_wplms_student_sidebar</span><span style="margin: 0px; padding: 0px; border: 0px; font-size: 12px; font-family: 'Andale Mono', 'Monotype.com', 'Courier New', Courier, monospace; vertical-align: baseline; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 14px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; color: #007700; background-color: #eeeeee;">(</span><span style="margin: 0px; padding: 0px; border: 0px; font-size: 12px; font-family: 'Andale Mono', 'Monotype.com', 'Courier New', Courier, monospace; vertical-align: baseline; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 14px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; color: #0000bb; background-color: #eeeeee;">$sidebar</span><span style="margin: 0px; padding: 0px; border: 0px; font-size: 12px; font-family: 'Andale Mono', 'Monotype.com', 'Courier New', Courier, monospace; vertical-align: baseline; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 14px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; color: #007700; background-color: #eeeeee;">){ </span><span style="margin: 0px; padding: 0px; border: 0px; font-size: 12px; font-family: 'Andale Mono', 'Monotype.com', 'Courier New', Courier, monospace; vertical-align: baseline; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 14px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; color: #0000bb; background-color: #eeeeee;">$current_user </span><span style="margin: 0px; padding: 0px; border: 0px; font-size: 12px; font-family: 'Andale Mono', 'Monotype.com', 'Courier New', Courier, monospace; vertical-align: baseline; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 14px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; color: #007700; background-color: #eeeeee;">= </span><span style="margin: 0px; padding: 0px; border: 0px; font-size: 12px; font-family: 'Andale Mono', 'Monotype.com', 'Courier New', Courier, monospace; vertical-align: baseline; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 14px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; color: #0000bb; background-color: #eeeeee;">wp_get_current_user</span><span style="margin: 0px; padding: 0px; border: 0px; font-size: 12px; font-family: 'Andale Mono', 'Monotype.com', 'Courier New', Courier, monospace; vertical-align: baseline; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 14px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; color: #007700; background-color: #eeeeee;">(); if ( !(</span><span style="margin: 0px; padding: 0px; border: 0px; font-size: 12px; font-family: 'Andale Mono', 'Monotype.com', 'Courier New', Courier, monospace; vertical-align: baseline; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 14px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; color: #0000bb; background-color: #eeeeee;">$current_user </span><span style="margin: 0px; padding: 0px; border: 0px; font-size: 12px; font-family: 'Andale Mono', 'Monotype.com', 'Courier New', Courier, monospace; vertical-align: baseline; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 14px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; color: #007700; background-color: #eeeeee;">instanceof </span><span style="margin: 0px; padding: 0px; border: 0px; font-size: 12px; font-family: 'Andale Mono', 'Monotype.com', 'Courier New', Courier, monospace; vertical-align: baseline; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 14px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; color: #0000bb; background-color: #eeeeee;">WP_User</span><span style="margin: 0px; padding: 0px; border: 0px; font-size: 12px; font-family: 'Andale Mono', 'Monotype.com', 'Courier New', Courier, monospace; vertical-align: baseline; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 14px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; color: #007700; background-color: #eeeeee;">) ) return; </span><span style="margin: 0px; padding: 0px; border: 0px; font-size: 12px; font-family: 'Andale Mono', 'Monotype.com', 'Courier New', Courier, monospace; vertical-align: baseline; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 14px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; color: #0000bb; background-color: #eeeeee;">$roles </span><span style="margin: 0px; padding: 0px; border: 0px; font-size: 12px; font-family: 'Andale Mono', 'Monotype.com', 'Courier New', Courier, monospace; vertical-align: baseline; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 14px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; color: #007700; background-color: #eeeeee;">= </span><span style="margin: 0px; padding: 0px; border: 0px; font-size: 12px; font-family: 'Andale Mono', 'Monotype.com', 'Courier New', Courier, monospace; vertical-align: baseline; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 14px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; color: #0000bb; background-color: #eeeeee;">$current_user</span><span style="margin: 0px; padding: 0px; border: 0px; font-size: 12px; font-family: 'Andale Mono', 'Monotype.com', 'Courier New', Courier, monospace; vertical-align: baseline; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 14px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; color: #007700; background-color: #eeeeee;">-></span><span style="margin: 0px; padding: 0px; border: 0px; font-size: 12px; font-family: 'Andale Mono', 'Monotype.com', 'Courier New', Courier, monospace; vertical-align: baseline; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 14px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; color: #0000bb; background-color: #eeeeee;">roles</span><span style="margin: 0px; padding: 0px; border: 0px; font-size: 12px; font-family: 'Andale Mono', 'Monotype.com', 'Courier New', Courier, monospace; vertical-align: baseline; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 14px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; color: #007700; background-color: #eeeeee;">; if(</span><span style="margin: 0px; padding: 0px; border: 0px; font-size: 12px; font-family: 'Andale Mono', 'Monotype.com', 'Courier New', Courier, monospace; vertical-align: baseline; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 14px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; color: #0000bb; background-color: #eeeeee;">in_array</span><span style="margin: 0px; padding: 0px; border: 0px; font-size: 12px; font-family: 'Andale Mono', 'Monotype.com', 'Courier New', Courier, monospace; vertical-align: baseline; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 14px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; color: #007700; background-color: #eeeeee;">(</span><span style="margin: 0px; padding: 0px; border: 0px; font-size: 12px; font-family: 'Andale Mono', 'Monotype.com', 'Courier New', Courier, monospace; vertical-align: baseline; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 14px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; color: #dd0000; background-color: #eeeeee;">'parent'</span><span style="margin: 0px; padding: 0px; border: 0px; font-size: 12px; font-family: 'Andale Mono', 'Monotype.com', 'Courier New', Courier, monospace; vertical-align: baseline; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 14px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; color: #007700; background-color: #eeeeee;">,</span><span style="margin: 0px; padding: 0px; border: 0px; font-size: 12px; font-family: 'Andale Mono', 'Monotype.com', 'Courier New', Courier, monospace; vertical-align: baseline; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 14px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; color: #0000bb; background-color: #eeeeee;">$roles</span><span style="margin: 0px; padding: 0px; border: 0px; font-size: 12px; font-family: 'Andale Mono', 'Monotype.com', 'Courier New', Courier, monospace; vertical-align: baseline; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 14px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; color: #007700; background-color: #eeeeee;">)){ return </span><span style="margin: 0px; padding: 0px; border: 0px; font-size: 12px; font-family: 'Andale Mono', 'Monotype.com', 'Courier New', Courier, monospace; vertical-align: baseline; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 14px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; color: #dd0000; background-color: #eeeeee;">'parent_sidebar'</span><span style="margin: 0px; padding: 0px; border: 0px; font-size: 12px; font-family: 'Andale Mono', 'Monotype.com', 'Courier New', Courier, monospace; vertical-align: baseline; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 14px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; color: #007700; background-color: #eeeeee;">; } return </span><span style="margin: 0px; padding: 0px; border: 0px; font-size: 12px; font-family: 'Andale Mono', 'Monotype.com', 'Courier New', Courier, monospace; vertical-align: baseline; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 14px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; color: #0000bb; background-color: #eeeeee;">$sidebar</span><span style="margin: 0px; padding: 0px; border: 0px; font-size: 12px; font-family: 'Andale Mono', 'Monotype.com', 'Courier New', Courier, monospace; vertical-align: baseline; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 14px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; color: #007700; background-color: #eeeeee;">; }</span>October 23, 2015 at 11:14 am #4390Anshuman SahuKeymasterOkay please note the following points :
1. First install and activate the child theme (blankchild theme available in wplms package) .
2. Ignore 1st point if already using .Now copy the members directory in your child theme from the parent(main) theme .
3. In the member's directory there is a file called dashboard.php .This file contains if else statements to check if it needs to show student or instructor sidebar on this page for current user .
Handle your user roles in this file to show their sidebars . You have to do edit the file dashboard.php in your child theme to show different sidebars for different user roles . like this :$user = wp_get_current_user(); if ( in_array( 'mentor', (array) $user->roles ) ) {
//show mentor sidebar $sidebar = 'mentor_sidebar'; if ( !function_exists('dynamic_sidebar')|| !dynamic_sidebar($sidebar) ) : endif; } }
October 23, 2015 at 3:59 pm #4567marthawitParticipantAlex Please, Can I give you my admin username and password to help me do this? I am willing to pay for this extra support. Or can you get someone to help? Its really urgent!!!!!!!!!!!!!!!!!!!!!!!! I have created 2 sidebars: mentor and parent AND two additional user roles:mentor and parent . can you help me link up these user roles to these sidebars so that they can have different dashboards. ? i want to have four key roles with different dashboards Students Parents Instructors MentorsOctober 23, 2015 at 4:01 pm #4568marthawitParticipantAlex Please, Can I give you my admin username and password to help me do this? I am willing to pay for this extra support. Or can you get someone to help? Its really urgent!!!!!!!!!!!!!!!!!!!!!!!! I have created 2 sidebars: mentor and parent AND two additional user roles:mentor and parent . can you help me link up these user roles to these sidebars so that they can have different dashboards. ? i want to have four key roles with different dashboards Students Parents Instructors MentorsOctober 26, 2015 at 12:44 pm #5043Anshuman SahuKeymasterPlease refer the attached file .find the dashboard.php file in the attached zipped file. replace it with your dashboard.php file \wp-content\themes\wplms\members\single folder . Create user roles named "mentor" and "parent" . Create sidebars named "mentor_sidebar" and "parent_sidebar" form sidebar manager . Thats it check the dashboards for the user roles .October 26, 2015 at 2:20 pm #5113marthawitParticipantWhich attached file please?October 28, 2015 at 11:36 am #5559Anshuman SahuKeymasterSorry i forgot to attach the files . -
AuthorPosts
Viewing 10 posts - 1 through 10 (of 10 total)
- The topic ‘Customize and match New role with new sidebar’ is closed to new replies.