Themes

 
 
Lei Zhang
Decaf - Moodle 2 Theme
 
I created a new moodle 2 theme called "Decaf", you can view the details of this theme from my blog , you may download it from the themes repository or from my blog.

The settings block on this theme has been moved to top of the page to improve usability, performance info is being reworked to a bar that will always stick at bottom of the page to emphasize the importance of performance.

Below is the screenshot of this theme.




 
Average of ratings:Useful (5)
Martin in black and white
Re: Decaf - Moodle 2 Theme
Group DevelopersGroup Documentation writersGroup Moodle HQGroup Particularly helpful MoodlersGroup Testers
Yay, Lei, great to see people starting to see the potential of the new themes for some radical reworking of the interface!
 
Average of ratings: -
Lei Zhang
Re: Decaf - Moodle 2 Theme
 
Martin, thanks for the Moodle 2 theme engine, it is definitely more flexible and pleasure to work with. More people will realise the potential, we will see some beautiful new themes coming out.
 
Average of ratings: -
Picture of Rolley Tickner
Re: Decaf - Moodle 2 Theme
 
Nice work, looks really clean and snazzy.
 
Average of ratings: -
Picture of Dan Humpherson
Re: Decaf - Moodle 2 Theme
 
I think the nicest 2.0 theme i've seen so far. Really leaving old Moodle behind.

Great work.
 
Average of ratings: -
Lei Zhang
Re: Decaf - Moodle 2 Theme
 
Thanks, Dan.

I've updated the theme icon sets with new smiley faces since recently code changes have added this function back again.

You can download this from my blog.

 
Average of ratings: -
Lei Zhang
Re: Decaf - Moodle 2 Theme
 
I have made some further improvements on decaf, it's certainly looks much better than my initial release. Thanks everyone for the comments/feedbacks that I have received from the theme contest.

You can check it out the demo onmy site or download it from the theme repository to install it.

I have used Shaun Daubney's Aardvark theme home icon, add it to the moodle awesome bar. Hopefully it improves usability further for some users.







 
Average of ratings: -
Picture of Teresa Gibbison
Re: Decaf - Moodle 2 Theme
Group Moodle Course Creator Certificate holdersGroup TestersGroup Translators
WOW!!

I absolutely love this theme, well done Lei and thanks!

Teresa tongueout
 
Average of ratings: -
Lei Zhang
Re: Decaf - Moodle 2 Theme
 
smile Thanks, Teresa. I'm glad you like it.
 
Average of ratings: -
Lei Zhang
Re: Decaf - Moodle 2 Theme
 
I have added an option in decaf theme setting page to show/hide navigation blocks, you can choose whether to have the traditional blocks or not to. Hope this provide some flexibilities for some users.

Just be aware that this update will only works with latest moodle 2 theme engine, otherwise you'll encounter an empty config page.

 
Average of ratings: -
Lei Zhang
Re: Decaf - Moodle 2 Theme
 

My colleague, Paul Nicholls, has added another option to Decaf theme to hide navigation block. Moodle awesome bar will have both navigation and settings block options display on top of the page, having this option available for users will add some flexibilty for people who might used to default Moodle 2.0 interface.

I'll update my Moodle theme contrib on moodle.org, you may also download decaf theme from my blog.


 
Average of ratings: -
Picture of Ganesh Natarajan
Re: Decaf - Moodle 2 Theme
 

Hi Lei,

Download link in the blog is not working. It is throwing up a file not found error.

- Ganesh

 
Average of ratings: -
Lei Zhang
Re: Decaf - Moodle 2 Theme
 

Thanks, Ganesh. I updated file link but forgot to clear the cache on my website. It should works now.

-Lei

 
Average of ratings: -
Picture of Ganesh Natarajan
Re: Decaf - Moodle 2 Theme
 

Thanks Lei. Downloaded the theme. Very nice!

- Ganesh

 
Average of ratings: -
Picture of Ben Dunford
Re: Decaf - Moodle 2 Theme
 

Hi Lei, this theme looks fantastic - exactly what I'm looking for. There are just a couple of problems that are appearing on my test site - I'm not sure if it's a problem with my configuration or something else...

I get the error "Coding error detected, it must be fixed by a programmer: block_manager has not yet loaded the blocks, to it is too soon to request the information you asked for." when I enable the theme.

The menu also displays in the wrong place on some of the pages, as in the attached screenshot. This appears to happen on all pages that don't have a block on the right hand side (e.g. calendar).

Any suggestions welcome!


 
Average of ratings: -
Picture of Joseph Rézeau
Re: Decaf - Moodle 2 Theme
Group DevelopersGroup Particularly helpful MoodlersGroup TestersGroup Translators

Same problem here:

Coding error detected, it must be fixed by a programmer: block_manager has not yet loaded the blocks, to it is too soon to request the information you asked for.

and same display problem as mentioned by Ben (menu covering page display)

tried today on Moodle 2.0 RC2 (Build: 20101117)

 
Average of ratings: -
Picture of Dietmar Wagner
Re: Decaf - Moodle 2 Theme
 

Hi Lei,

please try out the attached file. It should solve the display problems.

 

Best regards
Dietmar

 
Average of ratings: -
Lei Zhang
Re: Decaf - Moodle 2 Theme
 

Thanks, Dietmar.

I am going to release an update soon with a fix for this style issue and along with other changes.

 
Average of ratings: -
It's only an avatar...
Re: Decaf - Moodle 2 Theme
Group DevelopersGroup Documentation writersGroup Particularly helpful MoodlersGroup Testers

Hi Lei,

I have just approved the theme, Decaf, but could you, when you have time, please take out the MAC type files from the zip as they are not needed and may cause some Moodlers to upload them to their server and end up with problems.

Nice theme...thanks for sharing it.

Mary

 
Average of ratings: -
Lei Zhang
Re: Decaf - Moodle 2 Theme
 

Thanks Mary for your advice, I've removed the Mac hidden files from the zip file, I'll try to remember that next time when I release new updatessmile

-Lei

 

 
Average of ratings: -
Lei Zhang
Re: Decaf - Moodle 2 Theme
 

Ben, Joseph

I have just released a new version that fixed both issues, please give it another gosmile

Note: Only tested on Moodle 2.0 RC2 (Build: 20101117).

 
Average of ratings: -
It's only an avatar...
Re: Decaf - Moodle 2 Theme
Group DevelopersGroup Documentation writersGroup Particularly helpful MoodlersGroup Testers

Hi Lei,

Now that problem is fixed the theme looks fantastic! I would love to know how to adapt the menu in a theme I'm creating. The fact you have managed to style them custommenu and use the same content but not rely on the YUI js is facinating! How is it done? I noticed a lot of stuff to do with the menus in renderers.php, so I am gathering it's that which is making the menu work.

I've approved the theme again by the way...after the changes you made, but I noticed the MAC files are still there! LOL smile

Mary

EDIT: I just remembered when viewing the theme I got this message in the top right sideblock:

Notice: Trying to get property of non-object in C:\wamp\www\moodle\theme\decaf\renderers.php on line 203

Does this make sense?


 
Average of ratings: -
Picture of Paul Nicholls
Re: Decaf - Moodle 2 Theme
Group DevelopersGroup Particularly helpful Moodlers

Hi Mary,
As you suspected, the theme makes use of custom renderers to achieve the dropdown menu (and hiding the Settings and Navigation blocks, if you choose to do so).  It shouldn't be too hard to work it into your own theme - in fact, Lei and I have built two themes with the dropdown menu (Decaf plus a branded theme for use here at the University of Canterbury).  Let us know how you get on - we'd love to see more themes employing this kind of menu smile

As for the message you're getting, do you have any custom (i.e. non-core) blocks in use?  Looking at the code, it's probably either a block that doesn't have a "class" attribute (which seems unlikely), or your Decaf theme settings haven't been saved properly - so that's another thing to try (just to to Site Administration -> Appearance -> Themes -> Decaf and save your settings, and then maybe clear Moodle's caches under Site Administration -> Navigation -> Purge all caches).  Let us know if you still get this error after that, and we'll take it from there...

Cheers,
Paul

 
Average of ratings: -
Lei Zhang
Re: Decaf - Moodle 2 Theme
 

Like Paul mentioned you might have some of old theme cached in your moodle installation, the other alternative way of prevent this happened again is insert the following line into your config file,

// Prevent theme caching
$CFG->themerev = -1; // NOT FOR PRODUCTION SERVERS!

this especially useful if you're developing/testing themes.

Again, sorry about the Mac hidden files in the theme package. My download link on my blog has a cache system to speed page loading up, I have disabled it to prevent it happen again. You might download the file before I had it turn off, just try download it again, let me know if you still having trouble.

-Lei

 
Average of ratings: -
Picture of Ben Dunford
Re: Decaf - Moodle 2 Theme
 

Hi Lei,

With some limited testing, that is fixed and looks great. Thanks again - this is the best theme I can find on here.

Ben

 
Average of ratings: -
Picture of giang nguyen
Re: Decaf - Moodle 2 Theme
 

Hi Lei,

i purged all caches, but it not ok.

Can your help me?

Thank alot,

 
Average of ratings: -
Picture of Thomas Schröder
Re: Decaf - Moodle 2 Theme
 

Hello,

i just installed Moodle using CVS (Latest_Weekly) and I get only an empty page after selecting the Decaf-Skin.

Any hint, where to look?

Thank you, Thomas

 
Average of ratings: -
It's only an avatar...
Re: Decaf - Moodle 2 Theme
Group DevelopersGroup Documentation writersGroup Particularly helpful MoodlersGroup Testers

Turn DEBUGGING ON and then post any ERROR messages you get.

Thanks

Mary.

 
Average of ratings: -
Picture of Thomas Schröder
Re: Decaf - Moodle 2 Theme
 

ok, after turning on debugging, i get many blocks of the following:

 

enableavailability option was changed; rebuilding cache for course 32

* line 3112 of /lib/moodlelib.php: call to debugging()
* line 1368 of /lib/navigationlib.php: call to get_fast_modinfo()
* line 47 of /course/format/topics/lib.php: call to global_navigation->load_generic_course_sections()
* line 1340 of /lib/navigationlib.php: call to callback_topics_load_content()
* line 242 of /theme/decaf/lib.php: call to global_navigation->load_course_sections()
* line 200 of /theme/decaf/lib.php: call to decaf_expand_navigation->initialise()
* line 60 of /theme/decaf/lib.php: call to decaf_expand_navigation->__construct()
* line 65 of /theme/decaf/lib.php: call to decaf_topsettings_renderer->navigation_node()
* line 65 of /theme/decaf/lib.php: call to decaf_topsettings_renderer->navigation_node()
* line 67 of /theme/decaf/lib.php: call to decaf_topsettings_renderer->navigation_node()
* line 27 of /theme/decaf/lib.php: call to decaf_topsettings_renderer->navigation_node()
* line 41 of /theme/decaf/layout/general.php: call to decaf_topsettings_renderer->navigation_tree()
* line 627 of /lib/outputrenderers.php: call to include()
* line 585 of /lib/outputrenderers.php: call to core_renderer->render_page_layout()
* line 63 of /theme/index.php: call to core_renderer->header()


this line shows up many times:

* line 3115 of /lib/moodlelib.php: call to get_fast_modinfo()

this seems to repeat and repeat - so the page never finishes loading.

Hope this helps - many thanks in advance.

thomas

 
Average of ratings: -
Lei Zhang
Re: Decaf - Moodle 2 Theme
 

Hi Thomas,

You'll need update your Moodle 2 to the latest version in order to make the error go away.

-Lei

 
Average of ratings: -
Picture of Thomas Schröder
Re: Decaf - Moodle 2 Theme
 

Hi Lei,

after reading the forum I got aware of this solution. We run moodle with the actual weekly-build from the CVS repos.

So the actual "weekly" is not enough? Is it wise to update a production site to anything newer? Or will the necessary updates be included in the next weekly update?

Thomas

 
Average of ratings: -
It's only an avatar...
Re: Decaf - Moodle 2 Theme
Group DevelopersGroup Documentation writersGroup Particularly helpful MoodlersGroup Testers

If I read your initial post correctly, Thomas, and you did download Moodle via CVS, you can update this every day just by right clicking on the Moodle folder and selecting CVS Update, that's if you are using Tortoise, and of course only if I understood you correctly in the first place!

But if it's on a production site it might be different, but either way you will, more than probable, be aware of this page which explains all.

Cheers

Mary

 
Average of ratings: -
It's only an avatar...
Re: Decaf - Moodle 2 Theme
Group DevelopersGroup Documentation writersGroup Particularly helpful MoodlersGroup Testers

Hi Thomas,

If I were you I would delete decaf theme from your Moodle 2.0 theme folder and re install it using a fresh download from the Themes Repository HERE.

Then try to select the theme in Theme selector once more. Let me know how you get on.

Mary

 
Average of ratings: -
Just wondering . . .
Re: Decaf - Moodle 2 Theme
Group Particularly helpful Moodlers

Does anyone have a decaf install I could look at, preferably pretty much out of the box, but anything will do.

-Derek

 
Average of ratings: -
It's only an avatar...
Re: Decaf - Moodle 2 Theme
Group DevelopersGroup Documentation writersGroup Particularly helpful MoodlersGroup Testers

Hopefully you shluld be able to view DECAF theme HERE I'm just uploading a copy to my webserver. Give a few minutes if it does not show first time.

You can download the DECAF theme from HERE

Cheers

Mary

 
Average of ratings: -
Just wondering . . .
Re: Decaf - Moodle 2 Theme
Group Particularly helpful Moodlers

Hmm.  Thanks Mary.

 
Average of ratings: -
Picture of Dirk Weller
Re: Decaf - Moodle 2 Theme
 

An absolutetely wonderful theme - thank you very much.

One question, though: Is there a way to show hidden objects (e.g. course sections) in another color? I've been looking around the CSS files of the theme but wasn't able to find any definition for .hidden, so I added what I could:

