Activities linking in meantime for moodle 1.2

Activities linking in meantime for moodle 1.2

by Bernard Boucher -
Number of replies: 17

Hi moodlers,

you will find attached some moodle's modified files permitting some activities linking for Moodle 1.2 with all it addons.

Same old lazy code with fresh new fileswink

Please don't try these on a production system experiment before.


The linking is not intended to replace nor to be compatible with the Moodle Quiz most wanted feature or activity linking http://moodle.org/bugs/bug.php?op=show&bugid=297 .

In the meantime, it may be usefull to someone.

A readme file is included for the installation.

What you get:

1 - Only quiz and resource modules may be dependants ( locked or linked ) of one other module.

2 - Any module may be the predecessor or the activator of the linked module.

3 - If a quiz if choosen as a predecessor it must be fully graded ( 100 % ) to unlock linked activity. If you use Alvin Trick you can choose the grade you want to unlock.

4 - All others modules ( even if they are gradables ) have only to be "viewed" by the student to unlock linked module.

What you loose:

To limit coding time ( 20 hours ) and code ( <100 lines added ) ( 5 lines/hr Martin will not hire me wink ) a small moodle's fonctionnality was sacrified to keep it simple in the meantime:

You will not be able , when in editing mode, to "moveto" a hidden module. If you really need to move an hidden module, show it, move it and hide it again. That is the cost to pay!

How to use it ( teacher ):

A - Hide the module you want to be dependant.

B - Try to move it. Instead of the message "moveto" you will have "predecessor" before each other module in the course.

C - Click on the desired predessesor. It fullname will appear at the right of the linked module.

D - If you want to remove the link show the linked module.

E - Modules hidden but not linked are treated as before.

How to use it ( student ):

F - All modules are treated as before if they are not linked.

G - Linked modules without the predecessor's condition realised appears dimmed with the predessessor name in parenthesis   (Timothy suggestion ).

H - As soon as the predecessor is done ( at that moment quiz grade or view of all others modules )

the dimmed linked module appears normal ( not dimmed ) as if it was not linked.

I - If a student try to type in the address bar the link to the quiz or the ressource a message indicate the name of the predessesor and the required grade for quiz.

Your comments are welcome.

Thank you for your testing time and have a good try,

Bernard

Delete| Reply

Average of ratings: -
In reply to Bernard Boucher

Re: Activities linking in meantime for moodle 1.2

by Martin Dougiamas -
Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers
Good hack - thanks, Bernard.

Even though the method you've used is not the way activity linking will be implemented eventually in the official version it's a very good hack that will undoubtedly help the many people who want that feature and need it now.

Thanks for your time and effort in maintaining and packaging it up for others to benefit from your work.
In reply to Bernard Boucher

Re: Activities linking in meantime for moodle 1.2

by Alvin Shaffer -

Any diff. between version 0.3 and 0.4 ??

If I would have known the trick would be referenced I would have at least spelled correctly in the postbig grin

In reply to Alvin Shaffer

Re: Activities linking in meantime for moodle 1.2

by Bernard Boucher -
Hi Alvin,

no usage differences but it will interfere less with others modules ( disappearing icons on admin menu ... ) because the functions it uses are extracted from one of the most changing file of Moodle course/lib.php ( 1.237 ) , copied and renamed in lib/linklib.php. Easier to maintain in meantime.

Bye,

Bernard


In reply to Bernard Boucher

Re: Activities linking in meantime for moodle 1.2

by Alvin Shaffer -

Bernard,

I am having a little problem getting the new 0.4 version working. See the screenshot attached. The word "predecessor" doesn't show up, and the locking functionality isn't working

You can see in the attachment, when I hover over the blank spot where the word predecessor should be it pops up "move to here"

I placed all the new files in there appropriate dir (will double check this)

I added the 4 database entries

I am only trying to lock resources or quizzes

I am using moodle version Moodle 1.2 development (2004011700)

Thanks in advance for the help

In reply to Alvin Shaffer

RActivities linking in meantime for moodle 1.2

by Bernard Boucher -
Hi Alvin,

