Community Forums

ATutor Feature Requests

Keeping Students Enrolled


You must be signed-in to post.

AuthorSubject
 
Page: 1
weemooseus

Avatar for weemooseus
Subject: Keeping Students EnrolledQuote this post in your reply
Last year I had trouble with click-crazy students unenrolling themselves, how can I turn this off?

Carl
Posted: 2008-06-03 01:15:30
vegard

Avatar for vegard
vjo001.zip

Attachment: vjo001.zip
Subject: Re: Keeping Students EnrolledQuote this post in your reply
we had the same problem, and simply removed the unenroll link from themes/default/users/index.tmpl.php

I made a patch for it, attached here. use it if you like!
Posted: 2008-06-03 03:19:34
weemooseus

Avatar for weemooseus
Subject: Re: Keeping Students EnrolledQuote this post in your reply
Is this the one to remove?

- <a href="users/remove_course.php?course=<?php echo $row['course_id']; ?>"><?php echo _AT('unenroll_me'); ?></a>
Posted: 2008-07-07 00:38:36
vegard

Avatar for vegard
Subject: Re: Keeping Students EnrolledQuote this post in your reply
yes, and I commented out the if and endif before and after too. here's how it looks:

highlight_code('
<?php // by vjo - removing link from listing
// if ($row['member_id'] != $_SESSION['member_id']): ?>

<?php /*
- <a href="users/remove_course.php?course=<?php echo $row['course_id']; ?>"><?php echo _AT('unenroll_me'); ?></a>
*/ ?>

<?php // endif; ?>')

BTW: the patch above still works, I just installed it myself.
Posted: 2008-07-07 03:11:06
weemooseus

Avatar for weemooseus
Subject: Re: Keeping Students EnrolledQuote this post in your reply
Thanks, will try this above. My patcher page does not work on the new release, neither does the admin home page for some reason, however everything else does. I can do this one manually.
Posted: 2008-07-08 00:03:15
 
Page: 1

You must be signed-in to post.

Related Articles