.path-course-view .course-content .hidden .left  { color:#EEE; }

.path-course-view .course-content .hidden  { color:#EEE; }

these dimm the number and the headline of the section, but not the objects in the section.

Thank you very much

Dirk

 
Average of ratings: -
Lei Zhang
Re: Decaf - Moodle 2 Theme
 

Dirk,

Try the following line in your css stylesheet:

.course-content ul.topics li.hidden .left{color:#EEE;}
.course-content ul.topics li.hidden .sectionname{color:#EEE;}
.course-content ul.topics li.hidden a.dimmed{color:#EEE;}

I'll include this change in the next release of decaf theme, thanks for your feedback.

 
Average of ratings: -
Picture of Dirk Weller
Re: Decaf - Moodle 2 Theme
 

Thank you for your help!

I now have the following lines in selected.css:

.path-course-view .dimmed_text img {opacity:0.3;filter: alpha(opacity='30');}
.path-course-view .dimmed img {opacity:0.3;filter: alpha(opacity='30');}
.path-course-view .course-content .hidden  { color:#E1E1E1; }
.course-content ul.topics li.hidden .left{color:#EEE;}
.course-content ul.topics li.hidden .sectionname{color:#EEE;}
.course-content ul.topics li.hidden a.dimmed{color:#EEE;}

and they do what they are supposed to do in course-rooms. The setting does not work on the front page of moodle.

Any ideas?

 
Average of ratings: -
Picture of Richard Oelmann
Re: Decaf - Moodle 2 Theme
Group Particularly helpful MoodlersGroup Testers

Hi Lei,

Love the way the 'awesomebar' takes the settings and admin menus etc into a horizontal drop down.

is there anyway to integrate the Moodle2 custom menu into the awesomebar menu? I'm on a learning curve with the moodle2 themes - I'm only just starting to look at the renderers etc. - and am happy to have a play if you can point me in the right direction.

Many thanks,

Richard

 
Average of ratings: -
Picture of Richard Oelmann
Re: Decaf - Moodle 2 Theme
Group Particularly helpful MoodlersGroup Testers

Think I have managed to achieve this - I have used your awesomebar in a reworking of Mary's Aardvark for Moodle2 for a theme I'm trying to create

<div id="awesomebar">
<?php
$topsettings = new krystle_topsettings_renderer($this->page, null);
echo $topsettings->navigation_tree($this->page->navigation);
echo $custommenu;
echo $topsettings->settings_tree($this->page->settingsnav);
?>
</div>

 

but although I've managed to adjust the css the way I want it for most things I have one item I haven't been able to locate the css for to correct and wondered if you, or anyone else, might be able to help.

screenshot

The custom menu item with a submenu (Moodle development) does not left align as all the other items do.

I have tried using Firebug to isolate the css required, and have made sure theme designer mode is on and have cleared all caches but am obviously missing something somewhere.

 

Thanks

Richard


 
Average of ratings: -
Lei Zhang
Re: Decaf - Moodle 2 Theme
 

Hi Richard,

Thanks for your comments. When I original designed Decaf theme, I thought about having custom menus next to other menus. I like to keep things simple and clean, but it's very hard to control how user use your theme, in particular with custom menu, they might put extremely long text in the menu, it's hard to define the width of the menu in your stylesheet unless you know what exactly they will have in the custom menu field.

Back to your css problem, if you could send me a copy of your theme (lei.zhang at canterbury.ac.nz), I'll have a look it for you, it's hard to diagnose css errors from screenshots.

HTH,

Lei

 

 
Average of ratings: -
Picture of Troy Harris
Re: Decaf - Moodle 2 Theme
 

Could anyone please direct me to which file/line I need to edit to float an image(logo) instead of it showing a text version of the site name. The image is 362x77 and i want it to float from left maybe 50px or something like that.

Thank you!

 
Average of ratings: -
It's only an avatar...
Re: Decaf - Moodle 2 Theme
Group DevelopersGroup Documentation writersGroup Particularly helpful MoodlersGroup Testers

Themes FAQ and CSS FAQ are good starting points

However, to answer your question.

Files needed:

decaf/layout/frontpage.php and decaf/layout/general.php

PHP Code to look for:

(delete the part highlighted in red)

<h1 class="headermain"><?php echo $PAGE->heading ?></h1>

Add Logo place holder:

Add the following HTML code which is highlighted in blue.

<h1 class="headermain"><div id="logo"></div></h1>

You will need to make the same changes to both frontpage.php and general.php. That done the next stage is adding the CSS.

CSS File needed:

decaf/style/core.css

At the end of core.css file add the following CSS mark-up. (Be sure to use a text editor like Notepad as a word processor wont work.)

#logo {float: left; clear: both; width: 362px; height: 77px; position: relative; left: 50px; margin: 0; padding:0; background: url([[pix:theme|logo]]) left top no-repeat;}

Hopefully that should fix it. If you get stuck let me know.

Oh, nearly forgot! be sure there is a logo.png or logo.jpg or logo.gif (matters not what the file type is) in the pix folder of the decaf theme

Cheers

Mary

EDITED: I have just edited this today (12/8/2012) I found 2 typos where I put a colon :  instead of a semi-colon ; in the CSS for the logo.

Please accept my apologies if you have had problems with this!

 
Average of ratings:Useful (1)
Picture of Troy Harris
Re: Decaf - Moodle 2 Theme
 

Thank you very much! I did not go the css route and just changed frontpage.php to include

<h1 class="headermain"> <img src="http://192.168.3.161/theme/decaf/pix/toplogo.jpg" style="position:absolute;top:10px;left:10px;"></h1>

and then dropped the image in the pix directory and all works.

Do you think this will work out ok or do you recommend I change the CSS and do it the way as you described?

*********************************** Edited **********************

I went back and redid it the way you described, adding it to the css, and everything is working great.

Thank you again!

 
Average of ratings: -
It's only an avatar...
Re: Decaf - Moodle 2 Theme
Group DevelopersGroup Documentation writersGroup Particularly helpful MoodlersGroup Testers

Both work, but the better way is via the CSS because inline styles are frowned upon in Moodle!

 
Average of ratings: -
Self portrait on a bad day! Very rare!
Re: Decaf - Moodle 2 Theme
 

Thank you for the helpful comments on installing a Logo.

I have attempted to follow the CSS route as commended above but I have been unsuccessful. Upon checking my Front Page using Firefox Web Developer Toolbar I discovered that core.css was not included.

My solution was to include core.css into frontpage.php using an absolute link and also using an absolute link to logo.png in core.css itself.

Can someone please confirm my discovery? Any comments would be appreciated.

 

Regards

 
Average of ratings: -
Picture of Bianca Wirth
Re: Decaf - Moodle 2 Theme
 

Hi, this didn't work exactly for me for some reason - the CSS and PHP changes were recognised but it didn't seem to recognise the image location ([[pix:theme|logo]]).  The image definitely was there, the pix folder is the default one and the CSS appeared correctly in firebug but it wouldn't show the logo.

So I did it this way:

  1. Update the two php files as per Mary's instructions
  2. Copy Mary's CSS code to Site Administration -> Appearance -> Themes -> Decaf -> Custom CSS field.
  3. Change the CSS image URL location from ([[pix:theme|logo]]) to ().
 
Average of ratings: -
Picture of Jean-Marc Doucet
Re: Decaf - Moodle 2 Theme
Group Moodle Course Creator Certificate holders

Hi Mary

I try to put a image on the head of my site.

I made your clear tuto for it but the result is : no image & no text .

 
Average of ratings: -
Me
Re: Decaf - Moodle 2 Theme
Group Moodle Course Creator Certificate holders

Hello Jean-Marc,

To help you, can I ask some questions:

  • Which tutorial did you use? Could you give the link?
  • What code did you add to your theme and where?
  • What does choice*1 and choice*2 mean on your screenshot?

Lastly, what are you trying to achieve? Do you want the image and the text? Or do you want the image and no text? Where do you want the image to sit (to the left, middle, right)?

 
Average of ratings: -
Picture of Jean-Marc Doucet
Re: Decaf - Moodle 2 Theme
Group Moodle Course Creator Certificate holders

Hello

1) Thank @Joseph ! you avoids me the load to copy out your  information wink

2)the tuto :

3) May be 'option' is better than 'choice':

I would like put image after the text OR under the text .... When I made the tuto the text is erased and the image is not posted.

 

JMDoucet

 
Average of ratings: -
It's only an avatar...
Re: Decaf - Moodle 2 Theme
Group DevelopersGroup Documentation writersGroup Particularly helpful MoodlersGroup Testers

Hi JMDoucet

I have just noticed 2 typos in the CSS for the logo in the discussion thread you refer to, it should read...

#logo {float: left; clear: both; width: 362px; height: 77px; position: relative; left: 50px; margin: 0; padding:0; background: url([[pix:theme|logo]]) left top no-repeat;}

Previously I had added a : by mistake! I have corrected it now!

 
Average of ratings: -
Picture of Joseph Rézeau
Re: Decaf - Moodle 2 Theme
Group DevelopersGroup Particularly helpful MoodlersGroup TestersGroup Translators

Further to another post by Jean-Marc on the French-speaking forum, I confirm that favicon does not work in the decaf them in Firefox 13. It does work in MSIE 9 and Chrome 20.

Actually, Firefox does not display any favicon, not even the default Moodle icon. If a custom favicon is placed in theme/decaf/pix, it will show up in MSIE 9 and Chrome 20 but not in Firefox. See attached example.

Joseph


 
Average of ratings: -
Kaptan
Re: Decaf - Moodle 2 Theme
 

For me it seems like I need to not only put the favicon.ico file in the themes/decaf/pix folder, but also in the root of the moodle installation (ie. /var/www/moodle)

I discovered this because in my nginx error log files I get this message:

2012/07/05 09:26:46 [error] 6295#0: *2541 open() "/var/www/moodle/favicon.ico" failed (2: No such file or directory)

After copying the favicon.ico file into /var/www/moodle/ and setting the correct permissions, I then purge all cache (Site Administration -> Navigation -> Purge all caches) and then favicon.ico appears to load in all browsers.

 
Average of ratings: -
Picture of Ben Dunford
Grader Report
 

Hi Lei, I've been using your theme now for a bit now and it's great. The only thing that isn't quite right is on the grader report (Course Administration > Grades) the top menu / awesome bar doesn't show.

This didn't matter too much until I started adding a header image - but it seems that the grader report doesn't use the general.php layout, so my grader page looks a bit different to the others.

Any ideas, or is it just something wrong with my setup?

 
Average of ratings: -
Picture of Richard Oelmann
Re: Grader Report
Group Particularly helpful MoodlersGroup Testers

Ben,

I had the same problem with one of my themes (krystle) until I realised that the config.php was pointing report style pages at a different layout. On mine I needed to change it to default.php, but if you go into the config.php for decaf and look at what layout the report type pages are being pointed at and change that to the same as the majority of other pages, that may solve the problem.

Richard

 
Average of ratings: -
Picture of Ben Dunford
Re: Grader Report
 

Thanks Richard, it works!

I had checked the list on http://docs.moodle.org/en/Development:Themes_2.0 thinking it must be something like that, but the 'report' layout isn't listed on there. Is there an updated list of layouts somewhere else?

Thanks again for your help.

 
Average of ratings: -
Picture of Richard Oelmann
Re: Grader Report
Group Particularly helpful MoodlersGroup Testers

Ben,

The layouts are created in the theme, so a designer can create as few, or as many, different layouts as they wish/require, so as far as I know there isn't a standard list of layouts.

Richard

 
Average of ratings: -
It's only an avatar...
Re: Grader Report
Group DevelopersGroup Documentation writersGroup Particularly helpful MoodlersGroup Testers

There is a report.php in both the base & canvas themes' layout folder. If you look at it there are some special id/class elements added to the divs, which suggests it's made for a specific purpose.

I don't recall anything being mentioned about this in the forums. I was only aware that this report.php had been added to the base theme and canvas themes and is also added to (I think) all the core themes in the Moodle install.

Hope this helps?

Mary

 

 
Average of ratings: -
Lei Zhang
Re: Grader Report
 

@Ben, @Richard, @Mary,

Thanks. I have released a new version that fixed missing menus in the grader report page.

Cheers,

Lei

 
Average of ratings: -
It's only an avatar...
Re: Grader Report
Group DevelopersGroup Documentation writersGroup Particularly helpful MoodlersGroup Testers

Changes approved!

Thanks Lei

Mary

 
Average of ratings: -
Picture of Amir Elion
Decaf - Image Logo in Header?
Group Translators

Hi Lei,

Great theme - thanks a lot.

I am trying to replace the H1 text on the header with a png image logo. Can this be done via the custom css? If not - can someone help with the required code changes in the theme files? - 2.0 theme requires a steeper learning curve and I am still struggling.

Thanks,
Amir

 
Average of ratings: -
It's only an avatar...
Re: Decaf - Image Logo in Header?
Group DevelopersGroup Documentation writersGroup Particularly helpful MoodlersGroup Testers

I explained how to do this HERE

Hope it helps?

Mary

 
Average of ratings: -
Picture of Amir Elion
Re: Decaf - Image Logo in Header?
Group Translators

Sorry I missed it blush

Worked like a charm (also needed to clear theme caches of course).

Thanks,
Amir

 
Average of ratings: -
Picture of Omar Colocci
Re: Decaf - Moodle 2 Theme
 

I wonder if anyone knows where to download this theme from since the link from the Themes section is broken and so is Lei's blog.

This theme looks great!!!!

 
Average of ratings: -
It's only an avatar...
Re: Decaf - Moodle 2 Theme
Group DevelopersGroup Documentation writersGroup Particularly helpful MoodlersGroup Testers

Hi Omar,

Lei's blog is working OK, but all downloads links are broken.

I've added 2 downloads here for the time being, for Decaf and Decaf-v2 until I can find out what the problem is, and get the links working again.

Hope this is OK?

Mary

 
Average of ratings: -
Picture of sergio balaguer
Re: Decaf - Moodle 2 Theme
 
Monitor at low resolutions, the TinyMCE editor cut. With other themes does not happen.

 
Average of ratings: -
It's only an avatar...
Re: Decaf - Moodle 2 Theme
Group DevelopersGroup Documentation writersGroup Particularly helpful MoodlersGroup Testers

Does the TinyMCE do this in everypage or Is it only in Quiz, which is in your example.

To me it looks like a page layout setting which is incorrect, but could also be the Quiz which is forcing a wrong layout.

I'll see if I can replicate this in my server.

Which browser and what resolution were you using in this example?

Mary

 
Average of ratings: -
Picture of sergio balaguer
Re: Decaf - Moodle 2 Theme
 
It always happens with any browser, such as when you qualify a questionnaire. Pop-up windows are smaller and it happens

 
Average of ratings: -
It's only an avatar...
Re: Decaf - Moodle 2 Theme
Group DevelopersGroup Documentation writersGroup Particularly helpful MoodlersGroup Testers

But WHAT resolution are you viewing these pages?

 
Average of ratings: -
Picture of sergio balaguer
Re: Decaf - Moodle 2 Theme
 
With all the resolutions appears much space. With other themes does not happen. With 1024 * 768 is impossible to see full tinymce
 
Average of ratings: -
It's only an avatar...
Re: Decaf - Moodle 2 Theme
Group DevelopersGroup Documentation writersGroup Particularly helpful MoodlersGroup Testers

TinyMCE works fine in Decaf theme on my version of Moodle. I even set up a Quiz to check out the layout and the page works fine.

It may be that you are not using the updated theme or your version of Moodle is not up to date.

 
Average of ratings: -
Lei Zhang
Re: Decaf - Moodle 2 Theme
 

@serigio, try clear your browser cache and purge moodle cache;

the other possibility would be if you have modefiy the original core themes, Decaf is based on base and canvas theme, so any changes you made on base and canvas will have affect on decaf theme too.

 
Average of ratings: -
Mr. Chris Westcott
Re: Decaf - Moodle 2 Theme
 

On my 13 inch macbook, some of the texboxes get cut off and text flows to the edge of the boxes, and can not be seen.  Because the box is cut off, I can not adjust the size of the text box. Where can i make the following adjustments?

 
Average of ratings: -
Lei Zhang
Re: Decaf - Moodle 2 Theme
 

@Omar,@Mary I have fixed the broken link now.

 
Average of ratings: -
It's only an avatar...
Re: Decaf - Moodle 2 Theme
Group DevelopersGroup Documentation writersGroup Particularly helpful MoodlersGroup Testers

Great! Thanks

Mary

 
Average of ratings: -
Picture of William Ratto
Re: Decaf - Moodle 2 Theme
 

Hi Lei,

I'm feeling a little dumb here LOL. I can't seem to find the working link to download Decaf, and I can't find it in the theme area either.

What am I missingsmile

William

 
Average of ratings: -
Picture of Richard Oelmann
Re: Decaf - Moodle 2 Theme
Group Particularly helpful MoodlersGroup Testers

Hi William,

This is the link from Lei's blog page for decaf

Hope that works for you

Richard

 
Average of ratings: -
It's only an avatar...
Re: Decaf - Moodle 2 Theme
Group DevelopersGroup Documentation writersGroup Particularly helpful MoodlersGroup Testers

That's my fault William. The link got changed and I didn't approve it. I am sure I did the when Lei told me he had changed fixed the download link. But it looks like the file name has changed again. Anyway...the is approved and once more in the Moodle Themes repository.

Cheers

Mary

 
Average of ratings: -
Lei Zhang
Re: Decaf - Moodle 2 Theme
 

Hi Mary,William,

I've updated decaf download link to github.com. For end-users, this means they will always get the most up-to-date release and link won't break again(assume github is not downsmile )

Regards,

Lei

 
Average of ratings: -
Picture of William Ratto
Re: Decaf - Moodle 2 Theme
 

Hi Mary, Ben, Lei,

You three seem to be the go to people here. (thank god for you 3).

I downloaded the decaf theme, uploaded to my theme area and went to theme selector and this is what my screen looks like:

The screen stays this way until I delete the theme from the theme repository. Then the theme area works again any ideas?

Thanks

William

 
Average of ratings: -
Picture of Richard Oelmann
Re: Decaf - Moodle 2 Theme
Group Particularly helpful MoodlersGroup Testers

Hi William,

I had the same problem when I had both Decaf and an aardvark-based theme I was working on both installed at the same time, the theme selector would work with one of them in place, but not with both, so there appeared to be some kind of clash going on between .

I put it down to a typo I thought I had made in one of the changes I was playing with at the time, but I can't remember where it was. I'll try to work back through and trace it to check if it was my typo or one in an originally downloaded theme to see if that can help you.

Richard

 
Average of ratings: -
Picture of Richard Oelmann
Re: Decaf - Moodle 2 Theme
Group Particularly helpful MoodlersGroup Testers

Hi William,

I think I've now loaded every moodle2 theme from the database onto my local host, including getting the current online version of decaf and any other themes I already had installed, including my own, and haven't been able to replicate the problem I'd previously had, and haven't been able to track it back into my own previous versions having corrected it when it happened.

As I said above, in my case, I'm sure it was a typo I'd made editing a theme other than decaf that caused the problem. I don't suppose that's much help after all, but maybe clears the possibility of one fault area smile

I'll keep trying over the weekend and let you know if I get anywhere further. Alternatively - maybe updating any themes you have installed might do the trick? Trying not to sound like a car mechanic who can't find a fault the driver knows is there!!! lol!!!

Richard

 

Edit - I think the problem I had was in the early work i had done on either Lamplite or Krystle, where Mary (the Moodle Themes guru!) helped me identify all the places you need to rename in a theme. I think from other posts you have made that you have used these themes of mine before - is it possible you still have an older version of one of them that may be casuing this clash???

Rich

 
Average of ratings: -
Picture of William Ratto
Re: Decaf - Moodle 2 Theme
 

Hi Richard,

I unistalled the aardvark based theme and re-installed the decaf and all seems to be working OK. I had to rename the zip decaf theme in my theme directory and that did the trick.

You are right the aardvark and the decaf theme can't be installed at the same time.

Thank you very much for the information.

BTW Richard I have been testing your Krystle theme, it's great,  good work.

William

 
Average of ratings: -
Picture of Richard Oelmann
Re: Decaf - Moodle 2 Theme
Group Particularly helpful MoodlersGroup Testers

Hi William,

Glad you've got to the bottom of this, but hopefully, if you make sure you've got the latest versions of everything, the problem should not happen.

As I said, I've updated all the themes I had - and downloaded others - and don't now have the problem. I have all the themes installed and all working fine. Should also add, I updated Moodle itself a few days ago as well.

Richard

 
Average of ratings: -
It's only an avatar...
Re: Decaf - Moodle 2 Theme
Group DevelopersGroup Documentation writersGroup Particularly helpful MoodlersGroup Testers

Hi William...the problem is in the Aardvark-Lite theme for Moodle 2.0. There is a reference to splash theme in aardvark_lite/layout/profileblock.php file.

This is more than likely causing the problem with the theme selector not working. If you turn debugging on, you will see what / where the error is.

HTH

Mary

 

EDIT: 21:48 - I've just checked my themes and all work with decaf. So you must have a theme with is conflicting with the decaf theme. If you downloaded any of my theme from Moodle site they are all working correctly. Just wondering if the aardvark-lite you added to Moodle 2. was the 1.9 theme!!!

 
Average of ratings: -
Picture of William Ratto
Re: Decaf - Moodle 2 Theme
 

Hi Mary,

Decaf theme is now working, and your right I deleted the aardvark-lite theme and all is working fine.

BTW could we start a new thread for Cafelite 2.0. I still think its a fantastic theme, but am having some problems with it. Let me know.

Willliam

 
Average of ratings: -
It's only an avatar...
Re: Decaf - Moodle 2 Theme
Group DevelopersGroup Documentation writersGroup Particularly helpful MoodlersGroup Testers

Yes do start a new thread...I need to know how you are getting on. I'm tearing my hair out with it at the moment! LOL

I'm thinking of rewriting it as the layout is all wrong, and I need base theme to carry it along, which it isn't at the present time.

Let me know what you want help with.

Mary

 
Average of ratings: -
Picture of William Ratto
Re: Decaf - Moodle 2 Theme
 

OK mary, I'mgoing to start a new thread and will call it cafelite 2.0.

I will send you screen shots as I encounter different things.

BTW cafelite is a great theme, so don't get discouraged!!!!!!!! I will help all I can smile

William

 
Average of ratings: -
Picture of William Ratto
Re: Decaf - Moodle 2 Theme
 

Hi Lei,

OK decaf is loaded and working great, now this what I would like to do if you can help me.

1. In the header I would like to add a logo.

2. And would like to have the Custom menu items that can be set in theme settings only show when users are logged in and on every page. The reason I think this is so important is, that you can't place blocks on all pages and with the custom menu this would add a great deal of flexabilty to the site on all pages.

Can you help me smile

William

 
Average of ratings: -
Picture of Richard Oelmann
Re: Decaf - Moodle 2 Theme
Group Particularly helpful MoodlersGroup Testers

William,

for point 1: either, in the php layout files change the line

<h1 class="headermain"><?php echo $PAGE->heading ?></h1>

for  one which calls the logo image file instead of the text, or alter the css for the header to display a logo image and hide the text, which I think should look something like this

.headermain h1 {

display:none;

}

.headermain {

background: url([[pix:theme|logo]]) no-repeat left top;
height: 100px;
float: left;
}

I haven't actually tested this as I'm not actually at my computer with my moodle on it at the moment, but for point2, in the php files (e.g. frontpage.php and general.php) if you were to wrap the line $customment=$OUTPUT->custom_menu() in a conditional statement as below then that should do the trick

if (isloggedin()) {

$custommenu=$OUTPUT->custom_menu();

}

else {

$custommenu=""

}

 

Hope that helps

Richard

 
Average of ratings: -
Picture of William Ratto
Re: Decaf - Moodle 2 Theme
 

Hi Richard,

Thank you very much for the quick response.

I added the following lines to both frontpage.php & general.php

if (isloggedin()) {

$custommenu=$OUTPUT->custom_menu();

}

else {

$custommenu=""

}

and saddly the site did not like it LOL. When I added the comment and went to the site it would not load the site LOL. OK so back to the drawing board smile

What I am trying to do is have custom menu bar (Moodle community) only show when looged in.

I may have not did the code right, and most likely my fault.

Any ideas where I goofed?

Thanks Richard

 
Average of ratings: -
Lei Zhang
Re: Decaf - Moodle 2 Theme
 

William, Have you insert the ";" at the end of last statement?

$custommenu="";

If you could turn your debug info on in administartion settings, and paste your error message here, then it's easier to figure out what went wrong.

 
Average of ratings: -
Picture of Richard Oelmann
Re: Decaf - Moodle 2 Theme
Group Particularly helpful MoodlersGroup Testers

Now that would be my goof not yours William! many apologies! smile

Thanks Lei and Mary

Richard

 
Average of ratings: -
Picture of William Ratto
Re: Decaf - Moodle 2 Theme
 

Hi Lei,

I went into quiz and wanted to show the quiz attempts and this is what I got.

Navigation node intersect: Adding a node that already exists 1

  • line 663 of /lib/navigationlib.php: call to debugging()

Any ideas?

William

 
Average of ratings: -
It's only an avatar...
Re: Decaf - Moodle 2 Theme
Group DevelopersGroup Documentation writersGroup Particularly helpful MoodlersGroup Testers

William...perhaps you added it to the wrong part of the page! Although I think Richard missed off the semi-colon at the end of the statement.

Anyway...it goes towards the top of frontpage.php and general.php just before echo $OUTPUT->doctype() ?> like so...

if (isloggedin()) {
$custommenu=$OUTPUT->custom_menu();
}else{
$custommenu="";
}

echo $OUTPUT->doctype() ?>
<html <?php echo $OUTPUT->htmlattributes() ?>>
<head>

HTH

Mary

 
Average of ratings: -
Picture of William Ratto
Re: Decaf - Moodle 2 Theme
 

Yep I left off the ";" at the end, my goof.

Works like a dream now, with the ability to use this on all pages it makes the themes really work like a intranet on the site, its easy and simple.

Thanks,

Lei, Mary and Richard

you three are without doubt the "3 musketeers of moodle themes"

William

 
Average of ratings: -
It's only an avatar...
Re: Decaf - Moodle 2 Theme
Group DevelopersGroup Documentation writersGroup Particularly helpful MoodlersGroup Testers

 
Average of ratings: -
Picture of Gavin Roberts
Re: Decaf - Moodle 2 Theme
 

Dear Musketeers.....

Hi, i am new to Moodle themeing (my first ever post)and have found the Decaf theme excellent,  i have added my logo, background and some customization.

my new site (i am very happy wit ht the results)

my old site (that i am trying to mimic in Moodle 2.0)

I tried the code above, as like William i too wanted the menu to appear on all pages of the site, it is running correctly as i can switch it on or off for a none logged on user. I thought i would be clever and do this...

if (isloggedin()) {
$custommenu=$OUTPUT->custom_menu();
}else{
$custommenu=$OUTPUT->custom_menu();
}

But the menu doesn't seem to make it on to all sub pages and courses as i thought it would. i am actually going to construct the school website with in moodle and use this menu as the navigation so i actually want the menu on all pages.

Thanks Gav

 
Average of ratings: -
It's only an avatar...
Re: Decaf - Moodle 2 Theme
Group DevelopersGroup Documentation writersGroup Particularly helpful MoodlersGroup Testers

Hi Gav,

You will need to add custommenu in the general.php layout file to get it to be on all pages.

Just add the following just above the END OF HEADER comment in general.php like so...

<?php if ($hascustommenu) { ?>
<div id="custommenu"><?php echo $custommenu; ?></div>
<?php } ?>
<!-- END OF HEADER -->

Also remove that code you added in the head of the page...you won't need it.

HTH

Mary

 
Average of ratings: -
Guido
Re: Decaf - Moodle 2 Theme
Group Moodle Course Creator Certificate holders

I also got the error:

Navigation node intersect: Adding a node that already exists 1

  • line 663 of /lib/navigationlib.php: call to debugging()

But I have no custom menu.
I am testing the certificate module ( from HEAD) and I guess there is the bug.

Can you give me a hint how to find out more?

With using the decaf menu bar, I was able to understand moodle user interface much better than with any 1.9 theme I saw before.

 

( it also says other bugs, but nothing to do with theme :

Capability "mod/certificate:manage" was not found! This should be fixed in code.

  • line 579 of /lib/accesslib.php: call to debugging()
  • line 166 of /mod/certificate/lib.php: call to has_capability()
  • line 63 of /mod/certificate/view.php: call to view_header()

)

 
Average of ratings: -
Me, with my new 'slow explosion' hair!
Re: Decaf - Moodle 2 Theme
Group DevelopersGroup Particularly helpful Moodlers

Did you manage to find out anything more about this error? I'm getting something similar on Moodle 2.2.2+:

PHP Notice:  Navigation node intersect: Adding a node that already exists 7542

That last number changes constantly and I think it's a resource ID of some kind.

 
Average of ratings: -
It's only an avatar...
Re: Decaf - Moodle 2 Theme
Group DevelopersGroup Documentation writersGroup Particularly helpful MoodlersGroup Testers

I would not like to swear on it, but this could well be caused by some resent changes to Moodle CORE Navigation.

Cheers

Mary

 
Average of ratings: -
Picture of Paul Nicholls
Re: Decaf - Moodle 2 Theme
Group DevelopersGroup Particularly helpful Moodlers

Hi Paul,

Can you please provide a bit more detail about when/where you're getting this?  I don't seem to get such messages on Moodle 2.2.2+ (Build: 20120412) with debugging set to DEVELOPER, but it could be related to a resource or activity (or some other kind of plugin/module) which I'm not using.  Here are a few questions which might help to narrow it down a bit:

  • Are you seeing these messages on all pages, or only on some pages?
  • Which third-party modules/plugins do you have installed?
  • If you're only seeing it on some pages, which types of page?
  • If you're only seeing it on course pages, is it on all courses or only on some?
  • If it's only happening on some course pages, are there any plugins/modules (e.g. blocks, resources, activities) being used by these courses which aren't being used on courses which aren't generating these messages?

-Paul

  • Which third-party modules/plugins do you have installed?
 
Average of ratings: -
Prince George, Cottonwood Island, royal coach
Re: Decaf - Moodle 2 Theme
 

Will logos and favicons become part of the code for this theme?

 
Average of ratings: -
Lei Zhang
Re: Decaf - Moodle 2 Theme
 

Mark, this theme does not come with logos or favicons of any sort, the same as all the other standard themes that come with moodle. You are welcome to add your own.

Lei

 
Average of ratings: -
Prince George, Cottonwood Island, royal coach
Logos and favicons
 

Thanks for getting back to me so fast, Lei.

Sorry for not making my meaning plainer.

I meant would the ability to insert favicons and logos ever be part of Decaf without the webmaster having to tweak any code?

Since I posted, I have inserted a favicon in pix and it works fine without any code tweaking. How about a logo? I'll go ahead and try, but I suspect it won't be that simple. A couple of other posts talked about adding code to several files.

 
Average of ratings: -
Guido
Re: Decaf - Moodle 2 Theme login
Group Moodle Course Creator Certificate holders

Dear Theme champions!

I like decaf very much, but I do not understand if this is a version mismatch or any other fault.

How to fix  it?

in #region-main-box or #region-contant ?
I don't got a CSS confusion.

I use 2.0.1+ (Build: 20110209)

and decaf   version: leizhang-moodle-theme_decaf-2c853e3.zip

 
Average of ratings: -
Guido
Re: Decaf - Moodle 2 Theme login
Group Moodle Course Creator Certificate holders

solved!

look further down: Dietmar Wagner provided a solution

Thanks!

 
Average of ratings: -
Picture of Philippe Siwinski
Re: Decaf - Moodle 2 Theme
 

Hi,

I like this theme very much but I've upgraded to Moodle 2.0.2 and I have troubles using this great theme...

Before I manage to find a minute to report a bug, could someone have a look at it ?

Thanks.

 
Average of ratings: -
Picture of Richard Oelmann
Re: Decaf - Moodle 2 Theme
Group Particularly helpful MoodlersGroup Testers

What troubles are you having that you want someone to take a look at? Was it working correctly before you upgraded? Have you made any changes to the theme?

Richard

 
Average of ratings: -
Picture of Philippe Siwinski
Re: Decaf - Moodle 2 Theme
 

Thanks to helping Richard,

I have just tried on a fresh 2.0.2 install with decaf theme taken from github (https://github.com/leizhang/moodle-theme_decaf/zipball/master).

When I enable the theme, troubles start. Please have a look at screenshots.


 
Average of ratings: -
Guido
Re: Decaf - Moodle 2 Theme
Group Moodle Course Creator Certificate holders

I can confirm, that decaf can work with 2.0.2

I am using decaf at lernen.actxc.de

and I don't get screeens like you posted.

I tested with  firefox 3.6.13 , chrome, IE

I  would like to help you more. Please provide some more information

 
Average of ratings: -
Me in Phnom Penh, November 2008
Re: Decaf - Moodle 2 Theme
 

Hi Decaf Themers

I'm really liking this theme but some of the css is a little difficult, however I'm learning a lot!  Couple of questions:

Could someone tell me where the buttons are styled (eg login), can't seem to locate that at all.

Best way to re-style the FilePicker?  I had thought of putting the modified css in the Decaf core.css but it doesn't seem to work, eg:

/* File Picker styles-----------------------------*/
.file-picker .fp-panel {padding:0;margin:0;text-align:left; background-color:#666;}
.file-picker .fp-repo-name{color:036;}

What am I missing please?

Appreciate any help.

Richard

 
Average of ratings: -
Picture of Richard Oelmann
Re: Decaf - Moodle 2 Theme
Group Particularly helpful MoodlersGroup Testers

Richard,

Easiest way to find the css for a particular item is to use a tool like firebug in firefox. With that installed you can right click on the item and inspect the elements css, including where it comes from. You can also edit in place in firebug to see what effect the changes you make will have before making the edit properly in the css file.

As for changes not working there may be a few solutions:

1,the most common - make sure you have theme designer enabled

2.the rules are over-ruled (no pun intended) by code elsewhere - this can be overcome by adding !important to your rule

3.check using firebug that you have the correct identifier/class and there is no other class acting to override your rules.

Hope that helps

Richard (O)

 
Average of ratings: -
Picture of andy101 andy101
Re: Decaf - Moodle 2 Theme
 

Strange. Install but cant get it to work?

Anyone has similar problems?

 
Average of ratings: -
Guido
Re: Decaf - Moodle 2 Theme
Group Moodle Course Creator Certificate holders

can you provide a live link? I can give it a try and look at it.

my 2.0.2 with decaf is working.

have you checked the  log file ?

 
Average of ratings: -
Guido
Re: Decaf - Moodle 2 Theme
Group Moodle Course Creator Certificate holders

thanks Richard for the hints.

Do you know  demo decaf side?

I see some strange behavior whenn changing the Window size of the login screen and firebugs wont tell me the css I should change.

I want to see what I have to expect from a correct working decaf. The links on Lei's blog don't work.

 
Average of ratings: -
Picture of Dietmar Wagner
Re: Decaf - Moodle 2 Theme
 

Hi Guido,
the file pagelayout.css contains no rules for content-only sites.
Try to add something like the following lines at the bottom of this file.

/** No blocks whatsoever **/

.content-only #page-content #region-main-box {left:0px;}
.content-only #page-content #region-main-box #region-post-box {margin-left:0px;}
.content-only #page-content #region-main-box #region-post-box #region-main-wrap #region-main {margin-left:0px;}
.content-only #page-content #region-main-box #region-post-box #region-pre {width:0px;}
.content-only #page-content #region-main-box #region-post-box #region-post {width:0px;}

hth
Dietmar

 
Average of ratings:Useful (1)
Guido
Re: Decaf - Moodle 2 Theme
Group Moodle Course Creator Certificate holders

worked for me.

 

Can you give me a hint, how I can research such .content-only by my self?

I've read the "How to create themes 2.0" but I didn't discover it.

Or should I look in the PHP source somewhere?

 
Average of ratings: -
Picture of Dietmar Wagner
Re: Decaf - Moodle 2 Theme
 

Ok, I don't have a simple answer.

Please have a look at theme/base/pagelayout.css. There you can find several sections, especially rules for the body-classes .side-pre-only, .side-post-only and .content-only. The login site is a .content-only site (no blocks).

Dietmar

 
Average of ratings: -
Me in Phnom Penh, November 2008
Re: Decaf - Moodle 2 Theme
 

Hi Richard

Thanks for that; I have been using Firebug (which is how I found out where the File Picker was styled) and do have Theme Designer on,

I guess I was asking does anyone know where those rules might be overruled in Decaf specifically as I have been unable to locate them outside of base.

However, experimentation is the best way to learn so I'll keep digging.

Thanks for your hints.

Richard

 
Average of ratings: -
Picture of Richard Oelmann
Re: Decaf - Moodle 2 Theme
Group Particularly helpful MoodlersGroup Testers

When a theme uses base (or any other theme) as a parent, the css rules in base may not be specifically in the theme unless the theme designer wants them changed,  so that will probably be why you can't find them in decaf.

You would just need to add those rules into one of the decaf css files (whichever is most relevant - or perhaps create a new one for your own customisations - so long as you add that file in to config) and it should pick up your added css within decaf before going looking in base. I have found it is sometimes necessary to add !important to the rules to ensure they do override other settings, although I'm not entirely sure why I've had to do this in some cases but not others.

Hope that helps

Richard

 
Average of ratings: -
It's only an avatar...
Re: Decaf - Moodle 2 Theme
Group DevelopersGroup Documentation writersGroup Particularly helpful MoodlersGroup Testers

Hi RJ

If you include all the file-picker styles from base/style/core.css into decaf/style/core.css then you should be able to style 'file picker' to your heart's content.

There is nothing in decaf or canvas theme to over-ride the file-picker only base theme can do that. But if you add ALL the file-picker styles available to you for that particular element, then there should be no reason why it should not work.

HTH

Mary

 
Average of ratings: -
Me in Phnom Penh, November 2008
Re: Decaf - Moodle 2 Theme
 

Hi Mary and Richard

Yes, that's what I did but it didn't work - now it is so I guess it was a cache thing despite the theme developer mode being enabled. Or possibly I've got too many browsers open and am easily confused wink

Still having trouble finding out where the buttons are styled though.  It seems to be in the mform classes in base/core.css and some of those are re-styled in decaf/core.css.  As Richard says, where and why you need !important is not clear to me.

Thanks both for you help.  It's going to look really good I'm confident; beautiful theme!

Richard

 
Average of ratings: -
It's only an avatar...
Re: Decaf - Moodle 2 Theme
Group DevelopersGroup Documentation writersGroup Particularly helpful MoodlersGroup Testers

Hi RJ,

If you take a look at my Arctic theme which is in the Moodle Themes repository, you will see it have styles buttons.

The CSS I used is this...

/*
Button
-----------------------*/

select, input, button {
background-color: #6F9CA3;
color: white;
font: 99% arial,helvetica,clean,sans-serif;
}

#loginbtn, input, button, select { cursor: pointer;}

input#username, input#password { cursor: default; background: white; color: #4b4b4b;}

This will style all the buttons.

Hope this helps?

 
Average of ratings: -
Me in Phnom Penh, November 2008
Re: Decaf - Moodle 2 Theme
 

Hi Mary

Yes, that helps tremendously big grin.  Nice theme as well.

Many thanks

Richard

 
Average of ratings: -
It's only an avatar...
Re: Decaf - Moodle 2 Theme
Group DevelopersGroup Documentation writersGroup Particularly helpful MoodlersGroup Testers

Cheers!

 
Average of ratings: -
Picture of Gavin Roberts
Re: Decaf - Moodle 2 Theme
 

Not sure if this the right place... but here goes.

Love the decaf theme and it works great, i have done a few light mods to the appearance (mainly graphics) but.

When you are in a course and try to reorder the topics by clicking the blue arrow i get an error "Coding error detected, it must be fixed by a programmer" i can't then do anything on the site, this message is the only thing on the screen. If i delete the theme and then load the site it now works (themeless), then re-apply the theme and i can carry on. It has the same problem with out my mods (Original Decaf Theme)

Obviously i can't make my site live until I can fix this issue,  if any one reorders the topics in a course the site goes down.

Can anyone advice or has anyone had this problem? i have updated to the latest decaf version and it is still the same.

I have attached the PHP error all advice would be much appreciated.

 
Average of ratings: -
Me in Phnom Penh, November 2008
Re: Decaf - Moodle 2 Theme
 

Hi Gavin

I'm using decaf on an Ajax enabled site and can drag topics to reorder them with no problem. In Firefox and Chrome anyway - which browser are you using?

 
Average of ratings: -
Picture of Gavin Roberts
Re: Decaf - Moodle 2 Theme
 

PLease see below the screen shot,

it happens in IE8 and firefox, i thought i would try the Krystal theme that is a mod on the decaf theme and it displays the same error.

????????

 
Average of ratings: -
Me in Phnom Penh, November 2008
Re: Decaf - Moodle 2 Theme
 

Hi Gavin

Since I'm using Ajax, I don't have those buttons on my version of decaf, sorry.  Any possibility you could turn Ajax on - it's really easy to re-arrange courses and and links that way.

Richard

 
Average of ratings: -
Picture of Gavin Roberts
Re: Decaf - Moodle 2 Theme
 

Thank you Richards.... Brilliant.

Yes i have the latest theme and moodle install and i am now a happy man.

Not fixed but not broken either, nothing beats a good work around. I have moved courses using the Ajax move method and no error is shown.

Do you know how to turn it on for every user? as i had to go in to my personal profile and change the default Ajax setting to on.

Thanks again Gav

 
Average of ratings: -
Picture of Richard Oelmann
Re: Decaf - Moodle 2 Theme
Group Particularly helpful MoodlersGroup Testers

Apparently then i am using Ajax (see comment below) - just don't remember enabling it, but must have, because when I checked setting up a new user it is off by default! smile

One way to turn it on for every user Gavin would be to go into the moodle sql database (I use phpmyadmin to make it easier) and in the mdl_user table there is a field called ajax which is either set to 0 (off) or 1 (on). If you have a large number of users you could do it that way - if you only have a few, then manually is probably easier. I haven't yet found a way of defaulting new users to on, but I'm sure that would be possible, as would including the ajax field in any bulk import of users.

Richard (O)

 
Average of ratings: -
It's only an avatar...
Re: Decaf - Moodle 2 Theme
Group DevelopersGroup Documentation writersGroup Particularly helpful MoodlersGroup Testers

Can this setting not be done via Admin settings for the site. I seem to remember seeing it somewhere!

 

 
Average of ratings: -
Picture of Richard Oelmann
Re: Decaf - Moodle 2 Theme
Group Particularly helpful MoodlersGroup Testers

I thought so too Mary, but I couldn't find it when I looked before going out. I'll have another look as soon as I can.

Rich

 
Average of ratings: -
Me in Phnom Penh, November 2008
Re: Decaf - Moodle 2 Theme
 

Might I suggest typing Ajax in the admin search box?  That will bring up all the settings needed wink

 
Average of ratings: -
Picture of Richard Oelmann
Re: Decaf - Moodle 2 Theme
Group Particularly helpful MoodlersGroup Testers

Have done that Richard.

No setting which defaults Ajax to being on shows up. The nearest one is the setting which enables Ajax, but this only turns on/off the ability to select Ajax and Javascript in the user profile - which by default is then set to 'no'. I presume this is deliberate as individual users may have Javascript turned off in web-browsers anyway - beyond the control of Moodle.

Richard

 
Average of ratings: -
Me in Phnom Penh, November 2008
Re: Decaf - Moodle 2 Theme
 

Hi Richard

Didn't mean to get overly smart clown.  Settings attached - are you seeing the same?


 
Average of ratings: -
Picture of Jamie Homewood
Re: Decaf - Moodle 2 Theme
 

I'm not too sure that the fix is to enable AJAX for users with this error.

I have a test server running windows, IIS with AJAX on for all users.  I ran down my mdl_user table and enabled AJAX (0s to 1s;)).

I get the same problem when re-enabling the theme.

I get the problem with DECAF and Moodlebook.

Heres the debug code with Debugging on.

Coding Error

I'm wondering if its a problem with the menu, because when I back up my browser out of the error, I login using an account that works (my admin account) and I have the administration menu missing, so I have to re-login for it to appear.

Before I login using a normal user

Before I login and get error

After I login using a normal user

After I login using a normal user

Is there a way to remove the menu bar and re-enable the admin block?  that may solve the problem?  or at least show that it may be the bar?

 
Average of ratings: -
Picture of Richard Oelmann
Re: Decaf - Moodle 2 Theme
Group Particularly helpful MoodlersGroup Testers

Yes, that's what I'm seeing, but the user still has to choose to enable Ajax on their profile - at least that's what's happening on my localhost setup.

Richard

 
Average of ratings: -
Picture of Jamie Homewood
Re: Decaf - Moodle 2 Theme
 

I noticed that too.  I changed all AJAX settings via phpMyAdmin, went to a user profile and noticed that it was showing ajax turned off!

 
Average of ratings: -
Picture of Richard Oelmann
Re: Decaf - Moodle 2 Theme
Group Particularly helpful MoodlersGroup Testers

I'm not aware that I have Ajax on on my install - it's a standard moodle install of v2.0.2 from a few days ago, but my 'move section' icons in decaf, krystle and moodlebook - another decaf related theme where a similar issue has been reported -  are as the shot below and work with no problem.

moving

Do you have the latest moodle version installed as well as the latest version of the theme Gavin?

Richard (O)

 
Average of ratings: -
Picture of Jamie Homewood
Re: Decaf - Moodle 2 Theme
 

Although not the same theme I get the same error when using the facebook theme (which is based on decaf I believe?).

I'm on a windows box with IIS and have ajax turned on.   Any other theme doesn't have this issue when I change it.

 
Average of ratings: -
Picture of alex lopez
Re: Decaf - Moodle 2 Theme
 

Hi Moodlers, i got this problem with Decaf.. everything was ok but suddenly i got a blank page in the home (only if i´m logged in). I purged the caches, clear my browser cache, set "$CFG->themerev = -1; // NOT FOR PRODUCTION SERVERS!".. reinstall Decaf theme.. but i still have the blank page..

Any hints... ?

 

Thanks in advanced...


 
Average of ratings: -
Picture of Richard Oelmann
Re: Decaf - Moodle 2 Theme
Group Particularly helpful MoodlersGroup Testers

Turn on debugging - the theme is beginning to load (the dark stripe at the top) but then failing. Turning debugging on will show you where the fault is. If it was working before, then take a look as well at any changes that have been made recently.

You may have to do this by entering a different theme first- if you have enabled changing themes on url you should be able to do that as below, otherwise you may need to delete decaf to get back to a working theme

http://mysite.com/pathtoyourmoodlehomepage/?theme=standard

To turn debugging on

Site Administration->Development->Debugging

Hope that helps

Richard

 
Average of ratings: -
Picture of alex lopez
Re: Decaf - Moodle 2 Theme
 

Thanks Richard.. it was memory problem. Solved.

I´ll debug my coffee machine , because it not work as expected smile

 
Average of ratings: -
Melissa Ochsner
Re: Decaf - Moodle 2 Theme
 

Alex,

When you say it was a memory problem where was the memory problem? Was it on your local computer or the server where your Moodle is installed? I am having the same issue.  I cannot get the theme to load fully consistently and it is VERY slow if it does.

Thanks!

Melisssa

 
Average of ratings: -
Picture of Matthew Slatter
Re: Decaf - Moodle 2 Theme
 

I'm not sure if anyone can help but I've got the same problem after setting this theme on a site I've upgraded. 

I've upgraded from 1.19 to 2.24+, all seemed fine, and then installed decaf. As soon as I set it as the default theme the main page fails to load, with just the black bar showing. It loads okay on further attempts though but other pages don't, such as all category pages and most settings pages. Sometimes they fail with the back bar, other times with an "Internet Explorer cannot display the webpage" error. Courses seem to load fine. 

I've enabled debugging and the error I get is "Fatal error: Maximum execution time of 30 seconds exceeded in /var/www/moodle/lib/navigationlib.php on line 588". 

I've checked my memory limit in phpinfo and it’s set to 512MB. I've been running this theme fine on an empty test site (2.24+) for a few weeks, though this was on Windows (php 5.3.5) where as my main server is on Ubuntu 12.04, (php 5.3.10).

Any pointers as to where to look would be appreciated.

Thanks,

Matt

 
Average of ratings: -
Me
Re: Decaf - Moodle 2 Theme
Group Moodle Course Creator Certificate holders

Just for the reference of others looking at this thread, this question was also asked in this thread ( http://moodle.org/mod/forum/discuss.php?d=203236#p909831 ) and answered there. Please look there for further discussion on this problem.

 
Average of ratings: -
Picture of Ishan Anders
Re: Decaf - Moodle 2 Theme
 

Hi,

I'm playing with decaf and I like the theme very much.

But the theme slow down my Moodle site. 15-20 seconds nothings happened, then the theme is loading.

Any other default Moodle themes are very fast....

Any suggestions or hints?


Cheers

Ishan

 
Average of ratings: -
Melissa Ochsner
Re: Decaf - Moodle 2 Theme
 

Ishan,

Did anyone ever respond to you on this? I am experiencing the same thing.

Melissa

 
Average of ratings: -
Picture of Richard Oelmann
Re: Decaf - Moodle 2 Theme
Group Particularly helpful MoodlersGroup Testers

Hi Melissa,

I seem to recall Ishan also posted this in another theme discussion (related to decaf), but Ishan seems now to have left the forums so i have not been able to trace the post at the minute. I remember trying to look into it at the time as I have used decaf as the basis for one or two themes - and the awesome bar is really awesome! but I wasn't able to replicate the problem.

I think I remember one issue suggested though being the need to update moodle/decaf to make sure that the lastest versions are being used. I know that Lei has recently done a lot of work updating Decaf so hopefully if you make sure you have the latest download of the theme any problems should have been ironed out.

HTH Richard

 
Average of ratings: -
Melissa Ochsner
Re: Decaf - Moodle 2 Theme
 

Thanks Richard!

I will verify we are on the latest Moodle version and Decaf version. I do hope that resolves the issue because I think I would really love this theme otherwise but cannot even test it or try it out. big grin

 
Average of ratings: -
It's only an avatar...
Re: Decaf - Moodle 2 Theme
Group DevelopersGroup Documentation writersGroup Particularly helpful MoodlersGroup Testers

Hi Melissa,

You could also check that the server is using the latest version of PHP which is PHP 5.3.6. Most hosted servers use the older version PHP5.2.6 which is not supported by php.net

Moodle recommends PHP5.3.3 which you can read about HERE

But as Richard says you need the latest version of Moodle and also the latest version of Decaf.

HTH

Mary

 

 
Average of ratings: -
Picture of Joseph Rafter
Decaf - Moodle 2 Theme - Memory Error
 

I need help resolving this error.  Thanks in advance.

Fatal error: Allowed memory size of 100663296 bytes exhausted (tried to allocate 4104 bytes) in /home/content/55/7462155/html/moodle/lib/navigationlib.php on line 3857

 
Average of ratings: -
It's only an avatar...
Re: Decaf - Moodle 2 Theme - Memory Error
Group DevelopersGroup Documentation writersGroup Particularly helpful MoodlersGroup Testers

Hi Joseph,

This original problem was fixed see MDL-21643 so not sure what's causing your system to through up this Fatal Error.

Mary

 
Average of ratings: -
Picture of Adam Sheffield
Re: Decaf - Moodle 2 Theme - Memory Error
 

Hi Guys.

I am completely new to moodle but learning fast. I have been setting up Decaf (a fantastic theme) and customising it a bit and I have hit a problem. I can't figure out how to reduce the width of the left hand navagation area. I have little CSS knowledge but I think it involves changing:

#page-content #region-main-wrap {
float: right;
position: relative;
right: 100%;
width: 50%;
}

I would like to be able to gain another 50px for the main content area.

I would hugely appreciate any help me with this.

 

Adam.

 
Average of ratings: -
Lei Zhang
Re: Decaf - Moodle 2 Theme - Memory Error
 

Adam,  try

#page-content #region-main{
margin-left420px; --> change this to 415px;
paddding0 15px;
}
That will give you extra 5px in the main content area, you see the difference it makes, so 50px will almost make the theme looks very akward with three columns, maybe you need set theme to two columns instead of three if you want more space in the main content area.
@Mary, @Richard,
Thanks so much for helping answer all the questions here in this forum post. I'm still recovering from the earthquake we had here in Christchurch, still working on a temproary desk at work.
 
Average of ratings: -
It's only an avatar...
Re: Decaf - Moodle 2 Theme - Memory Error
Group DevelopersGroup Documentation writersGroup Particularly helpful MoodlersGroup Testers

Hi Lei,

You're welcome! It's the least we can do. Good to hear from you. One loses track of where people live! Hope all is as well with you, and your family, as it can be in the circumstances. A temporary desk is better than none. smile

Take care,

God bless.

Mary

 
Average of ratings: -
Picture of Adam Sheffield
Re: Decaf - Moodle 2 Theme - Memory Error
 

Lei Thanks this helps steer me in the right direction.

_P.S Glad to hear you are getting up and running given the very difficult circumstances. All of Auckland is thinking of you guys.

 
Average of ratings: -
Picture of Steffen Fahl
Decaf - customisation questions
 

First let me thank for that incredible good theme.

I have customized it a bit and now have two probable quite silly questions:

1) in which folder must the personal favicon be, to be shown beside the URL?

2) I have changed the colour of the custommenu to a dark blue but I would like to have still the nice green colour for the mouse over linked menuitems. In the Moment I just get thin green left and upper borders, but no background. This is what I wrote in the custom Menu section of the awesombar.css:

 

ul.dropdown span.customitem a:hover {border-top-color:#76B900 !important;border-left-color:#5db1e0;background-color:#76b900;color:#fff;}

If anybody has an Idea, please let me know what is wrong with it.

(here you will find my decaf-moodle)

best

Steffen

 

 
Average of ratings: -
It's only an avatar...
Re: Decaf - customisation questions
Group DevelopersGroup Documentation writersGroup Particularly helpful MoodlersGroup Testers

Hi Stefhen,

1.  needs to be in
moodle/theme/decaf/pix/favicon.ico
then you need to Purge ALL Cache

Site Administration > Development > Purge All Cache

2. This looks the same as normal for Decaf theme and not Dk Blue as you said.

Here again it may be a cache issue, so same as above Purge cache.

HTH

Mary

 
Average of ratings: -
Picture of Steffen Fahl
Re: Decaf - customisation questions
 

Hi Mary, thanks for your rapid response.

It seems as if I was unclear. I did not meant the upper menu (home, my site, adminsettings etc) which indeed reacts very nice as it should.

With "custommenu" I meant the menu under the Header which you may code from the design-settings and is designed by the custommenusection of the awesomebar.css. This menu is already blue as I intended. But as you can see on my screenshot, the mouse over reaction is just the green top-border and not the background. I tested it with different browsers on different pc's with all the same behavior. In so far I fear, it is no "cache"-question.

best

Steffenthe other menu!

 
Average of ratings: -
Picture of Steffen Fahl
Re: Decaf - customisation questions
 

P.S.: "Site Administration > Development > Purge All Cache" does not change anything at all.

best Steffen

 
Average of ratings: -
It's only an avatar...
Re: Decaf - customisation questions
Group DevelopersGroup Documentation writersGroup Particularly helpful MoodlersGroup Testers

Hi Steffen,

The reason you are not seeing the changes is in the way the CSS is presented in the stylesheet.

CSS stands for Cascading Style Sheet

It is the Cascading effect that is stopping this from working.

All the color changes are made further up the page whereas your actual color styling for the menu bar tabs is the last rule on the page.

/* Custom Menu
-------------------------- */
#custommenu{height:25px;background-color:#044582;margin:0;text-shadow: 0 1px 0 #000;}
#awesomebar ul.dropdown {z-index: 697; }
#awesomebar ul.dropdown ul {z-index: 698;}
#awesomebar ul.dropdown li {z-index: 699;}
ul.dropdown span.customitem {padding:0;border:0; width: auto;}
ul.dropdown span.customitem a {padding:0px 20px 0px 20px;}
ul.dropdown span.customitem a:hover {border-top-color:#76B900 !important;border-left-color:#5db1e0;background-color:#76b900;color:#fff;}
#custommenu ul.dropdown ul {height:23px;background-color:#044582;;width:185px;}
#custommenu ul.dropdown ul a {height:23px;background-color:#044582;padding:1px 0px 0px 18px;}
#custommenu ul.dropdown > li span a {height:23px;background-color:#044582;}

It is actually worth changing the anchor (a) to a:link or a:visited or a:hover so that the browsers distinguish one from the other.

#custommenu ul.dropdown > li span a {height:23px}

#custommenu ul.dropdown > li span a:link,
#custommenu ul.dropdown > li span a:visited
{
background-color: dkblue;}

#custommenu ul.dropdown > li span a:hover,
#custommenu ul.dropdown > li span a:active {
background-color: green;}

HTH

Mary




 
Average of ratings: -
Picture of Steffen Fahl
Re: Decaf - customisation questions
 

Hi Mary, thanks for your very instructive hints. I am teacher no computerscientist, therefor your ansers are a great help for me. The personal Favicon is now visible. And I even do have green mouseover on "some" of the blue Menuitems. But now it behaves in the blue menu below the header just the other way round than in the dark menu above the header.

  • In the dark Menu above just those menuitems turn green, that are linked to another site, not the dropdown menuitems which organize the navigation tree.
  • In the blue Menu below the header now only menuitems that organizes others turn green on mouse over, while those that really bring to another site remain blue and show only the thin green border on mouseover as it were before.

Obviously your hint was in the right direction, but still I am not experienced enough to direct that mouseover effect to the same kind of menuitems as in the menu above.

 
Average of ratings: -
It's only an avatar...
Re: Decaf - customisation questions
Group DevelopersGroup Documentation writersGroup Particularly helpful MoodlersGroup Testers

Hi Steffen,

I missed off some code for this...which might account for strange behavior.

#custommenu ul.dropdown > li span a {height:23px; background-color: dkblue;}

I'll take another look at your site and see if I can find problem.

Cheers

Mary

 
Average of ratings: -
It's only an avatar...
Re: Decaf - customisation questions
Group DevelopersGroup Documentation writersGroup Particularly helpful MoodlersGroup Testers

The problem is the next level down...

#custommenu ul.dropdown ul a {height:23px;background-color:#044582;padding:1px 0px 0px 18px;}

this part... ul.dropdown ul ...in particular

where ul stands for unordered list so ul ul is in effect a list within a list.

So we have ul.dropdown (which is the main menu tree) and then the next level, (lets call it a branch) ul so the next level down from that would be. ul ul so you would get...

ul.dropdown ul ul  and then add 'a' to the end, where a represents the anchor for the link within the list. So now we have

#custommenu ul.dropdown (Level 0)

#custommenu ul.dropdown ul  (Level 1)

#custommenu ul.dropdown ul ul  {Level 2) and so on and so forth.

So you need to style this next group like the one I posted earlier.

#custommenu ul.dropdown > li span a {height:23px;background-color:#044582;}

#custommenu ul.dropdown > li span a:link,
#custommenu ul.dropdown > li span a:visited {
background-color:
:#044582;}

#custommenu ul.dropdown ul  a:link,
#custommenu ul.dropdown ul  a:visited {
background-color:
:#044582;}

#custommenu ul.dropdown > li span a:hover,
#custommenu ul.dropdown > li span a:active {
background-color:
#76B900;}

#custommenu ul.dropdown ul  a:hover,
#custommenu ul.dropdown ul  a:active {
background-color:
#76B900;}

Should fix it.

smile

Mary

 
Average of ratings: -
Picture of Steffen Fahl
Re: Decaf - customisation questions
 

Yes great thats itYesapprove,

Your'e marvelous.

and Decaf is extremly marvelous to.

best Steffen

 
Average of ratings: -
It's only an avatar...
Re: Decaf - customisation questions
Group DevelopersGroup Documentation writersGroup Particularly helpful MoodlersGroup Testers

Yeah!!!

 
Average of ratings: -
It's only an avatar...
Re: Decaf - customisation questions
Group DevelopersGroup Documentation writersGroup Particularly helpful MoodlersGroup Testers

Hi Steffen,

Is it my imagination or has that speeded up the menu? It seems very fast!

It looks great too.

Cheers

Mary

 
Average of ratings: -
Picture of Steffen Fahl
Re: Decaf - customisation questions
 

The Menu works great, I haven't noticed - perhaps it was a bit more slowly befor, at least I felt the admin-Menu makes alot so much easier than it was in Moodle 1.9.x and...

...It looks so sexy! (compared to earlier Moodlethemes)

best

Steffen

 
Average of ratings: -
Picture of Steffen Fahl
Re: Decaf - customisation questions - 2 new update 2.1.1. Problems
 

I have copied the customized "Custom menu" of the 2.0. Version of decaf after my 2.1.1. Update to the new decaf Version. Meanwhile the 2.1.1.-decaf-blankpage Issue is solved, I have two little new problems with the Custommenu and another with the backgroundcolor  of Questions.

 1) The menu seems to be behind the main content area (see large arrow)

2) In Firefox and IE8 I only can use the upper two menu entries. the lower two dissapear when I hover with the mouse on them.

 

 

 

 

 

 

 

This is the css-code of the Custom menu:

/* Custom Menu
-------------------------- */
#custommenu{height:25px;background-color:#044582;margin:0;text-shadow: 0 1px 0 #000;}
#awesomebar ul.dropdown {z-index: 697; }
#awesomebar ul.dropdown ul {z-index: 698;}
#awesomebar ul.dropdown li {z-index: 699;}
ul.dropdown span.customitem {padding:0;border:0; width: auto;}
ul.dropdown span.customitem a {padding:0px 20px 0px 20px;}
ul.dropdown span.customitem a:hover {border-top-color:#C40000 !important;border-left-color:#5db1e0;background-color:#C40000;color:#fff;}
#custommenu ul.dropdown ul {height:23px;background-color:#044582;;width:185px;}
#custommenu ul.dropdown ul a {height:23px;background-color:#044582;padding:1px 0px 0px 18px;}
#custommenu ul.dropdown > li span a {height:23px;background-color:#044582;}
#custommenu ul.dropdown > li span a:link,
#custommenu ul.dropdown > li span a:visited {
background-color: :#044582;}
#custommenu ul.dropdown ul a:link,
#custommenu ul.dropdown ul a:visited {
background-color: :#044582;}
#custommenu ul.dropdown > li span a:hover,
#custommenu ul.dropdown > li span a:active {
background-color: #C40000;}
#custommenu ul.dropdown ul a:hover,
#custommenu ul.dropdown ul a:active {
background-color: #C40000;}

 
Average of ratings: -
Picture of Steffen Fahl
Re: Decaf - customisation questions - 2 new update 2.1.1. Problems
 

I also have problems to  find where I can set the blue background of a question to #FFF.

(Edit: The above mentioned Problem with the Custom menu "under" the main Content area seems to be the same with all browsers) 

 
Average of ratings: -
It's only an avatar...
Re: Decaf - customisation questions - 2 new update 2.1.1. Problems
Group DevelopersGroup Documentation writersGroup Particularly helpful MoodlersGroup Testers

Hi,

Finding the relevent CSS selector to change the background color, is best to use Firefox and Firebug this allows you to search the source code/css on the page.

You can then add that rule to your stylesheet.

HTH

Mary

 
Average of ratings: -
It's only an avatar...
Re: Decaf - customisation questions - 2 new update 2.1.1. Problems
Group DevelopersGroup Documentation writersGroup Particularly helpful MoodlersGroup Testers

There are two ERRORS in the code for one thing...

#custommenu ul.dropdown > li span a:visited {
background-color: :#044582;}
#custommenu ul.dropdown ul a:link,
#custommenu ul.dropdown ul a:visited {
background-color: :#044582;}

you have two colons when there should only be one :

So the line should read...


#custommenu ul.dropdown > li span a:visited {
background-color: #044582;}


#custommenu ul.dropdown ul a:link,
#custommenu ul.dropdown ul a:visited {
background-color: #044582;}

That should fix the problem

Mary

 
Average of ratings: -
Picture of Steffen Fahl
Re: Decaf - customisation questions - 2 new update 2.1.1. Problems
 

Hi Mary,

Thank you for your fast response.

@Custommenu :

You are right, that there were two colons to much. But after I corrected that and cleared the Design-cache the Custummenu problem still remains the same no matter which broweser I tried. I even still have the same problem, when I replace my customized "awesomebar.css" with the original version from the new decaf-theme.

(here you can see the problem.)

@ backgroundcolor of questions

I already tried to identify the css like that, where I may change the background-color. I asked here, just because I really didn't find it with firebug or likewise functions of Chrome or Opera.

I just learned from Firebug that anywhere in the moodlecode I have to find the line:

" backgroundnone repeat scroll 0 0 #E4F1FA;"

I searched nearly all files of decaf for "#E4F1FA" but could not find it at all.  So the question remains the same, and it would be a great help, if anyone has an idea where I may find and adjust it.

best

Steffen

 
Average of ratings: -
Picture of Richard Oelmann
Re: Decaf - customisation questions - 2 new update 2.1.1. Problems
Group Particularly helpful MoodlersGroup Testers

Hi Steffen,

The menu being behind some other objects on the screen is probably to do with the relative z-index values of the menu and the screen objects. You could try increasing these values in the custom menu css you posted previously (try adding a 9 in front, making them 96xx).

With the background colour, Firebug should tell you (on the right) where that block of rules is coming from to enable you to change it. If this is from your theme css it is fine to change it in the css, if it is actually from a parent theme or the moodle core, then you should add the rule to your own theme's css rather than changing the parent/core css. Adding a rule to your own css should overwrite any that are being picked up from a parent or the core because of the way css cascades.

HTH

Richard

 
Average of ratings: -
Tim at Lone Pine Koala Sanctuary
Re: Decaf - customisation questions - 2 new update 2.1.1. Problems
Group DevelopersGroup Documentation writersGroup Particularly helpful Moodlers

This post reminds me of a thread I started ages ago: http://moodle.org/mod/forum/discuss.php?d=160879

To avoid problems like this we need to general guidlines about what z-index we should use for what things so that everything layers properly. Otherwise, we just end up with an arms race where everyong keeps adding a 9 at the front of their z-indexes, so their stuff wins.

 
Average of ratings: -
Picture of Richard Oelmann
Re: Decaf - customisation questions - 2 new update 2.1.1. Problems
Group Particularly helpful MoodlersGroup Testers

I was having the same thought myself as I wrote that post Tim and considering starting a discussion about it (obviously having read yours now I won't, I think your earlier discussion already has it covered)

This issue does crop up every now and then and isn't always about the design - for instance Mary and I had a situation recently where we discovered IE has a tendency to render flash objects (in this case a scorm activity) above everything else on the page regardless of the z-index set (FF etc worked fine!) - so just altering z-index values isn't always the solution

But in this case it appears something on the page has not followed your suggestions and so the simplest alternative i could see to start with was to increase the z-index of the menu and see if this is the issue here.

 

Richard

 
Average of ratings: -
Picture of Steffen Fahl
Re: Decaf - customisation questions - 2 new update 2.1.1. Problems
 

Hi Richard,

1) Thanks for your hint, but changing the z-index doesn't change anything.

2) Ok obviously I  must add a rule in the decaf core.css my problem is, that firebug gives me a div id "yui_3_2_0_2_131271269706252" and I dont thnik that it would be reasonable to define a rule for that div.

best

Steffen 

 
Average of ratings: -
Picture of Richard Oelmann
Re: Decaf - customisation questions - 2 new update 2.1.1. Problems
Group Particularly helpful MoodlersGroup Testers

Hi Steffen,

hiding menu - in that case Steffen, what exactly is the object on the page that the menu is slding behind? - see my reply to Tim about an issue I came across recently with IE/Flash

div for yui - there's no reason not to define a rule for any div that firebug gives you Steffen, if you look in some of the themes at the css for the custommenu in particular you will find (particularly in those that haven't used a custom renderer) a number yui_xxxxxxxxxxxx css rules applied - defining it in your theme simply overrides the default yui styles set.

Richard

 
Average of ratings: -
Picture of Steffen Fahl
Re: Decaf - customisation questions - 2 new update 2.1.1. Problems
 

1) No definitly no Flash (I know that one can change the wmode with flash). Bur here it is simple text and headlines:

2) you are right there are millions of "yui's" in the core.css, but I am simply to stupid, to know which of them might be responsible for my blue background:

