GithubHelp home page GithubHelp logo

moodleou / moodle-mod_oublog Goto Github PK

View Code? Open in Web Editor NEW
31.0 31.0 27.0 1.98 MB

Alternative blog module for Moodle 2 (including course blogs)

PHP 85.25% HTML 2.90% JavaScript 1.53% CSS 1.04% Gherkin 9.28%

moodle-mod_oublog's People

Contributors

alanfez avatar anthonyforth avatar athompson697 avatar avimoto avatar davosmith avatar dj4452 avatar doctorlard avatar dtle avatar euven avatar helbertds avatar huongnv13 avatar jason-platts avatar jesackland-snow avatar kastashov avatar mkassaei avatar nadavkav avatar raymanuk avatar rbonatuvic avatar sammarshallou avatar scottverbeek avatar timhunt avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

moodle-mod_oublog's Issues

Blog Usage Block improvements

Hi :-)
Great plugin Sam et al !
We are using the 2.5 release on a 2.6.2 Moodle site, with the Clean Theme.
I've noticed that the "Past Month" expandable area expands off screen - see screenshot.
Also, it's not immediately obvious that the "My participation summary" and the "Most comments posts" are actually dynamic links. Could they maybe have a dropdown arrow or something that makes this more obvious ?
Thanks, Stuart.
screen shot 2014-04-23 at 5 54 07 pm

3.0 PHPUnit test failure

Moodle 3.0 stable / OUblog master branch / MySQL 5.5.46
Aware of the release schedule, noting this for reference. I don't think it breaks anything from the looks of it but not sure what is causing this nor can I see an obvious/easy fix.

Debugging: External function parameters: invalid OPTIONAL value specified.

  • line 570 of /lib/externallib.php: call to debugging()
  • line 121 of /mod/oublog/externallib.php: call to external_function_parameters->__construct()
  • line ? of unknownfile: call to mod_oublog_external::get_blog_allposts_parameters()
  • line 82 of /lib/externallib.php: call to call_user_func()
  • line 286 of /lib/tests/externallib_test.php: call to external_function_info()
  • line ? of unknownfile: call to core_externallib_testcase->test_all_external_info()
  • line 886 of /vendor/phpunit/phpunit/src/Framework/TestCase.php: call to ReflectionMethod->invokeArgs()
  • line 746 of /vendor/phpunit/phpunit/src/Framework/TestCase.php: call to PHPUnit_Framework_TestCase->runTest()
  • line 80 of /lib/phpunit/classes/advanced_testcase.php: call to PHPUnit_Framework_TestCase->runBare()
  • line 601 of /vendor/phpunit/phpunit/src/Framework/TestResult.php: call to advanced_testcase->runBare()
  • line 702 of /vendor/phpunit/phpunit/src/Framework/TestCase.php: call to PHPUnit_Framework_TestResult->run()
  • line 735 of /vendor/phpunit/phpunit/src/Framework/TestSuite.php: call to PHPUnit_Framework_TestCase->run()
  • line 735 of /vendor/phpunit/phpunit/src/Framework/TestSuite.php: call to PHPUnit_Framework_TestSuite->run()
  • line 735 of /vendor/phpunit/phpunit/src/Framework/TestSuite.php: call to PHPUnit_Framework_TestSuite->run()
  • line 735 of /vendor/phpunit/phpunit/src/Framework/TestSuite.php: call to PHPUnit_Framework_TestSuite->run()
  • line 432 of /vendor/phpunit/phpunit/src/TextUI/TestRunner.php: call to PHPUnit_Framework_TestSuite->run()
  • line 148 of /vendor/phpunit/phpunit/src/TextUI/Command.php: call to PHPUnit_TextUI_TestRunner->doRun()
  • line 100 of /vendor/phpunit/phpunit/src/TextUI/Command.php: call to PHPUnit_TextUI_Command->run()
  • line 47 of /vendor/phpunit/phpunit/phpunit: call to PHPUnit_TextUI_Command::main()
    E.Debugging: External function parameters: invalid OPTIONAL value specified.
  • line 570 of /lib/externallib.php: call to debugging()
  • line 190 of /mod/oublog/externallib.php: call to external_function_parameters->__construct()
  • line ? of unknownfile: call to mod_oublog_external::get_blog_posts_parameters()
  • line 82 of /lib/externallib.php: call to call_user_func()
  • line 286 of /lib/tests/externallib_test.php: call to external_function_info()
  • line ? of unknownfile: call to core_externallib_testcase->test_all_external_info()
  • line 886 of /vendor/phpunit/phpunit/src/Framework/TestCase.php: call to ReflectionMethod->invokeArgs()
  • line 746 of /vendor/phpunit/phpunit/src/Framework/TestCase.php: call to PHPUnit_Framework_TestCase->runTest()
  • line 80 of /lib/phpunit/classes/advanced_testcase.php: call to PHPUnit_Framework_TestCase->runBare()
  • line 601 of /vendor/phpunit/phpunit/src/Framework/TestResult.php: call to advanced_testcase->runBare()
  • line 702 of /vendor/phpunit/phpunit/src/Framework/TestCase.php: call to PHPUnit_Framework_TestResult->run()
  • line 735 of /vendor/phpunit/phpunit/src/Framework/TestSuite.php: call to PHPUnit_Framework_TestCase->run()
  • line 735 of /vendor/phpunit/phpunit/src/Framework/TestSuite.php: call to PHPUnit_Framework_TestSuite->run()
  • line 735 of /vendor/phpunit/phpunit/src/Framework/TestSuite.php: call to PHPUnit_Framework_TestSuite->run()
  • line 735 of /vendor/phpunit/phpunit/src/Framework/TestSuite.php: call to PHPUnit_Framework_TestSuite->run()
  • line 432 of /vendor/phpunit/phpunit/src/TextUI/TestRunner.php: call to PHPUnit_Framework_TestSuite->run()
  • line 148 of /vendor/phpunit/phpunit/src/TextUI/Command.php: call to PHPUnit_TextUI_TestRunner->doRun()
  • line 100 of /vendor/phpunit/phpunit/src/TextUI/Command.php: call to PHPUnit_TextUI_Command->run()
  • line 47 of /vendor/phpunit/phpunit/phpunit: call to PHPUnit_TextUI_Command::main()

