Home › Forums › Legacy Support › Support queries › How-to & Troubleshooting › My account page to Dashboard
- This topic has 16 replies, 4 voices, and was last updated 5 years, 3 months ago by logan.
-
AuthorPosts
-
May 20, 2016 at 2:35 pm #49368EricSpectatorHi, just check how I can create a "My account/My order" link on student's dashboard,thanksMay 21, 2016 at 10:53 am #49487H.K. LatiyanParticipantFirst 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.May 24, 2016 at 4:33 am #49903EricSpectatorThanks. 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; }May 24, 2016 at 10:18 am #49997H.K. LatiyanParticipantThis 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);May 25, 2016 at 6:28 am #50149EricSpectatorthanks. 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>May 25, 2016 at 6:28 am #50150EricSpectatorMy site: http://wv121.com/ account: testadmin psd: Am123abcMay 26, 2016 at 8:06 am #50361H.K. LatiyanParticipantFor restricting the instructors from wp admin area there is a setting in the wplms->buddypress->wp admin area access, set it to administrators only.May 26, 2016 at 8:18 am #50368EricSpectatorHi,, 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.May 27, 2016 at 7:19 am #50513H.K. LatiyanParticipantI 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.May 27, 2016 at 8:12 am #50529EricSpectatoroh, 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"May 28, 2016 at 5:56 am #50696H.K. LatiyanParticipantThis 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; }May 29, 2016 at 8:03 am #50794EricSpectatorThanks. Also for last question as the attached image, How can I change the text "Home" to like "About the course"May 30, 2016 at 5:52 am #50867H.K. LatiyanParticipantFor 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.June 3, 2016 at 4:06 pm #51704EricSpectatorHi 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). thanksJune 4, 2016 at 5:12 am #51754H.K. LatiyanParticipantYou 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.
-
AuthorPosts
- The topic ‘My account page to Dashboard’ is closed to new replies.