best Steffen

here are the core.css "yui's"

/*YUI Reset */
.yui3-skin-sam #page .yui3-splitbuttonnav .yui3-menu-label .yui3-menu-toggle{background-position:3px center;}
.yui3-skin-sam #page .yui3-splitbuttonnav .yui3-menu-label-menuvisible .yui3-menu-toggle{background-position:0 50%;}
.yui3-skin-sam #page .yui3-menu-label,.yui3-skin-sam #page .yui3-menuitem-content{color:#35251B;font-weight:400;}
.custom_menu_submenu .yui3-menu-label,.custom_menu_submenu .yui3-menuitem-content{color:#35251B !important;}
.yui3-skin-sam #page .yui3-menu-label.yui3-menu-label-active,.yui3-skin-sam #page .yui3-menuitem-active .yui3-menuitem-content{color:#DA5013;}
.yui3-skin-sam #page .yui3-menu-content,.yui3-skin-sam #page .yui3-menu-content,.yui3-skin-sam #page .yui3-menu .yui3-menu .yui3-menu-content,.yui3-skin-sam #page .yui3-menu-horizontal .yui3-menu-label,.yui3-skin-sam #page .yui3-menu-horizontal .yui3-menuitem-content{border:none;}
.yui3-skin-sam .yui3-menu-horizontal .yui3-menu-label,.yui3-skin-sam .yui3-menu-horizontal .yui3-menuitem-content{border-color:gray;border-style:solid;border-width:0;}
.yui3-skin-sam #page .yui3-menu-horizontal .yui3-menu-content,.yui3-skin-sam #page .yui3-menu-horizontal .yui3-menu-label,.yui3-skin-sam #page .yui3-menu-horizontal .yui3-menu-label-active,.yui3-skin-sam #page .yui3-menu-horizontal .yui3-menuitem-active .yui3-menuitem-content,.yui3-skin-sam #page .yui3-menu-horizontal .yui3-menu-label-menuvisible{background-position:-10000px -10000px;}
.yui3-skin-sam #page .yui3-menu-label,.yui3-skin-sam #page .yui3-menu .yui3-menu .yui3-menu-label,.yui3-skin-sam #page .yui3-menubuttonnav .yui3-menu-label em{background-position:right center;}

 
Average of ratings: -
It's only an avatar...
Re: Decaf - customisation questions - 2 new update 2.1.1. Problems
Group DevelopersGroup Documentation writersGroup Particularly helpful MoodlersGroup Testers

I am getting the same problem with the menu. I think there is something wrong with the layout...but then I am not sure which version of this theme I have now!

Will try with a fresh download, and try that...and if needed will apply some fixes.

Mary

 
Average of ratings: -
Picture of Steffen Fahl
Re: Decaf - customisation questions - 2 new update 2.1.1. Problems
 

I am getting this Problem only with the current decaf Version for Moodle 2.1.1. which on the other hand solved the Problem of blank pages I got like others in Moodle 2.1.1 with the former decaf version. So I am pretty sure, that it is a problem of the newest decaf version. I hope it could be solved soon.

best

Steffen

 
Average of ratings: -
Picture of Paul Nicholls
Re: Decaf - customisation questions - 2 new update 2.1.1. Problems
Group DevelopersGroup Particularly helpful Moodlers

Hi Steffen,

I updated Decaf yesterday (download the new version here), including fixing the custom menu's z-index so that it doesn't sit behind the page content.  I also added an option to pull the custom menu into the Awesomebar, which you might want to do if you don't have many (or only have short) top-level custom menu items (if you have too many, it can make the awesomebar too wide and cause a horizontal scrollbar).

Regards,
Paul

 
Average of ratings: -
Picture of Steffen Fahl
Re: Decaf - customisation questions - 2 new update 2.1.1. Problems
 

Great! Thats it!

Many, many thanks!

Steffen

 
Average of ratings: -
Melissa Ochsner
Re: Decaf - Moodle 2 Theme - Memory Error
 

Mary,

I viewed the fix you pointed to but I am not sure what the actual resolution is. Do I need to make sure I am on a certain version of Moodle 2.0? If so, which version?

Thanks in advanced!
Melissa

 
Average of ratings: -
Picture of Sam Stegers
Hiding the head-icon when not logged in
Group Testers

Hi all,

 

First my appreciation for this awesome theme, really makes Moodle look professional.

I have a question regarding showing/hiding items in the awesomebar. For my site I don't want (not-logged-in) users to see all courses, which can be found by clicking on the head-shaped-icon in the bar. Since this is the only content which is shown when not-logged-in I guess the perfect option would be to just not show that specific option in the bar until someone has logged into Moodle.

Unfortunately I am not a programmer so any help in Mickey Mouse language would be greatly appreciated.

 

Thanks in advance,

 

Sam

 
Average of ratings: -
It's only an avatar...
Re: Hiding the head-icon when not logged in
Group DevelopersGroup Documentation writersGroup Particularly helpful MoodlersGroup Testers

Hi,

If you open decaf/lib.php using Notepad you can add the following to it (the parts highlighted below in GREEN)

$content .= html_writer::end_tag('a');
$content .= html_writer::end_tag('li');


if (isloggedin()) {


$content .= html_writer::start_tag('li');
$content .= html_writer::start_tag('span', array('id' =>'awesomeNavMenu'));
$content .= html_writer::empty_tag('img', array('alt' => '', 'src' =>$this->pix_url('user_silhouette', 'theme')));
$content .= ' My Navigation';
$content .= html_writer::end_tag('span');
$content .= $this->navigation_node($navigation, array());
$content .= html_writer::end_tag('li');
$content .= html_writer::end_tag('ul');
return $content;

} else {
$content .= html_writer::end_tag('ul');
return $content;
}

}

This should achieve what you are trying to do.

Mary

 
Average of ratings:Useful (1)
Lei Zhang
Re: Hiding the head-icon when not logged in
 

Thanks, Mary.

I have updated Decaf theme again with some minor updates, the hidden section will now show in gray colour instead to indicate as hidden item.

 

 
Average of ratings: -
It's only an avatar...
Re: Hiding the head-icon when not logged in
Group DevelopersGroup Documentation writersGroup Particularly helpful MoodlersGroup Testers

 
Average of ratings: -
Picture of Manuel Rodrí­guez Vallejo
I found an error when I try to send a new post in my blog
 

Hello Lei,

I loved Decaf, I would like to report an error that I found when I try to send a new post inside my blog. Could you solve it? or send me further information about that error?.

 

 

A new page appears with the next message:

 

Detectado un error de codificación, debe ser corregido por un programador: page layout file /home/visionde/public_html/moodle/theme/decaf/layout/ does not contain the string "[MAIN CONTENT GOES HERE]".

English translation:

We have detected aa codified error, It should be resolved for a developer: page layout file /home/visionde/public_html/moodle/theme/decaf/layout/ does not contain the string "[MAIN CONTENT GOES HERE]".

Thanks for the help

 
Average of ratings: -
It's only an avatar...
Re: I found an error when I try to send a new post in my blog
Group DevelopersGroup Documentation writersGroup Particularly helpful MoodlersGroup Testers

This is not a theme problem.

The problem you are seeing is one caused by Moodle. I have found this too on my own website. I need to update my website version of Moodle, as you need to update your Moodle version.

Mary

 
Average of ratings: -
Picture of mahmoud nasr
Re: Decaf - Moodle 2 Theme
 

 
Average of ratings: -
Lei Zhang
Re: Decaf - Moodle 2 Theme
 

Hi Mahmoud,

I have tested scorm packages that in the feature demo courses from moodle.org, they'll take up all the spaces in my browser. Are you using the latest Moodle2 or previous versions? Do you mind if you can send me your scorm packages see if I can replicate your problem?

my email: stonenot [at] gmail.com

Lei

 
Average of ratings: -
Guido
WIKI search button tries to hide
Group Moodle Course Creator Certificate holders

I love decaf, but sometimes it is really tricky to find small thing.

Can someone help me to convince the Search button in the wiki not to hide in the breadcrumbs bar second line.

 

it doesn't matter, if there ist enough space or not.


 
Average of ratings: -
Guido
SOLVED: WIKI search button tries to hide
Group Moodle Course Creator Certificate holders

SOLVED

I had a typo some where else. now it works.

 
Average of ratings: -
Picture of Agbonkhese Oaiya
Re: SOLVED: WIKI search button tries to hide
 

hello everyone,

I just explored using decaf theme, and its great. i am a newbie in working with CSS, and I want to create a custom menu in that points to an external link.

Any help will be much appreciated.

 
Average of ratings: -
Picture of Richard Oelmann
Custom menu items
Group Particularly helpful MoodlersGroup Testers

Custom menu items can be added on the theme settings page

Site Administration->Appearance->Theme Settings

There is an example menu there to show you how to do it

Richard

 
Average of ratings: -
Picture of Agbonkhese Oaiya
Re: Custom menu items
 

It works. Thanks alot Richard....

 
Average of ratings: -
Picture of Philippe Siwinski
Re: Decaf - Moodle 2 Theme
 

Hi Lei,

Great theme, I can't use Moodle without it anymore.

I'm having troubled to use a fresh install of Moodle 2.1 with decaf download from git. I'm only getting blank pages (grey with top black bar without menu) after having created a course.

Does anyone can test it also ? Thanks

 
Average of ratings: -
Picture of Robert Kern
Re: Decaf - Moodle 2 Theme
 

Hi,

i have the same problem with the Facebooky theme (http://moodle.org/mod/forum/discuss.php?d=163036#p786097)! Perhaps there are problems with the 2.0 themes and moodle 2.1!

Robert

 
Average of ratings: -
Picture of Ishan Anders
Re: Decaf - Moodle 2 Theme
 
Hi,

same problems in Moodle 2.1 with Decaf than in Krystle2 and same output:



"global_navigation::load_section_activities argument 3 should now recieve an array of activites. See that method for an example.

line 1669 of /lib/navigationlib.php: call to debugging()
line 257 of /theme/decaf/lib.php: call to global_navigation->load_section_activities()
line 200 of /theme/decaf/lib.php: call to decaf_expand_navigation->initialise()
line 78 of /theme/decaf/lib.php: call to decaf_expand_navigation->__construct()
line 83 of /theme/decaf/lib.php: call to decaf_topsettings_renderer->navigation_node()
line 85 of /theme/decaf/lib.php: call to decaf_topsettings_renderer->navigation_node()
line 45 of /theme/decaf/lib.php: call to decaf_topsettings_renderer->navigation_node()
line 79 of /theme/decaf/layout/general.php: call to decaf_topsettings_renderer->navigation_tree()
line 654 of /lib/outputrenderers.php: call to include()
line 612 of /lib/outputrenderers.php: call to core_renderer->render_page_layout()
line 196 of /course/view.php: call to core_renderer->header()
Fatal error: Cannot access private property course_modinfo::$course in ../web/moodle/lib/navigationlib.php on line 1670"
Ishan
 
Average of ratings: -
Picture of Paul Nicholls
Re: Decaf - Moodle 2 Theme
Group DevelopersGroup Particularly helpful Moodlers

Hi Philippe and Robert (below),

I've just pushed an updated to github which makes the theme work on Moodle 2.1.  Could you please grab the latest version of Decaf from github and let us know how you get on?

Cheers,
Paul

 
Average of ratings:Useful (1)
Picture of Philippe Siwinski
Re: Decaf - Moodle 2 Theme
 

Thanks Paul, it works well now.

Let me attach a screenshot showing another but minor problem. The css "logininfo" class include a 120px width, it makes the user Full name to appear on 2 or 3 lines.

Thank you !


 
Average of ratings: -
Picture of Philippe Siwinski
Re: Decaf - Moodle 2 Theme
 

Here is the screenshot


 
Average of ratings: -
Picture of Philippe Siwinski
Re: Decaf - Moodle 2 Theme
 

Hi,

I imagine there are more important issues but it would be nice to fix this one when possible.

The login message is getting on the calendar and it gets even longer when using "Login as" or "Switch to 'role' " features.

Thanks a lot

 
Average of ratings: -
It's only an avatar...
Re: Decaf - Moodle 2 Theme
Group DevelopersGroup Documentation writersGroup Particularly helpful MoodlersGroup Testers

Hi Philippe,

I hate the way the login works...makes it look so ugly! You can fix this quite easily by changing the value of the .headermenu in the css file

locate and open the following file using Notepad...

moodle/theme/decaf/style/core.css

search for Profileblock and in the css rule for .headermenu div.logininfo

change the value for width from 120px to 75% you can then adjust this valu to suit.

/* Profileblock
-----------------------*/

.headermenu div.logininfo { width: 75% ; height:43px;float:right;border-right:none;margin-top:17px;text-align:center;padding:10px;}

Hope this helps?

Mary

 
Average of ratings: -
Picture of Philippe Siwinski
Re: Decaf - Moodle 2 Theme
 

Thanks Mary,

yes it helps but because the width was right in the previous versions of the theme, I imagine it is something that could be fixed for next versions...

 
Average of ratings: -
Picture of Ishan Anders
Re: Decaf - Moodle 2 Theme
 

Hi Paul,

I have testet the new version from github and now I get this:

"Debug info: Argument 3 passed to global_navigation::load_activity() must be an instance of navigation_node, boolean given, called in /Users/andreas/Sites/testsysteme/dhbwzwonull/web/moodle/theme/decaf/lib.php on line 190 and defined Stack trace: line 359 of /lib/setuplib.php: coding_exception thrown line 1740 of /lib/navigationlib.php: call to default_error_handler() line 190 of /theme/decaf/lib.php: call to global_navigation->load_activity() line 95 of /theme/decaf/lib.php: call to decaf_expand_navigation->initialise() line 277 of /theme/decaf/renderers.php: call to decaf_expand_navigation->__construct() line 284 of /theme/decaf/renderers.php: call to theme_decaf_topsettings_renderer->navigation_node() line 244 of /theme/decaf/renderers.php: call to theme_decaf_topsettings_renderer->navigation_node() line 55 of /theme/decaf/layout/frontpage.php: call to theme_decaf_topsettings_renderer->navigation_tree() line 654 of /lib/outputrenderers.php: call to include() line 612 of /lib/outputrenderers.php: call to core_renderer->render_page_layout() line ? of unknownfile: call to core_renderer->header() line 1279 of /lib/setuplib.php: call to call_user_func_array() line 89 of /index.php: call to bootstrap_renderer->__call() line 89 of /index.php: call to bootstrap_renderer->header()"

Anyone else has this issue?

Ishan

 
Average of ratings:Useful (1)
Lei Zhang
Re: Decaf - Moodle 2 Theme
 

Hi Ishan,

What version of Moodle2 are you running? 2.1 or 2.2?

Lei

 
Average of ratings: -
Picture of Ishan Anders
Re: Decaf - Moodle 2 Theme
 

Hi Lei,

I have reinstalled a fresh 2.1. Now it works. I really don't know what happened. Maybe something was corrupt.

Your theme works now very good and fast smile  

 

Thanks for your your nice theme

 

Cheers

Ishan

 
Average of ratings: -
Picture of Richard Oelmann
Re: Decaf - Moodle 2 Theme
Group Particularly helpful MoodlersGroup Testers
Lei,
I am having the same problem Ishan reported - however, a fresh reinstall of moodle2.1 has not made any difference. I get the exact same issue in trying to update my Krystle2 theme which also uses your wonderful awesomebar.
Any ideas what the issue might be?
Debug info: Argument 3 passed to global_navigation::load_activity() must be an instance of navigation_node, boolean given, called in /var/www/moodle/theme/decaf/lib.php on line 190 and defined
Stack trace:
  • line 359 of /lib/setuplib.php: coding_exception thrown
  • line 1740 of /lib/navigationlib.php: call to default_error_handler()
  • line 190 of /theme/decaf/lib.php: call to global_navigation->load_activity()
  • line 95 of /theme/decaf/lib.php: call to decaf_expand_navigation->initialise()
  • line 277 of /theme/decaf/renderers.php: call to decaf_expand_navigation->__construct()
  • line 284 of /theme/decaf/renderers.php: call to theme_decaf_topsettings_renderer->navigation_node()
  • line 244 of /theme/decaf/renderers.php: call to theme_decaf_topsettings_renderer->navigation_node()
  • line 55 of /theme/decaf/layout/frontpage.php: call to theme_decaf_topsettings_renderer->navigation_tree()
  • line 654 of /lib/outputrenderers.php: call to include()
  • line 612 of /lib/outputrenderers.php: call to core_renderer->render_page_layout()
  • line ? of unknownfile: call to core_renderer->header()
  • line 1279 of /lib/setuplib.php: call to call_user_func_array()
  • line ? of unknownfile: call to bootstrap_renderer->__call()
  • line 89 of /index.php: call to bootstrap_renderer->header()
Many thanks
Richard
 
Average of ratings:Useful (1)
Picture of Paul Nicholls
Re: Decaf - Moodle 2 Theme
Group DevelopersGroup Particularly helpful Moodlers

Hi Richard,

It looks like the $coursenode->find() call on line 190 of lib.php is returning false, because it's not finding the navigation node for an activity on your site's homepage.  You might have to do a bit of digging/debugging to work out what's going on - maybe pull the $coursenode->find() call out of the $this->load_activity() call and check if it's false - if it is, do a print_object($cm) so you can work out which activity is causing problems.

 
Average of ratings: -
Hansueli Schwaninger
Re: Decaf - Moodle 2 Theme
 

Hello

the latest version of Decaf (leizhang-moodle-theme_decaf-ce70fa8) is working with our moodle 2.1. But if I login as administrator it is extremly slow. 13 seconds response time and the php/httpd process need a lot server recources

Linux Server, Apache 2.2.17, PHP 5.3.7, MySQL 5.1.33

With a other theme the side is working very fast

Regards

Hansueli

 
Average of ratings: -
Lei Zhang
Re: Decaf - Moodle 2 Theme
 

Hansueli, 

I just copy and paste my answer from another post to here, hope this helps.

you'll need turn theme designer mode off for your production site, it complies dozen of YUI stylesheets together into one single stylesheet to speed up page loading, this will also ensure your site working properly for IE7 as it can't handle that many stylesheets.

In your site administration settings, check following configurations and make sure they're ticked:

Make sure you allocate enough memory for php, memory_limit in php.ini (<--configuration file for your php) should have at least 256M, in other words, don't leave it at default level in 128MB.

In case you're like me, check your config.php and make sure you don't have any of the following line:

  • @error_reporting(1023);  // NOT FOR PRODUCTION SERVERS!
  • @ini_set('display_errors', '1'); // NOT FOR PRODUCTION SERVERS!
  • $CFG->debug = 38911;  // DEBUG_DEVELOPER // NOT FOR PRODUCTION SERVERS!
  • $CFG->debugdisplay = true;   // NOT FOR PRODUCTION SERVERS!
  • $CFG->themerev = -1; // NOT FOR PRODUCTION SERVERS!
  • $CFG->langstringcache = false; // NOT FOR PRODUCTION SERVERS!

HTH,

Lei

 
Average of ratings: -
Hansueli Schwaninger
Re: Decaf - Moodle 2 Theme
 

Hello Lei

all cache is on, memory_limit is 512M and in config.php is no developer settings on.

I've some screenshots here with the different speed between Decaf and formal white.

Regards

Hansueli

 
Average of ratings: -
Hansueli Schwaninger
Re: Decaf - Moodle 2 Theme
 

Hello Lei

if I want that user must change the password (force password change or upload useres (csv) with the password changeme) and decaf theme is activ, than I get this error:

decaf1

If I change the theme, force password change ist working

decaf2

PHP memory limit is 1GB and I use leizhang-moodle-theme_decaf-857be30

Regards

Hansueli

 
Average of ratings: -
Picture of Paul Nicholls
Re: Decaf - Moodle 2 Theme
Group DevelopersGroup Particularly helpful Moodlers

Hi Hansueli,

Apologies for the delay getting to this - I've just made a change which should fix this issue, so if you grab a fresh copy, the "no available page" error should go away.

-Paul

 
Average of ratings: -
Picture of Richard Oelmann
awesomebar
Group Particularly helpful MoodlersGroup Testers

Lei/Paul,

I'm hoping you can help me identify what I may have missed in updating my own Krystle theme, which as I'm sure you know uses your awesomebar.

I have updated everything from Paul's work on the github repository and everything works fine on my local moodle2.1 so I released the update. However, Hartmut has reported continued memory errors (see this discussion). I have passed on the advice from Lei to Hansueli, but that apparently has not worked.

Many thanks

Richard

 
Average of ratings: -
Picture of Hartmut Scherer
Re: awesomebar
Group Particularly helpful Moodlers

Hi Lei,

I downloaded and installed Decaf a few minutes ago in our main domain, but I only receive a blank page with the debug message:

Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 80915 bytes) in /home/pibceduc/public_html/lib/navigationlib.php on line 3888

Like Hansueli, I can confirm that none of the develop settings is on. Memory size seems to be 512 M. I got a similar message using the Moodlebooktheme. Is there a possiblity to get a log file of processes that are running in the background? I wish I could give you more details, but the debug message is just one line.

With kind regards,

Hartmut

 
Average of ratings: -
Lei Zhang
Re: awesomebar
 

Hartmut,

Your issue is definitely to do with php memory limit, double check your php memory limit, make sure it's not set to default at 128M. 

HTH,

Lei

 
Average of ratings: -
Picture of Hartmut Scherer
Re: awesomebar
Group Particularly helpful Moodlers

Hi Lei,

Thank you for your reply and for creating the awesomebar. I checked in Site administration/server/performance and the Extra PHP memory limit is set to 512M (default value). The debug message is:

Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 80915 bytes) in /home/pibceduc/public_html/lib/navigationlib.php on line 3888

Using a converter I found out that 536870912 bytes are 512M. I get the same debug message for Moodlebook and Krystle2, but no debug message for Aardvark-Makeover. I am using Moodle 2.0.3 (can't upgrade to 2.1 because of the php requirement) with about 40 converted classes from Moodle 1.9 and less then 15 new classes. At this time we have only two summer courses running.

I interpret "exhausted" from the debug message that there is a process running in the background, probably searching for something and piling up bytes until it reaches the memory limit. If this is true, increasing the memory limit would only result in a longer waiting time before the debug message appears, but wouldn't solve the problem.

Is there a command which shows all the background processes in a log file when I click on a button? I am sure this would help to find out, what exhausts the memory of 512M.

With kind regards,

Hartmut

 
Average of ratings: -
Picture of Paul Nicholls
Re: awesomebar
Group DevelopersGroup Particularly helpful Moodlers

Hi Hartmut,

Are you still experiencing this issue?  If so, can you please give me a bit more detail about your Moodle site, such as how many courses, categories, students etc you have, average number of students per course, courses per student, etc?  I'm having difficulty getting anywhere near the memory usage you're seeing, but some more detail might help me replicate the issue.

Also, can you please check what you have $CFG->navcourselimit set to (Site Administration -> Appearance -> Navigation -> Course limit) and whether you have $CFG->navshowallcourses (Show all courses, same page as above) enabled?

 

Regards,
Paul

 
Average of ratings: -
Picture of Hartmut Scherer
Re: awesomebar
Group Particularly helpful Moodlers

Hi Paul,

Thank you for your comment and even more for looking into this issue. Yes, I still experience the blank page when I switch to decaf as an admin user. I only do this with user themes enabled,. The site wide theme is Aardvark-Makeover.

34 categories
75 courses
122 users

As we moved this summer to Moodle 2.0.3, I used ConversionThingy for converting all courses from Moodle 1.9.7. I couldn’t import any users, but set them up manually.

I use cohorts for
a) faculty & staff (35 faculty & staff);
assigned to 7 courses in the Faculty & Staff category
plus 1 demo course

b) all students (83 students);
    3 courses in the “For Students” category

c) nine students for online registration.

The four summer courses have all less than 7 students in each course.

In Site Administration / Appearance / Navigation all is set to default, i.e., “Default home page for users” = site; “Show course categories” = yes; “show all courses” = no; “Course limit” = 20;

I will send you a message with more information.

With kind regards,
Hartmut

 
Average of ratings: -
Picture of Hartmut Scherer
Re: awesomebar
Group Particularly helpful Moodlers

Hi Paul,

I just wanted to add that students have no problem to use the Decaf theme (also true for Krystle2 and Moodlebook). For admin the problem of the blank page still persists.

With kind regards,

Hartmut

 
Average of ratings: -
Picture of Paul Nicholls
Re: awesomebar
Group DevelopersGroup Particularly helpful Moodlers

Hi Hartmut,

Thanks for the update.  I've sent you an email with a link to a new version of Decaf to try out - as it doesn't list the contents (sections, activities, etc) of courses other than the course you're viewing, you should hopefully be able to use it as an admin; if it's a hidden course causing the problem, you probably still won't be able to get into that course as an admin, but at least you'll be able to identify the troublesome course(s) so that you can revert to another theme and go in and fix them.

Regards,
Paul

 
Average of ratings: -
Picture of Hartmut Scherer
Re: awesomebar
Group Particularly helpful Moodlers

Hi Paul,

Thank you for the email. Your modified Decaf theme helped indeed finding the course that caused the trouble. Thanks a lot for your effort and advice. I highly appreciate your willingness to look into this problem. Perhaps this will solve the problem with Krystle2 and Moodlebook as well.

With kind regards,

Hartmut

 
Average of ratings: -
Picture of Yeisson Darío Mena Triana
Re: awesomebar
 

Hey, is there a better version of Moodlebook?, cause the blank page is a problem for me too. I modified the moodlebook theme and looks like that:

It would be so useful if you guys can help me! thanks

 
Average of ratings: -
Picture of Paul Nicholls
Re: awesomebar
Group DevelopersGroup Particularly helpful Moodlers

Hi Jazon,

I've informed Julian of the latest changes to the Awesomebar, so there should hopefully be a new version of Moodlebook soon which incorporates these changes.  In the mean time, what version of Moodle are you running, and when did you download Moodlebook?

 
Average of ratings: -
Picture of Yeisson Darío Mena Triana
Re: awesomebar
 

I'm using Moodle 2.0.2 also i've downloaded on May. I hope the somebody improve the awesome bar... that problem is driving me crazy.

Thanks

 
Average of ratings: -
Picture of Richard Oelmann
Re: awesomebar
Group Particularly helpful MoodlersGroup Testers

Jazon,

Moodle is now on v2.1.1 and I believe work has been done on incorporating some of the many improvements Paul has made to awesomebar into Moodlebook right the way through into July (13th July Julien posted that he had included the updates related to awesomebar for Moodle2.1).

Perhaps, it would be more appropriate to ensure you have the latest version, including all the hard work that has been put into these improvements, before commenting that 'somebody improve the awesomebar' - they have been and it has been included in the theme you are asking about!

Also, surely comments about the moodlebook theme would be more appropriate in the moodlebook discussion, where Julien the theme author may pick up on them more quickly - and where you would have seen his posts about the updates, rather than in the old decaf theme discussion.

Richard

 
Average of ratings: -
Oam
Decaf and Moodle 2.0.4
Group Particularly helpful Moodlers

Hello,

Just after updating to 2.0.4 (from 2.0.3+), I get an empty page with only the background (black line at the top and grey background). I changed the theme directly in the database and my site works again. So, I guess I have a problem with Decaf theme and Moodle 2.0.4

Because my site is a demo site and with the new version 2.1, I will delete moodle 2.0.4 and install the last Moodle 2.1.
So this is not a real problem for me but I write this here for you to know.

Pascal

 
Average of ratings: -
Picture of Paul Nicholls
Re: Decaf - Moodle 2 Theme
Group DevelopersGroup Particularly helpful Moodlers

For those who are using Decaf on development sites, I've just updated it to add support for the latest 2.2dev builds (without debug messages flooding the page).

You can grab the latest version from the new Plugins database (or from Github, if you prefer).

Cheers,
Paul

 
Average of ratings: -
Picture of Damian Griffiths
Re: Decaf - Moodle 2 Theme
 

Hello, all.  I'm having a bit of a problem using Decaf in different browsers.  In IE 8, it shows perfectly.  In Firefox and Safari it does not - it almost appears that the text is superimposed on other text, making it indistinct / fuzzy.  It doesn't appear to be a browser setting which is to blame.   Has anyone ever come across this before?  I'm using Moodle 2.1.1+ (Build: 20110811).  Thanks in advance...  screenshot attached.

By the way, the screenshots are course links on a user's home page.

Damian

 


 
Average of ratings: -
Picture of Paul Nicholls
Re: Decaf - Moodle 2 Theme
Group DevelopersGroup Particularly helpful Moodlers

Hi Damian,

I can't seem to replicate this.  Have you tried clearing the theme caches (and perhaps your browser caches just to make sure)?  Otherwise, could your Base or Canvas theme have been modified at all?  Since Decaf inherits from both of these themes, changes made to them may cause Decaf to display incorrectly (and it's best not to modify them anyway, as new versions of Moodle can (and do) make changes which can clash with or overwrite your changes - you should create copies of these themes and modify those if you need to).

Cheers,
Paul

 
Average of ratings: -
It's only an avatar...
Re: Decaf - Moodle 2 Theme
Group DevelopersGroup Documentation writersGroup Particularly helpful MoodlersGroup Testers

@Paul

This looks very much like a Text Shadow effect Damian is talking about...do you get this in FF Paul?

Cheers

Mary

 
Average of ratings: -
It's only an avatar...
Re: Decaf - Moodle 2 Theme
Group DevelopersGroup Documentation writersGroup Particularly helpful MoodlersGroup Testers

Hi Damian,

Did you change the color of the Text-Shadow from #FFF (white) to #000 (black) in decaf/style/core.css or changed the values atributed to the text-shadow property for this theme by any chance? Because this looks very much like it to me.

Cheers

Mary

 
Average of ratings: -
Picture of Damian Griffiths
Re: Decaf - Moodle 2 Theme
 

Hi, Mary & Paul,

thanks for your responses.  Yes, I had changed text-shadow from #FFF to #000 during a period of trying to customise the colours...  thank you for the outstandingly simple fix to a very annoying problem!!

Best wishes,

Damian

 
Average of ratings: -
It's only an avatar...
Re: Decaf - Moodle 2 Theme
Group DevelopersGroup Documentation writersGroup Particularly helpful MoodlersGroup Testers

Good job I spotted that then!

 
Average of ratings: -
Picture of Sam Stegers
Re: Decaf - Moodle 2 Theme
Group Testers

Hi to all,

We have made a nice theme based on the Moodle 2.0 version of Decaf (thanks for the awesome work btw) but when upgrading to Moodle 2.1, all went haywire. We have already worked through a lot of little thing but we are a bit stuck with the following.

In our "original" theme we have hidden the head-icon (see picture) when not logged in and we can't seem te find the way to realise this in the new Decaf version.

This Icon

 

Any help would be greatly appreciated.

TIA,