BOM for lang/es/oublog.php

There is a BOM for lang/es/oublog.php which may cause PHP to output headers.

I simple fix would be to open it on vim, use

:set nobomb

then save and quit.

Filepicker not working in Moodle 2.5.1

I know that this has not been released for Moodle 2.5.1 and as such this may be a daft post. However it all seems to work fine except for the filepicker which gets stuck and doesn't allow you to choose a file to add to a post. Is this an easy quick fix or am I the only one reporting this as a 2.5.1 issue?

Cheers

Colin

Download table data - does not include grade value correctly

Originally reported by John White in https://moodle.org/mod/forum/discuss.php?d=107215#p955779

I now have the OU Blog (version 2.3) working well in both Moodle 2.3.3 (naturally) and also in Moodle 2.2.6! So far I haven't met any bugs as a result of using the 2.3 version in 2.2, which for me is very good news. It means its possible that we could move up to OU Blogging as a Learning Log tool, with grading, without needing to wait for our own roll-out of Moodle 2.3 which may take us a while. If so we are most likely to use it first in special 'portal-type' courses that cover a whole Year of a degree course, but which can be rolled forward year-on-year so that the Learning Log stays with the student as he/she moves through their degree course.

I have however found one bug that occurs on both moodle platforms. The CSV export tool ('download table data as...') currently appears not to export student grades, even though it will export the rest of the data. The fault appears to be in mod/oublog/renderer.php lines 426-430 where it currently reads...

if (!isset($user->grade)) {
$gradeitem = get_string('nograde');
} else {
$gradeitem = $user->grade;
}

...but I believe it ought to read...

if (!isset($user->gradeobj->str_grade)) {
$gradeitem = get_string('nograde');
} else {
$gradeitem = $user->gradeobj->str_grade;
}

...because the user grades are not held directly in grade, but in gradeobj. Without this the grades are always replaced by the 'nograde' string!

I hope this helps. And many thanks to all there for the OU Blog module.

Regards, John

Error saving settings when enabling tags

Hi,
When I fill in some tags seperated by a comma in the Tags settings field, and I choose the option to allow predefined tags only I get an error when applying the plugin settings (sorry in Dutch):

