Home › Forums › Legacy Support › Support queries › Setup issues › Individual Instructors Pages
- This topic has 9 replies, 3 voices, and was last updated 5 years, 8 months ago by Mark Morgan.
Viewing 10 posts - 1 through 10 (of 10 total)
-
AuthorPosts
-
August 13, 2018 at 7:36 pm #172313hashurParticipantHello: As for individual instructors pages: 1- For non logged in users, the pages will not load for any instructor. 2- For admin, the pages will load, but get an extra sidebar, the sidebar has, search box, pages, archives, meta, etc .. The default WordPress widgets in sidebar. Where is the setting to address this ... site: pdhsource.com Thank YouAugust 14, 2018 at 12:32 pm #172386Mark MorganSpectator
Can you please be more specific about your issue that how can we predict that the non logged in user is instructor or student.
On which page you wanna show sidebar for admin?
August 14, 2018 at 2:48 pm #172409hashurParticipant1- Any visitor to the site (non logged in) the pages will not load for any instructor (profile page). 2- I don't want any special sidebar, when admin logs to instructor profile pages, an extra sidebar is there. The default WordPress widgets in sidebar. The stage site you helped with has the same issue and you have the login. Thank YouAugust 16, 2018 at 2:07 pm #172592Anshuman SahuKeymaster- ok I got it . please try adding this given code in your wplms-customizer.php file in wplms customizer plugin :
- that is due to your custom template override .
August 16, 2018 at 4:31 pm #172609hashurParticipantThank You Alex: When visitors (non logged in) & admins visit the instructors profile pages, they get, please login to continue. Please use the site url: pdhsource.com same login, not using child theme for now. Thank YouAugust 17, 2018 at 7:40 am #172650Mark MorganSpectatorAccording to your requirement when non logged in users click on instructor profile they will see a page Please login to continue. If i am wrong somewhere then please let us know what you exactly want, who will see the instructor profile.August 17, 2018 at 3:48 pm #172703hashurParticipantI want things to work as they supposed to. For everyone to see instructors profile without logging in.August 18, 2018 at 8:12 am #172742Anshuman SahuKeymasterWell Im really confused what you want right now . Can you please share exactly what do you want , who should see who's profile ?August 18, 2018 at 5:37 pm #172780hashurParticipantagain: "I want things to work as they supposed to. For everyone to see instructors profile without logging in." Which part of this do you not understand.
Second: I removed the code that you told me to add to the customizer plugin,add_action('template_redirect','custom_redirect_to_instructing_courses',1);
function custom_redirect_to_instructing_courses(){ if(user_can(bp_displayed_user_id(),'edit_posts') && !bp_is_my_profile()){ wp_die('Please login to continue.');}}
it works well for admins, but non logged in visitors cannot see the instructors profile, see this when you're not logged in: (the page does not load at all, something is wrong. https://pdhsource.com/members/jpguyerpacbell-net/August 20, 2018 at 7:12 am #172864Mark MorganSpectatorThis reply has been marked as private. -
AuthorPosts
Viewing 10 posts - 1 through 10 (of 10 total)
- The topic ‘Individual Instructors Pages’ is closed to new replies.