Sam

 
Average of ratings: -
It's only an avatar...
Re: Decaf - Moodle 2 Theme
Group DevelopersGroup Documentation writersGroup Particularly helpful MoodlersGroup Testers

I think you will find some reference to this in the lib.php and also in renderers.php in this theme. But I may be wrong.

However, if you managed to disable this in your previous version, there is nothing stopping you doing the same in this new version, I suspect that the code in this part of the 'awesomebar' is the same as it always was.

HTH

Mary

 
Average of ratings: -
Picture of Damian Griffiths
Re: Decaf - Moodle 2 Theme
 

well, I'm back with another question...

somehow, I have lost the logged-in user's image from the header bar.  I really don't mind too much about this except for the fact that it means that the header is too short (only in IE 7 & 8 - not in Firefox or Safari.)  Would anyone have a clue as to which bit of which file I messed up to achieve this?  I am almost certain that if I can reinstate the image then the size issue will be fixed.  Screenshot attached.  I owe several people a pint already.

thanks,

Damian


 
Average of ratings: -
Picture of Richard Oelmann
Re: Decaf - Moodle 2 Theme
Group Particularly helpful MoodlersGroup Testers

Not sure about this Damian as my copy of Decaf doesn't appear to have a user image either for logged in or out (your image is when logged out so probably wouldn't have a user image anyway) but...

The header background in decaf is noramlly set as below in the core.css (according to firebug) while the page is set at 100% width

#page-header {
    backgroundurl("image.php?theme=decaf&image=bg-header&component=theme") repeat-x scroll center bottom #E1E1E1;
    floatnone;
    margin-right0;
    min-height100px;
    positionrelative;
}
If you have added a different image, or altered the width/margins in anyway then you will need to adjust those, but by default the page header should fill the 100% page width.
You may need to go back to see what css changes you have made and try to see what effect each change you have made has.
Alternatively if you can provide an address/login for your site, I will try to take a look at it for you and see if I can help. (You can contact me by pm on here if you want)
Richard
HTH
Richard
 
Average of ratings: -
Picture of Richard Oelmann
Re: Decaf - Moodle 2 Theme
Group Particularly helpful MoodlersGroup Testers

Ooops - just found the show user picture setting in the settings page. One of Paul's newer additions smile

As Mary said, to lose this probably means you've made some alterations in the awesomebar code itself and as it 'works' in FF, it is probably down to Mary's suggestion of a missing closing tag or similar - IE (as i have found out) is much less tolerant of small errors in the code that FF seems to unfortunately hide.

Richard

 
Average of ratings: -
It's only an avatar...
Re: Decaf - Moodle 2 Theme
Group DevelopersGroup Documentation writersGroup Particularly helpful MoodlersGroup Testers

Hi Damian,

There is something you could do,  I wish you would stop adding ridiculously large images which don't really tell a story. We all know what a missing profile image looks like...an empty space! lol

OK...lets start back-tracking to the point where you were last making changes to this theme. To have lost the User/Profile image you must have been messing with the "AWESOMEBAR" in the renderers.php or the lib.php for this theme, but the fact you have a shorter awesomebar in IE7 & IE8 suggest to me that you have also some missing closing DIVs or your CSS has ERRORS so check all the layout/general.php and layout/frontpage.php files, and checkout your CSS in the W3C CSS Validator HERE

That should keep you out of mischief for a while! LOL

Mary

 
Average of ratings: -
Picture of Damian Griffiths
Re: Decaf - Moodle 2 Theme
 

Thank you, Richard & Mary, for your suggestions (and your offer of direct assistance, Richard - much appreciated.)

I checked "show user picture" in Decaf theme settings and then unchecked compatibility view in IE tools and all's well.

Best wishes,

Damian

 
Average of ratings: -
Picture of Philippe Siwinski
Re: Decaf - Moodle 2 Theme
 

Hi,

We use Moodle 2.1.1 with the most recent version of Decaf as default theme.

Teachers of a given course get the following error message when trying to display it as student.

Coding error detected, it must be fixed by a programmer: PHP catchable fatal error

The problem does not seem to occur with other courses.

The debug info is :

Debug info: Argument 1 passed to theme_decaf_topsettings_renderer::navigation_node() must be an instance of navigation_node, boolean given, called in /var/www/moodle/theme/decaf/renderers.php on line 282 and defined
Stack trace:

    line 359 of /lib/setuplib.php: coding_exception thrown
    line 250 of /theme/decaf/renderers.php: call to default_error_handler()
    line 282 of /theme/decaf/renderers.php: call to theme_decaf_topsettings_renderer->navigation_node()
    line 282 of /theme/decaf/renderers.php: call to theme_decaf_topsettings_renderer->navigation_node()
    line 284 of /theme/decaf/renderers.php: call to theme_decaf_topsettings_renderer->navigation_node()
    line 284 of /theme/decaf/renderers.php: call to theme_decaf_topsettings_renderer->navigation_node()
    line 244 of /theme/decaf/renderers.php: call to theme_decaf_topsettings_renderer->navigation_node()
    line 59 of /theme/decaf/layout/general.php: call to theme_decaf_topsettings_renderer->navigation_tree()
    line 654 of /lib/outputrenderers.php: call to include()
    line 612 of /lib/outputrenderers.php: call to core_renderer->render_page_layout()
    line ? of unknownfile: call to core_renderer->header()
    line 1291 of /lib/setuplib.php: call to call_user_func_array()
    line 196 of /course/view.php: call to bootstrap_renderer->__call()
    line 196 of /course/view.php: call to bootstrap_renderer->header()

Thanks.
 
Average of ratings: -
Picture of Paul Nicholls
Re: Decaf - Moodle 2 Theme
Group DevelopersGroup Particularly helpful Moodlers

Hi Phillipe,

Is there anything you can see (in terms of course settings, blocks/modules in use, etc) which differentiates it from other courses (which don't have the problem)?  If you're not able to identify the difference, are you able to provide me with a backup of the course (without user data etc) so that I can investigate further?

Regards,
Paul

 
Average of ratings: -
Picture of Philippe Siwinski
Re: Decaf - Moodle 2 Theme
 

Hi,

sorry for replying late. The problem still occurs with latest build of the Decaf theme. It happens with any course. I will send you a backup soon. Thanks

 
Average of ratings: -
It's only an avatar...
Re: Decaf - Moodle 2 Theme
Group DevelopersGroup Documentation writersGroup Particularly helpful MoodlersGroup Testers

Can I ask if the same problem occurs in any other theme?

Just trying to rule out other factors.

Also something just occured to me...did you make a course theme from a previous version of Decaf?

Thanks

Mary

 
Average of ratings: -
Picture of Paul Nicholls
Re: Decaf - Moodle 2 Theme
Group DevelopersGroup Particularly helpful Moodlers

Hi Philippe,

I can replicate the issue using a course created from the backup you provided.  I'm looking into it now to see if I can work out why it's happening.

Edit:
It looks like it may be related to the way that some nodes are incorrectly flagged as having children when they don't - I've added a simple workaround which should prevent this specific error from happening (it now won't try to expand a node if it can't find any content to expand it with).  You can grab the new version from the plugins database (http://moodle.org/plugins/pluginversion.php?id=276).

-Paul

 
Average of ratings: -
Picture of Craig Mackey
Re: Decaf - Moodle 2 Theme
 

We are currently about to upgrade our site to Moodle 2.1+ and have settled on using the decaf theme. The menu system is fantstic and really suits our needs. We are currently running a test site to iron out any bugs that may come up and have noticed a couple of things that need clarifying or debugging.

  1. Is it possible to combine the custom menu with the awesomebar so that all of the awesomebar is on the left (representing the moodle site) and the custom menu tacked onto the righthand side so that the menus relevant to the site are together with the external menu items separate. Currently the custom menu sits in the middle.
    combined custom menu & awesomebar
  2. When I turn editing mode on in the course view, all of the little editing icons don't display. In some of the editing screens the icons display fine (add/edit courses, blocks editing, etc.). Consequently it's not possible to edit courses where the items icons are not displayed correctly.

    Is there anything special that I need to do to display these correctly?
    incorrect decaf icons



  3. I see that moodle is about to upgrade to 2.2, will the decaf theme work in the new version without any issues that you are currently aware of?

Thanks,

Craig.

 
Average of ratings: -
Picture of Paul Nicholls
Re: Decaf - Moodle 2 Theme
Group DevelopersGroup Particularly helpful Moodlers

Hi Craig,

Thanks for your interest in the Decaf theme.  First off, can you please confirm whether you're using the latest version from the Plugins database (link here)?

To answer your questions:

1) It's a pretty simple tweak to change the order of the Awesomebar menu and the custom menu, but if you change it yourself you'll have to make the change again any time Decaf is updated.  I'll add a new setting to control whether the custom menu is added before or after the Awesomebar menu - it'll have to default to the current behaviour so that it doesn't suddenly change things around for existing users when they update.  I'll try to get this done in the next couple of days.

2) Have you made any customisations - either to Decaf or to the Base or Canvas themes?  If you're running the latest version of Decaf with no customisations, can you please clear the theme cache (button at the top of the Theme Selector page) and see if it helps at all?

3) Decaf should work on Moodle 2.2 without any problems - but I can't guarantee it until 2.2 is released wink

 

HTH,
Paul

 
Average of ratings: -
Picture of Craig Mackey
Re: Decaf - Moodle 2 Theme
 

Paul - I may not be using the latest version - I couldn't see any release date information on the page that you linked to above, nor in the  The one that I installed came in the folder:

 leizhang-moodle-theme_decaf-ae48c9c

Clearing the theme cache doesn't make any difference.

Looking at the date stamps on the files, my installed version are 13th November and the latest seem to be 14th, so I think that I'll reinstall the latest one and see how it goes. I've only made a few changes to the colour scheme in the .css files a little for our school, but nothing to do with changing layout sizes, font sizes etc. so that's not a major issue. What I'd really like to do is set it up so that I can install theme updates without having to redo all of the changes, but haven't got that far yet.

Tweeking the menu's would be a great option.

Another interesting occurrence is the effect of older versions of Internet explorer. We have versions IE7, 8 & 9 running in our school in different locations/machines. In IE7 the little home icon image on the end of the awesomebar doesn't display, whereas in IE8 & 9 it's fine. The link works but the image doesn't come up.

Thanks for getting back to me so quickly.

Craig.

 
Average of ratings: -
Picture of Richard Oelmann
Re: Decaf - Moodle 2 Theme
Group Particularly helpful MoodlersGroup Testers

Hi Craig,

The easiest way to make theme changes without worrying about future theme upgrades is to make your changes using a parent/child theme.

