Posts made by Itamar Tzadok

Moodle in English -> Database -> exported database -> Re: exported database

by Itamar Tzadok -

Depending on your Moodle version, it means that your database activity is set to require approval and that you selected to include approval status in the export file. This status is stored under column 'approved' in the mdl_data_records table in the Moodle DB. The database module uses several DB tables, all start with mdl_data. hth smile

Moodle in English -> Database -> Slide show easier than ever

by Itamar Tzadok -

Not available yet but so nice that is probably worth the heads-up.

One field that allows uploading images and then displays them in a slide show, either fade or scroll effect (by pattern). It uses jquery tcycle (jquery is included in Moodle and tcycle is is a minimalist jQuery slideshow plugin by malsup (http://jquery.malsup.com/cycle2/tcycle/) included in the field plugin). The setting of the Dataform to do that is fairly minimal.

Tried to snapshot the fading between the parrot and butterfly. In this particular illustration, the Dataform is set to display inline on the frontpage. smile 

 

Average of ratings: Useful (1)

The code says:

// Limit to one file for the moment, this may be changed if requested as a feature in the future.

Add a tracker issue if this has not been requested yet.

If you want to try a hack, you can change

$options->maxfiles  = 1;

to

$options->maxfiles  = -1;

around line 75 in mod/data/field/file/field.class.php

hth smile

Average of ratings: Useful (2)

I've drafted a quick field type 'authorpicture' which will allow you to display the entry author picture in the list and/or single template.

  • Extract the attached zip.
  • Copy the folder authorpicture into mod/data/field/.
  • Go to site notifications to complete the installation.
  • Go to the activity tab fields.
  • Add a field of type author picture.
    • In the field form tick the Large picture checkbox if you want to display the large user picture.
  • Add the field tag to the template.
  • View.

I haven't tested it on 2.5 but it should work.

For some reason the Database module does not seem to be particularly ready for contributed plugins so in debugging mode you may see some missing string debugging messages.

The plugin is currently set to require moodle 2.5 or higher. It should work on earlier versions but the 'requires' in version.php needs to changed accordingly.

Let me know if it worked for you. smile

Illustration: