Collapsed Topics for Moodle 2.3 released

Collapsed Topics for Moodle 2.3 released

Gareth J Barnard發表於
Number of replies: 17
Core developers的相片 Particularly helpful Moodlers的相片 Plugin developers的相片

Hello,

I have just released the stable version of Collapsed Topics for Moodle 2.3 (Build 20120701) on the plugins databasehttp://moodle.org/plugins/view.php?plugin=format_topcoll

It is an almost complete rewrite.  This has given me the opportunity to solve some problems and add some new features.

Problems solved:

  • Removal of cookies in favour of user preference for toggle state.
  • Use of unordered lists instead of tables for layout.

New features:

  • Muilti-columns except with MyMobile theme (please see readme for MyMobile use).
  • Days structure.
  • Administrators can reset the layout and colours for all collapsed topics based courses to the defaults in the config.php file.

The overall look is subtly different in terms of the left and right components of a section.  This is to facilitate the interoperability of AJAX manipulation from the core code.

I have tested quite a bit with some superb help from Hartmut Scherer and Kyle Smith.  However as with all software their could be some issues that I have not considered and therefore catered for - feedback appreciated.

Cheers,

Gareth

評比平均分數:Useful (1)
In reply to Gareth J Barnard

Re: Collapsed Topics for Moodle 2.3 released

Hartmut Scherer發表於

Hi Gareth,

Thank you for the final release of Collapsed Topics course format. After upgrading to Moodle 2.3 (Build: 20120701), I had no problems at all. I also like the added functionality of a multi-column main course page.

With kind regards,

Hartmut

評比平均分數:Useful (1)
In reply to Gareth J Barnard

Re: Collapsed Topics for Moodle 2.3 released

Allan Kealey發表於

Hi Gareth

I have used Collapsed Topics for quite a while and after upgrading to 2.3 it has started tro behave strangely.  The Title at the top of the course is removes and several error boxes appear.  I have tried several themes and it is the same.  I have included a screen shot.  Any ideas?

附件 Moodle error.jpg
In reply to Allan Kealey

Re: Collapsed Topics for Moodle 2.3 released

Gareth J Barnard發表於
Core developers的相片 Particularly helpful Moodlers的相片 Plugin developers的相片

Dear Allan,

Looking at the screen shot you have an undefined property $layoutcolumns.  This is a new attribute in the format_topcoll_settings table which is installed when Collapsed Topics is installed for the first time.  However if you had a 2.2 or less version or a 2.3 release candidate / beta installed did you follow the instructions in the Readme.txt file?

What did you have before / how did you install it?

I have noticed that the instructions should have 'format_topcoll_settings' and not 'topcoll_settings' in places.

Cheers,

Gareth

In reply to Gareth J Barnard

Re: Collapsed Topics for Moodle 2.3 released

Jake Kramer發表於

Hi Gareth,

Thanks for the updated release! I'm having trouble installing, as per the attached screenshot.

I tried manually uninstalling the previous version of Collapsed Topics previously, but apparently Moodle still thinks the format is installed. Both the course/format/topcoll folder, and all format_topcoll_* tables in the database are removed.

Thanks so much for any help.

-Jake

In reply to Jake Kramer

Re: Collapsed Topics for Moodle 2.3 released

Gareth J Barnard發表於
Core developers的相片 Particularly helpful Moodlers的相片 Plugin developers的相片

Dear Jake,

No worries 微笑.

The issue you are experiencing is with the version of Moodle you are using. I set the dependancy on the version of 2.3 that was published on the 1st July 2012 because that was the one I specifcially tested against.  

So, you can either upgrade to the latest 2.3.1 or edit 'version.php' in the topcoll folder and change the '.01' to '.00' to indicate the 26th June 2012 version of Moodle 2.3 - which should work but there might be some oddities - as I say I did not test against that version.

If you are uninstalling then I'm not quite sure why you are getting the message if the topcoll folder and database tables have been removed.  Perhaps it is the entry in the 'config_plugins' table - please see my readme about this table under the 'uninstallation' section.

I hope this makes sense and why I had to set the dependancy, cheers,

Gareth

評比平均分數:Useful (1)
In reply to Gareth J Barnard

Re: Collapsed Topics for Moodle 2.3 released

Jake Kramer發表於

Ah, silly me. Thanks for the quick and helpful reply!

Jake

In reply to Jake Kramer

Re: Collapsed Topics for Moodle 2.3 released

Gareth J Barnard發表於
Core developers的相片 Particularly helpful Moodlers的相片 Plugin developers的相片

No worries Jake, please rate my comment as 'useful' if you thought it was 微笑

Cheers,

Gareth

In reply to Gareth J Barnard

Re: Collapsed Topics for Moodle 2.3 released

David McCarthy發表於

Hi Gareth