Fout in de programmeercode gevonden. Dit moet door een programmeur hersteld worden. moodle_database::get_in_or_equal() does not accept empty arrays

When I remove all the tags from the tags input box I can save the plugin settings.

Moodle version: v3.1.2

Thank you,
Marc Nieuwhof

Multiple grade points with 'snap-shotting' for OU Blog

Hi all, and especially the OU Blog Team,
Recently this super module has added grading, but our need is for multiple points of grading - twice-yearly perhaps more, and for this to work we need to see the blog as a snapshot in time so that grading can be performed fairly and so that the student can view their grade in the context of the blog up to that date.
So a substantial further development, that should still permit the OU Blog to function as it did before as well, has been undertaken. To describe this work there is a google document which could lay the basis of a Moodle document if this work is of interest. See https://docs.google.com/document/d/1eFyMhc2rWV0xuHQBMFzT7BuK9HhaHgcspXJ_1ongrIc/edit?usp=sharing
Zip file attached next.
Regards,
John

Uncaught TypeError: Cannot call method 'on' of null

If you setup an OUBlog activity with Allow comments set to "Comments not allowed" when you go to the "New post page" the javascript (under Chrome) appears to fail with "Uncaught Type Error: Cannot call method 'on' of null".

This prevents any of the other javascript loading.

I'm guessing that is the "Y.one('#id_allowcomments').on('change',function(e)" failing as the drop down is not on the form.

OUBlog grade cannot be set to a scale

To reproduce error:

  1. Add a Oublog activity, or edit one
  2. Select "Scale: ....." in "Grade" field.
  3. Save changes, and see this error:

Debug info: Out of range value for column 'grade' at row 1
UPDATE mdl_oublog SET name = ?,summary = ?,allowcomments = ?,individual = ?,maxvisibility = ?,maxbytes = ?,maxattachments = ?,grade = ?,course = ?,completionposts = ?,completioncomments = ? WHERE id=?
[array (
0 => 'OUBLOG 1',
1 => '

tests OUBLOG

',
2 => '1',
3 => '0',
4 => '100',
5 => '2097152',
6 => '9',
7 => '-3',
8 => '16',
9 => 0,
10 => 0,
11 => '3',
)]

Removing deleted posts completely?

Hi,

This isn't an bug as such because I know the original plugin intended to keep deleted posts in case of certain circumstances, but would it be possible to have an option to remove them completely?

We have quite a few 'silly' posts from our students on a global blog which have been deleted from student view but they're clogging up the admin view of the blog and we don't need to keep them.

Thank you,

Mandy

duplicate field in get posts query

As of 2015-04-29 in file locallib.php in method oublog_get_posts on line 592, query string starts:
$fieldlist = "p.*, p.timeposted, p.timeposted AS timecreated, bi.oublogid, $usernamefields
The inclusion of p.timeposted is redundant with p.*
This will cause an error in Oracle: ORA-00918: column ambiguously defined.

How to prevent students being notified of posts to blog

Hi,

We currently use the OUBlog on our 2.7 installation of Moodle. Currently we are experiencing an issue where the blog notifies all students in a class that a blog post has been made, using the moodle.com/my/ section.

We have the OUBlog set up as Separate Individual Blogs as this is an assessed activity.

The above is causing some confusion as students will click on the notification they are getting to see there is no new post, however I know from the admin side that posts have been made by other students.

Is there a simple way to turn this off, or change to prevent students from seeing this notification unless they have posted. The ideal would be that when a tutor gives feedback that a notification is given rather than everytime a change is made?

Thanks in advance
Phil.

setType() error on 2.5

Testing plugin master branch on Moodle 2.5.1+ (Build: 20130712).

  1. Enable debugging HTML output.

  2. Navigate to site front page.

  3. Select Personal Blogs.

  4. Select New blog post.

  5. The page loads with the following PHP error displayed.

    Did you remember to call setType() for 'post'? Defaulting to PARAM_RAW cleaning.
    line 1303 of /lib/formslib.php: call to debugging()
    line 281 of /lib/formslib.php: call to moodleform->detectMissingSetType()
    line 202 of /lib/formslib.php: call to moodleform->_process_submission()
    line 114 of /mod/oublog/editpost.php: call to moodleform->moodleform()

