tccdeveloper05
Forum Replies Created
-
Forum: Plugins
In reply to: [Tutor LMS - eLearning and online course solution] Suggestion for a widgetThank you for hearing me out, Hopefully once it is implemented we can put it on our homepage as a widget.
Thank you both! It works! @ihavenoclueakagi i hope your issue gets resolved!
I’ll close this as solved now. I appreciate the help and thank you once more!
I should also mention that i only need a way to create one global code for everyone. It doesn’t have to be an individual code because that is too complicated. Thank you again!
Okay, nevermind. I solved it.
I added this container:
$current_user_id = get_current_user_id();and then for the foreach loop, i added a <if> condition.
<?php foreach ($groups['groups'] as $group){ if($group->creator_id == $current_user_id){ $selected = in_array($group->id, $attached_group) ? 'selected="selected"' : ''; echo "<option value='{$group->id}' {$selected} > {$group->name} </option>"; } } ?>
This way, only the groups created by the teacher will show up on the frontend course builder.
I basically enabled group creation for all users by navigating to Settings > Buddypress > Options > check “Enable group creation for all users”
I see, that’s unfortunate. Thank you for replying to my question!
Alright, i’ll give it a check. Thank you for your time!
So if i upgrade to the pro version, i’ll be able to edit it directly from the “view” course page?