My account page to Dashboard

Home Forums Legacy Support Support queries How-to & Troubleshooting My account page to Dashboard

Viewing 15 posts - 1 through 15 (of 17 total)
  • Author
    Posts
  • #49368
    Eric
    Spectator
    Hi, just check how I can create a "My account/My order" link on student's dashboard,thanks
    #49487
    H.K. Latiyan
    Participant
    First create a menu from appearance->menus and add the my account/my order link there. Now go to appearance->widgets->student dashboard sidebar, add custom menu widget in it and select the menu that you created and save it. Now it will be visible in the student dashboard.
    #49903
    Eric
    Spectator
    Thanks. I have another question: I set the popup event when I click "take this course" for non logged in user. It works now for paid course but not on free course. Paid Course:  http://wv121.com/course/your-china-adventure-survival-chinese-culture-tips/ Free Course:  http://wv121.com/course/practical-chinese-course-elementary/ I am using the code: add_filter('wplms_take_course_button_html','custom_redirect_contact_page',10,2);   function custom_redirect_contact_page($html,$course_id){   if(!is_user_logged_in()){   $extra ='';   return do_shortcode('[popup id="90" classes="full button course_button"]'.apply_filters('wplms_take_this_course_button_label',__('TAKE THIS COURSE','vibe'),$course_id).apply_filters('wplms_course_button_extra',$extra,$course_id).'[/popup]'); } return $html; }  
    #49997
    H.K. Latiyan
    Participant
    This is because the hook for free courses is different. Just add the below line in your wplms-customizer.php file. add_filter('wplms_course_non_loggedin_user','custom_redirect_contact_page',10,2);
    #50149
    Eric
    Spectator
    thanks. it works.   <p style="box-sizing: border-box; margin: 0px 0px 22px; color: #4b4d4d; font-family: Lato; font-size: 14px; line-height: 22px;">Btw, I has the same issue: https://wplms.io/support/forums/topic/instructor-has-access-to-admin-area/</p> <p style="box-sizing: border-box; margin: 0px 0px 22px; color: #4b4d4d; font-family: Lato; font-size: 14px; line-height: 22px;">I have already updated the latest version and using a instructor account to check, still can access admin area on course page.</p> <p style="box-sizing: border-box; margin: 0px 0px 22px; color: #4b4d4d; font-family: Lato; font-size: 14px; line-height: 22px;"></p>
    #50150
    Eric
    Spectator
    My site: http://wv121.com/   account: testadmin   psd: Am123abc
    #50361
    H.K. Latiyan
    Participant
    For restricting the instructors from wp admin area there is a setting in the wplms->buddypress->wp admin area access, set it to administrators only.
    #50368
    Eric
    Spectator
    Hi,, as you can see, I already set to administrator only, but it not works. the instructor can still see the admin area on single course page.
    #50513
    H.K. Latiyan
    Participant
    I checked your site and created a new user as instructor with instructor role. When I tried to open the wp-admin area I couldn't access it, it redirects me to the homepage. So I couldn't replicate the issue on your site Please check and you can delete the user after checking.  
    #50529
    Eric
    Spectator
    oh, I thought I misunderstood the Admin area. I want to disable the single course admin area for instructor as attached image. How can do it? or I want to restrict the instructors remove the students. Also, How can I change the text "Home" to "About the course"    
    #50696
    H.K. Latiyan
    Participant
    This is not possible to remove the course admin area because it is an essential area where instructors can manage the students and evaluate the student's course marks, quizzes, assignments, etc. But you can remove the "X" icon for instructors only so that instructors cannot remove the students from the course. Paste the below code in the wplms-customizer.php file before "?>" present in your wplms customizer plugin. add_filter('wplms_course_nav_menu','custom_remove_course_admin_menu',9,1); function custom_remove_course_admin_menu($defaults){ if(!current_user_can('manage_options')){ ?> <style>.single-course .course_students li>ul>li>a.tip.remove_user_course {display:none;}</style> <?php } return $defaults; }
    #50794
    Eric
    Spectator
    Thanks. Also for last question as the attached image, How can I change the text "Home" to like "About the course"
    #50867
    H.K. Latiyan
    Participant
    For changing the text from home to about course you have to use translation plugin to translate the text. Refer the article for translation: Codestyling: https://wplms.io/support/knowledge-base/translate-using-codestyling-localization-plugin/ OR Loco Translate: https://wplms.io/support/knowledge-base/translate-using-loco-translate-plugin/ NOTE: Plugins are also available in the attachment of the articles.
    #51704
    Eric
    Spectator
    Hi there, Because it is the only one string I want to edit, it is no necessary to install the plugin could you suggest me which file(.php) I should edit (the "Home" text on single course page). thanks
    #51754
    H.K. Latiyan
    Participant
    You can simply translate the text using the translation plugin and after translation the file will be saved in wp-content/language folder. Now you can uninstall the plugin and the translated text will remain as it is.
Viewing 15 posts - 1 through 15 (of 17 total)
  • The topic ‘My account page to Dashboard’ is closed to new replies.