I realize the readme for the master version states that it is a development branch. We're currently testing all of our supported plugins for 2.5 so it made sense to test the master branch.

Separate individual blogs- gives error

Hi
I installed moodle-mod_oublog-master.zip on moodle 2.7
when i"m changing to Separate individual blogs it give an error -Error reading from database.

Irith

Open blogs issue

Hi,

We are seeing an issue when trying to set open blogs (Individual blogs set to no, and visibility open) in both Mooddle 2.8, and v3.03.

The error Moodle produces is:
"This blog might contain posts that are only visible to logged-in users, or where only logged-in users can comment. If you have an account on the system, please log in for full access."

Any ideas what might be happening, we know that the functionality did work when we upgraded to 2.8 last year, so the functionality has worked with the current version of plugin.

As an aside, do you know roughly when you will be releasing a v3 suite of plugins?
we use Wiki, Blog, Forum, Search.

Thanks in advance,
Mark.

SQL error

Hi, we've had your plugin running happily on Moodle 2.5 and it's been really great, but I've just tested out the 3.0 version and it's pulling up an SQL error when trying to load the blog posts (see below).

Any assistance you could provide would be very much appreciated!

Thank you,

Mandy

Debug info: SQLState: 42000

Error Code: 1033

Message: [Microsoft][SQL Server Native Client 11.0][SQL Server]The ORDER BY clause is invalid in views, inline functions, derived tables, subqueries, and common table expressions, unless TOP or FOR XML is also specified.

SELECT COUNT(1) FROM (SELECT id, title, message, timeposted
FROM mdl_oublog_posts
WHERE oubloginstancesid = (
SELECT id
FROM mdl_oublog_instances
WHERE oublogid = '2' AND userid = '13'
)
AND timedeleted IS NULL
ORDER BY timeposted DESC) as p
[array (
0 => '2',
1 => '13',
)]

Error code: dmlreadexception
Stack trace:
line 443 of \lib\dml\moodle_database.php: dml_read_exception thrown
line 291 of \lib\dml\sqlsrv_native_moodle_database.php: call to moodle_database->query_end()
line 398 of \lib\dml\sqlsrv_native_moodle_database.php: call to sqlsrv_native_moodle_database->query_end()
line 850 of \lib\dml\sqlsrv_native_moodle_database.php: call to sqlsrv_native_moodle_database->do_query()
line 898 of \lib\dml\sqlsrv_native_moodle_database.php: call to sqlsrv_native_moodle_database->get_recordset_sql()
line 1480 of \lib\dml\moodle_database.php: call to sqlsrv_native_moodle_database->get_records_sql()
line 1553 of \lib\dml\moodle_database.php: call to moodle_database->get_record_sql()
line 3262 of \mod\oublog\locallib.php: call to moodle_database->get_field_sql()
line 4076 of \mod\oublog\locallib.php: call to oublog_get_user_participation()
line 322 of \mod\oublog\view.php: call to oublog_stats_output_myparticipation()

Fatal error when enrolling new students

We are seeing a fatal error when enrolling students in courses containing OU Blogs.

Environment:

  • Moodle 3.0.5
  • OUBlog branch MOODLE_30_STABLE (0a4b503)

Steps to reproduce:

  1. Create a course with an OU Blog, and settings:
    • Grade: Use ratings
    • Rating aggregate type: Average of ratings
    • Ratings scale type: Point
  2. Enrol a student in the course with "Recover user's old grades if possible" checked.

Problem:

The enrollment fails with message:

Invalid course module ID
Debug info:
SELECT id,course FROM {course_modules} WHERE id = ? [array ( 0 => '', )] Error code: invalidcoursemodule
Stack trace:
* line 1455 of /lib/dml/moodle_database.php: dml_missing_record_exception thrown
* line 1431 of /lib/dml/moodle_database.php: call to moodle_database->get_record_select()
* line 7188 of /lib/accesslib.php: call to moodle_database->get_record()
* line 1442 of /mod/oublog/lib.php: call to context_module::instance()
* line 1391 of /mod/oublog/lib.php: call to oublog_get_user_grades()
* line 1229 of /lib/gradelib.php: call to oublog_update_grades()
* line 1199 of /lib/gradelib.php: call to grade_update_mod_grades()
* line 1013 of /lib/gradelib.php: call to grade_grab_course_grades()
* line 1352 of /lib/enrollib.php: call to grade_recover_history_grades()
* line 353 of /enrol/manual/ajax.php: call to enrol_plugin->enrol_user()

