Customize and match New role with new sidebar

Home Forums Legacy Support Support queries How-to & Troubleshooting Customize and match New role with new sidebar

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #3731
    marthawit
    Participant
    I 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. ?
    #3785
    Anshuman Sahu
    Keymaster
    Okay 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 .
    #3790
    marthawit
    Participant
    Each time i try to install a child theme, it distorts my website
    #3823
    marthawit
    Participant
    Please 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>
    #4390
    Anshuman Sahu
    Keymaster
    Okay 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; 
    }
    }
       
    #4567
    marthawit
    Participant
    Alex 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 Mentors
    #4568
    marthawit
    Participant
    Alex 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 Mentors
    #5043
    Anshuman Sahu
    Keymaster
    Please 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  .
    #5113
    marthawit
    Participant
    Which attached file please?
    #5559
    Anshuman Sahu
    Keymaster
    Sorry i forgot to attach the files .
Viewing 10 posts - 1 through 10 (of 10 total)
  • The topic ‘Customize and match New role with new sidebar’ is closed to new replies.