Modify Dropbox Code to work with Moodle 2.0 build 20101125

Modify Dropbox Code to work with Moodle 2.0 build 20101125

by Micky Fokken -
Number of replies: 4

Is there a way to modify my repositories/dropbox code to work in Moodle 2.0, build 20101125?

Right now I'm getting a message that my dropbox API code is old and needs to be updated.  The problem is that I don't know how to apply the fix listed here:

https://tracker.moodle.org/browse/MDL-29960

Is there a link to the dropbox/lib.php file I can copy and paste to my server?

Thanks for your help.  Sorry for my ignorance on this subject.

Average of ratings: -
In reply to Micky Fokken

Re: Modify Dropbox Code to work with Moodle 2.0 build 20101125

by Micky Fokken -

I just replaced my lib.php and locallib.php in the dropbox folder using the raw code below:

https://raw.github.com/moodle/moodle/4b05a49bcbb7a285645469fa89e54e431200617e/repository/dropbox/lib.php

https://raw.github.com/moodle/moodle/6381177b9f0bcc5e1eac5d6fadb7e549135f27a4/repository/dropbox/locallib.php

Now it gives me the login button.  When I click Allow, it says "Error:  repository/repositoryerror"

I have not been approved for Production status on my dropbox.  I just applied a few minutes ago.

Anything else I need to do?

In reply to Micky Fokken

Re: Modify Dropbox Code to work with Moodle 2.0 build 20101125

by Micky Fokken -

My dropbox app was just approved for production status.  Unfortunately, the repository/repositoryerror message still displays when I click the allow button.

What should I try?

In reply to Micky Fokken

Re: Modify Dropbox Code to work with Moodle 2.0 build 20101125

by Visvanath Ratnaweera -
Picture of Particularly helpful Moodlers Picture of Translators
Any conection to this: "DropBox asking to login repeatedly" https://moodle.org/mod/forum/discuss.php?d=226773#p985318 ?
In reply to Visvanath Ratnaweera

Re: Modify Dropbox Code to work with Moodle 2.0 build 20101125

by Micky Fokken -

Could be.  We ended up just going with GoogleDocs instead.

My biggest problem is that i don't believe i am applying the updated patch correctly, and we don't want to upgrade from 2.0 to 2.2 or 2.4 yet.