Giter Club home page Giter Club logo

moodle-format_onetopic's People

Contributors

aspark21 avatar danielneis avatar davidherney avatar izendegi avatar james-cnz avatar joostvanderborg avatar marxjohnson avatar sbourget avatar sh-csg avatar t-schroeder avatar

Stargazers

 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

moodle-format_onetopic's Issues

style.css selector issue

styles.css are compiled and included site wide so
each selector should have a plugin unique identifier like .format-onetopic
is there a reason the new style rules do not?

Changing role to student causes error/prevents Moodle usage

Hello,

There is a bug in format_onetopic (san juan
2018010604) tested with Moodle 3.5.3 (Build: 20181112)

When you restrict a whole tab for a spesific group f.ex group1 and change your role to student as an teacher or administrator your browser displays an error "This page isn’t working http://nnnnn.nnnn redirected you too many times." and you cannot open Moodle unless you close your browser or clear cookies.

I belive this is because teacher doesn't belong to group 1 and plugin doesn't inherit any rights from the "parent" role (teacher/administrator) when chancing role.

The plugin should display error message f.ex. "you do not belong to group 1 so you cannot see this tab" or something, right now whole Moodle is being "replaced" with this error message and you cannot open Moodle anymore unless you close the whole browser or clear cookies from Moodle.

Steps to repeat:

  1. Create group called group1
  2. Restrict a tab for group1
  3. Open this tab as a teacher or administrator
  4. Change your role to student
  5. See the problem

group1
group2
group3

Child tabs should move with parent tab

Hello,

at the moment any child tabs remains in the same position (under same parent topic location) if you move the parent tab with "Tabs edition utilities" and "Move current topic"

In my opinion child tabs should move with parent tabs because it requires lots of work to move every child tab manually if you have 20 of them.

Adding a permalink system

Hi,

SUMMARY
If a new section is created and is moved as sub section of a section, all the following sections are renumbered. The previously made links are not targeting the right section anymore.

FAILED SOLUTION
In normal course format it is possible to use manually created anchors in the page... But they don't work here because Onetopic needs the section number in the url.

Best regards

Topic 0 is in italic, ability to change it?

Hello,

by default topic 0 is in italic like Topic 0 Can you make it optional so that we can have it without styling if we want? The same style that Topic 1, Topic 2 etc. has.

Error upgrading to 3.3 version

Hello,

We tried to upgrade onetopic to version 3.3 but it failed with error;

PHP Fatal error: Call to undefined function format_topics_upgrade_hide_extra_sections() in /var/www/xxxx/course/format/onetopic/db/upgradelib.php on line 72

Tabs format section delete error

When in editing mode, if I delete a section 'Topic 5' for example, I will then be prompted to confirm the action, I click yes, I am then presented with the error displayed below - Moodle 3.1.4 and 3.1.5 has the same result.

capture1

If I click on continue it will send me to the home page, I will then have to logout and login again to not get that error message again when re-visiting the course, this occurs with any course new or old.
I wanted to find out if this error can be replicated and if the issue can be looked in to or it could just be an issue with our Moodle setup. Thanks for your time

Malformed HTML in navigation links on M3.2

When testing on Moodle 3.2 Boost theme, this format seems to be displaying the html structure as the title of each tab, caused by a problem with additional doublequote (and possibly other) characters. The text inside of the first tab shows as:

"<div style="" class="tab_content marker "><span>Topic 0</span></div>"

The anchor tag is being rendered as:

<a class="nav-link active " title="Topic" 0="" id="yui_3_17_2_1_1485987452297_35"><div style="" class="tab_content marker "><span>Topic 0</span></div></a>

If you edit the structure of the anchor tag, it displays properly:

<a class="nav-link active " title="Topic 0" id="yui_3_17_2_1_1485987452297_35"><div style="" class="tab_content marker "><span>Topic 0</span></div></a>

Announcements forum

Seems that OneTopic format blocks creation of an Announcements forum when a new course is created. Am I missing something?

Student cannot open course if he/she opens 0 section

Tested with Moodle 3.3 and san juan (2018010604) & san juan (2018010602)

Hello,

I have a course that has multiple tabs which some of are hidden. If as a student I open the course and click the 0 tab (which is shown as a tab) it gives an error:

"Sorry, but you do not currently have permissions to do that (View hidden sections)"
Debug info:
Error code: nopermissions
Stack trace: •line 788 of /lib/accesslib.php: required_capability_exception thrown
•line 116 of /course/view.php: call to require_capability()

And if I click Continue nothing happens.

error

Only when I close the browser and open the course it works again. Also all activities on every tab are hidden from the student even when I have activities visible to students. And lastly If I open any other tab first than the 0 tab the course and tab 0 works normally.

