This is a screenshot of my latest theme...
You can download it from HERE...
and see it in action HERE...
Thanks
Mary
Hi Mary,
Thanks for a "cool/frosty" theme. Here are my first impressions.
0.- I like the concept of a totally fluid theme, with correct wrapping of text in the central region. This works fine in the Artic theme.
1.- Not sure it's a good idea to depart from convention and make the pointer look like a little hand rather than an arrow over drop-down lists. It's a bit de-stabilizing at first.
2.- Not sure either about the white font color over a green background in input boxes. In Chrome, when logging in, this makes the user name illegible (white letters over Chrome's default yellow background).
3.- As in some other themes, I am missing a clear separation between table rows. Some kind of lines or background color is needed to guide the eye when browsing dense tabular data. I will post another post about this particular accessibility problem.
4.- On a quiz ► Results ► Grades page, the side blocks are displayed below the main region rather than to the side.
5.- On pages which display "tabs", I am missing a clear separation between each tab. This looks even worse where there are more than one line of tabs. Everything seems to "float" without anything to guide the eye.
6.- As I've mentioned for other themes, the calendar displays really tiny characters, to the point of being illegible.
ATB
Joseph
Thank you Joseph for a full and comprehensive 'things to fix' list.
For Problems 1 and 2 there is an easy fix.
Stylesheet: arctic_styles.css
Maintenance: change the following CSS values to suit your personal preference. (You will find this code at the end of the css file.)
Button
-----------------------*/
select, input, button, textarea {
background-color: #6F9CA3;
color: white;
cursor: pointer;
font: 99% arial,helvetica,clean,sans-serif;
}
For Problems 4, 5 & 6
Whatever browser you use normally Joseph, can you please test this again in FireFox and post separate screenshots of the problems 3,4 and 5.
Many thanks
Mary
Hi Mary,
I always use Firefox (3.6.13). Here are the required screenshots.
#4
I think this problem is caused by the fact I didn't create a report.php but linked the report to base theme. But looking as the layout of that page is so different to my pagelayout that it looks better without the report layout. So here's what you must do to get this part back on track...
in the Arctic folder open config.php and change this section as indicated...
// The pagelayout used for reports
'report' => array(
'theme' => 'base', < delete this line
'file' => 'report.php', < delete this line
'file' => 'default.php', < add this line
'regions' => array('side-pre'),
'defaultregion' => 'side-pre',
Thanks
Mary
#5
Hi Joseph,
Final fix...tabs!
The Tab folder is missing from the theme!!! Here's what you need to do.
Locate and make a copy of Tab folder from Standard theme and paste it in Arctic's Pix folder.
Then copy Tab CSS from Standard theme's core.css file and Paste it into arctic_styles.css file.
You should then find that the tabs work OK.
Thanks
Mary
#6
We've had this conversation before Joseph, I think it was about the calendar in Cafelite which had the same problem. I don't know what you do to my themes' calendar but they all end up looking completely different than how they look on my computer! Perhaps it's the Operating System which is the problem? Perhaps your computer renders pages differently. What font setting do you use? I have mine set to View>Zoom>RESET ( Ctrl+0 )
You could always try changing the font-size for the mini-calendar in calendar.css
.block .minicalendar td {padding:2px; font-size:0.8em;}
Thanks
Mary
The calendar issue does not seem to be specific to Joseph. The screenshot is attached as it appears on my system (Windows 7) using IE8. If I remember correctly, I noticed some font issue with Aardvark Lite as well.
Manish.
Hi Manish,
I get this too in IE8 I think it is to do with IE8's interpretation to 0.8em. I read somewhere that IE has problems with font-size with fractional em values. Might be better if I change this to 100% and see if it affects FireFox and other browsers. Either that or I add a IE only font-size. But what I can't understand is that Joseph was having this problem in FireFox and in my version it's just the right size for me.
I'll take a look at this this evening.
Thanks for adding you comment, which I saw but forgot to acknowledge at the time.
Cheers
Mary
Perhaps I was not clear enough. While the screenshot attached was taken using IE8, calendar fonts in Firefox & Chrome (latest stable builds) are no better at all on my system (64 bit if that has anything to do with that remotely).
The screenshot taken using Firefox just now is attached.
Manish.
64 bit might have something to do with it. Also the fonts can be overridden by YUI font scripts which are there to smooth the look of Moodle from one browser to the next.
Will investigate this further. I could do with a bit of help from Urs, he knows about these font scripts. Perhaps I haven't set up the CSS correctly to cover the fonts.
Learning curve coming up! LOL
Thanks for clarifying this problem Manish.
Mary
Hi Mary,
Just wondering if you are still working on that cafelite theme for 2.0.
I want to use it on my production site. Any news
Thanks again.
William
I emailed it to you...a week ago...did you not get it?
Hi Mary,
I received it and emailed you back last week. I sent to your email I forgot to post here in the forum sorry .
I have it working but on the course page it is only showing 2 column.
William
I'm not finding the same problem on my site William. Which coursepage are you talking about? Have you set the page to allow blocks, there is an option for this when setting up the course page.
Mary
Joseph,
Here is amended CSS for the input and buttons etc...
/*
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;}
Hi,
I have added this theme to our test server. However, when I have gone to change our theme back, and done the usual steps of "Site Administration -> Apperance -> Themes -> Theme Selector", all that is displayed is the following:
When I press "Clear theme caches", it doesn't do anything.
Any help will be much appreciated.
Kind Regards,
Sam
Looks like the theme you were using previously is not displaying the full page layout. Using FireFox try zooming out using keyboard keys Crtl+- (Ctrl and Minus key together) If you click them a few times you should see the button, to select the theme, come in to view.
Mary
Hi Sam,
I had a similar problem when I installed the decaf theme that I was 'playing with' onto my local server, but it only happened when I had both aardvark and decaf themes in the folder - although have not come across it with Arctic. In my case I think the issue had been that I had a typing error in one of my edits to the config file - can't recall where now as it was a few weeks ago
While it doesn't solve the problem of why it's done this, to get back to a working theme selector, delete the problem theme from the themes folder (ie the one currently in use, so in your case Arctic) and your moodle installation will revert back to a standard theme, allowing you to choose the theme you want to use/test next.
Thanks Richard.
I will do this
Samantha,
If you uploaded the new Arctic theme to you theme's folder and made no alterations to it, then there is no reason to stop you selecting the theme.
If you renamed Arctic to another filename then this is what has caused the problem.
To change a theme folder in Moodle 2.0 there are a number of things you have to do before you try to select it. Failing to do this you will create havoc in that the Theme Selector will cese to function, until you do as Richard says and remove the problem theme from the theme's folder.
I'm going to write a Moodle doc on this as it's one of the biggest problems.
Mary
Hi Arctic;
how to chnage arctic logo to my logo
thank you
Sara
All you need to do is to upload a new image called either, logo.jpg or logo.png or logo.gif, but the name needs to be 'logo' whatever image type you use. It is also better to make the image no bigger than 300px (wide) by 100px (high).
Upload the image to your-moodle-site/theme/arctic/pix/header/...
Mary
Hi Mary;
I have done as you suggested. But still not showing my logo. How to edit offline.
this is my website http://ict1.dyndns-web.com/
Thank you
Sara
It looks OK to me Sara...but then I have used some Moodle magic...
All you need to do now is Purge the Cache
Settings > Site Administration > Development > Purge Cache
that should fix it...or you could try ...
Settings > Site Administration > Appearance > Themes > Theme setting ... and select Theme Designer Mode then save settings
Either one will work...but Designer Mode is best for themes especially if you are making changes. But remember to disable it after you have finished styleing your site as it will slow it down...almost to a stop if you have a big site.
HTH
Mary
Hi Mary;
Thank you very much for advice. Now the logo has changed is me.
Sara
Hi Mary. The link to arctic.zip seems to be dead, all I get is a page not found error. Is there an alternate download location?
Cheers,
Paul.
Hi Paul...sorry the file is down for a reason, and the reason being is that it's in need of maintenance. I've been just too busy today to do it, but I am hoping to have it fixed by this evening, if the phone stops ringing! LOL
Hi Mary
I love all your themes so keep up the great work
I'm trying to use Artic but the top menu (only breadcrumbs show) does not appear when i select Artic as my theme.
I want a 2.0 theme that has a menu
Tested in Firefox and Opera
any clues
cheers Bruce
Hi Bruce,
In most moodle 2 themes, including arctic, the menu is actually set in the theme settings page. If you make some menu entries there, the menubar will show on the page, otherwise it is set not to show an empty bar.
Richard
Thanks Richard
I just came back to the forum to post that i had worked it out but thank you so much for your really quick reply
cheers Bruce
Hi Mary,
i am using arctic theme for our LMS.
Need help to modify the css for Database activity module to set the alignment to be centre for the name and description of the module.
The attached file shows the thing that needs to be fixed.
Thanks
Awadhesh,
Using the firebug add-on to firefox or a similar tool will show you what css rules need to be altered for each specific item you want to change. Although as you already have the heading Videos as part of the description I would suggest adding {display:none} to the first item and relying on the larger heading you already have in place rather than centering it.
Themes FAQ and CSS FAQ are good places to start
Richard
Hi Awadhesh,
Sorry for not being able to help you with this problem before now. The simple solution is do as Richard suggested and track the CSS down using Firebug.
Failing this try the following CSS where the number 1 in course-1 represents the course number.
Thanks Mary and Richard,
Using firebug, could find the css , on changing it in firebug, displayed correctly.
But, could not find the actual css file where class "main" is defined for header h2.
can you help me in this?
Awadhesh,
Because Moodle gets its styles from a number of different places - the theme itself, any parent theme, any styling within Moodle (e.g. the yui folders, etc.) it can be difficult to trace where the style is defined originally - and if it's not in your theme anyway, it is not a good idea to edit it in any other location. However, if it is not defined in the theme itself, it is perfectly safe to add that class (the classes/ids you have identified using firebug) to your css file with the rules you need and that should be applied before Moodle goes looking for any other default settings.
Hope that helps
Richard
Hi Richard,
thanks for your quick reply and explaination.
Adding the code given by Mary solved my problem.
Thanks a lot Mary.
Regards
Awadhesh
I really love the layout this theme has! I'm brand new to PHP, but I noticed that the custom menu carried over when I switched themes (to an altered version of Decaf, with the custommenu added onto the awesomebar). Despite this, I can't find where the data actually exists. Any help would be greatly appreciated.
Edit: This is what I added to Decaf, and made the date from Arctic show up:
<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>
From Richard Oelmann
Hi,
Custom menu is set in SiteAdministration>Appearance>Themes>Theme settings. You must have set this at some point, for it to be working.
HTH
Mary
Further to my last comment and your EDIT.
You need to change the name from krystle to the name of the theme you added this code to. If it is decaf then change krystal to decaf. OK?
<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>
I think this is related to themes in general but am trying it in your Arctic theme.
When you add Custom menu items in the box at the bottom of the themes settings page they are displayed at a certain width. If you add too may items as you would often have in a menu they go too long for the page and start a second row which are no longer in the menu bar and generally put the page out.
Is there any way to make each menu item narrower so as to fit more menus in the single bar? Or will this have to be in a separate custom menu?
I think I solved the problem.
I reduced the padding and added width:auto; to the css and that seems to have made the menu spacing look a lot better.
Oh goody!!!
Hi Monica,
You could try changing the following line from
'file' => embedded.php',
to
'file' => 'default.php',
in the config.php for the theme...
// Embeded pages, like iframe/object embeded in moodleform - it needs as much space as possible
'embedded' => array(
'file' => 'default.php',
'regions' => array(),
'options' => array('nonavbar'=>true, 'nocustommenu'=>true),
),
HTH
Mary
Hi Mary,
thanks for your answer!
I forgot to tell you the previous tests I've done before I asking to you:
1. Due to the "report problem" that you solved, I did what you suggest me now. I change 'file'=>'embedded.php' to 'file'=>'default.php' in "embedded pages" first, and then in "redirect pages", but it didn't work.
2. Because the page loose every side-margin, in embedded.php, I changed:
<div id="page">
for
<div id="page-wrapper">
but it didn't work either.
Finally I just realized the header and the footer don't correspond to your theme so... I decided to look for you and ask
Some one else have got the same trouble?
ciao,
M.
Is there any chance you could post a picture (screenshot) of the problem?
It's hard to visiulise what you mean.
Ciao
Mary
Sure!
here it is.
Thanks a lot!
Mónica.
oops! I just realized I sent the no-edited screenshot.
Sorry, here's the ritght one.
I forgot to tell you that I comment the line of "options" too, 'cause I need the navbar in the embedded pages; so, the code had set to:
// Embeded pages, like iframe/object embeded in moodleform - it needs as much space as possible
'embedded' => array(
//'file' => 'embedded.php',
'file' => 'default.php',
'regions' => array(),
//'options' => array('nofooter'=>true, 'nonavbar'=>true, 'nocustommenu’=>true),
I think the problem has to do with the styles of the body id's or something like that; I agree the embedded pages has no blocks, but I need the right style.
As I tell you in the image, when I change the div id for "page-wrapper", the margins appear, but the rest mantains the same.
Thanks a lot for your time,
Mónica.
Hi,
Does it work now with the default page?
I think Moodle developers have been messing with this area of the system files as there have been some problems occuring which we have not seen before.
Also, so that I can try and replicate this problem, as I am not a teacher so I don't know the first thing about designing a course etc, or what a teacher might want to add in an embedded page.
I have played about making IMS Packages, which are self contained webpages, but I don't think this is the same thing, is it?
So walk me through the process you would use to get to this page in the image you posted above...please.
Thanks
Mary
Hi Mary,
nop, de default page didn't work
I gladdly tell you how to get to that page: On the main page, go to:
Settings
Users
Groups
and there click on "Create group" (I attached the screenshot with the process)
Actually, I'm not a teacher either (nor a designer) but, as far as I can see, the embedded pages are only a layout without the side-blocks, to ensure maximun space (maybe in M2.0 won't be so necessary due to the dock), like in "create a group" or some other pages.
Hope we can find the answer soon
Tanks to you,
Mónica.
Mary and Monica,
I may have the answer: In the config.php of arctic there appears to be an error in the theme layouts array. I think at some point the base layout has been renamed and so is not being correctly applied as default.php - and from the name, this may affect some of the aardvark themes as well, but I haven't checked yet.
Looking at the source of the page Monica has pointed at, it appears to be trying to use the base layout which should be applied as the themes default.php but is actually reverting back to the parent theme base layout (starts getting complicated as the parent theme is base as well! ). In this case the 'base' refers to the page type and not the theme name.
THEME->layouts = array(
// Most backwards compatible layout without the blocks - this is the layout used by default
'aardvark' => array( replace 'aardvark' with 'base'
'file' => 'default.php',
'regions' => array(),
),
HTH
Richard
PS. Have checked aardvark_lite and aardvark_makeover: they are not affected. Rich
My computer just crashed!
Thanks Richard for spotting that!!!
Now that error must have came about by me not knowing what I was doing last year! Thay say you learn by your mistakes. LOL
Mary
Hi Richard
How old is that copy of Arctic? I've just checked my files on the web and they are correct no Aardvark in the config.php. The zip was put together in Feb 14th this year. So not sure how you came by that file. The aardvark lite has that error, but I must have fixed that at some point as the files ive looked at on the server are all correct.
I'm guessing then that Monica is using the original versionin circulation from 2 jan 2011 to 14 feb 2011.
Good detective work as this is probably the culpret.
I'll have to test it out.
Cheers
Mary
Hi Mary,
My copy of arctic is probably from when you originally put it up which would make it before the Feb 14th version (I just loaded it into my themes from my downloads folder on my desktop PC) - Will now go and download an updated version though! lol!
aardvark-lite (which was clear) however was a fresh download after my webserver died a few weeks ago because the original download was on there and not on my desktop and obviously aardvark_makeover was a new one from when you put that up a few days ago.
Rich
I'm going to check all the zip files on my server today. Odds on there will be some with errors!
It's good this came to light now, so thanks for finding the error Richard. It's like the curly bracket associated with the Decaf awsomebar settings. Like you said, "I can't see the wood for the trees."
Many thanks
Mary
I'm doing the same thing Mary,
Since crashing my webserver a few weeks ago, I've been using my desktop to run my local host and I've ended up with so many different folders of some of the themes, some with changes and some without that, now that I've finally rebuilt my webserver, I've gone back and downloaded fresh everything - including my own themes just to make sure what I've got is what's out there to download and I'm not accidentally using old versions. LOL.
Hope you got your computer fixed
Rich
Hi Monica in all the excitment of my computer crashing and Richard finding the problem...I forgot to give you this link so you can downloade the newer version of the theme.
http://visible-expression.co.uk/mythemes/arctic.zip
This new theme should fix the problem.
Ciao
Mary
Mary and Richard,
Thanks to you both, the problem is solved now!
You were right, I was using the firts version of the Arctic Theme, but I just downloaded the new one from the link that Mary sent to me.
Mary, I hope your computer is working now and I thank you all your help!
For you both, and your Sherlock Holmes' work, a quot of him:
"It is, of course, a trifle, but there is nothing so important as trifles." SH.
Cheers,
Mónica.
Hi Mónica,
I am so pleased the problem has gone away! I was worried incase it was still there.
I love trifles!
I love the quote...I think I will use it as a signature!
Ciao and thanks
Mary
Hi Mary,
Thanks a lot for your time!
I love that quote too! and I think it suits you and your work perfectly
Thanks 2 U!
Ciao,
Mónica.
FIrst menuitem|path|title tooltip -UnderItem1|etc -UnderItem2 Second MenuItemBut when I try something like that, both parts are still shown. Other problems are that one of the menu fields is much shorter than the others and the tool-tip looks like:
Sorry about the previous one. I was in Chrome and tried to copy from the post I'd made in the language forum and found that pasting "lost a lot in translation". I was busy putting in <br/> and <Pre> top try and save ``
´ things, but my 30 minutes ran out
after the first save. It would be good to allow the author of a post to tag a previous post "mistake" "oops" "hidden" or something so people don't loose time trying to make sense of something that doesn't make sense!
So Now I've gone back to FF and I'm trying again:
I was hoping to use the multilang filter together with Moodle 2.0.2 and the theme Arctic. (which has some nice characteristics. I always like things that adapt to smaller screens, which this does better thatn most.) I have the filter set to filter all strings. I have never used the menu-bar in header before and tried a couple variants of multilang marking but couldn't get it to work. If I marked up each menu-item with both langs, the filter was definitely working, but screwed up the under menus, and was very cumbersome.
I'd like just putting
<span lang=en class="multilang">
FIrst menuitem|path|title tooltip
-UnderItem1|etc
-UnderItem2
Second MenuItem
</span><span lang=sv class="multilang">
Första menyPost|path|title tooltip
-UnderPost1
-UnderPost2
Andra MenyPost
</span>
But when I try something like that, both parts are still shown. Other problems are that one of the menu fields is much shorter than the others and the tool-tip looks like:
<span lang=en class="multilang">FIrst menuitem
I would also like the language chooser drop-down to be available in the header on most/all pages not just the front page. I suppose that shouldn't be too hard to do, but I haven't examing the code and any suggestions would be welcome.
In case there is something in the "devilish details" here is the actual code I am trying in Site administration> Appearance► Themes► Theme settings >Custom menu itemscustommenuitems is:
<span lang="en" class="multilang">
Health
-Mind/body|google.se|google.se
-Conventional medicine|http://google.se|http://google.se
--Vaccination?
--Cancer care?
Education
-Moodle
-simulations
-Science/Math
Sustainable
Help
-Distance IT support|http://www.tupo.biz/mfant/mod/page/view.php?id=2|Går till gamla hemsidan lång länk
-Contact us|/mod/page/view.php?id=2|Går till gamla hemsidan kort länk
</span><span lang="sv" class="multilang">
Hälsa|google.se
-Hjärna/kropp
-Mat och tillskott
-Konventional medicin
--Vaccinationer?
--cancer vård?
Uthållig
-ekonomi
-energi
-återvinning
Utbildning
-Moodle
-Simulering
Hjälp
-Distans IT stöd|http://site.biz/mfant/mod/page/view.php?id=2|Går till gamla hemsidan lång länk
-kontakta oss|/mod/page/view.php?id=2|Går till gamla hemsidan kort länk
</span>
Which gives:
the first field is empty but hoovering gives tooltip: <span lang="en" class="multilang">
the 2nd and 3rd fields in menu bar seem OK
the fourth is narrower
5th is OK
6th is strange: top half is empty but shows span code in tooltip
the bottom half shows (almost) the first menu item in the Swedish menu
then there's nothing else. Unless I strongly diminish the fontsize: then the 6th field is empty (with tooltip) and the 7th to 10 show up all right.
The language dispalyed on the site at the time is (only) Swedish, but both are displayed.
I'm sorry I think you lost me in the fist comment! The second is confusing.
This filter you talk about. Wher are you suposed to ad it in the normal runn of things?
You have obviously used it with success someplace else or else you would not be atmpting to using in the menu.
If you were to use it in a simple menu...
<ul>
<li> <a href="http://goodle.com">Google</a><li>
<li> <a href="http://moodle.org">Moodle</a><li>
</ul>
Where would you add the code?
Keep it simple...it's easier to understand the logic behind it.
Thanks
Mary
The multilang filter is documented here: http://docs.moodle.org/en/Multi_language_content
Very simply expressed:
<span lang="XX" class="multilang">the menu in lang XX</span>
<span lang="YY" class="multilang">the menu in lang YY</span>
If lang XX is chosen that menu is shown and the other hidden.
If lang YY is chosen that menu is shown and the other hidden.
It falls back to English if there is nothing marked up in the chosen lang.
If you look here http://www.tupo.biz/mfant/ you can see the filter in operation, by choosing English and than Swedish (and perhaps German) but I've removed the code from the top menu, because it was messing things up so much.
I was trying to include enough of the "trifles" for you Sherlock themers, wasn't trying to confuse.
Excelent my dear Watson!
Now I understand, abstract algebra was my best subject at university! Give me complex numbers and I'm in heaven!
Ah..I see wjat you are trying to do.
The custom menu will not allow you to add any tags to the menu items.
The only menu you can use is a manual one which would look the same but you would need to populate it in a specific way, which become easier as you become used to it.
The Moodle 1.9 theme is best for this, but I have succesfully integrated a manual menu into this theme for another Moodle user. I'll see if I can dig out a copy for you.
The Moodle 1.9 theme is called isometric and you can see it in action HERE
I've attached a copy of the menubar.php so you can look at the structure.
I'd love to see this type of menu really working..as it looks to be very useful. So thanks for bringing this trifle to our attention.
Cheers
Mary
Hi Mary
thanx for your answer.
Part of my goal is to get my feet wet in 2.0 land, so I'd like to see if i can figure something out here in 2.0.
One help would be putting in a Lang choser dropdown in a suitable place so it is available almost anywhere. Any suggestions there?
I'm also wondering if it wouldn't be possible to make some changes in the programming around the stardard menu so it could process the whole block in the multilang filter before acting on it. Any reason to think that would be more frightening than learning how to pouplate the one you sent?
Hi Jeff,
In the Arctic theme you will find a file called renderers.php. This is the file, where you could add the necessary code to make the menu work as you would like.
As for adding the langauge menu to every page this can be done in config.php under...
$THEME->layouts = array(
here you set page layouts, and as you will see there is an option for langmenu as seen in the example below...
'mydashboard' => array(
'file' => 'default.php',
'regions' => array('side-pre', 'side-post'),
'defaultregion' => 'side-post',
'options' => array('langmenu'=>true),
),
You can include that option for all the layouts listed.
I think this will help you get nearer to your goal.
Mary
Thanks for your suggestions. Now the balls in my park, so I'd better try and do something.
Hi Jeff,
There are a list of tutorials to help you understand the renderers.php
If you check out Themes 2.0 FAQ there are 2 links one of which takes you to a page where, if you scroll to the end of it, you will find all the Tutorials for customising a theme. One is how to extend the custom menu - this should help you understand the menu better. Another is about overriding core renderers, and yet another about custom settings.
HTH
Mary
I've been going through the theme docs now (trying to understand why I don't get lang choice dropdowns in spite of putting in the code you suggested in several layouts).
on page http://docs.moodle.org/dev/Themes_2.0_overriding_a_renderer
I see:
$THEME->rendererfactory = 'theme_overridden_renderer_factory';
This line tells Moodle that for this theme we want to use the theme_overridden_render_factory, a special class tells Moodle to look for renderers first within the theme and then in all of the other default locations.
I am assuming a simple misspell and that it should be:
$THEME->rendererfactory = 'theme_overridden_renderer_factory';
This line tells Moodle that for this theme we want to use the theme_overridden_renderer_factory, a special class tells Moodle to look for renderers first within the theme and then in all of the other default locations.
But I don't want to change it, before checking with someone that knows themes.
Hi Jeff,
That is correct - it should read theme_overridden_renderer_factory as it does in the code line above it.
Also the multilang feature has now been tested and pushed into the next updates of moodle core, so should be available for you very soon.
Richard
In fact Jeff, just checked through, and the multilang for custom menu would appear to be in the 2.0.3+ download now.
Richard
Jeff, There is a problem with Arctic and Aardvark Makeover and other related themes, which I am trying to work on but my computer is dying on me. The graphic card is on its last legs!
Give me 24hrs and I will email you the updated files. Please ignore Arctic for the moment...change to standard theme or some other theme and try making the layout changes to to another theme to get the lang menu to show up on every page.
Thanks
Mary
OK. So that code piece should make the lang choser dropdown appear without any other changes in the layout pages. That sounds good, because I haven't found anything to try yet.
At least the menu bar with multilang functionality is working for me in Acrtic with that php you sent me.
Hi Jeff,
I hope you got my message to say that there is a fix for the Multi-lang menu, it's currently being reviewed for possible integration into Moodle 2.0.4 and Moodle 2.1 which is out next month.
I have the fix if you want a copy of the file and the notation for adding the menu text in the custommenu in Moodle 2.0.
It works beautifully!!! You will be impressed I am sure!!!
Mary
HI Mary,
Yes I did get your message and my gratitude over being in the helpful Moodle community where you are a part, almost overwhelmed the shame that I haven't gotten very far with your previous suggestions.
I tried putting in code for putting in a language choser on some different pagelayouts but didn't get anything to appear.
I then started reading the docs about themes 2.0. But I'm only half way through it. (And I've only got half of the edge stone up around the garden and ... you understand I hope)
Since 2.1 is soon to be released (or has?) is there any chance that that fix has been included there? (I haven't tried to apply it yet. I find that I also feel mostly for the alternative with two different blocks rather than different markup in each line. (If "beggers can be choosers") But anything that works is of interest.
If it's passed the testing stage then it will be integrated into 2.1 and 2.0.4. I tested one of the two suggestions, as described in my post in MDL-27073
The elation I felt was tremendous as this has been buggin me since you asked about it for the Arctic theme. I can send you the file to replace one of the lib files in Moodle core. And then with some simple notation in the custommenu settings you will be able to test it some more.
The way it is being coded is to allow the way you described to me, that of using span tags.
The effect should be the same. You can see the one I coded on my website...although there are a few other lanquages in the lang menu, the translation in the custom menubar is only in Italian.
I hope you have VOTED!!!
Mary
I have voted... now.
Is it correct that your site is using model 1 with -en markup, but someone else has made a version that using the span tag and that you could send me that lib file? Or is it the lib file for the -en variant?
As I understand it, Jeff, 2 proposals were suggested, and it is the separate <span> items which has been put forward for inclusion.
Personally, I would have preferred Mary's markup style, although it's different from the standard multilang filter, it makes much more straightforward common sense to me as a new user of the multiple languages.
en:Moodle community;it:Moodle comunità|http://moodle.org
I think it is the lib file for this method that Mary has (as she wrote it) and has offered to send you.
Richard
Hi Jeff,
I'll send you the one which is waiting to be reviewed prior to being integrated into Moodle.
David Mudrak is Assignee who is putting the 'patch' forward for integration for Moodle 2.1 and Moodle 2.2.4. If integrated, it will use the Multi-Lang filter notation you prefer.
Hope this explains it better?
Mary
It feels perfectly clear.
Only one question - how will you send it to me?
I was hoping by email!
Could you give me your email in a Private message?
Thanks
Mary
Hi,
I just wanted to create a custom menu with multilang, but I always get an error message when saving the theme settings (Some settings were not changed due to an error.) The error message says "This value was not valid:"
My custom menu items look like
<span lang=“en” class=“multilang”>
MyMoodle|http://moodle/my
All Courses|http://moodle/course/index.php
</span>
<span lang=“de” class=“multilang”>
MyMoodle|http://moodle/my
Alle Kurse|http://moodle/course/index.php
</span>
I have also activated the Multi-Language Content Filter.
Is this functionality already available in the latest 2.1 version? Or have I missed something else?
Petra
As far as I know it should work if you have the latest Moodle version which is I think Moodle 2.1.1.
Mary
Good morning
I want to put a background on my subject artic with an image that matches the screen resolution. How can I do?
A greeting and thanks
Sol
Hi,
My old problem is resolved, but now I have other problem...
The block profile is the [[usergreeting]], but there are no data should appear.
Thanks
Sol
Hi Sol,
Can you explain exactly what it is you want in the greeting?
Can you also tell me if you are using another language besides English, as this will make a difference, and if you have made any changes to the Arctic theme's profileblock.php?
Thanks
Mary
Hello Mary
I use moodle in Spanish, but my problem came when I installed the module certificate.
I am attaching a screenshot.
Thank you, greetings
Sol
Hi,
I thought that is what the problem was.
To be able to use the theme in different languages you need to add the greeting in the languages your site uses. To do this you need to add a new directory for Spanish which you name it 'es' in theme/arctic/lang directory and then add a copy of theme_arctic.php to theme/arctic/lang/es/ directory so you end up with the following...
theme/arctic/lang/en/theme_arctic.php (for english)
theme/arctic/lang/es/theme_arctic.php (for spanish)
Then you need to add the Spanish words for the following $strings like so...
$string['usergreeting'] = 'Ola {$a}!';
$string['welcome'] = 'Bienvenida, {$a}';
$string['loginhere'] = "Inicio de sesión, aquí!";
I have done this for you and added it as a zip file all you need to do is extract the files from the zip to the theme/arctic/lang/ directory...OK?
After that you will need to Purge all caches to do this you go to Site Administration > Development > Purge all caches
HTH
Mary
Hi Mary!!!
Thank you very much!! My problem is resolved
I've replaced my Spanish's file by the file you sent me and everything works properly.
Regards,
Sol
Ciao Mary
I am not sure the multilang filter is working for custom menus.
I enabled it and I added to my Site Administration > Appearance > Themes > Theme settings > custommenuitems, the following code:
<span class="multilang" lang="en">Go to moodle.org</span><span class="multilang" lang="it">Vai a moodle.org</span>|http://docs.moodle.org
but I can not see it working.
Can you confirm if this is an issue?
Thanks in advance.
Ciao Daniele,
To set languages in the custommenu you have to write it as description in Theme settings page.
For example:
La poesia Italiana|http://www.italian-poetry.org|La poesia italiana|it
Italian Poetry|http://www.italian-poetry.org|Italian poetry|en
Title | URL | Alt | Lang
The 'multi lang' filter has nothing to do with it as the custommenu works automatically according to the language file.
Hope this helps?
Mary
Thanks Mary.
I will try it as soon as I return home.
Thanks a lot.
Just to clarify, the span option for the multi lang filter was never added, or if it was it was replaced by the current settings.
I had forgotten all about this -so long ago!!!
Cheers
Mary
Good afternoon,
Can someone help me mount the top horizontal menu bar?
Thank you,
Meira Regiane
Hi Regiane,
To make the menu appear you need to set the links up in...
Site Administration > Appearance > Themes > Theme settings
http://docs.moodle.org/22/en/Theme_settings#Custom_menu_items
Hope this helps?
Cheers
Mary
Hello Mary,
Thanks for the help it worked!
Meira Regiane
Good morning,
I wonder if there is any way to change the language referring to the location indicated in the attached image.
Is there a file in php to make this change?
Thank you,
Meira Regiane
Hi Regiane,
you can change the welcome login message in: /your_moodle_path/theme/arctic/lang/
there you have to create a directory for your language:
/your_moodle_path/theme/arctic/lang/pt_br/
and then copy the 'theme_arctic.php' file that is in /your_moodle_path/theme/arctic/lang/en/ to your new /lang/pt_br/ directory and modify the strings: 'usergreeting', 'welcome' and 'loginhere'
you have to do that for each language you install and it shows in the drop-down language menu.
Don't forget to clean all cache afterwards!
I hope it helps.
Cheers, Mónica.
Hello Monica,
I did as you indicated me put the welcome messages and login contia everything in English and not Portuguese language as I need.
Thank you,
Meira Regiane
Olá Regiane
you're welcome,
M.
Thank you!!!
Good morning,
I'm trying to change the background template just put my logo in the background as watermark, but I'm not getting the picture where it has the curves is being changed too.
I'm changing that image is the overlay.
There is another way to put an image in the background and keep it too.
Thank you,
Meira Regiane
Hi Regiane,
if you want to keep the overlay image for the header and to put your logo-watermark as background, then you have to do some changes:
background: #E0F2F1 url([[pix:theme|core/overlay]]) 50% 10% repeat-x fixed;
change 'overlay' to the name of your logo image and do the changes in the rest of the options as you need.
Hope it helps.
Jus to know, what version of Moodle are you working with?
Cheers,Mónica.
Good afternoon Monica,
I'll show you how you would like to stay my website
http://moodle.pucsp.br/ background like this in all pages of the site
As this mine site today
http://fmabc2.dominiotemporario.com/cursos
The version I'm using is the environmental moodle 2.4.2
Thank you,
Meira Regiane
Using a tool such as firebug or the Chrome developer tools helps with queries like this, Meira
using firebug on your website link you provided shows that
Olá Regiane,
first of all, I suggest you to upgrade to M2.4.3+ as soon as possible (This https://moodle.org/mod/forum/discuss.php?d=224624 is why).
Now, about the background, (and assuming is 'you' who wants the new style: "I'll show you how you would like to stay my website" ), I'm not sure what is your doubt of my earlier post or of what Richard said too.
Trying to be clearier, Richard is right: the overlay image is used for the header and for the background as well (with a #E0F2F1 color too)). So, if you named your logo-watermark as 'watermark.png' you have to upload that file to /your_moodle_path/theme/arctic/pix/core/ and then edit the line 2 of /your_moodle_path/theme/arctic/style/arctic_style.css file as:
background: #E0F2F1 url([[pix:theme|core/watermark]]) 50% 10% repeat-x fixed;
and change the bg color (#E0F2F1) or the rest of the options as you need (you can use firebug to test that changes before to make them on your server).
Bonne chance!
Mónica.
To make your site look like this you need to add this CSS to your theme.
html {
background-image: url([[pix:theme|logo]]);
background-repeat: no-repeat;
background-attachment: scroll;
background-position: 50% 3%;
background-color: #E0F2F1;
}
#page-wrapper {
margin: 20% auto 3%;
}
#page-wrapper,
#page-header,
#logo {
background: none;
}
Hello Guys,
Thanks for the tips!!
I put the background as watermark logo of the institution and kept the logo in its current position unchanged.
About firebug always use it because it helps a lot in locating codes.
Thank you all!!
Meira Regiane
Hi Mary,
I've been using the theme since you first developed it and have been very happy with it. Are there any thoughts to upgrading it for use with Moodle 2.5?
If it works ok in 2.3 it should work in 2.5, the only things missing are the course header/footer which I have yet to find where these are created and used.
Unless there is something specific you want add in the theme?
Cheers
Mary
What happened after upgrading from 2.2 to 2.5 is that my dialogue boxes now appear like this and I was just assuming it was due to changes made in the core code of 2.5. I very much appreciate the assistance. Thanks.
Hi Jason,
I think it could be because you upgrated your moodle from 2.2 to 2.5 directly. It was that way?
I'm also using Arctic theme since Mary released it , but there are many changes I had to do pariculary on M2.3 (or so...) and go on (here some of the results: https://moodle.org/mod/forum/discuss.php?d=207943#p949231) so, maybe I could help.
Or maybe you could persuade Mary to do a nice M2.5 (M2.6) version
Ciao, Mónica.
Hi Mónica,
You are correct, I went directly from 2.2 to 2.5. The other problem I am faced with is the in the editor. I seem to be completely missing the insert media button.
I'm totally at a loss on both issues so, any help would be greatly appreciated.
Regards, Jason
Hi Jason,
the editor tools are hidden in M2.5 (image below).
I have done so many changes by now, and they depend on the moodle version so… As far as I can remember, the main issue was on M2.3 with buttons. What I did, among other things, (some of them just because: I mean not for fixing something in particular but just for keeping the same style), is to add:
border-radius: 0.5em;
padding: 3px;
or a different combination of that values as needed to any button on arctic_styles.css file.
And something about the bg-color in some of them too, but it is up to your color set.
The other thing you cuould do is, as Mary suggested me, check the Afterburner theme that is part of the moodle core. The reason I did't so was because my customization went to other direction… but maybe it suits you.
Kind regards,
Mónica.
Hi Mary,
finally I found another M2.5&Arctic user
Sorry but, what do you mean with "...the only things missing are the course header/footer which I have yet to find where these are created and used."?
I don't see the issue.
Cheers, Mónica.
Hi Monica,
Changes in Moodle 2.5 layout/general.php adds new code for course header/footer here are those changes...
<!-- INSIDE TOP OF PAGE -->
$courseheader = $coursecontentheader = $coursecontentfooter = $coursefooter = '';
if (empty($PAGE->layout_options['nocourseheaderfooter'])) {
$courseheader = $OUTPUT->course_header();
$coursecontentheader = $OUTPUT->course_content_header();
if (empty($PAGE->layout_options['nocoursefooter'])) {
$coursecontentfooter = $OUTPUT->course_content_footer();
$coursefooter = $OUTPUT->course_footer();
}
}
<!-- INSIDE HEADER -->
<?php if (!empty($courseheader)) { ?>
<div id="course-header"><?php echo $courseheader; ?></div>
<?php } ?>
<!-- INSIDE REGION MAIN -->
<div id="region-main-wrap">
<div id="region-main">
<div class="region-content">
<?php echo $coursecontentheader; ?>
<?php echo $OUTPUT->main_content() ?>
<?php echo $coursecontentfooter; ?>
</div>
</div>
</div>
<!-- INSIDE FOOTER -->
<?php if (!empty($coursefooter)) { ?>
<div id="course-footer"><?php echo $coursefooter; ?></div>
<?php } ?>
Like I said, I am not sure what this is for and how it works inside a course page, as this is what its real function is. I have not studied it and so am still in the dark about it so to speak, but it needs adding to Arctic just in case someone needs/wants to use this new course format functionality.
Perhaps some reader may tell us what it actually does!
Cheers
Mary
Hi Mary,
I think that is, literally, courseheader/footer and coursecontentheader/footer You can check what themes allow this opton already and see it in action using Base theme and the course format in MDL-36048. (image below).
Is that what you was talking about?
Cheers, Mónica.
Thanks, I forgot that zip file was there. I still can't get it to open
mmm...
you just have to unziped it on: yourmoodlepath/course/format/
and then go to your moodle site Admin. > Notifications.
or can't you download it? I got it today without problem.
or... mmm... ?!
HTH!