Feeding by external RSS

Hi :)

Is there any option, development plan or code "hack" to get the same feature as the native moodle blog that imports blog posts from external blogs (those defined in user profiles) ?.
Thank you very much in advance for your answer.

Regards.

User activity not showing in groups view

Please accept my apologies if this is the wrong place to post this. It seems that for the 2.2 version (2012071800) user activity does not appear in the group view. When viewed within a group (in separate groups mode) all posts and comments in the activity table are given a zero.

Rates are copied wrongly in the backup/restore process

If an OU blog has ratings enabled (the default is No rating) and a Manager makes a backup to preserve user participation and restores with user participation, the rates are copied to all the post no only the one that have been rated.

TExample:

  • Course A:
    -Post a by student Std1: Rating: 30 (Average of ratings: 30(1))
    -Post b by student Std1: Rating: 40 (Average of ratings: 40(1))
    -Post c by student Std2: Rating: 50 (Average of ratings: 50(1))
    -Post d by student Std2: No rating
    -Post b by student Std3: No rating

We create Course B from a backup of A

  • Course B:
    -Post a by student Std1: Rating: 30,40,50 (Average of ratings: 40(3))
    -Post b by student Std1: Rating: 30,40,50 (Average of ratings: 40(3))
    -Post c by student Std2: Rating: 30,40,50 (Average of ratings: 40(3))
    -Post d by student Std2: Rating: 30,40,50 (Average of ratings: 40(3))
    -Post b by student Std3: Rating: 30,40,50 (Average of ratings: 40(3))

Moodle 2.5 Blog posts cannot be deleted by teachers or admins

Moodle 2.5 a student adds a post to a blog on one of their courses.

The student can delete their own post with no problem.
A teacher or admin cannot. When they click on 'Delete' the correct pop comes up but it is not accessible, it is greyed out. (Screen shot attached).
Using inspect element in Chrome I can see that if I alter the z-index of the overlaying div I can get access to the form.(screen shot attached) Whilst I can alter this in the css of the plugin within our theme, or within our copy of the oublog, I wanted to raise it and ask if it is indeed an issue with your code or is it an issue with our theme?

oublog error showing greyed out section
oublog error with inspect element and z-index removed

Thanks
Mark

Remove blog name Block

Hi
We are using the OU Blog released for Moodle 2.5 on a Moodle 2.6.2 site.
Is it possible to remove the Block that show the name of the Blog?
screen shot 2014-04-23 at 5 53 35 pm

Uncaught TypeError: Cannot read property 'setAttribute' of null (Moodle 2.7)

/moodle27/mod/oublog/yui/accordion/accordion.js
For some reason, tab.title is null (tab.content is null too) and the following line returns a JS error that halts JS for other YUI components, including the AJAX administration menu (which is very problematic)

tab.title.setAttribute('aria-controls', tab.content.generateID());

Adding the following line before the above line, work around it. (but is not a solution)

if (tab.title == null) return;

Export to portfolio error (Mahara)

When trying to export a blog post with an image embedded I get the following error:

No common formats between any available portfolio plugin and the calling location oublog_portfolio_caller (caller supported )

The export works fine when there is no image attached to the blog post.

The moodle version is Moodle 2.2.2+ (Build: 20120504) and the OU Blog version is 2013011800.

I have enabled Leap2A in the portfolio settings, as this solved a similar issue with exporting a forum post with an image attached.

Is this a configuration issue or a bug with the OU Blog plugin?

Thanks,

Lewis

Moodle 2.5 Separate Blogs and Group Blogs: Notifications visible to all students

Hi,

This may be a core issue with Moodle 2.5 (I think it is very similar to the groups/groupings notifications changes to the assignments between Moodle 2.5 to Moodle 2.7), but we are having some odd behavior. On a students dashboard (My Home for clarification), the user can see that there have been X number of entries to the ou blog (on one of their courses). But these entries are from other students that this user cannot see. Indeed, if the student clicks on the ou blog to view these entries, then they correctly get, 'There are no visible posts in this blog'. So I believe there is an error in the way it presents the number of notifications to the user on the front page? Any ideas?