change request: rename asynchronous edit actions

Our users don't understand that "asynchronous edit actions" enables them to move resources between tabs. Please rename it to "Move resources between tabs" and the corresponding link to "Enable".

Thank you so much!

error when duplicating last topic/section

In San Juan we are getting errors when duplicating the last section/topic. Its fine for all other sections but if there is on last section it errors as follows in Moodle 3.3.4+
Debug info: SELECT * FROM {course} WHERE id IS NULL
[array (
)]
Error code: invalidrecord
Stack trace:
• line 1533 of /lib/dml/moodle_database.php: dml_missing_record_exception thrown
• line 1509 of /lib/dml/moodle_database.php: call to moodle_database->get_record_select()
• line 588 of /lib/datalib.php: call to moodle_database->get_record()
• line 443 of /lib/modinfolib.php: call to get_course()
• line 412 of /lib/modinfolib.php: call to course_modinfo->__construct()
• line 2095 of /lib/modinfolib.php: call to course_modinfo::instance()
• line 896 of /course/lib.php: call to get_fast_modinfo()
• line 939 of /course/lib.php: call to course_create_sections_if_missing()
• line 1882 of /course/lib.php: call to course_add_cm_to_section()
• line 132 of /course/format/onetopic/duplicate.php: call to moveto_module()
Regards,
Yvonne

Latest version in git repository is not the latest version

This isn't exactly an 'issue', but I use docker to build my Moodle server, and I fetch the latest version of plugins via their git repositories. I notice that the latest version in this repository is one release behind the version in the Moodle plugins directory - is there any chance you can commit version 2018010608 to this repository?

topic with restricted access is not displayed for student

Moodle: Moodle 3.5 (Build: 20180517)
onetopic: 2018010604
Theme tested: boost , fordson and moove

if a topic has access restriction in the onetopic format is not displayed

See:
to access topic 5 the student should complete the poll (name: enquete)
restricao1

but student does not visualize the restriction and does not have access to the topic

topic2

and at the end the link to the top topic (topic 5)
topico3

if the format of the course is the Topics or buttom for example the topic 5 is displayed with the access restrictions

Format: Button
button

Format: Topic

topic

No onetopic/format.js file

The version for Moodle 3.0 (2016020501) now has

$PAGE->requires->js('/course/format/onetopic/format.js');

on line 100 however format.js does not appear to be included in this branch and throws error:

"Coding error detected, it must be fixed by a programmer: Attempt to require a JavaScript file that does not exist."

Debug info: /course/format/onetopic/format.js
Error code: codingerror
Stack trace:
line 699 of \lib\outputrequirementslib.php: coding_exception thrown
line 422 of \lib\outputrequirementslib.php: call to page_requirements_manager->js_fix_url()
line 100 of \course\format\onetopic\format.php: call to page_requirements_manager->js()
line 280 of \course\view.php: call to require()

Child tabs should inherit "hidden from students" from parent tab

Hello,

We use Onetopic format with parent and child sections.
When we hide a parent section from students, we expect that its child tabs become hidden as well.
This is, however, not true: if a parent section is hidden, the students see its child tabs as child tabs of the previous parent section.

As a workaround, we are hiding each of the tabs in a nest: the parent tab and all its child tabs. But it can be very easy to overlook this and inadvertently leave child tabs available to students.

Are there any plans to fix this? Thank you.

The callback get_shortcuts has been deprecated

When moving modules between tabs I get the following error:

The callback get_shortcuts has been deprecated. Please use get_course_content_items and get_all_content_items instead. Some features of the activity chooser, such as favourites and recommendations are not supported when providing content items via the deprecated callback.

    line 302 of /course/classes/local/repository/content_item_readonly_repository.php: call to debugging()
    line 75 of /course/classes/local/repository/caching_content_item_readonly_repository.php: call to core_course\local\repository\content_item_readonly_repository->find_all_for_course()
    line 236 of /course/classes/local/service/content_item_service.php: call to core_course\local\repository\caching_content_item_readonly_repository->find_all_for_course()
    line 311 of /course/renderer.php: call to core_course\local\service\content_item_service->get_content_items_for_user_in_course()
    line 441 of /course/format/onetopic/renderer.php: call to core_course_renderer->course_section_add_cm_control()
    line 75 of /course/format/onetopic/format.php: call to format_onetopic_renderer->print_single_section_page()
    line 290 of /course/view.php: call to require()

Breadcrumb : missing section part when coming back to course

Hi,

When navigating among a course sections, the breadcrumb is updated to reflect the navigation - it displays the current section as last element.

moodle_bug_breadcrumb_expected

