moodleou / moodle-mod_oublog Goto Github PK
View Code? Open in Web Editor NEWAlternative blog module for Moodle 2 (including course blogs)
Alternative blog module for Moodle 2 (including course blogs)
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.
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.
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.
Please add this sting and update AMOS server, so we could add a Translation :-)
Calls such as
$tagname = textlib::strtolower($bcoursename);
generate debugging noise in Moodle 2.8, which fails PHPUnit testing with:
Debugging: Class 'textlib' has been renamed for the autoloader and is now deprecated.
Please use 'core_text' instead.
This should be simple to fix :-)
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
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
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
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
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.
To reproduce 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
',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
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.
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.
Testing plugin master branch on Moodle 2.5.1+ (Build: 20130712).
Enable debugging HTML output.
Navigate to site front page.
Select Personal Blogs.
Select New blog post.
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.
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
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.
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()
We are seeing a fatal error when enrolling students in courses containing OU Blogs.
Environment:
Steps to reproduce:
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()
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.
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.
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:
We create Course B from a backup of A
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?
Thanks
Mark
/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;
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
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
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.
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).
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(
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.
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()
)
)
I am unable to translate "modulename_help" token to Hebrew since it is not available in AMOS' English translation version.
Please see if you can fix this :-)
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
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
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)
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
In db/install.xml there are a few lines that contain REFTABLE="users" which should be switched to REFTABLE="user" instead.
I just install latest OU blog version(2013043000) in moodle 2.4.3 .
After I create new OU Blog successfully, It shows the following error when I click edit , delete or add comment from this blog.
"Invalid post ID"
it seems it is related to post parameter value
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.
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.
OU Blog creates a grade entry in grade book, even when requested not to.
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.
https://github.com/moodleou/moodle-mod_oublog/blob/master/lib.php#L567
Please have a look at this.
(Maybe redundant || maybe important?)
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
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
Hello OUTeam π
Are there any plans on developing support for restoring Moodle 1.9 oublog activities +
user's data into Moodle 2+ systems?
Nadav π
Moodle running on IIS (win 2008 R2).
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. πππ
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google β€οΈ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.