Regards,

Mark

Use of undefined constant OUBLOG_USE_RATING

A debugging message is displayed after clicking the "Enrol users and finish" button in the User Enrol wizard when attempting to enrol a user via User Enrol. This is on a course which already has an OU Blog activity.

The message is the folloging:
"Notice: Use of undefined constant OUBLOG_USE_RATING - assumed 'OUBLOG_USE_RATING' in /var/www/moodle/mod/oublog/lib.php on line 971 "

This is due to the fact the code can not find the file locallib.php, where the constant is defined. The code executes the instruction require_once('locallib.php'); but the file is not found. We have tested that if we substitued the relative path by the absolute one, the message disspears.

Nevertheless, we donΒ΄t want to change the third paty plugins. Do you know if there is any other way to fix it or do you plan to fix it in future version? We think that this problem might have unknown consecuence, for instance, when the post is rating.

Database errors are being generated each time the word Eireann is used

I can repeat this with 100% reliability - posting a blog post that contains the word Eireann causes the following database error:

Debug info: Duplicate entry 'eireann' for key 'mdl_locaouseword_wor_uix' INSERT INTO mdl_local_ousearch_words (word) VALUES(?) [array ( 0 => 'eireann', )] Error code: dmlwriteexception

It also gives the following stack trace:
Stack trace: line 446 of /lib/dml/moodle_database.php: dml_write_exception thrown line 1164 of /lib/dml/mysqli_native_moodle_database.php: call to moodle_database->query_end() line 1210 of /lib/dml/mysqli_native_moodle_database.php: call to mysqli_native_moodle_database->insert_record_raw() line 352 of /local/ousearch/searchlib.php: call to mysqli_native_moodle_database->insert_record() line 223 of /local/ousearch/searchlib.php: call to local_ousearch_document->internal_add_words() line 1909 of /mod/oublog/locallib.php: call to local_ousearch_document->update() line 508 of /mod/oublog/locallib.php: call to oublog_search_update() line 210 of /mod/oublog/editpost.php: call to oublog_edit_post()

We are using a fully patched Moodle 2.8, with the latest version of the plugin (2015011200, 2.7 r1).

Not allowed to set cm_info::$uservisible