Just to complete the circle (so to speak), I've had a problem (discussion at: http://moodle.org/mod/forum/discuss.php?d=206603#p900859), and I've (incorrectly) logged an issue (at: http://tracker.moodle.org/browse/CONTRIB-3765)

I've sent a message to try to straighten things out.

Issue: Moodle reports "Table "format_topcoll_settings" does not exist" ... after upgrade to 2.3.7 (using Moodle 2.3.1)

In reply to David McCarthy

Re: Collapsed Topics for Moodle 2.3 released

Gareth J Barnard發表於
Core developers的相片 Particularly helpful Moodlers的相片 Plugin developers的相片

Dear David,

I've taken over CONTRIB-3765 and put a comment that I hope will sort things out for you.

Please let me know what more I can do to help.

Regards,

Gareth

評比平均分數:Useful (1)
In reply to Gareth J Barnard

Re: Collapsed Topics for Moodle 2.3 released

David McCarthy發表於

Hi Gareth.

Original prob. was truncated display after upgrade to M2.3.1 (see pgs 1 & 2-5 of pdf). Topcoll release was 2.2.1.1 (original Moodle 2.2 (Build: 20111205)).

Scott Karren suggested Topcoll could be out of date (though had run plugin check). Downloaded & installed rel 2.3.7 and then get error message when trying to open courses with Topcoll activated (see pg 6).

Will now attempt your instructions and report back.

In reply to David McCarthy

Re: Collapsed Topics for Moodle 2.3 released

Gareth J Barnard發表於
Core developers的相片 Particularly helpful Moodlers的相片 Plugin developers的相片

Dear David,

That makes sense as that version did not have a database.  In which case the instruction 'Remove the entry for 'format_topcoll' ('plugin' attribute) in the table 'config_plugins'' will work for you.

Perhaps I was not as clear as I could have been in the upgrade instructions in the readme for moving from a previous version.  However, I am going to investigate an automated way of making this happen and see if Moodle can tell me it's doing an upgrade so I can make logic decisions based upon that.

Cheers,

Gareth

評比平均分數:Useful (1)
In reply to Gareth J Barnard

Re: Collapsed Topics for Moodle 2.3 released

David McCarthy發表於

Gareth - problem is semi-resolved, but I'm getting some weird behavior, comparing my test Student login and the Admin login ... which has me confused:

Original course: Now looks OK with collapsed topics for Student, but when viewed as Admin, the sidebars appear and then disappear as the screen refreshes, so the collapsed course fills the whole screen.

Copy 1: This version works perfectly - same settings as Original

Copy 2: This looks as if it will be OK for Admin when editing is ON, but when OFF, collapsing disappears - difference in settings: layout is set to show one section per page (the other two are 'show all on one page')

I've checked the db, and the settings are identical for all three (see pdf)

The PDF shows the differences (or not) between Student login and Admin login ... Student are left-hand images, Admin are right-hand images.

PS Caches have been purged.

In reply to David McCarthy

Re: Collapsed Topics for Moodle 2.3 released

Gareth J Barnard發表於
Core developers的相片 Particularly helpful Moodlers的相片 Plugin developers的相片

Dear David,

It looks like the table is there which is good 微笑.

For the 'original course' - I think there could be an 'auto hide' option for blocks for users on a per course per user basis - and hence only for 'admin' I will check this out.

For 'copy one' this looks good.

For 'copy two' this is intentional as the "one section per page" option shows sections with content in editing mode and hence my feeling to show the toggles as that is their purpose and does not show the content in normal mode but just links to the actual sections thereby defeating the need for a toggle as it would be pointless and indeed fustrating to toggle a single line link.  So I thought this would be the best functional implementation for this course setting.

I hope this makes sense, and I'll look at the blocks issue.  BTW are you using a custom theme and if so can I have a copy to test against?  If not what theme are you using?

Cheers and thanks,

Gareth

評比平均分數:Useful (1)
In reply to Gareth J Barnard

Re: Collapsed Topics for Moodle 2.3 released

Gareth J Barnard發表於
Core developers的相片 Particularly helpful Moodlers的相片 Plugin developers的相片

Dear David,

For 'Original' it looks like the block are there, just in the 'dock' on the far left of the screen.  This is new functionality I believe for Moodle 2.3 and applies to all users etc.

Please see: http://docs.moodle.org/23/en/Dock

This I believe should solve almost everything for you.  Please note that there is a slight issue with the course summary for section 0 not showing.  I will be making a release soon (no database changes) or you can replace 'renderer.php' with the attached as a straight replacement.

Cheers,

Gareth

評比平均分數:Useful (1)
In reply to Gareth J Barnard

Re: Collapsed Topics for Moodle 2.3 released

David McCarthy發表於

Gareth - Brilliant!

Hadn't noticed the docking feature - display now back to normal. Understand point about course layout selection.

Theme is Serenity ... with two revised images (the header and the background for the breadcrumb bar), and 4 minor CSS changes to alter the text (font, size), and a little orange bar (our 'corporate' colour) in the header of each sidebar block.

Added new renderer.php ... not entirely sure what difference it made!

So, equilibrium here is restored - myself and partner very releived. Thanks for your very prompt & effective help - it has been very much appreciated.

In reply to David McCarthy

Re: Collapsed Topics for Moodle 2.3 released

Gareth J Barnard發表於
Core developers的相片 Particularly helpful Moodlers的相片 Plugin developers的相片

Dear David,

No worries.  I'm glad it is now sorted.  I will close the tracker as resolved.  It  has sparked a slight update which will be out soon with the 'renderer.php' - which is not obvious but ensures the section summary for the general section (section 0) is shown.

If you wish, please mark my posts has 'useful' as it helps my Moodle status.

Thanks for the theme information - always useful to check against.

Cheers,

Gareth

評比平均分數:Useful (1)