Create a very simple theme which has the bare minimum contents (I made a theme called minimal for doing this a few months ago - it was for Boxxie and Moodle2.0, but there shouldn't be any major changes - which can be downloaded here) and in the config.php, set decaf as a parent theme instead of Boxxie.

All you need to do then is make any css changes in the minimal.css file and change the theme name everywhere that needs changing (or you could leave the theme as being called minimal and not worry about that part! wink)

If you then update decaf theme in the future, the child theme (minimal) will pick up all the changes to decaf without altering the changes you have made to the css.

HTH

Richard

 
Average of ratings: -
Picture of Craig Mackey
Re: Decaf - Moodle 2 Theme
 

Thanks Richard,

This sounds quite straight forward. Looking at minimal.css am I correct in assuming that I just need to copy the line from one of the decaf style sheets, paste it into minimal.css, then change the parameter that I need (after renaming etc. as described above).

e.g. to change a colour I would just copy and paste say:

ul.dropdown ul li:hover > span, ul.dropdown ul li:hover > span a{background-color:#4c4c4c;background-image:url([[pix:theme|ab-arrowover]]);}

from awesomebar.css, into minimal.css, then change the background colour code to our preference. Then after selecting "minimal" as the theme it will display the decaf theme with the exception of the changed dropdown menu hover colour above.

 
Average of ratings: -
Picture of Richard Oelmann
Re: Decaf - Moodle 2 Theme
Group Particularly helpful MoodlersGroup Testers

That is the idea Craig, yes. Provided - as you point out, that the renaming and alteration to the config.php from my first post is done.

Also, if you use firebug, then you can identify the element that you want to style and add the rules directly into the minimal.css file. If they already exist in decaf somewhere they should be over-written by anything contained in the minimal theme and if they don't you are quite safe to add them there anyway. css added to the minimal theme in this way should over-write any css set by the parent theme(s) or the core.

Hope you find it useful

Richard

 
Average of ratings: -
Picture of Craig Mackey
Re: Decaf - Moodle 2 Theme
 

Thanks Richard. I'll definitely be trying that as soon as I get a chance.

Craig.

 
Average of ratings: -
Picture of Craig Mackey
Re: Decaf - Moodle 2 Theme
 

Paul,

I just downloaded and installed the latest decaf theme from the above link, cleared theme cache and still no change. Course editing icons are not showing correctly. Currently I'm using IE8 but it makes no difference which IE version I'm using.

Craig.

 
Average of ratings: -
It's only an avatar...
Re: Decaf - Moodle 2 Theme
Group DevelopersGroup Documentation writersGroup Particularly helpful MoodlersGroup Testers

Hi Craig, It's NOT theme cache you need to purge it's all Moodle cache!
To do this go to Site Administration > Development > Purge all caches -> this is a link which takes you to a page where you are given the option to purge all caches by clicking the button. You can do this a couple of times as sometimes it jumps some.  Then when you are done go back to the home page and refresh your browser. 

Also if you can try Firefox and see the difference...

IE7 is not being supported in Moodle 2.2 although it will work in that browser some themes wont display as well.  IE8 & IE9 are fine provided they are NOT in compatibility mode. You need to check browser options.

HTH

Mary

 
Average of ratings: -
Picture of Craig Mackey
Re: Decaf - Moodle 2 Theme
 

Thanks Mary,

I purged all caches as above with no apparent effect. Any other ideas?

I'd like to try Firefox but unfortunately it's currently not an option. We are locked into using IE by dept. policy at work and currently the server our prototype is running on is not available directly from the internet, but must be loaded off the school intranet. I can access it from offsite only after logging onto the intranet via terminal server. I should be able to use firefox next week when we rollover to 2.1 and the site goes live to the internet.

Craig.

 
Average of ratings: -
Picture of Craig Mackey
Re: Decaf - Moodle 2 Theme
 

Paul,

I've also changed themes a couple of times and the editing icons show up fine in those. Are the icons in decaf too large for the space available & hence they aren't displaying correctly?

Craig.

 
Average of ratings: -
Picture of Dustin Horstmann
Re: Decaf - Moodle 2 Theme
 

Paul, hope you are well--

I just loaded the most recent Decaf theme to Moodle 2.4.3 and when I added custom menu items, it placed them in the awesome bar on top, to the left of the other menu items. 

I would like it to trigger the custom menu below the header (a separate menu). In fact, it does do this on our test site with the same settings. 

Is there something I'm missing? 

 
Average of ratings: -
Picture of Paul Nicholls
Re: Decaf - Moodle 2 Theme
Group DevelopersGroup Particularly helpful Moodlers

Hi Dustin,

That's controlled by the "Add custom menu to Awesomebar" setting in the Decaf theme settings (Site Administration -> Appearance -> Themes -> Decaf).  If it's already set to "No", try setting it to "Yes", saving the settings, then changing it back to "No" and saving them again.  You might need to then either refresh or navigate to another page in order to see the new setting applied.

-Paul

 
Average of ratings: -
Picture of Dustin Horstmann
Re: Decaf - Moodle 2 Theme
 

Worked! So great smile Thanks. 

 
Average of ratings: -
Picture of Paul Nicholls
Re: Decaf - Moodle 2 Theme
Group DevelopersGroup Particularly helpful Moodlers

Hi Craig,

I've just released a new version (grab it from the plugins DB) which should hopefully fix your IE issues (though the gaps between some of the icons seems to be being changed by YUI, and I can't seem to stop it doing so - so they don't quite look as evenly spaced in IE as in other browsers).  It also adds a new setting to shift the custom menu to the end of the Awesomebar (if you have it in the Awesomebar).

Cheers,
Paul

 
Average of ratings: -
Picture of Craig Mackey
Re: Decaf - Moodle 2 Theme
 

Paul,

Now that's what I call customer service. I just downloaded and installed the updated theme into our test site and it looks much better. Just in time for our upgrade on Monday. My next step is to clone the theme and tweak the colours a little.

I really appreciate the effort from the decaf team. Great job. smile 

Thankyou once again,

Regards,

Craig.

 
Average of ratings: -
Picture of Daniel Klewzyc
Re: Decaf - Moodle 2 Theme
 

Hi! First thanks for decaf, it really is by far the nicest moodle theme. Just gone to the latest version to try and sort out some issues in IE, seems good to me. I have noticed a minor glitch with the forums that occurs in all browsers (ff8, chrome, ie 8/9 and safari)

Doesnt seem to have any style applied to the number of replies nor can i find any info on how to set it.

All suggestions would be most welcome!

 
Average of ratings: -
Picture of Richard Oelmann
Re: Decaf - Moodle 2 Theme
Group Particularly helpful MoodlersGroup Testers

Hi Daniel,

If you use something like firebug in firefox, this will tell you what the css selector that applies to the item is and where any existing css rules are set. (It may be necessary to have Theme Designer Mode enabled to show the actual path of the css)

If those rules are not set in the theme itself, you are quite safe to add them (usually to the end of the last css file) as they will then over-write any which are set by parent themes or moodle core (yui etc). If they are set in the theme then firebug will tell you where the rule is and you can edit it there.

HTH

Richard

 
Average of ratings: -
Picture of Paul Nicholls
Re: Decaf - Moodle 2 Theme
Group DevelopersGroup Particularly helpful Moodlers

Hi Daniel,

I've just added a fix for this - if you grab the latest version from the plugins DB, it should come right once you visit the admin notifications page to trigger the "upgrade" (that seems to clear the cache - if not, clearing the theme cache from the "theme selector" page should do the trick).

- Paul

 
Average of ratings: -
Picture of Daniel Klewzyc
Re: Decaf - Moodle 2 Theme
 

Thanks very much for the quick response Paul! Will try this out now and let you know how i get on.

Cheers!

Dan

 
Average of ratings: -
Picture of Craig Mackey
Re: Decaf - Moodle 2 Theme
 

I've just come across another minor glitch in the Decaf theme.

It appears that when "Restricted Access" is enabled on an activity, and the "Restriction information is displayed, the information text overwrites the next resource. This is the case in both IE and FF browsers.

I changed themes to "Formal White" it displays fine so I'm thinking that it's something in the Decaf theme.

See screen snip below.

 

Could we please have this little glitch rectified.

Thanks,

Craig.


Restricted access text in decaf issue

 
Average of ratings: -
Picture of Paul Nicholls
Re: Decaf - Moodle 2 Theme
Group DevelopersGroup Particularly helpful Moodlers

Hi Craig,

This stems from the use of a fixed height being used to make sure the editing icons fit nicely (when you're in editing mode).  I've fixed this by changing it from a height to a min-height, which allows it to expand but makes sure it's tall enough for the editing icons to fit (when present) - you can grab the new version from the plugin db as per usual.  The only (common) browser I'm aware of that doesn't support min-height properly is IE6, but that's not an issue given that neither Moodle 2 nor Decaf supports IE6.

Cheers,
Paul

 
Average of ratings: -
Picture of B. D.
Re: Decaf - Moodle 2 Theme
 

This theme does not work properly when "Theme Designer" mode is disabled. We have purged all caches. Then "Theme Designer" mode is disabled, our colour changes to awesomebar.css do not all appear. Please see here for description of issue: http://moodle.org/mod/forum/discuss.php?d=168281

All these suggestion have been tried except rewrite css in Decaf theme, we are not coders with ability to rewrite the Decaf theme.

Also see what it look like when Theme Designer Mode is enabled: (correct colour for top bar)

with theme designed enabled, it look correct

And when Theme Designer Mode is disabled: (wrong colour for top bar)

with theme designer mode disable, it look incorrect.

 

Can you please help us to sort this issue. We appreciate you have the nicest Moodle 2.2 Theme but when we turn off the Theme Designer, it does not behave expected and show incorrect colours than what is specified in awesomebar.css.

 
Average of ratings: -
It's only an avatar...
Re: Decaf - Moodle 2 Theme
Group DevelopersGroup Documentation writersGroup Particularly helpful MoodlersGroup Testers

At a guess I would say this is IE8/9 in Compatibility Mode.

If usding IE8/9 you MUST make sure you are using the correct view there are 8 possible combinations of views available in IE8/9. Click F12 (Function Key 12) on your keyboard and you will see a split screen the bottom half will display the page source code the middle menu bar on that section contains options to use IE7 Standards this, I suspect, is why you are seeing the missing color, it is becasue IE7 does not recognise it.

Have you tried FireFox or some other browser other than IE?

Cheers

Mary

 
Average of ratings: -
Picture of B. D.
Re: Decaf - Moodle 2 Theme
 

Please note that the screenshots we have posted are utilising the Google Chrome browser, and that additionally this behaviour manifests in all browsers (IE8, IE9, Safari, Chrome, Firefox).

 
Average of ratings: -
It's only an avatar...
Re: Decaf - Moodle 2 Theme
Group DevelopersGroup Documentation writersGroup Particularly helpful MoodlersGroup Testers

I'm about to start testing this theme again with the latest Moodle 2.2.1 and the latest version of Decaf.

In the mean time can you tell me exactly the environment you are running/viewing Moodle on?

Server Type / Version
PHP / Version
MySQL / Version

PC/Mac
Operating System
Browsers

Thanks

Mary

 
Average of ratings: -
It's only an avatar...
Re: Decaf - Moodle 2 Theme
Group DevelopersGroup Documentation writersGroup Particularly helpful MoodlersGroup Testers

As well as answering my last question, can you also tell me how you go about changing the awesomebar colour from the original (black) to your customised colour (maroon)?

What I need to know is how did you do this and where did you make the changes?

Thanks

Mary

 
Average of ratings: -
It's only an avatar...
Re: Decaf - Moodle 2 Theme
Group DevelopersGroup Documentation writersGroup Particularly helpful MoodlersGroup Testers

Further to my last two posts. I can not find anything wrong with the way Decaf renders Custom CSS. It works perfectly with and without Theme Designer Mode.

All I can suggest is that there are certain course format plugins like Forum Topic and others which are found to conflict with the frontpage of Moodle but this problem is seen in every theme, not just Decaf.

But as far as the Awesomebar background-color changing when Theme Designer Mode is switched off must be something local to you as it's not happening on my localhost set-up.

All I can suggest is to check that the CSS you must be adding to your Custom CSS is correct. You should have something like...

Mary

 
Average of ratings: -
Picture of B. D.
Re: Decaf - Moodle 2 Theme
 

openSUSE 11.4 x86_64 Celadon

apache2-example-pages-2.2.17-4.11.1.x86_64
apache2-doc-2.2.17-4.11.1.noarch
apache2-mod_python-3.3.1-161.3.1.x86_64
apache2-mod_perl-2.0.4-52.4.x86_64
apache2-mod_dnssd-0.6-10.1.x86_64
apache2-utils-2.2.17-4.11.1.x86_64
apache2-devel-2.2.17-4.11.1.x86_64
apache2-mod_php5-5.3.5-5.16.1.x86_64
apache2-prefork-2.2.17-4.11.1.x86_64
apache2-2.2.17-4.11.1.x86_64

 

 

php5-hash-5.3.5-5.16.1.x86_64
php5-curl-5.3.5-5.16.1.x86_64
php5-mbstring-5.3.5-5.16.1.x86_64
php5-sqlite-5.3.5-5.16.1.x86_64
php5-json-5.3.5-5.16.1.x86_64
php5-pdo-5.3.5-5.16.1.x86_64
php5-iconv-5.3.5-5.16.1.x86_64
php5-ldap-5.3.5-5.16.1.x86_64
php5-intl-5.3.5-5.16.1.x86_64
php5-zip-5.3.5-5.16.1.x86_64
php5-openssl-5.3.5-5.16.1.x86_64
php5-dom-5.3.5-5.16.1.x86_64
php5-5.3.5-5.16.1.x86_64
php5-xmlrpc-5.3.5-5.16.1.x86_64
php5-xmlwriter-5.3.5-5.16.1.x86_64
php5-mysql-5.3.5-5.16.1.x86_64
php5-gd-5.3.5-5.16.1.x86_64
apache2-mod_php5-5.3.5-5.16.1.x86_64
php5-ctype-5.3.5-5.16.1.x86_64
php5-xmlreader-5.3.5-5.16.1.x86_64
php5-tokenizer-5.3.5-5.16.1.x86_64
php5-soap-5.3.5-5.16.1.x86_64

 

mysql-community-server-5.1.57-0.3.1.x86_64
libreoffice-base-drivers-mysql-3.4.2.6-2.3.1.x86_64
libmysqlclient_r16-5.1.57-0.3.1.x86_64
mysql-community-server-client-5.1.57-0.3.1.x86_64
libqt4-sql-mysql-4.7.1-8.15.1.x86_64
php5-mysql-5.3.5-5.16.1.x86_64
libmysqlclient16-5.1.57-0.3.1.x86_64

 

All operating systems

All browsers

All Changes are made in customised minimal theme custom CSS, attached

Theme selected in moodle is "minimal" as instructed per this discussion thread

 

 
Average of ratings: -
It's only an avatar...
Re: Decaf - Moodle 2 Theme
Group DevelopersGroup Documentation writersGroup Particularly helpful MoodlersGroup Testers

There is no css in decaf called minimal.css

If you are using the theme Minimal, well that is a different matter, in which case this is in the wrong discussion.

I wish you had said this earlier!

Mary

 
Average of ratings: -
Picture of Richard Oelmann
Re: Decaf - Moodle 2 Theme
Group Particularly helpful MoodlersGroup Testers

I have to say that your initial post is misleading - When you post in a thread about a specific theme 'This theme does not work properly when "Theme Designer" mode is disabled', but then when asked for more information you state that 'All changes are made in customised minimal theme custom CSS, attached' that is not going to help the community fins a solution to your problem!

If you comment that a specific theme is not working, then that is the theme that people are going to look at to fix - as Mary did, and did not find any issues. It all gives casual forum readers a potentially incorrect impression of the theme you are posting about.

Now, from your new post it would seem that your issue is actually with a custom theme created from minimal (the link, if there was one, at the bottom of your post isn't working -so I'm going to assume that you are referring to the minimal theme I posted for someone a while ago as a starter for a child theme.) presumably using decaf as a parent.

In that case I would have to say, I'm not altogether surprised it doesn't work properly as minimal was designed as a starting point for a simple child theme, while the extent to which decaf makes use of renderers, settings, et al means that minimal would need a LOT of additional work to cater for those extra features.

Now, if that is the case I (and I'm sure others) would be quite happy to work towards supporting your efforts in customising decaf through a child theme starting off with something like minimal. But without that information in the first place Mary, Paul (and to a certain extent, myself) will I'm sure have spent time trying to isolate what could possibly be the problem you reported with decaf.

Please, please, please - to everyone - this is a very friendly and helpful community, but the majority of community members do it in their own time and with their own efforts and energy. Please help us to help you by providing the correct information!

Richard

 
Average of ratings: -
It's only an avatar...
Re: Decaf - Moodle 2 Theme
Group DevelopersGroup Documentation writersGroup Particularly helpful MoodlersGroup Testers

Hi Richard,

If you change the view of this discussion to view this discussion replys by thread then you will see BD is referring to your comment to Craig Mackey a while back about this same thing...suggesting Minimal as an option to try when styling a theme.

http://moodle.org/mod/forum/discuss.php?d=153801&parent=832415

In fact if you view this discussion it is plain to see how misleading comments can be and how lost we can get.

However...surprisinly enough this DOES work using the MININAL theme so this is, as far as I am concerned, a problem with BD as this works perfectly well with the css he supplied.

Now the problem is, is BD making changes to minimal/style/minimal.css but actually using decaf as his/her's default theme!!! smile

Ummm

Cheers

Mary

 
Average of ratings: -
Picture of B. D.
Re: Decaf - Moodle 2 Theme
 

I can assure you we have default set for minimal theme as instructed previously to this thread, but also have attempted the default set as decaf with the same behaviour evident (changes of minimal.css is a copy of awesomebar.css). Does this make sense now?

 
Average of ratings: -
It's only an avatar...
Re: Decaf - Moodle 2 Theme
Group DevelopersGroup Documentation writersGroup Particularly helpful MoodlersGroup Testers

Have you made ANY changes to Decaf in the custom settings page for that theme?  Either after you started using minimal theme or before?

I tried it out and found it to work perfectly, but then it worked perfectly before...so I don;t know what to suggest.

Are you purging all cache in Moodle in the normal way?

Have you got Theme Designer Mode on?

Have you cleared cache in the browser? What browser is this by the way? Please don't say IE7!!!

Mary

 
Average of ratings: -
Picture of Grant Mucha
Re: Decaf - Moodle 2 Theme
 

Possibly a dumb question. How/Where can I disable the performance info that sticks to the bottom of the page?

 
Average of ratings: -
Picture of Paul Nicholls
Re: Decaf - Moodle 2 Theme
Group DevelopersGroup Particularly helpful Moodlers

Hi Grant,

The performance info bar is just a different way of presenting Moodle's standard performance info - so it can be disabled by unticking the "performance info" box on Site Administration -> Development -> Debugging.

-Paul

 
Average of ratings:Useful (1)
Picture of Daniel Blum
Re: Decaf - Moodle 2 Theme
 

Hey,

 First, Just wanted to say I love the theme, keep up the good work. 

  Second, wanted to see if anyone had come up with this issue:

edit_delete issue

You'll notice the that calendar events do not have edit icons but that they have all been shoved to the top right of the screen over the new event button.

Any fixes out there?

 
Average of ratings: -
It's only an avatar...
Re: Decaf - Moodle 2 Theme
Group DevelopersGroup Documentation writersGroup Particularly helpful MoodlersGroup Testers

Hi...yes there were I few errors in the core .css which I have fixed...not too major, but could have caused some elements not to display properly. 

I found the problem at line 94 .commands {position:absolute; top:0; right:0;} with the absolute positioning of the .commands resulted in the view you gave.

Ive attached the core.css for you here.

EDIT: I have removed the css as a corrected version of the original is now in the Decaf theme in the plugins database.
See Paul's comment below this one!

Cheers

Mary

 
Average of ratings: -
Picture of Paul Nicholls
Re: Decaf - Moodle 2 Theme
Group DevelopersGroup Particularly helpful Moodlers

I've just released a new version of Decaf which contains some of Mary's fixes (thanks!) and a different fix for the calendar events button placement issue (Mary's fix moves buttons in some other places around a bit).  You can grab it from the plugin database, as per usual.

Cheers,
Paul

 
Average of ratings: -
Picture of P K
Re: Decaf - Moodle 2 Theme
 

Is there a way to move or copy a node from within the menu and use it as a separate dropdown?

For instance, moving/copying Appearance from inside Site administration and using it as a separate menu item. How can I achieve this?

 
Average of ratings: -
Guido
Re: Decaf - Moodle 2 Theme
Group Moodle Course Creator Certificate holders

Please help me:

in some decaf courses, the two column works, like here:

ok

 

but  in others I get a 3rd colummn I don't want:

bad

 
Average of ratings: -
Picture of Paul Tosney
Re: Decaf - Moodle 2 Theme
Group Testers

I am using Moodle 2.2.2 with no extensions. The only thng added to this install is a bunch of themes that I am trying. Latest version of Decaf from here http://moodle.org/plugins/pluginversions.php?plugin=theme_decaf

This can be reproduced in Chrome and Firefox.

The course page seems to have a 3rd left hand column...

If I turn on editing and add any block to the right hand column, and then dock it, the space disappears...

Then when I undock the block, the content stays where it is...

However, when I look at the block I have just undocked...editing is on, but there are no editing icons for this block now...

If I turn editing off, then back on again the editing icons for the block are back...but so is the space at the left as in the first image in this posting.

 
Average of ratings: -
It's only an avatar...
Re: Decaf - Moodle 2 Theme
Group DevelopersGroup Documentation writersGroup Particularly helpful MoodlersGroup Testers

Hi,

The problem with the BLOCKS and DOCKING is a CSS issue. Problem is this theme does not have the latest CSS fixes. Most of the recent fixes, made to Moodle CORE themes pagelayout, have been done by me, but there is no way I can do the same for all the themes out there. Paul Nichols, who maintains this theme now has worked hard on getting Decaf updated every time Moodle CORE changes as it has had some major work done over the last few months, especially with the navigation.

However, the CSS is something else. I'll see if I an get back to you with some CSS to fix the pagelayout problem.

Thanks

Mary

 
Average of ratings:Useful (1)
Picture of Paul Nicholls
Re: Decaf - Moodle 2 Theme
Group DevelopersGroup Particularly helpful Moodlers

You're too quick, Mary!  See my reply for an explanation of each of the two issues (one's a core issue which has been reported, the other I've just fixed in Decaf).

 
Average of ratings: -
It's only an avatar...
Re: Decaf - Moodle 2 Theme
Group DevelopersGroup Documentation writersGroup Particularly helpful MoodlersGroup Testers

Hi Paul,

Is there any way that there could be a $hasawesomebar = $PAGE-> something or other? where we have $hassidepre and $showssidepre etc., so that you could set a body class for when the awesomebar is active and side-pre & side-post have been docked then body class can be 'content-only' because at the moment Moodle still thinks Settings is still in the page, which it is, but as it's not a dockable block it still needs accounting for. 

Cheers

Mary

 
Average of ratings: -
Picture of Paul Nicholls
Re: Decaf - Moodle 2 Theme
Group DevelopersGroup Particularly helpful Moodlers

Hi Mary,

The fix I mentioned in my other post addresses this by correctly applying the existing standard classes - I'm just working on tidying up one last little thing, and then I should hopefully be able to release the new version of Decaf this afternoon (in a few hours).  Keep an eye out on the Themes forum - I'll post an announcement when the update's available.

-Paul

 
Average of ratings: -
It's only an avatar...
Re: Decaf - Moodle 2 Theme
Group DevelopersGroup Documentation writersGroup Particularly helpful MoodlersGroup Testers

Great news...thanks! Will do byeee...

 
Average of ratings: -
Picture of Paul Nicholls
Re: Decaf - Moodle 2 Theme
Group DevelopersGroup Particularly helpful Moodlers

Hi Paul,

The lack of editing icons in the block when you undock it is a core Moodle issue (and will therefore happen with any theme) - it's been reported as MDL-27309, so you may want to watch (and vote on) that bug ticket.

As for the empty left column being visible, that's due to the way that the Settings and Navigation block are hidden (if you so choose in the Decaf theme settings); I've just worked out a fix, which I'll roll out shortly as part of the new version of Decaf I'm just about to release.  The empty column vanishes when you dock/undock blocks because the Javascript that does the docking/undocking checks whether there's anything in the column - since there isn't, it thinks you've docked everything that was there, and therefore hides the column - until you next (re)load the page.  Refreshing the page would have the same effect as turning editing off and on again in this regard.

 

-Paul

 
Average of ratings:Useful (1)
Picture of Jay Huber
Re: Decaf - Moodle 2 Theme
 

We wanted to use this theme for our default theme a the college.  However, after loading in our 2600+ classes, the click time per page went from 1 second to 20 seconds.  I switched to the other default themese and do not have any issues with response times; just this theme.  We like the awesomebar but am not sure what is the problem.

Also, for example clicking on grades in a course causes a left/right scroll bar to appear at the bottom, breaking the footer.

Any ideals?

 
Average of ratings: -
Picture of Chris Wheatland
Re: Decaf - Moodle 2 Theme
 

I've just started using decaf theme, and some course names are coming up blue, and some are red. I can't seem to figure out why they're different colours. Could you help?

 
Average of ratings: -
Picture of Eduardo Roxius
Re: Decaf - Moodle 2 Theme
 

Which blue is it, is it a default anchor blue? (That one that comes when the link has no formatting).

Find where these elements are and edit the css. Example:

.divclass a {
   color: red;

change the "divclass" for the element's class you find the blue links

 
Average of ratings: -
Picture of Chris Wheatland
Re: Decaf - Moodle 2 Theme
 

Haha, oh yeah, they're just behaving like links which change colour when I've clicked on them. Mystery solved, thanks.

 
Average of ratings: -
Picture of Chris Wheatland
Re: Decaf - Moodle 2 Theme
 

I'm trying to put a custom banner in the theme, and it's worked quite well so far, my logo's in place on the front page like I want. However, no matter what size I make it, the theme surrounds it with around 50px of grey padding space. Is there a way to remove this padding? It looks a bit daft with my banner.

Cheers

EDIT: Actually, don't worry about it, the solution is to edit the line in the core.css in the 'style' folder. I needed to change the line:

#page-site-index .headermain{font-size:2.5em;margin:0.85em 0;}

and alter the margin to something smaller than 0.85 (I went with 0.1).

I've included this in case anyone else has the same issue as me.

 
Average of ratings: -
It's only an avatar...
Re: Decaf - Moodle 2 Theme
Group DevelopersGroup Documentation writersGroup Particularly helpful MoodlersGroup Testers

Hi Colin,

Why go to all the trouble changing your thems core css file when you could have made those changes in the theme itself?

I presume you have by now discovered the Decaf setting page, located in Settings > Site Administration > Appearance > Themes -- at this point you will see a list of theme names. If you CLICK on the link that says Decaf the the page that opens is Decafs custom settings page.

The 3rd section from the top should be where you can add your CSS.

However, I am not sure that...

#page-site-index .headermain{font-size:2.5em;margin:0.85em 0;}

is the place you want to be adding a banner. I would have thought #page-header, especially as you could add this as a background image in your css like so...

#page-header { background: url([[pix:theme|banner]]) no-repeat left top; margin: 0; padding: 0; }

assuming you had an image called banner.jpg or banner.png in your decaf/pix directory?

HTH

Mary

 
Average of ratings: -
Picture of Ger Tielemans
Re: Decaf - Moodle 2 Theme settings page?
 
Lei and Mary,

I am addicted to the Decaf theme and try it now under Moodle 2.3 beta: awesomebar now even works on my iPad!

Some wishes when using it:

1. While testing it for an organisation with a very long name, I wished I could change font size and wrapper size on the frontpage and the regular page somewhere in the settings page (the same for adding a logo yes/no?)

2. I Also use the good morning login/logout block. Your theme keeps the screen very clean, I wish this also here: show/hide the login info on the top-right of the screen as an option in the settings page?

3. when testing it with many plugins, the cascading menu's are running from the screen and I cannot scroll or touch these lower menu parts.

4. In the new Moodle 2.3 you get a transparant block for adding resources and activities. Difficult to read when it overlaps text /pictures on that page. (Must?Can your theme solve this?)

 
Average of ratings: -
It's only an avatar...
Re: Decaf - Moodle 2 Theme settings page?
Group DevelopersGroup Documentation writersGroup Particularly helpful MoodlersGroup Testers

That is not a transparent page that is a z-index problem with the Decaf page. It means that the page z-index is greater than the Mod Chooser and therefore takes precedence.

This needs reporting in Moodle Tracker if it affects other themes. Of course this could be just a BUG in Decaf theme, but could also be happening on all Moodle themes. Would you be so kind as to check this out? And let me know if you get this same behaviour in say the Standard theme or Afterburner?

As for the Wish List. Better ask Paul Nicholls as he is lead maintainer for the Decaf theme.

There is a new version of Decaf out that fixes some of the Menu issues.  The release is called Speed Demon - you can read about it here...

http://moodle.org/mod/forum/discuss.php?d=203236

Cheers

Mary

 
Average of ratings: -
Picture of David O'Brien
Re: Decaf - Moodle 2 Theme settings page?
 

Hi De Ho

I have the same small issue with the mod chooser and have posted on Paul's thread over at http://moodle.org/mod/forum/discuss.php?d=203236#p886654

Regards

 
Average of ratings: -
Picture of Paul Nicholls
Re: Decaf - Moodle 2 Theme settings page?
Group DevelopersGroup Particularly helpful Moodlers

Hi David and Ger,

I've fixed this issue, but I was intending to do some more tweaking before releasing a new build.  In the mean time, you can either grab a copy of the theme from Github, or add the following line to the custom styles in the Decaf theme settings:

div.moodle-dialogue-base {position:absolute;top:0;left:0;right:0;z-index:150;}

That should do the trick until I release the next version (I'll release a new build by the end of the week, whether or not I've done that further tweaking).

-Paul

 
Average of ratings: -
Picture of David O'Brien
Re: Decaf - Moodle 2 Theme settings page?
 

Fantastic, thank you Paul. I was missing the div part.
Cheers

 
Average of ratings: -
Picture of Paul Nicholls
Re: Decaf - Moodle 2 Theme settings page?
Group DevelopersGroup Particularly helpful Moodlers

Didn't quite manage it by the end of the week - but RC5 is now available, with fixes for this and another minor issue.  Download from the plugin DB as per usual.

-Paul

 
Average of ratings: -
It's only an avatar...
Re: Decaf - Moodle 2 Theme settings page?
Group DevelopersGroup Documentation writersGroup Particularly helpful MoodlersGroup Testers

Thanks Paul...you are a STAR! smile

Cheers

 
Average of ratings: -
Picture of Doug I
Re: Decaf - Moodle 2 Theme
 

Hi,

 First off - awesome theme, thank you.

Now, I'm not sure whether this is an issue with the theme or the "awesomebar", but I'd like to prevent the menu from appearing for unregistered users (ie, users not logged in). I currently have the issue of the bar appearing at the login screen & displaying all of our courses to the public.

Ideally, I'd only like users to see the courses they are enrolled in.

Cheers,

 Doug

 
Average of ratings: -
Picture of Jacque Pohl
Re: Decaf - Moodle 2 Theme
 

I need help. Love the decaf theme. We are using it here: http://test.ieop.iastate.edu.

We have enabled the plugin activity module called "forum" in Moodle. We are using the forum in a course, and we want teachers to be able to "rate" posts. The "rate" feature has been turned on. When viewing a post, we can see the "rate" dropdown box. If a user clicks just perfectly between the word "rate" and the bottom of the dropdown button, the dropdown appears. Most of the time, nothing happens when the dropdown button is clicked. It seems like there is something on top of the button, making it difficult to click. If we switch to the standard moodle, theme, the button works perfectly.

We are using Moodle 2.2.2 and decaf version 1.6 RC4. Please help! We need this functionality so it may be a dealbreaker for this theme.

 
Average of ratings: -
Picture of Manuel Fernandez Canet
Re: Decaf - Moodle 2 Theme
 

Hello Jacque Pohl, for us it is the same and we have tentatively resolved selecting another theme for tablet and phone. Some browsers like Safari let you change the type of navigation to "tablet navigation" or "phone navigation". In this way the teacher can grade the forums with the browser puts in tablet mode. Otherwise you can qualify from the tablet or phone devices.

Regards.

 
Average of ratings: -
Picture of Paul Nicholls
Re: Decaf - Moodle 2 Theme
Group DevelopersGroup Particularly helpful Moodlers

Hi Jacque,

Sorry, I didn't see your post until this week, as I was on holiday when you originally posted - Manuel's post alerted me to it.

I've just released version 1.6.2, which fixes this (as well as a couple of other minor visual issues) - it's available from the plugin database as per usual.

-Paul

 
Average of ratings: -
Picture of Richard Oelmann
Re: Decaf - Moodle 2 Theme
Group Particularly helpful MoodlersGroup Testers

Hi Paul,

FYI - Moodle2.4Beta breaks awesomebar again sad

I was using awesomebar as a feature in rewriting one of my themes again when Mary raised an error that i had not come across building the theme on 2.4Alpha. As soon as I upgraded my test site to the latest 2.4Beta, my theme broke.

When I traced back the 'error' relates to code from the awesomebar and when I then tested, it affects Decaf as well.

The errors are copied below - I'm trying to investigate the cause, but have had no joy so far today.

 

Front Page error
Exception - Unknown Type

line 540 of /var/www/themes/decaf/lib.php: Exception thrown
line 470 of /var/www/themes/decaf/lib.php: call to decaf_expand_navigation->expand()
line 449 of /var/www/themes/decaf/lib.php: call to decaf_expand_navigation->initialise()
line 307 of /var/www/themes/decaf/renderers.php: call to decaf_expand_navigation->__construct()
line 269 of /var/www/themes/decaf/renderers.php: call to theme_decaf_topsettings_renderer->navigation_node()
line 78 of /var/www/themes/decaf/layout/frontpage.php: call to theme_decaf_topsettings_renderer->navigation_tree()
line 793 of /lib/outputrenderers.php: call to include()
line 740 of /lib/outputrenderers.php: call to core_renderer->render_page_layout()
line ? of unknownfile: call to core_renderer->header()
line 1445 of /lib/setuplib.php: call to call_user_func_array()
line 98 of /index.php: call to bootstrap_renderer->__call()
line 98 of /index.php: call to bootstrap_renderer->header()

None of the front page then displays other than some background colours
If I comment out the default on line 540 temporarily (just to get past the front page to test the rest of the site) and go to a course page I then get

Coding error detected, it must be fixed by a programmer: PHP catchable fatal error

line 397 of /lib/setuplib.php: coding_exception thrown
line 1879 of /lib/navigationlib.php: call to default_error_handler()
line 521 of /var/www/themes/decaf/lib.php: call to global_navigation->load_section_activities()
line 470 of /var/www/themes/decaf/lib.php: call to decaf_expand_navigation->expand()
line 449 of /var/www/themes/decaf/lib.php: call to decaf_expand_navigation->initialise()
line 307 of /var/www/themes/decaf/renderers.php: call to decaf_expand_navigation->__construct()
line 318 of /var/www/themes/decaf/renderers.php: call to theme_decaf_topsettings_renderer->navigation_node()
line 318 of /var/www/themes/decaf/renderers.php: call to theme_decaf_topsettings_renderer->navigation_node()
line 269 of /var/www/themes/decaf/renderers.php: call to theme_decaf_topsettings_renderer->navigation_node()
line 85 of /var/www/themes/decaf/layout/general.php: call to theme_decaf_topsettings_renderer->navigation_tree()
line 793 of /lib/outputrenderers.php: call to include()
line 740 of /lib/outputrenderers.php: call to core_renderer->render_page_layout()
line 230 of /course/view.php: call to core_renderer->header()

 

Richard

 
Average of ratings: -
Picture of Paul Nicholls
Re: Decaf - Moodle 2 Theme
Group DevelopersGroup Particularly helpful Moodlers

Hi Richard,

Thanks for letting me know.  I've just pushed a new version (1.6.5) to Github and the plugins database which makes it work on 2.4beta.  It's not perfect, but the errors are gone and it works.  It will need a bit of tweaking to deal with 2.4's bigger activity icons and maybe a deeper look into why the Awesomebar doesn't display the current course under "My Courses" (assuming you're enrolled in the course), though that's not a huge deal since it's still under "current course" and "courses".

-Paul

 
Average of ratings: -
Picture of Richard Oelmann
Re: Decaf - Moodle 2 Theme
Group Particularly helpful MoodlersGroup Testers

Hi Paul,

Many thanks as always for your 'awesome' work on this and your fast reponse. I'll try it out in my theme today.

As for the tweaking for the icons - I'm actually using an adaptation of the fugue icon set I used in a previous theme rather than the new 2.4 ones, so I'll have to see what tweaking is needed there.

Richard

 
Average of ratings: -
Picture of David M
Re: Decaf - Moodle 2 Theme
 

Having an issue with the latest version of the theme on Moodle 2.4. 

Browsing to a particular course as a student results in:

 

Notice: Undefined index: 11 in /var/www/moodle/theme/decaf/lib.php on line 557 Notice: Trying to get property of non-object in /var/www/moodle/theme/decaf/lib.php on line 557 

 

Browsing there as an admin however works fine. 

 

In my Apache Error log i see:

 

 Default exception handler: Coding error detected, it must be fixed by a programmer: PHP catchable fatal error Debug: Argument 1 passed to global_navigation::load_section_activities() must be an instance of navigation_node, null given, called in /var/www/moodle/theme/decaf/lib.php on line 557 and defined\nError code: codingerror\n* line 397 of /lib/setuplib.php: coding_exception thrown\n* line 1879 of /lib/navigationlib.php: call to default_error_handler()\n* line 557 of /theme/decaf/lib.php: call to global_navigation->load_section_activities()\n* line 319 of /theme/decaf/renderers.php: call to decaf_expand_navigation->expand()\n* line 327 of /theme/decaf/renderers.php: call to theme_decaf_topsettings_renderer->navigation_node()\n* line 327 of /theme/decaf/renderers.php: call to theme_decaf_topsettings_renderer->navigation_node()\n* line 278 of /theme/decaf/renderers.php: call to theme_decaf_topsettings_renderer->navigation_node()\n* line 20 of /theme/decaf/layout/general.php: call to theme_decaf_topsettings_renderer->navigation_tree()\n* line 804 of /lib/outputrenderers.php: call to include()\n* line 734 of /lib/outputrenderers.php: call to core_renderer->render_page_layout()\n* line ? of unknownfile: call to core_renderer->header()\n* line 1416 of /lib/setuplib.php: call to call_user_func_array()\n* line 230 of /course/view.php: call to bootstrap_renderer->__call()\n* line 230 of /course/view.php: call to bootstrap_renderer->header()\n, referer: 

 
Average of ratings: -
Picture of Paul Nicholls
Re: Decaf - Moodle 2 Theme
Group DevelopersGroup Particularly helpful Moodlers

Hi David,

I've just released Decaf version 1.6.9, which fixes this issue (and makes a few other improvements).  You can grab it from the plugins database, as per usual.

-Paul

 
Average of ratings: -
St Petersburg, Russia
Re: Decaf - Moodle 2 Theme
Group Particularly helpful Moodlers

Not sure whether this is a good spot to report this bug, but here goes.

Environment :

  • Moodle 2.3.3 , php 5.4.4. mysql 5.5.25
  • decaf theme 1.6.8 downloaded 2 days ago from plugins section of moodle.org

Test

  • use Banner/Luminis Message Broker enrolment plugin to create a semester's worth of courses -- 973 courses in 50 categories
  • Login as user -- site displays properly
  • Attempt to login as administrator:

blank page while waiting (for a long time) then :

Error 324 (net::ERR_EMPTY_RESPONSE): The server closed the connection without sending any data. (Chrome). Firefox is just blank.

I'm effectively locked out of the site.

To fix:

  • go into the database and change the default theme : UPDATE `moodle-test`.`mdl_config` SET `value` = 'leatherbound' WHERE `mdl_config`.`id` =6; . Most other default themes also function fine.

This is repeatable.
Same error also reported here: slow site admin loading

Conclusion:

Bug with handling large numbers of categories / courses in Decaf.

Also logged as CONTRIB 4053

 
Average of ratings: -
Picture of Paul Nicholls
Re: Decaf - Moodle 2 Theme
Group DevelopersGroup Particularly helpful Moodlers

Hi Mark,

Thanks for posting this here - I hadn't seen the thread in the hardware & performance forum, as I'm not subscribed to that forum, and the contrib bug was not assigned to me (I've now assigned it to myself, although there isn't a component for Decaf as I prefer to use the Github issue tracker).

One change that you can make which seems to make a big difference is actually hiding the Navigation block - not just using the Decaf theme setting.  I need to look into that in more detail, but basically what seems to happen is a whole lot of work gets done twice if the navigation block is being generated (even if Decaf is then omitting it from the displayed page).  You can hide the navigation block by turning editing on on the front page, configuring the Navigation block and choosing "Display on the front page only" from the Page Contexts box.  You should then also change the Visible dropdown under "On this page" to No, to hide it from the front page.

I haven't had a great deal of time to investigate this in depth, because I'm currently the sole developer supporting e-learning systems for an entire university - but since we're on the final approach to our Moodle 2 upgrade, I'm getting a bit more time to work on Decaf (our university-branded theme inherits from Decaf), so hopefully I can finally nail this issue in the not too distant future.

 

-Paul

 
Average of ratings: -
St Petersburg, Russia
Re: Decaf - Moodle 2 Theme
Group Particularly helpful Moodlers

Thanks Paul,

I restored a backup database dump so as to return the sandbox site to the status quo ante and having implmented your tweaks to the Navigation block (and thanks for the detailed instructions -- I'd have never sorted this otherwise) decaf now operates successfully. I need to re-import the bunch of courses+categories to see how it functions under load. Plus I'm going to try to implement decaf for admin (me) and a separate theme for the plebs smile

Cheers

Mark

 
Average of ratings: -
Picture of sergio balaguer
Re: Decaf - Moodle 2 Theme
 

I inserted a logo but,

how I can remove the space above and below?

Also, on the main-page is well placed but courses-pages is not well placed.

logo mainpage

 

logo course page

 

 

Regards.

 
Average of ratings: -
It's only an avatar...
Re: Decaf - Moodle 2 Theme
Group DevelopersGroup Documentation writersGroup Particularly helpful MoodlersGroup Testers

Hi,

This all depends on how you added the logo. Can you explain to me how you added the logo, as ther is no prevision in the decaf theme.

Thanks

Mary

 
Average of ratings: -
Picture of sergio balaguer
Re: Decaf - Moodle 2 Theme
 

Thus, as you said in another post:

"

Themes FAQ and CSS FAQ are good starting points

However, to answer your question.

Files needed:

decaf/layout/frontpage.php and decaf/layout/general.php

PHP Code to look for:

(delete the part highlighted in red)

<h1 class="headermain"><?php echo $PAGE->heading ?></h1>

Add Logo place holder:

Add the following HTML code which is highlighted in blue.

<h1 class="headermain"><div id="logo"></div></h1>

You will need to make the same changes to both frontpage.php and general.php. That done the next stage is adding the CSS.

CSS File needed:

decaf/style/core.css

At the end of core.css file add the following CSS mark-up. (Be sure to use a text editor like Notepad as a word processor wont work.)

#logo {float: left; clear: both; width: 362px; height: 77px; position: relative; left: 50px; margin: 0; padding:0; background: url([[pix:theme|logo]]) left top no-repeat;}

Hopefully that should fix it. If you get stuck let me know.

Oh, nearly forgot! be sure there is a logo.png or logo.jpg or logo.gif (matters not what the file type is) in the pix folder of the decaf theme

Cheers

Mary

EDITED: I have just edited this today (12/8/2012) I found 2 typos where I put a colon :  instead of a semi-colon ; in the CSS for the logo.

Please accept my apologies if you have had problems with this!

"

 

 Last version the Decaf and moodle 2.4

Regards.

 
Average of ratings: -
It's only an avatar...
Re: Decaf - Moodle 2 Theme
Group DevelopersGroup Documentation writersGroup Particularly helpful MoodlersGroup Testers

OK...the answer you copied came from this post...

"...Could anyone please direct me to which file/line I need to edit to float an image(logo) instead of it showing a text version of the site name. The image is 362x77 and i want it to float from left maybe 50px or something like that..."

So, if your image is NOT 77px in height then you need to make the height of the #logo whatever height your image is.

To fix the overhang of space top and bottom I would first need to know what css you have in the page-header and h1.headermain, and also if you have still retained the login'logout profile in the header?

Cheers

Mary

 
Average of ratings: -
Picture of Jeremija Hranjec
Re: Decaf - Moodle 2 Theme
 

Great theme.

I had same issue, and managed to solve it by changing decaf/style/core.css, Header code, min-height to 160, as on index page 

#page-header{float:none;background:#E1E1E1 url([[pix:theme|bg-header]]) repeat-x scroll center bottom;margin-right:0;position:relative;min-height:160px;}

 
Average of ratings: -
Picture of Hans Hammel
Re: Decaf - Moodle 2 Theme
 

Hello and thanks for the great work. Decaf is a very useful theme, simple and clean. Im running a moodle 2.5 installation with the decaf_theme an i get the following warning on every page:

Strict Standards: Declaration of decaf_expand_navigation::add_category() should be compatible with global_navigation::add_category(stdClass $category, navigation_node $parent, $nodetype = 10) in /homepages/30/d11672245/htdocs/moodle/theme/decaf/lib.php on line 761

There is another warning too - if i'm logging in as a student and view a course-page, i get the following warning:

Notice: Undefined variable: forceforcontext in /homepages/30/d11672245/htdocs/moodle/lib/navigationlib.php on line 4082

 

Maybe you can help me with that.

Thanks smile

Hans

 
Average of ratings: -
Picture of Paul Nicholls
Re: Decaf - Moodle 2 Theme
Group DevelopersGroup Particularly helpful Moodlers

Hi Hans,

I'm running Decaf 1.7.5 on a Moodle 2.5 installation, with debugging turned up to "developer" and set to display - and I don't see either of the warnings you mention.  Can you please double-check that you're running Decaf 1.7.5?

Cheers,
Paul

 
Average of ratings: -
It's only an avatar...
Re: Decaf - Moodle 2 Theme
Group DevelopersGroup Documentation writersGroup Particularly helpful MoodlersGroup Testers

I got this same error in Version 1.6 RC6. So as Paul says, you need to make sure you have the latest version 1.7.5. which you can install directly into your Moodle from this page...

https://moodle.org/plugins/browse.php?list=category&id=3

Cheers

mary

 
Average of ratings: -
Picture of Andreas Panagiotopoulos
Απάντηση: Re: Decaf - Moodle 2 Theme
 

I also have the same problem!

And I installed both version 1.75. and 1.8.2 found here https://moodle.org/plugins/pluginversions.php?plugin=theme_decaf.

Could anyone please help?

 

 
Average of ratings: -
Also me
Re: Decaf - Moodle 2 Theme
 

I'm hesitating posting this; it's such an obvious problem but I can't find it posted about anywhere else.

In short, my custom menu is above the activity chooser.

Activity Chooser

I can probably ix this with a z-index change but....Is it just me or has anyone else had this problem?


Cheers, Sam.

 
Average of ratings: -
Picture of Richard Oelmann
Re: Decaf - Moodle 2 Theme
Group Particularly helpful MoodlersGroup Testers

Yes Sam, I had this a while ago but I thought it was fixed (you are right it is simply a z-index issue)  - do you have the latest version of decaf?

Edit: whether it was fixed before or whether I had only fixed it on my local host I'm not sure, but the issue does seem to be there on the latest version

Fix - either in the customcss or directly in core.css of the decaf file (line 111 in the latest version) (You don't need to add the position, top, left and right attributes to customcss and if you are editing the line in core.css you dont need to change them, they are only included here for completeness in helping you identify the line to edit in core.css)

div.moodle-dialogue-base {position:absolute;top:0;left:0;right:0;z-index:1500;}

 
Average of ratings: -
Also me
Re: Decaf - Moodle 2 Theme
 

Thanks Richard.

Should I add it to the tracker do you think?

Sam.

 
Average of ratings: -
Picture of Paul Nicholls
Re: Decaf - Moodle 2 Theme
Group DevelopersGroup Particularly helpful Moodlers

Whelp, guess I should've caught up with the rest of the forums before releasing 1.8.1 wink

Sam, no need to report this in the tracker - I've just released Decaf v1.8.2, which includes this fix.  Thanks for reporting it here, though!

Richard, I'm sure I had fixed this before - maybe I had to bump the Awesomebar / custom menu z-index at some stage, and forgot to make the corresponding bump to the dialogues.  Thanks for posting the fix here - it's much easier to release a fix when somebody else has already worked out the exact change required!

 

-Paul

 
Average of ratings: -
Also me
Re: Decaf - Moodle 2 Theme
 

Thanks Paul.

If I can just get your opinion on this one too please?

I can only get the background colour to work with theme designer mode turned off on IE8 and IE9 , not firefox or chromium based browsers.

Oddly with theme designer mode on, all browsers show the background colour and it also works temporarily when I use the preview button on the theme settings page.

I've set the background using theme settings and in the CSS at the same time, purged my caches, validated my CSS, stuck !important on the end of the css rule (as suggested in another theme related post elsewhere by Mary) and installed 1.8.2.

I'm almost ready to let this one go as I'm only after #EEE and we are largely an IE8 monoculture in our college but I'm trying here as a last ditch attempt at a fix.

Any ideas.

Thanks, Sam

 
Average of ratings: -
Picture of Paul Nicholls
Re: Decaf - Moodle 2 Theme
Group DevelopersGroup Particularly helpful Moodlers

Hi Sam,

The background colour seems to work fine for me, in all browsers - just using the background colour option in Decaf's settings (no custom CSS).  There are two minor points to keep in mind, though:

  • The change won't apply immediately after you click the save button - enough of the page which has the "Changes saved" message is generated before the change is actually saved that you won't see the new background colour; you need to refresh or load another page to see it
  • If you have Theme Designer Mode turned off, you'll need to clear the cache (either the theme cache, by turning Theme Designer Mode on and then off again, or all Moodle caches - Site administration->Development->Purge all caches) for the change to come through

These apply for custom CSS as well as the background colour chooser, as both of them result in changes in the generated CSS.  The reason that other Decaf settings which change appearance (such as the new Mod Chooser Tiles option) do not require the theme cache to be cleared is that their CSS is actually already there - the option just toggles a class on the body tag, which then triggers the extra CSS to be applied.

I am a little confused as to what you're after, though - you say that you're after #EEE, but that's Decaf's default background colour, so you shouldn't need to change anything anyway...

 

-Paul

 
Average of ratings: -
Also me
Re: Decaf - Moodle 2 Theme
 

Apologies Paul.

I'm working off a modified Decaf_green theme, not Decaf itself. Because of hotdesking and a rubbish monitor, checking how Decaf behaves compared to my theme threw up false results.

My bad. thanks for the comprehensive reply though.

Cheers, Sam.

 
Average of ratings: -
Picture of Paul Nicholls
Re: Decaf - Moodle 2 Theme
Group DevelopersGroup Particularly helpful Moodlers

Hi Sam,

No worries.  I should probably get around to updating Decaf Green sometime - I haven't updated Green in quite some time, so it'll be lagging behind.

-Paul

 
Average of ratings: -
Also me
Re: Decaf - Moodle 2 Theme
 

Hi Paul,

FYI: I had a go at updating the Decaf_green settings to come into line with decaf's and tacked a write up on to the "Howto get the awesomebar" disscussion you started last aug. Seems to have worked all right.

Cheers, Sam.

 
Average of ratings: -
Also me
Re: Decaf - Moodle 2 Theme
 

Hi Paul,

I've found another problem which only seems to be affecting IE8. Turning on editing causes moodle to request authentication (we use shibboleth) and logs the user back in. Editing isn't turned on so the user tries again, leading to a login request and so on.

I can only replicate this problem in Decaf and themes that inherit from it.

Turning on debugging returns this error, I have no idea if it's related:

Strict Standards: Declaration of decaf_expand_navigation::add_category() should be compatible with that of global_navigation::add_category() in /var/www/html/staffmoodle2/lib/outputlib.php on line 429

Any ideas on this one?

 

Cheers, Sam.

 

 

 
Average of ratings: -
Picture of Paul Nicholls
Re: Decaf - Moodle 2 Theme
Group DevelopersGroup Particularly helpful Moodlers

Hi Sam,

That's an interesting one.  It might be best if we shift to private messages to investigate this - we can report back here if/when we have something to report.  I'll send you a message to kick it off.

-Paul

 
Average of ratings: -
Also me
Re: Decaf - Moodle 2 Theme
 

Hi Paul.

I got your PM and will send login details.

In the mean time I checked it out at home. I have a 9 year old XP box. The graphics card died a few weeks ago and the integrated graphics struggle with modern webpages. Under these conditions all browsers redirect to the login screen. I've turned off shibboleth and left manual login as the only authentication method and the problem persists.

I've also tested this on my android (desire s - jellybean - firefox) and turning on editing caused the problem but an ipad4 had no problem.

It looks to me like this is nothing to do with shibboleth or IE8. I suspect it's something to do with the power/speed/graphic capabilities/page rendering of the receiving machine or browser.

Our institutional setup may be a conflating factor if I'm the only one having this problem of course.

I'll pm you when I get to work in a couple of hours.

Cheers, Sam

 
Average of ratings: -
Also me
Re: Decaf - Moodle 2 Theme
 

HI Paul,

After extensive testing today it looks very much like this issue is a local one and I can't replicate it anywhere except on this instance of Moodle. Please accept my apologies for what I'm taking to be my second false positive in a row.

As an aside to this, I think the 30 min editing time of a forum post is far too short. Twice on this discussion alone I've started something that has turned out to be nothing after 24 - 36 hours of work. I probably wouldn't have solved my problem without the feedback but the original problem wasn't even properly formulated when I asked it.

People searching for similar problems to mine will still be able to find my false positives which just muddies the waters. I'd like to be able to delete several of the posts I've made in my time here.

Thank you for you time and patience with me recently and of course for your work on Decaf.

Sam.

 

 
Average of ratings: -
Picture of Richard Oelmann
Re: Decaf - Moodle 2 Theme
Group Particularly helpful MoodlersGroup Testers

Hi Sam,

I'm not sure about deleting posts that have already been replied to, but if you want to tell me which ones and what you'd like them to say, I will happily add an edit to them for you as one of the moderators of the forum.Even if the original post was not well worded in terms of what you found out, the solutions may be there in the thread, so adding an edit/postscript under the original post may be the best solution if you feel the original post might be misleading.

PM me to let me know and I'll see what I can do to help smile

Richard

 
Average of ratings: -
Picture of Hunter Allspaugh
Re: Decaf - Moodle 2 Theme
 

I noticed that the lightbulb icon within topics or week that is supposed to highlight the desired topic or week doesn't actually change anything in the appearance.  I've been looking for an id or class in the source that I could use to add CSS rules to but I have had no luck so far.  What do I have to do to get that function to work properly?

 
Average of ratings: -
Picture of Jason Brisson
Re: Decaf - Moodle 2 Theme
 

Hi Hunter,

i noticed the same thing so i've added the following in the «/style/course.css» :

.path-course-view .weeks .current,
.path-course-view .topics .current,
.path-course-view .current td.side {background: #E1E1E1 !important ;}


Here's a screenshot of the result.

Jay


 
Average of ratings: -
Picture of Dariusz R.
Odp: Decaf
 

Hi

I have the latest version and I love it smile  One thing I would like to change is to turn off the gray shade which appears when you point at any item. IS there a way to do it?

 
Average of ratings: -
Picture of Malena Guarnieri
Re: Decaf - Moodle 2 Theme
 

Hi Lei, we´re using Decaf on moodle version 2.3, and we love it!smile

How can we change de color of the grey borders to the blocks (see the image)? we can´t find it at style.css

Cheers from Argentina!

 
Average of ratings: -
Picture of Paul Nicholls
Re: Decaf - Moodle 2 Theme
Group DevelopersGroup Particularly helpful Moodlers

Hi Malena,

Those borders are actually implemented as background images - around line 88-89 of theme/decaf/style/core.css, there are the following two lines:
#region-pre {background:transparent url([[pix:theme|main-divider]]) repeat-y scroll right center;}
#region-post{background:transparent url([[pix:theme|main-divider]]) repeat-y scroll left center;}

If you want to replace them with regular CSS borders, you can add something like this to the "Custom CSS" field in the Decaf theme settings:
#region-pre {background-image:none;border-right:1px solid #f00;}
#region-post{background-image:none;border-left:1px solid #f00;}

(You probably don't want red, though, so make sure to change it to the colour you want!)

 

-Paul

 
Average of ratings: -
Picture of Malena Guarnieri
Re: Decaf - Moodle 2 Theme
 

Thank you very much Paul!

we change it to the same color of the background, to make more clean the spaces. I think that it looks great, don´t you?

 
Average of ratings: -
Picture of Paul Nicholls
Re: Decaf - Moodle 2 Theme
Group DevelopersGroup Particularly helpful Moodlers

Hi Malena,

You're welcome.  If you don't want the lines at all, you can leave out the border-left and border-right declarations, and combine it into one CSS rule:

#region-pre, #region-post {background-image:none;}

 
Average of ratings: -