Under 2.6 (which I'm aware you may not be doing any work on yet) I'm getting the following notice:

It is not allowed to set the property cm_info::$uservisible
line 1249 of \lib\modinfolib.php: call to debugging()
line 936 of \mod\oublog\lib.php: call to cm_info->__set()
line 1929 of \lib\modinfolib.php: call to oublog_cm_info_dynamic()
line 1757 of \lib\modinfolib.php: call to cm_info->call_mod_function()
line 1309 of \lib\modinfolib.php: call to cm_info->obtain_dynamic_data()
line 1186 of \lib\modinfolib.php: call to cm_info->get_name()
line 1857 of \lib\navigationlib.php: call to cm_info->__get()
line 1896 of \lib\navigationlib.php: call to global_navigation->generate_sections_and_activities()
line 438 of \course\format\lib.php: call to global_navigation->load_generic_course_sections()
line 1811 of \lib\navigationlib.php: call to format_base->extend_course_navigation()
line 1114 of \lib\navigationlib.php: call to global_navigation->load_course_sections()
line 3003 of \lib\navigationlib.php: call to global_navigation->initialise()
line 791 of \lib\pagelib.php: call to navbar->has_items()
line 4 of \theme\universitystrathclyde\layout\general.php: call to moodle_page->has_navbar()
line 866 of \lib\outputrenderers.php: call to include()
line 796 of \lib\outputrenderers.php: call to core_renderer->render_page_layout()
line ? of unknownfile: call to core_renderer->header()
line 1644 of \lib\setuplib.php: call to call_user_func_array()
line 338 of \login\index.php: call to bootstrap_renderer->__call()
line 338 of \login\index.php: call to bootstrap_renderer->header(

Moodle 2.4.1 issue.

I realise you may not be considering this block for 2.4 yet, but having just installed the 2.3 version to test on our fresh 2.4.1 installation, I received the following notice/warning:

Function add_mod_to_section() is deprecated, please use course_add_cm_to_section()
line 2974 of /lib/deprecatedlib.php: call to debugging()
line 478 of /mod/oublog/lib.php: call to add_mod_to_section()
line 8 of /mod/oublog/settings.php: call to oublog_post_install()
line 2953 of /lib/pluginlib.php: call to include()
line 17 of /admin/settings/plugins.php: call to plugininfo_mod->load_settings()
line 6264 of /lib/adminlib.php: call to require()
line 6151 of /lib/adminlib.php: call to admin_get_root()
line 14 of /admin/upgradesettings.php: call to admin_externalpage_setup()

Regards.

Recursive error attempting to add instance on M31 with debug enabled

I realize this module is not yet officially released for Moodle 3.1 yet, but just wanted to identify the following problem I saw when testing with debug on in a M3.1 site which caused severe browser slowdown. In attempting to add instance to course with debug on I get the following error which is only partial output (result produced a 7.5MB text file of array values from backtrace):

QuickForm Error: element already exists Element 'tags' already exists in HTML_QuickForm::addElement()
Backtrace :
Array
(
[0] => Array
(
[file] => /mnt/code/www/moodle_sand/lib/pear/HTML/QuickForm.php
[line] => 1991
[function] => __construct
[class] => PEAR_Error
[type] => ->
[args] => Array
(
[0] => element already exists
[1] => -6
[2] => 16
[3] => pear_handle_error
[4] => Element 'tags' already exists in HTML_QuickForm::addElement()
)
)
[1] => Array
(
[file] => /mnt/code/www/moodle_sand/lib/pear/PEAR.php
[line] => 543
[function] => __construct
[class] => HTML_QuickForm_Error
[object] => HTML_QuickForm_Error Object
(
[error_message_prefix] => QuickForm Error:
[mode] => 16
[level] => 1024
[code] => -6
[message] => element already exists
[userinfo] => Element 'tags' already exists in HTML_QuickForm::addElement()
[backtrace] => Array
RECURSION
[callback] => pear_handle_error
)
[type] => ->
[args] => Array
(
[0] => -6
[1] => 16
[2] => pear_handle_error
[3] => Element 'tags' already exists in HTML_QuickForm::addElement()
)
)

3.1 Tag API - Unit Test Failure

Moodle: 3.1 Stable branch
OUBlog: Letest master branch
DB: MySQL 5.5.41
Aware of the release schedule, logging for reference.

https://travis-ci.org/aspark21/moodle/jobs/138745275#L1771

  1. oublog_locallib_test::test_oublog_tags
    mysqli::real_escape_string() expects parameter 1 to be string, array given
    /home/travis/build/aspark21/moodle/lib/dml/mysqli_native_moodle_database.php:955
    /home/travis/build/aspark21/moodle/lib/dml/mysqli_native_moodle_database.php:1167
    /home/travis/build/aspark21/moodle/lib/dml/mysqli_native_moodle_database.php:1218
    /home/travis/build/aspark21/moodle/mod/oublog/lib.php:50
    /home/travis/build/aspark21/moodle/course/modlib.php:121
    /home/travis/build/aspark21/moodle/lib/testing/generator/module_generator.php:266
    /home/travis/build/aspark21/moodle/mod/oublog/tests/generator/lib.php:80
    /home/travis/build/aspark21/moodle/mod/oublog/tests/oublog_test_lib.php:87
    /home/travis/build/aspark21/moodle/mod/oublog/tests/locallib_test.php:1455
    /home/travis/build/aspark21/moodle/lib/phpunit/classes/advanced_testcase.php:80

How to enable guest access

Hello,

I tried in several places in Moodle to give Guest access to an OUBlog activity.
There is Guest access enabled for the course but OUblog gives this message:

_This blog might contain posts that are only visible to logged-in users, or where only logged-in users can comment. If you have an account on the system, please log in for full access.

Total visits to this blog: 27_

I enabled 'View posts' in the Site Administration->Users->Rights->Roles->Guest role
I enabled 'View posts' in the Course administration->Users->Rights->Guest role
I enabled 'View posts' in the OUBlog Activity->Rights

How can I enable Guest access to view the blog posts?

Thank you,
Marc Nieuwhof

Switching to "VIsible Groups" mode does not show previous posts

A teacher switched to Visible groups mode after many students that were previously divided into groups published their posts, so she could see them as groups. and grade them more easily. But now, viewing each group does not show any previous published posts. Only when in "All participants" view.

Now, when students started publishing new posts (after the visible groups mode was set) I can see their new posts.

Is there any way I can see their posts that were published while they were not in groups mode? (except viewing the long list of users in "All participations" view mode)

Getting slowness when load OU blog page

We have a client who is running 2.8 r2 (2015072200) on moodle 2.8, When they try to access the module OU blog page, the page is responding very slow and it took min 30 secs to pull the entire page

Attached is the screen shot which we got when we trace the sql

Please check and do needful.
berklee

Update language pack!?

Hi,

i come from Germany and im a newbie, sorry that =)

the language supported about AMOS, or? But we found older language packs in the mod-directory that be used.

We think it is better to delete them, that would be use automaticly the Packs from AMOS.

Regards,
Daniel

Personal Blogs

The Personal blog cannot be moved from the centre of the front page. This makes sites look untidy. It also means that you cannot add a link to the personal blog using the moodle menu. If you hide the blog then it is hidden to all users except the admin, thus making a link to it dead.

You could add a global blog in a side block but from an aesthetic point of view it's not ideal.

install causes too many db connections

Having problems installing this.
Moodle Version 2.4.5+
OU Blog Version 2013070200

I installs to the point of upgrade database "success" but the next page where it normally shows the new settings for the module just kills the server.
Can't see any bugs with all debugging on and there are no slow queries.
It just seems to open lots of db queries until the db server has too many connections then falls over.

I tried this on another server and it does seem to eventually install, but takes absolute age to get to the settings screen.

Attached images not displaying

Love this plugin. Would love it even more if images that are attached ie dragged into the attachments field, displayed as on the page, rather than download links.
Not sure if this is a bug report or feature request!

oublog-attachments

OU Blogs creates grade entry

OU Blog creates a grade entry in grade book, even when requested not to.

  1. Create OU Blog assignment (ex. at https://ccle.ucla.edu/course/view/kudymatest?section=6)
  2. In Settings:
    • set grading to "No grade (Default)"
    • set Ratings > Aggregate Type to "No Ratings"
  3. Check grade book grader report, there is a category for OU Blog listed.
  4. When in the OU Blog Assignment page, click "Participation by User" and it has dropdown for assigning grades to users

We are using OU Blog version 2015011200.

If a Blog is set to have no grade, we are expecting that the activity doesn't show up in the gradebook and that the grading options are turned off.

Attaching files to comments

Hello,
We are using the personal blogs in our college, and the teachers would like to comment on the blog (which works fine) but also to attach files to the comment. Can you please enable this?
Thanks!

Netanel

Error under moodle 2.5.5

I get this error, after upgrading from 2.4 to 2.5 (using latest ZIP of oublog):
Fatal error: Call to undefined function get_all_user_name_fields() in D:\htdocs\moodle_TEST\mod\oublog\locallib.php on line 581

Moodle 2.5 Blog posts cant have more than 13 attachments

Add the ou blog as a mod to a course.
The user (teacher) selects that they wish to allow the users to attach 100 attachments in the drop down.
The teacher saves this
The student goes in and adds a blog post, attempts to upload more than 13 files and it complains. There is also an additional message above the file upload to tell them that they can only upload 13 files.
If you change the original select to 50 files instead of 100, it only lets them add 12 files. This behavior got me exploring. The values of the options in the select are numerical, 1 - 13. The text in the options are 1 - 10, 20, 50 and 100.
The form (mod_form.php, line 87 adds the options as an array and it simply takes the value of the option and puts that in the database):

// Max number of attachments.
$choices = array(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 20, 50, 100);
$mform->addElement('select', 'maxattachments',
get_string('maxattachments', 'oublog'), $choices);

So 100 is the 14th element in the array, the value will be 13. When it does the insert on line 40 of lib.php then it doesnt check what the value -> option corresponds to.

Well, thats my thinking, apologies if I just barked up the wrong tree.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.