I just install Moodle lastest Moodle 1.2 development (2004011700) and I get a screen similar to yours before installing linking files with a plain Moodle!
( Windows 2000 platform )

Maybe it is a new look wink

After installation it works fine and move to replaced the white rectangles.

I will retry it tomorrow on an other machine.

Thanks for testing,

Bernard



Attachment plain2004011700.png
In reply to Bernard Boucher

Re: RActivities linking in meantime for moodle 1.2

by Alvin Shaffer -

Any luck?

In reply to Alvin Shaffer

Activities linking in meantime for moodle 1.2

by Bernard Boucher -
Hi Alvin,
             I just install a fresh new Moodle  Moodle 1.2 development (2004011700)  with a download from Moodle of activities linking files and it work first time here.

I create you an admin account with your firstname  as username and your lastname as password.

You may try it.

If you give me acess to your site I will check it.

Bye,

Bernard

In reply to Bernard Boucher

Re: Activities linking in meantime for moodle 1.2

by W Page -

Hi!

I am still in the learning process with MOODLE. 

  • Why is it good to have "Activities Linking?

WP1

In reply to W Page

Re: Activities linking in meantime for moodle 1.2

by Bernard Boucher -
Hi ( I don't know who ),

                                     activity linking permit to link or to lock/unlock certains activities for force students to follow a certain learning path. If used with parcimony it may be usefull. If used everywhere and everytime it put students in a rats maze.

The linking is not intended to replace nor to be compatible with the Moodle Quiz most wanted feature or activity linking http://moodle.org/bugs/bug.php?op=show&bugid=297 .

If you read carefully the first post of that topic, you will get details about it.

If you are not ready:
     to modify you database yourself and
     to be less compatible with Moodle releases  don't use it, wait until it is incorporated in an official Moodle release. It is an unpported Moodle hack.

Bye,

Bernard

 
In reply to Bernard Boucher

Re: Activities linking in meantime for moodle 1.2

by Alvin Shaffer -

BTW, your format hack for topics seems to work great.

Thanks

In reply to Bernard Boucher

Re: Activities linking in meantime for moodle 1.2

by Brent Lancaster -

Bernard,

I tried your 0.4 hack on Moodle 1.2 beta and I am having problems getting it to work.

Any know problems between your latest hack and the new beta release?

In reply to Brent Lancaster

Re: Activities linking in meantime for moodle 1.2

by Bernard Boucher -
Hi Brent,
               I didn't retouch it since january 14 2004. I am waiting 1.2 official release to post an updated working version.

Bye,

Bernard

In reply to Bernard Boucher

Re: Activities linking in meantime for moodle 1.2

by Brent Lancaster -
I know you are a busy man, but any ETA on the linking hack for Moodle 1.2.1 ?
In reply to Brent Lancaster

Re: Activities linking in meantime for moodle 1.2

by Bernard Boucher -
Hi Brent,
              not too busy but too many new Moodle features to study and to try : groups, lessons, MyDms, eWiki ...

Maybe some "ritalin" will help me to concentrate on activity linkingwink

Next weekend it will probably be done ( without group support ).

Thanks for your interest,

Bernard

In reply to Bernard Boucher

Re: Activities linking in meantime for moodle 1.2

by Brent Lancaster -
I here ya. This application is GREAT!!!

No problem on the group support, I just really like the features in your hack. You have helped me impliment moodle perfectly!.

I am always checking out the forum posts, so I will see your post when your ready

Good luck with all the new additions, and thanks for taking time out to update your hack.

bye
In reply to Bernard Boucher

Re: Activities linking in meantime for moodle 1.2

by Alvin Shaffer -

BB quick question.

After looking through your hack, it looks as though I can just copy the //bb modified sections into the new 1.3 version of moodle files to have a hack for Moodle 1.3

Any pitfalls for me to look out for?

In reply to Alvin Shaffer

Re: Activities linking in meantime for moodle 1.2

by Bernard Boucher -
Hi Alvin,

              Jon, Eloy, Martin, Mike, Gustav and probably others have worked hard to add block, calendar and other features to the course view pages. You will loose all that.

When 1.3 stable will be released I will adapt activities linking.

Be patientwink

Bye,

Bernard