If you go out of the course (by going to Moodle's main page for example) then click on a link pointing to the course (on main page or in dashboard for example), it (Moodle ? The course format ?) remembers the section you were in and takes you back to it.

But, the breadcrumb only shows the course as last element, and the section part is missing.

moodle_bug_breadcrumb_problem

Navigating in the course (changing section or activity for ex.) restores the normal behaviour.

As it also affects the block_course_contents plugin, I guess the Navigation system is to blame rather than the breadcrumb rendering.

Thanks,
Mathias

Coding error detected (Moodle 3.9.1+)

Hello, I installed the plugin on Moodle 3.9.1+ (Build: 20200822). When I enter a new course with Onetopic format and I turn edition mode on, this is the error (wich prevents me doing anything):

Coding error detected, it must be fixed by a programmer: section_edit_controls() can not be used anymore. Please use section_edit_control_items() instead.

Question: Recommendation for extending section "level" option?

Hi David,

I don't know how to message you, so I hope it's OK to ask here.

I've started writing a course format, with parent and child tabs for pages, like One-Topic Format, but also allowing multiple sections embedded in each page. I thought it would make sense to use One-Topic format's section "level" option with 0 and 1 for parent and child tabs, and extend it with 2 for embedded sections? Is this OK?

Thanks,
James

M32: Deletion of topic results in error

After deleting a topic, an error appears "This section does not exist"
Using Moodle 3.2,

  1. create a course with a onetopic format
  2. Navigate to a topic
  3. Turn on editing
  4. Using the edit button select delete
  5. Confirm deletion.

The result is a redirection to viewing the course with the section does not exist, to get around this error you need to logout and log back in.

Feature request: Display topic 0 in tab edition utilities

Hello,

In my opionin Topic 0 should be displayed in tab edition utilities because when you move child tabs and click topic 1 they are moved as child tabs under topic 0 but in the tabs editions utilities they show up as a main level/normal topics because topic 0 isn't displayed here. This can be very confusing for a normal user.

topic1

topic2

Feature request: more childtabs

Hello,

I would like to see an feature where you could add more depth to child levels like:

parent
child
child's child
child's child's child

PHP 7.2 warning "Parameter must be an array"

Moodle version: Moodle 3.5.2+ (Build: 20180914)
PHP version : PHP 7.2.11
Onetopic version: san juan 2018010604

This warning appears when editing course above tabs:
Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/moodle/course/format/onetopic/renderer.php on line 395

This is the 395 line:


      if (!$course->hidetabsbar && count($tabs[0]) > 0) {

            if ($PAGE->user_is_editing() && has_capability('moodle/course:update', $context)) {

                // Increase number of sections.
                $straddsection = get_string('increasesections', 'moodle');
                $url = new moodle_url('/course/changenumsections.php',
                    array('courseid' => $course->id,
                        'increase' => true,
                        'sesskey' => sesskey(),
                        'insertsection' => 0));
                $icon = $this->output->pix_icon('t/switch_plus', $straddsection);
                $tabs[] = new tabobject("tab_topic_add", $url, $icon, s($straddsection));

            }

It seem count($tabs) is not an array so the latest PHP 7.2 shows a warning there, please check the changes here:
http://php.net/manual/en/migration72.incompatible.php
http://php.net/manual/en/function.count.php#refsect1-function.count-changelog

Is there any way to fix this error?

Automatic display and opening of the current tab

Hello David and dear friends,

Please kindly ask me, in the following question:

1- Consider, that a particular course, has 10 weeks. In the One Topic plugin, there will be 10 items: Week 1, Week 2, Week 3, ..., Week 10.

2 - Currently in the version we use, when the student enters the Moodle, you will always see Week 1 open, even if the Course is in Week 2.

3 - Would it be possible to configure the Plugin One Topic so that as soon as week 2 starts, all students see Week 2 open automatically?

Thank you! Marcelo.

Feature request: Warning message if you are deleting a section

Hello,

at the moment Onetopic doesn't warn the user anyway if he/she is about to delete a course section from the minus-sign.

There should be a warning "are you sure? This will delete the whole section and activities" since it's easy to delete by mistake.
addwarning

import into section - makes error

We have a problem with onetopic, when we import a section we get errors.
Moodle is version 3.8.4 and classic theme
onetopic-error

  • First line - "Fejl ved skrivning til database" is danish for "Error writing to Database"

Fatal error on 3.9 upgrade

Hi, debugging:

Warning: require_once(.... /course/format/topics/db/upgradelib.php): failed to open stream: No such file or directory in .... /course/format/onetopic/db/upgradelib.php on line 27

Fatal error: require_once(): Failed opening required '.... /course/format/topics/db/upgradelib.php' (include_path='.... lib/pear:.:/usr/share/php') in .... /course/format/onetopic/db/upgradelib.php on line 27

only thing i've done is comment out that line to get it to install on a dev environment, not sure if more needs doing so hopefully you can have a look sometime to check.

Cheers

font color does not change on tabs

when changing the color of the fonts (text) of the tabs, this is not applied, this was checked in the chrome / firefox browser in developer mode and indicates an error when trying to apply the style
example error1
example error2
example error3
example error4

Active tab loses default style when custom colours applied

When I have chosen for all tabs to have a specific background and text color (from the section settings), then it's not obvious which tab is the active one.

Steps to reproduce:

  1. Go to a course in Moodle with the One Topic format.
  2. Turn editing on and edit one section.
  3. Choose #424a52 for background colour and #ffffff for text colour and save changes.
  4. Repeat step 4 for all sections.
  5. Once you save changes, click through each section tab.

Not obvious which tab is the active one.

Is this something which can be solved by applying CSS in the "CSS properties" field at the bottom of the section settings?

Text in first child tab should always inherit from parent tab

In order to set a top-level tab as, for example, "English", it appears that all of the child topics need to be set with "English" as the text of the first tab in the sublevel in order for it to show when child topics are hidden. Otherwise the text in the first child tab is pulled from the settings in the first visible child section. This issue is to correct the tab text inheritance so that it is always defaulted to the parent tab instead of the first visible same-level tab.

OneTopic Error - Unknown course section in course "XXX"

We are using Moodle 3.3.4 with a mySQL database and the OneTopic plugin version san juan (2018010602). However, after an the upgrade of Moodle from 3.1.5 to 3.3.4 some course are now displaying the error message, "Unknown course section in course "XXX"" if they are set to the OneTopic format. If we switch the format to Topics the course shows fine.

onetopic error

I am currently not aware of how the error is being produced, so I cannot list how to replicate it for testing.

Next, I checked and compared some database entries in the course_format_options table for both a course that is showing the error and one that is not.

It appears the courses showing the error have only records for the sectionid 0, and none of the other sections used in the course have records in the table. The courses not showing the error have records for all the sectionids in the course.

Is there any way to possible resolve the error?

Moodle 3.7 and 3.8 official compatibility

We currently use Moodle 3.6 and can see that there is official confirmation through the Moodle plugin catalogue that this course format is compatible up to 3.6.

Please can the plugin be tested and the Moodle catalogue be updated to provide confirmation of support for 3.7 and 3.8?

We are a University and are trying to stick to a policy that we only use plugins that have, amongst other things, forward compatibility of Moodle versions ahead of our current production environment. We review plugins for removal where future compatibility may be problematic if the author has not confirmed compatibility.

Chrome menu scroll issue.

On moodle 3.9 When clicking on the menubars link/tab the browser scrolls down to the content. On chrome we noticed it scrolls down too much and it hides the top menu bar. We don't have this issue on Firefox. Could this issue be fixed so that on chrome it would not hide the menu when it scrolls down to the content.

Screenshot of boost theme using chrome browser after clinking on topic 1

image

Screenshot of boost theme using firefox browser after clinking on topic 1

image

I think the issue is that the scroll doesn't adjust to the height of the navigation bar. Could this issue be fixed so that it takes on account the height of the navbar automatically or that you could specify the height of the navbar trough the formats general settings?

section_edit_controls() is deprecated, please use section_edit_control_items() instead.

Moodle 3.0.1+ (Build: 20151231) turning on editing using onetopic version 2015051700 produces the following warning. onetopic is working as expected, but this warning is visible:

section_edit_controls() is deprecated, please use section_edit_control_items() instead.

line 278 of /course/format/renderer.php: call to debugging()
line 115 of /course/format/onetopic/renderer.php: call to format_section_renderer_base->section_edit_controls()
line 613 of /course/format/onetopic/renderer.php: call to format_onetopic_renderer->section_edit_controls()
line 574 of /course/format/onetopic/renderer.php: call to format_onetopic_renderer->section_right_content()
line 446 of /course/format/onetopic/renderer.php: call to format_onetopic_renderer->section_header()
line 89 of /course/format/onetopic/format.php: call to format_onetopic_renderer->print_single_section_page()
line 280 of /course/view.php: call to require()

thank you for supporting this wonderful product!!

Moodle upgrade from 2.8 to 2.9 issue with section layouts

Hi
Springwood High School use OneTopicFormat and in Moodle 2.8 it has worked perfectly. They upgraded to Moodle 2.9 and the content within the whole course has moved and now appears as one list of content under one topic/section. Originally, the content was spread across 19 sections. I have attached an image which I hope helps. Please let me know if you need more information. All content is now in the Dance section.

springwood-onetopicformat

Thanks

Jeremy

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.