<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ca">
	<id>https://docs.moodle.org/2x/ca/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Rwthornton</id>
	<title>MoodleDocs - Contribucions de l&amp;#039;usuari [ca]</title>
	<link rel="self" type="application/atom+xml" href="https://docs.moodle.org/2x/ca/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Rwthornton"/>
	<link rel="alternate" type="text/html" href="https://docs.moodle.org/2x/ca/Especial:Contribucions/Rwthornton"/>
	<updated>2026-04-08T01:08:38Z</updated>
	<subtitle>Contribucions de l&amp;#039;usuari</subtitle>
	<generator>MediaWiki 1.43.5</generator>
	<entry>
		<id>https://docs.moodle.org/2x/ca/index.php?title=Multimedia_plugins_filter&amp;diff=104638</id>
		<title>Multimedia plugins filter</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/2x/ca/index.php?title=Multimedia_plugins_filter&amp;diff=104638"/>
		<updated>2013-06-06T16:51:51Z</updated>

		<summary type="html">&lt;p&gt;Rwthornton: /* See also */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Filters}}&lt;br /&gt;
The Multimedia plugins filter finds a link in text that points to a multimedia resource and replaces the link with an appropriate multimedia player code which can play the resource.  The actual player resides on each users&#039; computer.&lt;br /&gt;
&lt;br /&gt;
For example, a teacher may put a MP3 audio file as a resource in their course, or have a URL link to an external MP3 file.  When the MP3 audio plugin has been turned on, the student will be able to play them in Moodle using a Flash media player on their computer.  See also [[Media embedding]].&lt;br /&gt;
&lt;br /&gt;
== Site administration settings ==&lt;br /&gt;
&lt;br /&gt;
A site administrator can enable the multimedia plugins filter in &#039;&#039;Settings &amp;gt; Site administration &amp;gt; Plugins &amp;gt; Filters&#039;&#039; and can enable selected media players in &#039;&#039;Settings &amp;gt; Site administration &amp;gt; Appearance &amp;gt; Media embedding&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Note: Prior to Moodle 2.3, settings for enabling selected media players could be found as multimedia plugins filter settings.&lt;br /&gt;
&lt;br /&gt;
== Required software on user&#039;s computer ==&lt;br /&gt;
&lt;br /&gt;
Although Moodle prepares the media files to be played in the browser, the actual playback is handled by various types of browser plug-in software, primarily Adobe Flash, Quicktime, Windows Media Player and Real Player. If users do not have these installed they may be prompted to go and install them by their browser. These pieces of software are generally free, easily installed and widely used so this will only be an issue for small numbers of users.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
&lt;br /&gt;
* [[Multimedia plugins FAQ]]&lt;br /&gt;
* [[Video| Video]]&lt;br /&gt;
* [[Audio| Audio]]&lt;br /&gt;
&lt;br /&gt;
Using Moodle forum discussions:&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=98698 swf filter security] (very out of date)&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=125619 How to upload a screen capture video to the Moodle?]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=143478 Best video format]&lt;br /&gt;
&lt;br /&gt;
[[Category:Site administration]]&lt;br /&gt;
[[Category:Multimedia]]&lt;br /&gt;
&lt;br /&gt;
[[de:Multimedia-Plugins]]&lt;br /&gt;
[[fr:Extensions multimédia]]&lt;br /&gt;
[[es:Filtro_de_plugins_multimedia]]&lt;br /&gt;
[[ja:マルチメディアプラグイン]]&lt;/div&gt;</summary>
		<author><name>Rwthornton</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/2x/ca/index.php?title=Certificate_customizing&amp;diff=104614</id>
		<title>Certificate customizing</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/2x/ca/index.php?title=Certificate_customizing&amp;diff=104614"/>
		<updated>2013-05-30T21:19:21Z</updated>

		<summary type="html">&lt;p&gt;Rwthornton: /* Adding images */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Certificate}}&lt;br /&gt;
[[Certificate module|Certificate]] is a contributed module and it can be customized. &lt;br /&gt;
&lt;br /&gt;
Often customization can be accomplished by adding images to one of the /mod/certificate/pix folders, so they will appear as an option in the certificate settings page.   Additionally, you can change the language strings located in /mod/certificate/lang. &lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;In November 2011 the Certificate &amp;quot;Type&amp;quot; php code has been modified for Moodle 2.x.  These code changes will impact string and image positions in the generated pdf document. Please see the &amp;quot;[[#Nov 2011 changes]]&amp;quot; section below.&#039;&#039;   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Certificate examples==&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Certificate examples - click on any to enlarge&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;100px&amp;quot; perrow=&amp;quot;6&amp;quot;&amp;gt;&lt;br /&gt;
Image:Certificate 1.gif|Fancy border, signature line, seal, code&lt;br /&gt;
Image:Certificate199 example lines.png|Lines, signature, seal, watermark, code, grade, outcomes, custom text&lt;br /&gt;
Image:Certificate199 example creative.png|New border, new signature, new seal, new watermark, code, outcome&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Customizing==&lt;br /&gt;
The certificate code is located in the /mod/certificate folder.   There are sub-folders for backup, db, lang (holds language sub-folders), pix (holds sub-folders for borders, seals, signatures and watermarks) and type (holds standard certificate types, each in their own sub-folder).  &lt;br /&gt;
&lt;br /&gt;
===Adding images===&lt;br /&gt;
[[Image:Certificate199 example creative.png|thumb|Creative customized example]] The easiest way to customize your certificate is to add your own JPG or PNG images. Place these in the appropriate mod/certificate/pix folder on your site.  The added JPG or PNG image will appear in the dropdown list by its file name. &lt;br /&gt;
&lt;br /&gt;
Make sure your new files are the same size as the standard images. For example, the standard signature file is 150x31 pixels. If the signature file is a different size, you may need to modify the code line.  The same will be true for seals, borders and watermarks. The sample seals are 80x80 pixels in size.&lt;br /&gt;
&lt;br /&gt;
In the creative example, a custom border, watermark, signature and seal were added to the right folders.  All were sized and in the same file format as the one supplied with the initial certificate install.&lt;br /&gt;
&lt;br /&gt;
===Customize format===&lt;br /&gt;
It is a good idea to create your own custom certificate type, that will appear on a list along with the standard certificates types.  You will know which is your custom certificate type and it will survive when you upgrade.  Here is how:&lt;br /&gt;
&lt;br /&gt;
1.  Choose the certificate/type folder with the size/orientation you desire, copy and paste it in the certificate/type folder  and give the copied folder a new name.  For example copy the /type/letter_non_embedded folder and rename it &#039;mycertificate&#039;. &lt;br /&gt;
&lt;br /&gt;
2.  Open the certificate/lang/en/certificate.php file and add the name of your new folder type.  Following the above example, you would add:&lt;br /&gt;
&lt;br /&gt;
:$string[&#039;typemycertificate&#039;] = &#039;My New Certificate&#039;;&lt;br /&gt;
 &lt;br /&gt;
Now, when you add a certificate to a course, your new type will appear on the drop down list as &amp;quot;My New Certificate&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;Tip:&#039;&#039; You should add the proper string as shown in step 2 above or you may receive an error message and it will appear as if the code is broken.  And remember if you update your certificate module that this file maybe erased with a new version. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Modifying image position code example====&lt;br /&gt;
We will change the signature position that is found in the type/letter_non_embedded/certificate.php file when we generate a pdf in landscape mode.  There are at least 2 ways to change the code. Say we want to move it to the left at 100 and up to 435 line.&lt;br /&gt;
*Around line 100 you should notice there are a set of variables for &amp;quot;Landscape&amp;quot; which are followed by another set for &amp;quot;Portrait&amp;quot;. We can overrule some of the landscape and portrait codes the $sigx and $sigy position variables, so they read $sigx = 100 and $sigy = 435 .  &lt;br /&gt;
*Alternatively, we can overrule some of the landscape and portrait codes, in this case the signature block. Around line 145 we see the code that actually prints in the correct position:&lt;br /&gt;
:print_signature($pdf, $certificate, $sigx, $sigy, &#039;&#039;, &#039;&#039;);&lt;br /&gt;
By changing the variables to fix numbers it will not matter if the teacher selects landscape or portrait. For example:&lt;br /&gt;
:print_signature($pdf, $certificate, 100, 435, &#039;&#039;, &#039;&#039;);&lt;br /&gt;
&lt;br /&gt;
If others have not added a standard signature line, you might want to fix it to a certain size.  For example, you want the image to print 150px by 75px.   &lt;br /&gt;
&lt;br /&gt;
:print_signature($pdf, $certificate, $sigx, $sigy, &#039;150&#039;, &#039;75&#039;);&lt;br /&gt;
&lt;br /&gt;
This should give you a good idea about how to change the position of other images.&lt;br /&gt;
:&#039;&#039;Tip:&#039;&#039; Call your custom folder &amp;quot;a_landscape_special&amp;quot;. Now you can use the second method and nobody should be surprised if they can read and been trained properly.&lt;br /&gt;
&lt;br /&gt;
====Adjusting transparency of an image====&lt;br /&gt;
It is possible to put in a strong image as a watermark and adjust the transparency setting when the PDF is created.  Look for the SetAlpha code in front of a print element. For example infront of the &amp;quot;print_watermark..&amp;quot; line, you will see $pdf_SetAlpha(0.1);  It is currently set to .1, a .5 would be less transparent.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;Tip:&#039;&#039; In older version of certificate, the watermark image itself was dimmed before it was placed in the folder.  If you had a custom watermark, this is the way it was done.   You can change the SetAlpha in the code to 1 and it should appear as it did in previous version of certificate.&lt;br /&gt;
&lt;br /&gt;
===Changing printed text===&lt;br /&gt;
There are two ways to change the language strings.  A best practice is to customize your language pack via site administration.  You will find the certificate.php in the mod group.   If you use the method below, when you update all your certificate files, then your changes will not be saved.     &lt;br /&gt;
&lt;br /&gt;
You can edit the language file found in the certificate folder, such as certificate/lang/en/certificate.php if you are not worried about losing you changes. Lets say you want to change the words at the top of all certificates on your site.&lt;br /&gt;
&lt;br /&gt;
Find the default strings:&lt;br /&gt;
:$string[&#039;title&#039;] = &#039;CERTIFICATE OF ACHIEVEMENT&#039;;     &lt;br /&gt;
:$string[&#039;intro&#039;] = &#039;This is to certify that&#039;;&lt;br /&gt;
:$string[&#039;statement&#039;] = &#039;has completed the course&#039;;&lt;br /&gt;
&lt;br /&gt;
Change them to read (for example):&lt;br /&gt;
:$string[&#039;title&#039;] = &#039;DIP0LOMA&#039;;    &lt;br /&gt;
:$string[&#039;intro&#039;] = &#039;I am proud to state that&#039;; &lt;br /&gt;
:$string[&#039;statement&#039;] = &#039;has successfully passed the final exam&#039;;&lt;br /&gt;
&lt;br /&gt;
===Adding a New Line of Text===&lt;br /&gt;
You have created a couple of custom certificate types.   In these certificates you want some new words to appear.  There are basically 2 choices, you can have it look up a new string, or hard code the words in the certificate type instead of looking for a string.  &lt;br /&gt;
&lt;br /&gt;
*Add new string method.&lt;br /&gt;
**Open the certificate/lang/en/certificate.php file and add your new string giving it a unique name. &lt;br /&gt;
:$string[&#039;mynewtext&#039;] = &#039;This is what I want to print on the certificate&#039;;&lt;br /&gt;
&lt;br /&gt;
**Open the file for your certificate type and change the string reference. For example, go to  certificate/type/mycertificate/certificate.php.  Near the end of the file find &amp;quot;// Add Text&amp;quot;.  This is the area that prints--you guessed it--text on the certificate.  Find the current line below which you would like your new text to be printed.  For example, if you want your text to print below the course name, find the line:&lt;br /&gt;
&lt;br /&gt;
:cert_printtext($pdf, $x, $y, &#039;C&#039;, &#039;Helvetica&#039;, &#039;&#039;, 30, get_string(&#039;title&#039;, &#039;certificate&#039;));&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
3. Add a new line below that to print your new text using the name you gave your new lang string like this:&lt;br /&gt;
:cert_printtext($pdf, $x, $y+25, &#039;C&#039;, &#039;Helvetica&#039;, &#039;B&#039;, 10, $mynewtext);&lt;br /&gt;
&lt;br /&gt;
Quick review.  We want the string mynewtext to start on the $x position from the left, on the $y+25 line, and the line should be center aligned (C, L, R or &#039; &#039;), in Helvetica type, in bold, with a font size of 10.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
5. You can add a hard coded line of text. For example, add signature title block line under the signature image:&lt;br /&gt;
:cert_printtext($pdf, $sigx, $sigy+30,&#039;&#039;, &#039;Helvetica&#039;, &#039;B&#039;, 10, &#039;Martin Dougiamas, Lead Developer&#039;);&lt;br /&gt;
&lt;br /&gt;
===Adding a second page===&lt;br /&gt;
After you have created your first page (or copied an existing page), add this bit of code:&lt;br /&gt;
&lt;br /&gt;
$pdf-&amp;gt;AddPage();&lt;br /&gt;
&lt;br /&gt;
Then you in the code for the second page. You can create a certificate with as many pages as you want.&lt;br /&gt;
&lt;br /&gt;
==Nov 2011 changes==&lt;br /&gt;
[https://github.com/PukunuiAustralia/moodle-mod_certificate PukunuiAustralia / moodle-mod_certificate] version 2011110107 is the basis for these comments.  There maybe earlier versions which are different.&lt;br /&gt;
*Standard types of certificates.  There are 4 standard certificate types based upon paper size and if the fonts are embedded or non-embedded in the pdf documents.   The orientation of landscape or portrait is located within each of these types.  This is different from the 1.9.x versions.&lt;br /&gt;
*The code for printing strings has changed.   While similar to the pre 2.0, be careful.&lt;br /&gt;
&lt;br /&gt;
==Tips &amp;amp; Tricks==&lt;br /&gt;
*Start with one of the existing certificate types, copy it and modify it. &lt;br /&gt;
*Try your customized code on a non production site, such as a local host.&lt;br /&gt;
*In Administration&amp;gt;&amp;gt;Server set debugging to maximum (to show any coding error messages).&lt;br /&gt;
*While you can leave a php file open in edit mode, you must save the file before your changes become active.&lt;br /&gt;
*Make code changes one at a time, test and then backup after each successful change. For example,after adding a new string to the certificate lang file), go to your course page and click on a certificate to see if it appears on the list.&lt;br /&gt;
*If you broke the code you may get a blank screen for a certificate.  &lt;br /&gt;
**So it might be a good idea to make a backup of each successful change before starting the next change.   For example, after the 3rd code change, save certificate.php as certificate3.txt.&lt;br /&gt;
*Certificate icon location-If you are using your own theme you have to put the icon.gif inside a folder called certificate and put in your mod folder image.  For example, if your theme uses custom icons, you must put a certificate folder with the certificate icon.gif in it under your theme/pix/mod folder.&lt;br /&gt;
*Consider editing you language pack rather than the /certificate/lang/en/certificate.php file.  You can do this through the Settings &amp;gt; Site administration &amp;gt;Language &amp;gt; Language customization menu. Look for mod/certificate.php.  Then when you update your certificate and it&#039;s language,it will keep your changes for the standard strings.&lt;br /&gt;
*Use a topic section heading as the certificate title. See [http://moodle.org/mod/forum/discuss.php?d=193170#p842551 in the certificate forum] for a code tweak.&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
* [[mod/certificate/mod|Add/Edit Certificate]]&lt;br /&gt;
* [[mod/certificate/view|Viewing a Certificate]]&lt;br /&gt;
* Moodle 2.x and later versions of certificate can be found at [https://github.com/PukunuiAustralia/moodle-mod_certificate PukunuiAustralia / moodle-mod_certificate].&lt;/div&gt;</summary>
		<author><name>Rwthornton</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/2x/ca/index.php?title=External_database_enrolment&amp;diff=104534</id>
		<title>External database enrolment</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/2x/ca/index.php?title=External_database_enrolment&amp;diff=104534"/>
		<updated>2013-05-21T17:49:42Z</updated>

		<summary type="html">&lt;p&gt;Rwthornton: /* See also */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Enrolment}}&lt;br /&gt;
Location: External database edit settings link in &#039;&#039;Settings &amp;gt; Site administration &amp;gt; Plugins &amp;gt; Enrolments &amp;gt; Manage enrol plugins&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You may use a external database (of nearly any kind) to control your enrolments. It is assumed your external database contains a field containing a course ID, a field containing a user ID, and optionally a field containing a role. These are compared against fields that you choose in the local course, user tables, and role tables.&lt;br /&gt;
&lt;br /&gt;
The following are the supported data sources, but note that you will need to have to compiled PHP with the appropriate options or through [[ODBC]].&lt;br /&gt;
&lt;br /&gt;
*access&lt;br /&gt;
*ado&lt;br /&gt;
*mssql&lt;br /&gt;
*borland_ibase&lt;br /&gt;
*csv&lt;br /&gt;
*db2&lt;br /&gt;
*fbsql&lt;br /&gt;
*firebird&lt;br /&gt;
*ibase&lt;br /&gt;
*informix72&lt;br /&gt;
*informix&lt;br /&gt;
*mysql&lt;br /&gt;
*mysqlt&lt;br /&gt;
*oci805&lt;br /&gt;
*oci8&lt;br /&gt;
*oci8po&lt;br /&gt;
*odbc&lt;br /&gt;
*odbc_mssql&lt;br /&gt;
*odbc_oracle&lt;br /&gt;
*oracle&lt;br /&gt;
*postgres64&lt;br /&gt;
*postgres7&lt;br /&gt;
*postgres&lt;br /&gt;
*proxy&lt;br /&gt;
*sqlanywhere&lt;br /&gt;
*sybase&lt;br /&gt;
*vfp&lt;br /&gt;
&lt;br /&gt;
== Enrolment &amp;amp; Unenrolment ==&lt;br /&gt;
&lt;br /&gt;
External database enrolment happens at the moment when a user logs into Moodle. The plugin will attempt to automatically enrol the student in all their courses according to the data in the external database and, optionally, create empty courses where they do not already exist. To check if it is working, you can log in as a student and then check that their list of courses is as you would expect. &lt;br /&gt;
&lt;br /&gt;
The process also unenrols users from courses if they are no longer in the database. User records are marked according to their original enrolment method. Therefore the external database plugin can only unenrol users who were enroled by the plugin in the first place.&lt;br /&gt;
&lt;br /&gt;
== Hidden Courses ==&lt;br /&gt;
&lt;br /&gt;
Courses that are set to &amp;quot;Course is not available to students&amp;quot; can be ignored for enrolment purposes by setting the &amp;quot;enrol_db_ignorehiddencourse&amp;quot; to &#039;&#039;&#039;yes&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
== Enrolment &amp;amp; Roles ==&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;enrol_db_defaultcourseroleid&amp;quot; setting in the plugin settings page specifies the role that the user will take when they are added to the course. The default setting will set them to the course default setting (initially &amp;quot;student&amp;quot;). However, you can specify a field in the external table (specified in the &amp;quot;enrol_db_remoterolefield&amp;quot; setting) that contains the short name for the user&#039;s role. This could, for example, be used to enrol both students and teachers into courses using a suitably configured database. &lt;br /&gt;
&lt;br /&gt;
== Creating Courses ==&lt;br /&gt;
&lt;br /&gt;
Optionally courses that do not exist in the Moodle site can be created. Switch the &amp;quot;enrol_db_autocreate&amp;quot; option to &amp;quot;yes&amp;quot; in the plugin settings. &lt;br /&gt;
&lt;br /&gt;
You can additionally specify the Category into which the new course will be placed, in the &#039;&#039;&#039;New course category id field&#039;&#039;&#039;. The data in this field must be the id of a currently existing category; it will not create a new category. The id number is number assigned by Moodle in the database when the category is created (e.g. mdl_course_categories.id). &lt;br /&gt;
&lt;br /&gt;
* Do not confuse this &#039;&#039;category id&#039;&#039; with the new custom &#039;&#039;category id number&#039;&#039; field that you can manually assign to a category. (See Trackers http://tracker.moodle.org/browse/MDL-28518 and http://tracker.moodle.org/browse/MDL-31845). &lt;br /&gt;
* Leaving the category id data empty means that a course will be assigned to the default category.&lt;br /&gt;
* If you assign data to categories that do  not exist already in Moodle, the courses will not be created.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Default new course category&#039;&#039;&#039; is the category to which courses will be assigned and created in, unless you set up and so indicate in the data field of the &amp;quot;New course category id field.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
You may also specify a &#039;&#039;&#039;New course template&#039;&#039;&#039;: a &amp;quot;template&amp;quot; course from which the new course will be copied. The data for this field should be the &#039;&#039;shortname&#039;&#039; of the template course.&lt;br /&gt;
&lt;br /&gt;
== Synchronization Script ==&lt;br /&gt;
&lt;br /&gt;
A script is provided that can synchronize all your user enrollments at once - both adding and removing user enrolments (and creating courses if specified). The script is called enrol_database_sync.php and is found in the enrol/database folder.&lt;br /&gt;
&lt;br /&gt;
This script is meant to be called from a system cronjob to sync moodle enrolments with enrolments in the external database. You need to make sure all the users present in the external enrolments are already created in moodle. If you are using external authentication plugins (db, ldap, etc.) you can use the scripts provided by those plugins to synchronize your users before running this script.&lt;br /&gt;
&lt;br /&gt;
Example cron entry for Moodle 2.0&lt;br /&gt;
    # 5 minutes past 4am&lt;br /&gt;
    5 4 * * * /usr/bin/php -c /path/to/php.ini /path/to/moodle/enrol/database/cli/sync.php&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Notes:&lt;br /&gt;
* If you have a large number of enrolments, you may want to raise the memory limits by passing -d memory_limit=256M&lt;br /&gt;
* For debugging &amp;amp; better logging, you are encouraged to use in the command line: -d log_errors=1 -d error_reporting=E_ALL -d display_errors=0 -d html_errors=0&lt;br /&gt;
* This only works for users that already exist in your Moodle site (see comment above)&lt;br /&gt;
&lt;br /&gt;
== Setting up enrolment sync (How to) ==&lt;br /&gt;
&lt;br /&gt;
You will need to perform (as a minimum) the following steps to enable external database enrolment - only a single table is required in the database which contains a record for every user/course combination. If the table is large it is a good idea to make sure appropriate indexes have been created:&lt;br /&gt;
&lt;br /&gt;
* Use an existing database or create a new one. Use an existing table or create a new one with the following minimum fields.&lt;br /&gt;
*# A unique course identifier to match one of the following fields.&lt;br /&gt;
*#* the &amp;quot;idnumber&amp;quot; field in Moodle&#039;s course table (varchar 100), which is manually specified as the &amp;quot;Course ID number&amp;quot; when editing a course&#039;s settings&lt;br /&gt;
*#* the &amp;quot;shortname&amp;quot; field in Moodle&#039;s course table (varchar 255), which is manually specified as the &amp;quot;Course short name&amp;quot; when editing a course&#039;s settings&lt;br /&gt;
*#* the &amp;quot;id&amp;quot; field in Moodle&#039;s course table (int 10), which is based on course creation order&lt;br /&gt;
*# A unique user identifier to match one of the following fields.&lt;br /&gt;
*#* the &amp;quot;idnumber&amp;quot; field in Moodle&#039;s user table (varchar 255), which is manually specified as the &amp;quot;ID number&amp;quot; when editing a user&#039;s profile&lt;br /&gt;
*#* the &amp;quot;username&amp;quot; field in Moodle&#039;s user table (varchar 100), which is manually specified as the &amp;quot;Username&amp;quot; when editing a user&#039;s profile&lt;br /&gt;
*#* the &amp;quot;email&amp;quot; field in Moodle&#039;s user table (varchar 100), which is manually specified as the &amp;quot;Email address&amp;quot; when editing a user&#039;s profile&lt;br /&gt;
*#* the &amp;quot;id&amp;quot; field in Moodle&#039;s user table (int 10), which is based on user creation order&lt;br /&gt;
*# (optional) A unique role identifier to match one of the following fields.&lt;br /&gt;
*#* the &amp;quot;shortname&amp;quot; field in Moodle&#039;s role table (varchar 100), for example editingteacher, coursecreator, student, ...&lt;br /&gt;
*#* the &amp;quot;name&amp;quot; field in Moodle&#039;s role table (varchar 255), for example Teacher, Course creator, Student, ...&lt;br /&gt;
*#* the &amp;quot;id&amp;quot; field in Moodle&#039;s role table (int 10), which is based on initial installation and new role creation order&lt;br /&gt;
* Populate the database table. Each user/course combination to have a record in the table.&lt;br /&gt;
* In Moodle, go to Site administration =&amp;gt; Plugins =&amp;gt; Enrolments =&amp;gt; Manage enrol plugins, find External Database in the list, enable it (click the closed-eye icon) and click Settings.&lt;br /&gt;
* In the top panel, select the database type (make sure you have the necessary configuration in PHP for that type) and then supply the information to connect to the database.&lt;br /&gt;
* The middle panel creates the mapping between Moodle and the external database. The first three settings are for the local (Moodle) field names and the last three for the remote (external database) settings. They are in the same order.&lt;br /&gt;
** enrol_localcoursefield / enrol_remotecoursefield - in Moodle the name of the field in the course settings the uniquely identifies the course (e.g., idnumber). In the external database the name of the matching field.&lt;br /&gt;
** enrol_localuserfield / enrol_remoteuserfield - in Moodle the name of the field in the user profile that uniquely identified the user (e.g., idnumber). In the external database the name of the matching field.&lt;br /&gt;
** enrol_db_localrolefield / enrol_db_remoterolefield - (optional) in Moodle the name of the field in the role edit page the uniquely identifies the role (e.g., shortname). In the external database the name of the matching field.&lt;br /&gt;
* The Roles panel specifies the role that the user will get in the course if their role is not specified in the external database.&lt;br /&gt;
* The final panel enables auto creation of courses.&lt;br /&gt;
* Save changes, and then tick the box to enable external database enrolment.&lt;br /&gt;
&lt;br /&gt;
== Database enrolment does not appear in the course enrolment drop down menu. Why? ==&lt;br /&gt;
&lt;br /&gt;
The course enrolment drop down menu only lists [[Enrolment_plugins#Interactive_enrolment|&#039;&#039;&#039;interactive&#039;&#039;&#039; enrolment plugins]]. External database enrolment is not such a plugin, so it doesn&#039;t appear in the list. Similarly, the &amp;quot;Course Enrollable&amp;quot; setting (in the Course Settings) page also only applies to interactive enrolment plugins and has no effect on external database enrollment. &lt;br /&gt;
&lt;br /&gt;
As of this writing, the only interactive enrolment plugins are &#039;&#039;manual&#039;&#039; (also know as &#039;&#039;internal&#039;&#039;), &#039;&#039;paypal&#039;&#039; and &#039;&#039;authorize.net&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
== Field Mapping Example: ==&lt;br /&gt;
Choose your fields from the Moodle database:&lt;br /&gt;
&lt;br /&gt;
*enrol_localcoursefield:  A course identifier from mdl_course, e.g. &amp;quot;idnumber&amp;quot;&lt;br /&gt;
*enrol_localuserfield: A user identifier from mdl_user, e.g. &amp;quot;idnumber&amp;quot;&lt;br /&gt;
*enrol_localrolefield: (optional) A role identifier from mdl_role, e.g. &amp;quot;shortname&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Create a view in your external database which matches the chosen field values from Moodle:&lt;br /&gt;
&lt;br /&gt;
*enrol_remotecoursefield: A matching course identifier from your external database table, e.g. &amp;quot;course_number&amp;quot;&lt;br /&gt;
*enrol_remoteuserfield: A matching user identifier from your external database table, e.g. &amp;quot;userid&amp;quot;&lt;br /&gt;
*enrol_remoterolefield: (optional) A matching role identifier from your external database table, e.g. &amp;quot;role_name&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Potential Gotchas ==&lt;br /&gt;
&lt;br /&gt;
* It almost goes without saying that the integrity of the external database is important. If data is missing from the database then there is a potential for users being unenrolled from some or all of their courses. The unenrollment process will remove them from any group assignments and also poll each module type to give the module the option of removing that user&#039;s data if appropriate (for example, however, forum posts are never deleted). It is therefore prudent that you take the utmost care to ensure that the data in the external bass is correct at all times.&lt;br /&gt;
* &#039;&#039;&#039;Minor Security Issue&#039;&#039;&#039; Consider that if the ID field you use to identify your students is editable by the students (in their profile), then there is a potential for them changing this to the id of another valid student and gaining access to resources that they should not. However, they will still appear as themselves, they cannot impersonate the other user or otherwise gain access to their resources.&lt;br /&gt;
&lt;br /&gt;
==Errors and Diagnostics==&lt;br /&gt;
&lt;br /&gt;
The plugin produces a number of diagnostic messages and/or errors which are recorded to the PHP error log (as defined in the php.ini file). In addition messages about courses that are in the database for the user but that do not exist in the Moodle site will only be produced if debugging is set to ALL or DEVELOPER.&lt;br /&gt;
&lt;br /&gt;
You can get detailed progress information by executing the sync script  with -v parameter:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
 php /path/to/moodle/enrol/database/cli/sync.php -v&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
*Using Moodle [http://moodle.org/mod/forum/discuss.php?d=49475 MySQL enrolment plugin doesn&#039;t seem to work] forum discussion&lt;br /&gt;
*Using Moodle [http://moodle.org/mod/forum/discuss.php?d=74133 Someone explain external database enrolment, please??] forum discussion&lt;br /&gt;
*Example Setup [https://docs.moodle.org/en/Talk:External_database_enrolment#Example_External_Enrollment] {link broken} Example Database Enrollment Setup&lt;br /&gt;
&lt;br /&gt;
[[es:Matriculación Base de Datos Externa]]&lt;br /&gt;
[[fr:Base de données externe]]&lt;br /&gt;
[[de:Einschreibung über externe Datenbank]]&lt;br /&gt;
[[ja:外部データベース登録]]&lt;/div&gt;</summary>
		<author><name>Rwthornton</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/2x/ca/index.php?title=Accounts_FAQ&amp;diff=104521</id>
		<title>Accounts FAQ</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/2x/ca/index.php?title=Accounts_FAQ&amp;diff=104521"/>
		<updated>2013-05-21T00:15:07Z</updated>

		<summary type="html">&lt;p&gt;Rwthornton: /* The search box for users if limited to 100 displayed users.  Can I change this? */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Accounts}}&lt;br /&gt;
&lt;br /&gt;
==How can I get my students to sign up to my Moodle site?==&lt;br /&gt;
&lt;br /&gt;
Look at how to set up [[Email-based self-registration|email based self registration]].&lt;br /&gt;
&lt;br /&gt;
==How can I suspend a user&#039;s account?==&lt;br /&gt;
&lt;br /&gt;
Tick the &#039;Suspended account&#039; checkbox on the edit profile page.&lt;br /&gt;
&lt;br /&gt;
==Can Moodle send a notification e-mails automatically to a new user when an account is created for them?==&lt;br /&gt;
&lt;br /&gt;
Not at the moment with core Moodle. See Tracker items MDL-19390.&lt;br /&gt;
&lt;br /&gt;
There is a work around.  If you create a CSV for your user, and OMIT the password field a cron job does get triggered and an e-mail is sent to the user.  The text of the e-mail is customisable by an administrator in the admin settings.  See: https://docs.moodle.org/24/en/Upload_users#Fields_that_can_be_included&lt;br /&gt;
&lt;br /&gt;
==How can I log in as another user?==&lt;br /&gt;
This is normally only allowed for administrators because of possible security issues. Click on the user&#039;s profile and then look in the Settings block on the side. Click the link there.&lt;br /&gt;
&lt;br /&gt;
[[File:loginas.png]]&lt;br /&gt;
&lt;br /&gt;
Note that when you have finished, you will be logged out and will have to log in again. This is deliberate, again for security reasons, but you will be returned to the page you just left.&lt;br /&gt;
&lt;br /&gt;
==How can I prevent users from editing elements of their profile?==&lt;br /&gt;
You can lock user fields from &#039;&#039;Settings&amp;gt;Site Administration&amp;gt;Plugins&amp;gt;Authentication&amp;gt;Manual accounts&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==The search box for users is limited to 100 displayed users.  Can I change this?==&lt;br /&gt;
For a discussion on changing the code, please see https://moodle.org/mod/forum/discuss.php?d=186777&lt;br /&gt;
For the teacher request see https://tracker.moodle.org/browse/MDL-36395&lt;br /&gt;
&lt;br /&gt;
[[Category:FAQ]]&lt;br /&gt;
[[de:Nutzerkonten FAQ]]&lt;/div&gt;</summary>
		<author><name>Rwthornton</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/2x/ca/index.php?title=External_database_enrolment&amp;diff=104520</id>
		<title>External database enrolment</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/2x/ca/index.php?title=External_database_enrolment&amp;diff=104520"/>
		<updated>2013-05-21T00:04:48Z</updated>

		<summary type="html">&lt;p&gt;Rwthornton: /* Setting up enrolment sync (How to) */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Enrolment}}&lt;br /&gt;
Location: External database edit settings link in &#039;&#039;Settings &amp;gt; Site administration &amp;gt; Plugins &amp;gt; Enrolments &amp;gt; Manage enrol plugins&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You may use a external database (of nearly any kind) to control your enrolments. It is assumed your external database contains a field containing a course ID, a field containing a user ID, and optionally a field containing a role. These are compared against fields that you choose in the local course, user tables, and role tables.&lt;br /&gt;
&lt;br /&gt;
The following are the supported data sources, but note that you will need to have to compiled PHP with the appropriate options or through [[ODBC]].&lt;br /&gt;
&lt;br /&gt;
*access&lt;br /&gt;
*ado&lt;br /&gt;
*mssql&lt;br /&gt;
*borland_ibase&lt;br /&gt;
*csv&lt;br /&gt;
*db2&lt;br /&gt;
*fbsql&lt;br /&gt;
*firebird&lt;br /&gt;
*ibase&lt;br /&gt;
*informix72&lt;br /&gt;
*informix&lt;br /&gt;
*mysql&lt;br /&gt;
*mysqlt&lt;br /&gt;
*oci805&lt;br /&gt;
*oci8&lt;br /&gt;
*oci8po&lt;br /&gt;
*odbc&lt;br /&gt;
*odbc_mssql&lt;br /&gt;
*odbc_oracle&lt;br /&gt;
*oracle&lt;br /&gt;
*postgres64&lt;br /&gt;
*postgres7&lt;br /&gt;
*postgres&lt;br /&gt;
*proxy&lt;br /&gt;
*sqlanywhere&lt;br /&gt;
*sybase&lt;br /&gt;
*vfp&lt;br /&gt;
&lt;br /&gt;
== Enrolment &amp;amp; Unenrolment ==&lt;br /&gt;
&lt;br /&gt;
External database enrolment happens at the moment when a user logs into Moodle. The plugin will attempt to automatically enrol the student in all their courses according to the data in the external database and, optionally, create empty courses where they do not already exist. To check if it is working, you can log in as a student and then check that their list of courses is as you would expect. &lt;br /&gt;
&lt;br /&gt;
The process also unenrols users from courses if they are no longer in the database. User records are marked according to their original enrolment method. Therefore the external database plugin can only unenrol users who were enroled by the plugin in the first place.&lt;br /&gt;
&lt;br /&gt;
== Hidden Courses ==&lt;br /&gt;
&lt;br /&gt;
Courses that are set to &amp;quot;Course is not available to students&amp;quot; can be ignored for enrolment purposes by setting the &amp;quot;enrol_db_ignorehiddencourse&amp;quot; to &#039;&#039;&#039;yes&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
== Enrolment &amp;amp; Roles ==&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;enrol_db_defaultcourseroleid&amp;quot; setting in the plugin settings page specifies the role that the user will take when they are added to the course. The default setting will set them to the course default setting (initially &amp;quot;student&amp;quot;). However, you can specify a field in the external table (specified in the &amp;quot;enrol_db_remoterolefield&amp;quot; setting) that contains the short name for the user&#039;s role. This could, for example, be used to enrol both students and teachers into courses using a suitably configured database. &lt;br /&gt;
&lt;br /&gt;
== Creating Courses ==&lt;br /&gt;
&lt;br /&gt;
Optionally courses that do not exist in the Moodle site can be created. Switch the &amp;quot;enrol_db_autocreate&amp;quot; option to &amp;quot;yes&amp;quot; in the plugin settings. &lt;br /&gt;
&lt;br /&gt;
You can additionally specify the Category into which the new course will be placed, in the &#039;&#039;&#039;New course category id field&#039;&#039;&#039;. The data in this field must be the id of a currently existing category; it will not create a new category. The id number is number assigned by Moodle in the database when the category is created (e.g. mdl_course_categories.id). &lt;br /&gt;
&lt;br /&gt;
* Do not confuse this &#039;&#039;category id&#039;&#039; with the new custom &#039;&#039;category id number&#039;&#039; field that you can manually assign to a category. (See Trackers http://tracker.moodle.org/browse/MDL-28518 and http://tracker.moodle.org/browse/MDL-31845). &lt;br /&gt;
* Leaving the category id data empty means that a course will be assigned to the default category.&lt;br /&gt;
* If you assign data to categories that do  not exist already in Moodle, the courses will not be created.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Default new course category&#039;&#039;&#039; is the category to which courses will be assigned and created in, unless you set up and so indicate in the data field of the &amp;quot;New course category id field.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
You may also specify a &#039;&#039;&#039;New course template&#039;&#039;&#039;: a &amp;quot;template&amp;quot; course from which the new course will be copied. The data for this field should be the &#039;&#039;shortname&#039;&#039; of the template course.&lt;br /&gt;
&lt;br /&gt;
== Synchronization Script ==&lt;br /&gt;
&lt;br /&gt;
A script is provided that can synchronize all your user enrollments at once - both adding and removing user enrolments (and creating courses if specified). The script is called enrol_database_sync.php and is found in the enrol/database folder.&lt;br /&gt;
&lt;br /&gt;
This script is meant to be called from a system cronjob to sync moodle enrolments with enrolments in the external database. You need to make sure all the users present in the external enrolments are already created in moodle. If you are using external authentication plugins (db, ldap, etc.) you can use the scripts provided by those plugins to synchronize your users before running this script.&lt;br /&gt;
&lt;br /&gt;
Example cron entry for Moodle 2.0&lt;br /&gt;
    # 5 minutes past 4am&lt;br /&gt;
    5 4 * * * /usr/bin/php -c /path/to/php.ini /path/to/moodle/enrol/database/cli/sync.php&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Notes:&lt;br /&gt;
* If you have a large number of enrolments, you may want to raise the memory limits by passing -d memory_limit=256M&lt;br /&gt;
* For debugging &amp;amp; better logging, you are encouraged to use in the command line: -d log_errors=1 -d error_reporting=E_ALL -d display_errors=0 -d html_errors=0&lt;br /&gt;
* This only works for users that already exist in your Moodle site (see comment above)&lt;br /&gt;
&lt;br /&gt;
== Setting up enrolment sync (How to) ==&lt;br /&gt;
&lt;br /&gt;
You will need to perform (as a minimum) the following steps to enable external database enrolment - only a single table is required in the database which contains a record for every user/course combination. If the table is large it is a good idea to make sure appropriate indexes have been created:&lt;br /&gt;
&lt;br /&gt;
* Use an existing database or create a new one. Use an existing table or create a new one with the following minimum fields.&lt;br /&gt;
*# A unique course identifier to match one of the following fields.&lt;br /&gt;
*#* the &amp;quot;idnumber&amp;quot; field in Moodle&#039;s course table (varchar 100), which is manually specified as the &amp;quot;Course ID number&amp;quot; when editing a course&#039;s settings&lt;br /&gt;
*#* the &amp;quot;shortname&amp;quot; field in Moodle&#039;s course table (varchar 255), which is manually specified as the &amp;quot;Course short name&amp;quot; when editing a course&#039;s settings&lt;br /&gt;
*#* the &amp;quot;id&amp;quot; field in Moodle&#039;s course table (int 10), which is based on course creation order&lt;br /&gt;
*# A unique user identifier to match one of the following fields.&lt;br /&gt;
*#* the &amp;quot;idnumber&amp;quot; field in Moodle&#039;s user table (varchar 255), which is manually specified as the &amp;quot;ID number&amp;quot; when editing a user&#039;s profile&lt;br /&gt;
*#* the &amp;quot;username&amp;quot; field in Moodle&#039;s user table (varchar 100), which is manually specified as the &amp;quot;Username&amp;quot; when editing a user&#039;s profile&lt;br /&gt;
*#* the &amp;quot;email&amp;quot; field in Moodle&#039;s user table (varchar 100), which is manually specified as the &amp;quot;Email address&amp;quot; when editing a user&#039;s profile&lt;br /&gt;
*#* the &amp;quot;id&amp;quot; field in Moodle&#039;s user table (int 10), which is based on user creation order&lt;br /&gt;
*# (optional) A unique role identifier to match one of the following fields.&lt;br /&gt;
*#* the &amp;quot;shortname&amp;quot; field in Moodle&#039;s role table (varchar 100), for example editingteacher, coursecreator, student, ...&lt;br /&gt;
*#* the &amp;quot;name&amp;quot; field in Moodle&#039;s role table (varchar 255), for example Teacher, Course creator, Student, ...&lt;br /&gt;
*#* the &amp;quot;id&amp;quot; field in Moodle&#039;s role table (int 10), which is based on initial installation and new role creation order&lt;br /&gt;
* Populate the database table. Each user/course combination to have a record in the table.&lt;br /&gt;
* In Moodle, go to Site administration =&amp;gt; Plugins =&amp;gt; Enrolments =&amp;gt; Manage enrol plugins, find External Database in the list, enable it (click the closed-eye icon) and click Settings.&lt;br /&gt;
* In the top panel, select the database type (make sure you have the necessary configuration in PHP for that type) and then supply the information to connect to the database.&lt;br /&gt;
* The middle panel creates the mapping between Moodle and the external database. The first three settings are for the local (Moodle) field names and the last three for the remote (external database) settings. They are in the same order.&lt;br /&gt;
** enrol_localcoursefield / enrol_remotecoursefield - in Moodle the name of the field in the course settings the uniquely identifies the course (e.g., idnumber). In the external database the name of the matching field.&lt;br /&gt;
** enrol_localuserfield / enrol_remoteuserfield - in Moodle the name of the field in the user profile that uniquely identified the user (e.g., idnumber). In the external database the name of the matching field.&lt;br /&gt;
** enrol_db_localrolefield / enrol_db_remoterolefield - (optional) in Moodle the name of the field in the role edit page the uniquely identifies the role (e.g., shortname). In the external database the name of the matching field.&lt;br /&gt;
* The Roles panel specifies the role that the user will get in the course if their role is not specified in the external database.&lt;br /&gt;
* The final panel enables auto creation of courses.&lt;br /&gt;
* Save changes, and then tick the box to enable external database enrolment.&lt;br /&gt;
&lt;br /&gt;
== Database enrolment does not appear in the course enrolment drop down menu. Why? ==&lt;br /&gt;
&lt;br /&gt;
The course enrolment drop down menu only lists [[Enrolment_plugins#Interactive_enrolment|&#039;&#039;&#039;interactive&#039;&#039;&#039; enrolment plugins]]. External database enrolment is not such a plugin, so it doesn&#039;t appear in the list. Similarly, the &amp;quot;Course Enrollable&amp;quot; setting (in the Course Settings) page also only applies to interactive enrolment plugins and has no effect on external database enrollment. &lt;br /&gt;
&lt;br /&gt;
As of this writing, the only interactive enrolment plugins are &#039;&#039;manual&#039;&#039; (also know as &#039;&#039;internal&#039;&#039;), &#039;&#039;paypal&#039;&#039; and &#039;&#039;authorize.net&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
== Field Mapping Example: ==&lt;br /&gt;
Choose your fields from the Moodle database:&lt;br /&gt;
&lt;br /&gt;
*enrol_localcoursefield:  A course identifier from mdl_course, e.g. &amp;quot;idnumber&amp;quot;&lt;br /&gt;
*enrol_localuserfield: A user identifier from mdl_user, e.g. &amp;quot;idnumber&amp;quot;&lt;br /&gt;
*enrol_localrolefield: (optional) A role identifier from mdl_role, e.g. &amp;quot;shortname&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Create a view in your external database which matches the chosen field values from Moodle:&lt;br /&gt;
&lt;br /&gt;
*enrol_remotecoursefield: A matching course identifier from your external database table, e.g. &amp;quot;course_number&amp;quot;&lt;br /&gt;
*enrol_remoteuserfield: A matching user identifier from your external database table, e.g. &amp;quot;userid&amp;quot;&lt;br /&gt;
*enrol_remoterolefield: (optional) A matching role identifier from your external database table, e.g. &amp;quot;role_name&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Potential Gotchas ==&lt;br /&gt;
&lt;br /&gt;
* It almost goes without saying that the integrity of the external database is important. If data is missing from the database then there is a potential for users being unenrolled from some or all of their courses. The unenrollment process will remove them from any group assignments and also poll each module type to give the module the option of removing that user&#039;s data if appropriate (for example, however, forum posts are never deleted). It is therefore prudent that you take the utmost care to ensure that the data in the external bass is correct at all times.&lt;br /&gt;
* &#039;&#039;&#039;Minor Security Issue&#039;&#039;&#039; Consider that if the ID field you use to identify your students is editable by the students (in their profile), then there is a potential for them changing this to the id of another valid student and gaining access to resources that they should not. However, they will still appear as themselves, they cannot impersonate the other user or otherwise gain access to their resources.&lt;br /&gt;
&lt;br /&gt;
==Errors and Diagnostics==&lt;br /&gt;
&lt;br /&gt;
The plugin produces a number of diagnostic messages and/or errors which are recorded to the PHP error log (as defined in the php.ini file). In addition messages about courses that are in the database for the user but that do not exist in the Moodle site will only be produced if debugging is set to ALL or DEVELOPER.&lt;br /&gt;
&lt;br /&gt;
You can get detailed progress information by executing the sync script  with -v parameter:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
 php /path/to/moodle/enrol/database/cli/sync.php -v&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
*Using Moodle [http://moodle.org/mod/forum/discuss.php?d=49475 MySQL enrolment plugin doesn&#039;t seem to work] forum discussion&lt;br /&gt;
*Using Moodle [http://moodle.org/mod/forum/discuss.php?d=74133 Someone explain external database enrolment, please??] forum discussion&lt;br /&gt;
*Example Setup [https://docs.moodle.org/en/Talk:External_database_enrolment#Example_External_Enrollment] Example Database Enrollment Setup&lt;br /&gt;
&lt;br /&gt;
[[es:Matriculación Base de Datos Externa]]&lt;br /&gt;
[[fr:Base de données externe]]&lt;br /&gt;
[[de:Einschreibung über externe Datenbank]]&lt;br /&gt;
[[ja:外部データベース登録]]&lt;/div&gt;</summary>
		<author><name>Rwthornton</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/2x/ca/index.php?title=Themes_FAQ&amp;diff=104489</id>
		<title>Themes FAQ</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/2x/ca/index.php?title=Themes_FAQ&amp;diff=104489"/>
		<updated>2013-05-16T23:08:06Z</updated>

		<summary type="html">&lt;p&gt;Rwthornton: /* Note on Session Themes */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Themes}}&lt;br /&gt;
==How do I install a new theme?==&lt;br /&gt;
&lt;br /&gt;
# Unzip the .zip file to an empty local directory.&lt;br /&gt;
# Upload folder to your web server to the /moodle/theme/[Theme Name]. (Replace [Theme Name] with the name of the theme you have downloaded.) Ensure the new theme folder and its contents are readable by the webserver.  Change Read and Write permissions (CHMOD) for the files and folder to 755 - Owner read/write/execute, Group read/execute, Everyone read/execute.  Incorrect permissions may prevent display of the newly installed theme.&lt;br /&gt;
# Choose your new theme from within Moodle via &#039;&#039;Administration &amp;gt; Appearance &amp;gt; Themes &amp;gt; Theme selector&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
=== How do I install a new theme when using cPanel? ===&lt;br /&gt;
&lt;br /&gt;
# Upload your new theme .zip file to your web server via cPanel. &lt;br /&gt;
# Then using cPanel install the new theme to your Moodle theme&#039;s folder.  The new theme will be installed into its own folder at /moodle/theme/[mytheme] (where [mytheme] is the name of your new theme.&lt;br /&gt;
# Ensure the new theme folder and its contents are readable by the webserver. If necessary  change Read and Write permissions (CHMOD) for the files and folder to 755 - Owner read/write/execute, Group read/execute, Everyone read/execute.  Incorrect permissions may prevent display of the newly installed theme.&lt;br /&gt;
# Choose your new theme from within Moodle via &#039;&#039;Administration &amp;gt; Appearance &amp;gt; Themes &amp;gt; Theme selector&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=== Why is the new theme I uploaded not showing up in Theme Selector? ===&lt;br /&gt;
&lt;br /&gt;
You probably forgot to do something correctly. Here are steps to create a &amp;quot;new&amp;quot; theme from an existing theme called &amp;quot;standard&amp;quot;. Bold show places you must change for the theme to appear.&lt;br /&gt;
#Copy folder theme/standard and call it theme/new&lt;br /&gt;
#In theme/new/lang/en folder,&lt;br /&gt;
##&#039;&#039;&#039;Renamed theme_standard.php to theme_new.php&#039;&#039;&#039;&lt;br /&gt;
#Opened theme/new/lang/en/new.php,  recommend you change 2 lines to read something like:&lt;br /&gt;
##$string[&#039;pluginname&#039;] = &#039;New theme - Martin D&#039;; &lt;br /&gt;
##$string[&#039;chooseredme&#039;] = &#039;New theme came from the Standard theme and is being changed by Martin D in 2011&#039;;&lt;br /&gt;
##Saved the file&lt;br /&gt;
#In theme/new/config.php&lt;br /&gt;
##Change &#039;&#039;&#039;$THEME-&amp;gt;NAME  = &#039;new&#039;&#039;&#039;&#039;;&lt;br /&gt;
#Went to &#039;&#039;Settings &amp;gt; Site Administration &amp;gt;Appearance &amp;gt; Theme settings&#039;&#039; &amp;gt; Theme designer mode (Checked)&lt;br /&gt;
#&#039;&#039;Settings &amp;gt; Site Administration &amp;gt;Appearance &amp;gt; Theme selector&#039;&#039;&lt;br /&gt;
##Clear theme caches&lt;br /&gt;
##Select theme&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;Tip:&#039;&#039; There could be a number of problems with the theme you uploaded, but one major problem reported in the Themes Forum all point to the way in which the theme is uploaded on certain servers. Using the cPanel method, as described in  the FAQ [[Themes_FAQ#How do I install a new theme when using cPanel?|How do I install a new theme when using cPanel?]] will, in most cases, cure the problem.&lt;br /&gt;
&lt;br /&gt;
== How do I control what themes show up where? ==&lt;br /&gt;
&lt;br /&gt;
You can control which themes show up in which contexts by a series of settings in &#039;&#039;Settings&amp;gt;Site Administration&amp;gt;Appearance&amp;gt;Themes&amp;gt;Theme settings&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
===How can I restrict the available themes to users and in courses?===&lt;br /&gt;
&lt;br /&gt;
In&#039;&#039; Settings&amp;gt;Site Administration&amp;gt;Appearance&amp;gt;Themes&amp;gt;Theme settings&#039;&#039;, add the themes you want them to use in the Theme list. These will then restrict the theme choice lists in pull down menus the contexts (Course, Category, User) where you allow them.&lt;br /&gt;
&lt;br /&gt;
===What is the hierarchy of contexts for themes to override each other?===&lt;br /&gt;
&lt;br /&gt;
There are five contexts in which themes appear and can be set: courses, category, session, user, and site (or Default, i.e. the site wide default theme). That is the level of priority of appearance they have as well. &lt;br /&gt;
&lt;br /&gt;
* You enable/disable these in [https://docs.moodle.org/24/en/Theme_settings Theme settings.] &lt;br /&gt;
* It is possible to change this hierarchy in the config.php file - see [https://docs.moodle.org/24/en/Theme_settings#Change_default_hierarchy change default hierarchy] for how.&lt;br /&gt;
&lt;br /&gt;
====Hierarchy of themes====&lt;br /&gt;
&lt;br /&gt;
* Course trumps Category (and below) &lt;br /&gt;
* Category trumps Session (and below) &lt;br /&gt;
* Session trumps User (and below)&lt;br /&gt;
* User trumps Default&lt;br /&gt;
* Default (site)&lt;br /&gt;
&lt;br /&gt;
====Note on Session Themes====&lt;br /&gt;
&lt;br /&gt;
* It is important to note that Session level themes (those set with the URL parameter theme=theme_name), override the Site level theme ONLY for the user&#039;s current logged in session. When the user logs out, they will then see the Default site theme, not the Session theme. &lt;br /&gt;
* You only have to set the theme once via the URL parameter and it will persist until the user logs out.&lt;br /&gt;
&lt;br /&gt;
====Note on Guest Access====&lt;br /&gt;
&lt;br /&gt;
Courses with Guest access turned on will show a course level theme or category theme as usual. There is no user level theme for Guest since it has no profile or account in the usual sense.&lt;br /&gt;
&lt;br /&gt;
You can use a Session level theme for Guest which will persist not only during the &amp;quot;session&amp;quot; but between sessions, too, in the same browser (i.e. same cookie). This is different than the experience of Authenticated users, who get the default site on log out even if they had a session theme. &lt;br /&gt;
&lt;br /&gt;
This will be an issue if your theme changes and a Guest returns from the same browser with the previous theme set. Since the restrictions in the &#039;theme list&#039; do not apply to Session level URLs, Guest would get the old theme as long as it still exists on the site by that short name instead of the new site theme. (Tip: using a non-existent theme name in the URL will force the site default to appear, e.g. &#039;?theme=.&#039; will reset it since you can&#039;t name a theme &#039;.&#039;)&lt;br /&gt;
&lt;br /&gt;
====Note on Devices and Themes====&lt;br /&gt;
&lt;br /&gt;
See the following issue discovered with device level themes http://tracker.moodle.org/browse/MDL-35148 overriding category and course level themes.&lt;br /&gt;
&lt;br /&gt;
==How do I create a custom theme?==&lt;br /&gt;
&lt;br /&gt;
See the developer documentation [[:dev:Theme development|Theme development]].&lt;br /&gt;
&lt;br /&gt;
==Can I assign a specific theme to a course?==&lt;br /&gt;
&lt;br /&gt;
Yes. In the course settings, use the &amp;quot;Force theme&amp;quot; dropdown box.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Is it possible to customise language strings per theme?==&lt;br /&gt;
Not by default, as when strings are customised, they are customised for the whole site. However, it is possible to make a new language  pack based on your main language and apply that pack to the course which has that theme. See this forum post for more information: https://moodle.org/mod/forum/discuss.php?d=220671&lt;br /&gt;
&lt;br /&gt;
==How can I get the links in  my custom menu to open in new windows?==&lt;br /&gt;
It is possible to create your own fly out menu via the custom menu block in Settings&amp;gt;Site administration&amp;gt;Appearance&amp;gt;Themes&amp;gt;Theme settings. Copy the examples given below the box. If you want the links to open in a new window, use the following code:&lt;br /&gt;
 Moodle|http://www.moodle.org&amp;quot; target=&amp;quot;_blank&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Where shall I put my custom CSS code? ==&lt;br /&gt;
&lt;br /&gt;
Note that the standard themes Afterburner, Arialist, Formal White, Fusion, Nonzero, Overlay, Sky High and Splash all offer the possibility to add custom CSS in their page settings via &#039;&#039;Settings&amp;gt;Appearance&amp;gt;Themes&amp;gt;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Failing this, instead of modifying the theme&#039;s CSS files you better put your own code in a separate CSS file and make your theme aware of that file by modifying its config.php file (be sure add your own CSS file as the last one in the list so that you will override all prior settings). See this posting for [http://moodle.org/mod/forum/discuss.php?d=128599#p564055 detailed instructions]. &lt;br /&gt;
&lt;br /&gt;
See also the instructions on creating your own theme mentioned above.&lt;br /&gt;
&lt;br /&gt;
==Will I lose my courses, language files, logo, etc. if I switch my theme?==&lt;br /&gt;
Switching themes only changes the appearance of your site, not the content within it. The logo is a part of the theme and will be lost when you switch.    &lt;br /&gt;
&lt;br /&gt;
Follow these instructions to [[:dev:Creating_a_custom_theme#Adding_a_Logo|add a logo]] to a theme.&lt;br /&gt;
:If you upgrade your Moodle site and tweaked an existing standard theme, you will lose your changes. Thus it is a good idea to create a custom theme which will not be changed when you upgrade.&lt;br /&gt;
&lt;br /&gt;
==I can&#039;t access theme files on the server. Can I still add a logo to a theme?==&lt;br /&gt;
Yes. You have two choices:&lt;br /&gt;
**Either upload your logo to another place publicly available online and then copy the image&#039;s URL to paste into the logo field of the theme page you are editing (such as Afterburner)&lt;br /&gt;
**Or add the main menu block to your front page; upload the logo via Main menu&amp;gt;Add a resource. Get its URL and paste it into the logo field of the theme page you are editing. You can safely then hide or delete the main menu block; the logo will still be there. (&#039;&#039;NOTE&#039;&#039; - your logo will appear in &#039;&#039;Navigation&amp;gt;Site pages&#039;&#039; as well.)&lt;br /&gt;
&lt;br /&gt;
== Are there tools which help me creating and editing themes? ==&lt;br /&gt;
&lt;br /&gt;
=== Clear Cache Button ===&lt;br /&gt;
This useful Firefox add-on let&#039;s you add a button to your tool bar for easily clearing your cache while working on your theme: https://addons.mozilla.org/de/firefox/addon/1801&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p class=&amp;quot;note&amp;quot;&amp;gt;Please note that the following tools are only for development. They only change the way &#039;&#039;you&#039;&#039; see your Moodle site, not the Moodle site itself. Any changes you make using these tools will not be visible to anyone else who uses your site. For this you will have to make those changes permanent by changing your theme&#039;s CSS files for example.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Firebug ===&lt;br /&gt;
The single most useful tool is the [[:dev:Firebug|Firebug]] add-on for the [[:dev:Firefox|Firefox]] web browser. Firebug integrates with Firefox to put a wealth of development tools at your fingertips while you browse. You can edit, debug, and monitor CSS, HTML, and JavaScript live in any web page... And there are additional add-ons for making Firebug an even more powerful tool.&lt;br /&gt;
&lt;br /&gt;
==== Firebug enhancements ====&lt;br /&gt;
You can enhance Firebug even further. See [[:dev:Firebug|Firebug]] for more information.&lt;br /&gt;
&lt;br /&gt;
=== Web Developer Toolbar ===&lt;br /&gt;
Another great tool for any web developer is the [[:dev:Web developer extension|Web developer extension]], another Firefox add-on. One very useful feature is the option to &#039;&#039;&#039;disable your browser&#039;s cache&#039;&#039;&#039; while working on your theme. That way you are sure you&#039;re always presented with your latest modifications and not with an older, cached version.&lt;br /&gt;
&lt;br /&gt;
Now also available for Google&#039;s Chrome browser: [http://www.sitepoint.com/blogs/2010/03/23/chrome-web-developer-toolbar/ &amp;quot;The Web Developer Toolbar Comes to Chrome&amp;quot;]&lt;br /&gt;
&lt;br /&gt;
=== Stylish ===&lt;br /&gt;
Modifications made with Firebug are lost when refreshing your page. If you want your CSS changes to be a bit more permanent, for example to try them with different pages of your Moodle installation, you can use another Firefox plugin: [https://addons.mozilla.org/en-US/firefox/addon/2108 Stylish]. That way you can change your site&#039;s CSS with a simple mouse click without having to change Moodle code.&lt;br /&gt;
&lt;br /&gt;
See [[:dev:Stylish|Stylish]] for detailed instructions and examples.&lt;br /&gt;
&lt;br /&gt;
==== Stylish-Custom ====&lt;br /&gt;
This is an [https://addons.mozilla.org/en-US/firefox/addon/12105/ custom additions] to the Stylish extension which brings back features from 0.5.9 and adds new features.&lt;br /&gt;
&lt;br /&gt;
== How do I check for cross-browser compatibility? ==&lt;br /&gt;
There are some tools (standalone and online) which can show you how your site looks in different browsers. See this [http://moodle.org/mod/forum/discuss.php?d=127746 forum discussion] for details.  See the new device detection settings in [[Theme settings]] which will allow you to create a theme for those &amp;quot;special&amp;quot; browsers.&lt;br /&gt;
&lt;br /&gt;
==How are the device types used in Moodle 2.4 ?==&lt;br /&gt;
If &amp;quot;Enabled device detection&amp;quot; has been turned on, Moodle 2.4 will automatically use the theme which has been set for the device in the [[Standard themes|Theme selector]] settings page.   It is also possible to add additional types to the Theme selector page by using the &amp;quot;device detection regular expressions&amp;quot; fields.   &lt;br /&gt;
&lt;br /&gt;
Site administrators can find these enable device detection settings in Site administration &amp;gt; Appearance &amp;gt;Themes &amp;gt; [[Theme settings]] .&lt;br /&gt;
&lt;br /&gt;
== Concrete examples for modifying Moodle themes ==&lt;br /&gt;
&amp;lt;p class=&amp;quot;note&amp;quot;&amp;gt;&lt;br /&gt;
The following examples were taken from the former &#039;&#039;Theme Scrapbook&#039;&#039;:&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;quot;The Moodle &#039;&#039;&#039;Theme Scrapbook&#039;&#039;&#039; is a collection of small how-to descriptions. You theme designers and Moodle users working with themes add your knowledge here to help new Moodle users with tips and tricks for their theme work. &lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Feel free to add to this list! Don&#039;t know how? Read our [[MoodleDocs:Guidelines_for_contributors|Guidelines for contributors]].&amp;quot;&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Changing things ===&lt;br /&gt;
&lt;br /&gt;
==== Colors ====&lt;br /&gt;
* [[:dev:Forcing the colour of the chat discussion pane (pop-up mode)]]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=142765 Changing background colour of a topic box]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=152357 How to change the colour of the popup event&#039;s header and background]&lt;br /&gt;
&lt;br /&gt;
==== Logo and icons ====&lt;br /&gt;
* [[:dev:Alternate Icon Set|Using an alternate icon set in Moodle]]&lt;br /&gt;
* [[Favicon|Change the favicon that shows in front of the web address]]&lt;br /&gt;
* [[Footer replacement|Replace the logo in the footer with your web address and/or or own logo]]&lt;br /&gt;
*[[:dev:Header logo|Replace the logo in the header]]&lt;br /&gt;
&lt;br /&gt;
==== Layout ====&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=136546 Overriding the $menu / $button variables] using PHP regular expressions in header.html&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=143411 Changing the view of course categories] - work in progress&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=145077 Sub categories and courses layout] - work in progress&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=151370 Tracker &#039;components&#039; list too small]&lt;br /&gt;
&lt;br /&gt;
=== Adding things ===&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=157935 How to add a different img-bullet to each category?]&lt;br /&gt;
&lt;br /&gt;
=== Hiding things ===&lt;br /&gt;
* Hiding an element with CSS is generally achieved using the [http://reference.sitepoint.com/css/display display: none;] property on the element.&lt;br /&gt;
* See [[:dev:Print style]] and [[:dev:Stylish#Print style for Database records]] for an example how to hide parts of a page not meant for printing.&lt;br /&gt;
&lt;br /&gt;
=== Moving things ===&lt;br /&gt;
* [[:dev:Center Forum Posts|Centre smaller forum posts on the page]]&lt;br /&gt;
* [[:dev:Footer positioning|Positioning the page footer]]&lt;br /&gt;
* [[:dev:Left-align quiz|Left align quiz questions and answers]]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=121847 Indentation for nested categories]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=128599 Positioning login and choose language field]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=145179 Match question type - position answers nearer to the questions]&lt;br /&gt;
* [[:dev:Stylish#Fixed admin menue with CSS]]&lt;br /&gt;
&lt;br /&gt;
=== Miscellaneous ===&lt;br /&gt;
* [[:dev:Fixed-width theme|Creating a fixed-width theme]]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=146763 Is there a way to fix oversized HTML Editor using CSS?]&lt;br /&gt;
* [[:dev:Category Design|Modifying the design of specific categories with CSS]]&lt;br /&gt;
&lt;br /&gt;
==How can I see theme changes when using the Windows Complete Installer package==&lt;br /&gt;
In the [http://download.moodle.org/windows/ Windows Complete Installer package], the eAccelerator in the XAMPP install can cause some issues with changes to your theme&#039;s CSS and HTML files from showing.&lt;br /&gt;
&lt;br /&gt;
Open the php.ini file inside of the server\php folder from your install in notepad and search for &amp;quot;eAccelerator&amp;quot; you should see a line that reads: &lt;br /&gt;
 extension=eaccelerator.dll&lt;br /&gt;
&lt;br /&gt;
Insert a semi-colon (turns the line into a comment) at the start of this line so it now reads: &lt;br /&gt;
 ;extension=eaccelerator.dll&lt;br /&gt;
&lt;br /&gt;
Restart the Moodle server using the &amp;quot;stop moodle&amp;quot; and then the &amp;quot;start moodle&amp;quot; programs in your server folder. You should now find that all of your changes to your CSS are reflected as soon as you save the file and refresh your browser cache (usually you can refresh your cache by pressing F5). This FAQ from a discussion at [http://moodle.org/mod/forum/discuss.php?d=151562#p663950 Deactivating caching with XAMPP installations]&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
&lt;br /&gt;
* Using Moodle [http://moodle.org/mod/forum/view.php?f=29 Themes forum]&lt;br /&gt;
* [[:dev:CSS FAQ]]&lt;br /&gt;
* [http://learn.open.ac.uk/mod/oublog/view.php?user=155976 &amp;quot;Understanding Moodle Themes&amp;quot;] - Blog post by [http://moodle.org/user/view.php?id=78896&amp;amp;course=5 Christopher Douce] (Open University)&lt;br /&gt;
* Using Moodle [http://moodle.org/mod/forum/discuss.php?d=149534 Testing 2.0. Use for modern vs old browsers] forum discussion&lt;br /&gt;
&lt;br /&gt;
[[Category:FAQ]]&lt;br /&gt;
[[de:Designs_FAQ]]&lt;/div&gt;</summary>
		<author><name>Rwthornton</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/2x/ca/index.php?title=Themes_FAQ&amp;diff=104488</id>
		<title>Themes FAQ</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/2x/ca/index.php?title=Themes_FAQ&amp;diff=104488"/>
		<updated>2013-05-16T23:06:45Z</updated>

		<summary type="html">&lt;p&gt;Rwthornton: /* What is the hierarchy of contexts for themes to override each other? */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Themes}}&lt;br /&gt;
==How do I install a new theme?==&lt;br /&gt;
&lt;br /&gt;
# Unzip the .zip file to an empty local directory.&lt;br /&gt;
# Upload folder to your web server to the /moodle/theme/[Theme Name]. (Replace [Theme Name] with the name of the theme you have downloaded.) Ensure the new theme folder and its contents are readable by the webserver.  Change Read and Write permissions (CHMOD) for the files and folder to 755 - Owner read/write/execute, Group read/execute, Everyone read/execute.  Incorrect permissions may prevent display of the newly installed theme.&lt;br /&gt;
# Choose your new theme from within Moodle via &#039;&#039;Administration &amp;gt; Appearance &amp;gt; Themes &amp;gt; Theme selector&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
=== How do I install a new theme when using cPanel? ===&lt;br /&gt;
&lt;br /&gt;
# Upload your new theme .zip file to your web server via cPanel. &lt;br /&gt;
# Then using cPanel install the new theme to your Moodle theme&#039;s folder.  The new theme will be installed into its own folder at /moodle/theme/[mytheme] (where [mytheme] is the name of your new theme.&lt;br /&gt;
# Ensure the new theme folder and its contents are readable by the webserver. If necessary  change Read and Write permissions (CHMOD) for the files and folder to 755 - Owner read/write/execute, Group read/execute, Everyone read/execute.  Incorrect permissions may prevent display of the newly installed theme.&lt;br /&gt;
# Choose your new theme from within Moodle via &#039;&#039;Administration &amp;gt; Appearance &amp;gt; Themes &amp;gt; Theme selector&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=== Why is the new theme I uploaded not showing up in Theme Selector? ===&lt;br /&gt;
&lt;br /&gt;
You probably forgot to do something correctly. Here are steps to create a &amp;quot;new&amp;quot; theme from an existing theme called &amp;quot;standard&amp;quot;. Bold show places you must change for the theme to appear.&lt;br /&gt;
#Copy folder theme/standard and call it theme/new&lt;br /&gt;
#In theme/new/lang/en folder,&lt;br /&gt;
##&#039;&#039;&#039;Renamed theme_standard.php to theme_new.php&#039;&#039;&#039;&lt;br /&gt;
#Opened theme/new/lang/en/new.php,  recommend you change 2 lines to read something like:&lt;br /&gt;
##$string[&#039;pluginname&#039;] = &#039;New theme - Martin D&#039;; &lt;br /&gt;
##$string[&#039;chooseredme&#039;] = &#039;New theme came from the Standard theme and is being changed by Martin D in 2011&#039;;&lt;br /&gt;
##Saved the file&lt;br /&gt;
#In theme/new/config.php&lt;br /&gt;
##Change &#039;&#039;&#039;$THEME-&amp;gt;NAME  = &#039;new&#039;&#039;&#039;&#039;;&lt;br /&gt;
#Went to &#039;&#039;Settings &amp;gt; Site Administration &amp;gt;Appearance &amp;gt; Theme settings&#039;&#039; &amp;gt; Theme designer mode (Checked)&lt;br /&gt;
#&#039;&#039;Settings &amp;gt; Site Administration &amp;gt;Appearance &amp;gt; Theme selector&#039;&#039;&lt;br /&gt;
##Clear theme caches&lt;br /&gt;
##Select theme&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;Tip:&#039;&#039; There could be a number of problems with the theme you uploaded, but one major problem reported in the Themes Forum all point to the way in which the theme is uploaded on certain servers. Using the cPanel method, as described in  the FAQ [[Themes_FAQ#How do I install a new theme when using cPanel?|How do I install a new theme when using cPanel?]] will, in most cases, cure the problem.&lt;br /&gt;
&lt;br /&gt;
== How do I control what themes show up where? ==&lt;br /&gt;
&lt;br /&gt;
You can control which themes show up in which contexts by a series of settings in &#039;&#039;Settings&amp;gt;Site Administration&amp;gt;Appearance&amp;gt;Themes&amp;gt;Theme settings&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
===How can I restrict the available themes to users and in courses?===&lt;br /&gt;
&lt;br /&gt;
In&#039;&#039; Settings&amp;gt;Site Administration&amp;gt;Appearance&amp;gt;Themes&amp;gt;Theme settings&#039;&#039;, add the themes you want them to use in the Theme list. These will then restrict the theme choice lists in pull down menus the contexts (Course, Category, User) where you allow them.&lt;br /&gt;
&lt;br /&gt;
===What is the hierarchy of contexts for themes to override each other?===&lt;br /&gt;
&lt;br /&gt;
There are five contexts in which themes appear and can be set: courses, category, session, user, and site (or Default, i.e. the site wide default theme). That is the level of priority of appearance they have as well. &lt;br /&gt;
&lt;br /&gt;
* You enable/disable these in [https://docs.moodle.org/24/en/Theme_settings Theme settings.] &lt;br /&gt;
* It is possible to change this hierarchy in the config.php file - see [https://docs.moodle.org/24/en/Theme_settings#Change_default_hierarchy change default hierarchy] for how.&lt;br /&gt;
&lt;br /&gt;
====Hierarchy of themes====&lt;br /&gt;
&lt;br /&gt;
* Course trumps Category (and below) &lt;br /&gt;
* Category trumps Session (and below) &lt;br /&gt;
* Session trumps User (and below)&lt;br /&gt;
* User trumps Default&lt;br /&gt;
* Default (site)&lt;br /&gt;
&lt;br /&gt;
====Note on Session Themes====&lt;br /&gt;
&lt;br /&gt;
* It is important to note that Session level themes (those set with the URL parameter theme=theme_name), override the Site level theme ONLY for the user&#039;s current logged in session. When the user loga out, they will then see the Site Default theme, not the Session theme. &lt;br /&gt;
* You only have to set the theme once via the URL parameter and it will persist until the user logs out.&lt;br /&gt;
&lt;br /&gt;
====Note on Guest Access====&lt;br /&gt;
&lt;br /&gt;
Courses with Guest access turned on will show a course level theme or category theme as usual. There is no user level theme for Guest since it has no profile or account in the usual sense.&lt;br /&gt;
&lt;br /&gt;
You can use a Session level theme for Guest which will persist not only during the &amp;quot;session&amp;quot; but between sessions, too, in the same browser (i.e. same cookie). This is different than the experience of Authenticated users, who get the default site on log out even if they had a session theme. &lt;br /&gt;
&lt;br /&gt;
This will be an issue if your theme changes and a Guest returns from the same browser with the previous theme set. Since the restrictions in the &#039;theme list&#039; do not apply to Session level URLs, Guest would get the old theme as long as it still exists on the site by that short name instead of the new site theme. (Tip: using a non-existent theme name in the URL will force the site default to appear, e.g. &#039;?theme=.&#039; will reset it since you can&#039;t name a theme &#039;.&#039;)&lt;br /&gt;
&lt;br /&gt;
====Note on Devices and Themes====&lt;br /&gt;
&lt;br /&gt;
See the following issue discovered with device level themes http://tracker.moodle.org/browse/MDL-35148 overriding category and course level themes.&lt;br /&gt;
&lt;br /&gt;
==How do I create a custom theme?==&lt;br /&gt;
&lt;br /&gt;
See the developer documentation [[:dev:Theme development|Theme development]].&lt;br /&gt;
&lt;br /&gt;
==Can I assign a specific theme to a course?==&lt;br /&gt;
&lt;br /&gt;
Yes. In the course settings, use the &amp;quot;Force theme&amp;quot; dropdown box.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Is it possible to customise language strings per theme?==&lt;br /&gt;
Not by default, as when strings are customised, they are customised for the whole site. However, it is possible to make a new language  pack based on your main language and apply that pack to the course which has that theme. See this forum post for more information: https://moodle.org/mod/forum/discuss.php?d=220671&lt;br /&gt;
&lt;br /&gt;
==How can I get the links in  my custom menu to open in new windows?==&lt;br /&gt;
It is possible to create your own fly out menu via the custom menu block in Settings&amp;gt;Site administration&amp;gt;Appearance&amp;gt;Themes&amp;gt;Theme settings. Copy the examples given below the box. If you want the links to open in a new window, use the following code:&lt;br /&gt;
 Moodle|http://www.moodle.org&amp;quot; target=&amp;quot;_blank&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Where shall I put my custom CSS code? ==&lt;br /&gt;
&lt;br /&gt;
Note that the standard themes Afterburner, Arialist, Formal White, Fusion, Nonzero, Overlay, Sky High and Splash all offer the possibility to add custom CSS in their page settings via &#039;&#039;Settings&amp;gt;Appearance&amp;gt;Themes&amp;gt;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Failing this, instead of modifying the theme&#039;s CSS files you better put your own code in a separate CSS file and make your theme aware of that file by modifying its config.php file (be sure add your own CSS file as the last one in the list so that you will override all prior settings). See this posting for [http://moodle.org/mod/forum/discuss.php?d=128599#p564055 detailed instructions]. &lt;br /&gt;
&lt;br /&gt;
See also the instructions on creating your own theme mentioned above.&lt;br /&gt;
&lt;br /&gt;
==Will I lose my courses, language files, logo, etc. if I switch my theme?==&lt;br /&gt;
Switching themes only changes the appearance of your site, not the content within it. The logo is a part of the theme and will be lost when you switch.    &lt;br /&gt;
&lt;br /&gt;
Follow these instructions to [[:dev:Creating_a_custom_theme#Adding_a_Logo|add a logo]] to a theme.&lt;br /&gt;
:If you upgrade your Moodle site and tweaked an existing standard theme, you will lose your changes. Thus it is a good idea to create a custom theme which will not be changed when you upgrade.&lt;br /&gt;
&lt;br /&gt;
==I can&#039;t access theme files on the server. Can I still add a logo to a theme?==&lt;br /&gt;
Yes. You have two choices:&lt;br /&gt;
**Either upload your logo to another place publicly available online and then copy the image&#039;s URL to paste into the logo field of the theme page you are editing (such as Afterburner)&lt;br /&gt;
**Or add the main menu block to your front page; upload the logo via Main menu&amp;gt;Add a resource. Get its URL and paste it into the logo field of the theme page you are editing. You can safely then hide or delete the main menu block; the logo will still be there. (&#039;&#039;NOTE&#039;&#039; - your logo will appear in &#039;&#039;Navigation&amp;gt;Site pages&#039;&#039; as well.)&lt;br /&gt;
&lt;br /&gt;
== Are there tools which help me creating and editing themes? ==&lt;br /&gt;
&lt;br /&gt;
=== Clear Cache Button ===&lt;br /&gt;
This useful Firefox add-on let&#039;s you add a button to your tool bar for easily clearing your cache while working on your theme: https://addons.mozilla.org/de/firefox/addon/1801&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p class=&amp;quot;note&amp;quot;&amp;gt;Please note that the following tools are only for development. They only change the way &#039;&#039;you&#039;&#039; see your Moodle site, not the Moodle site itself. Any changes you make using these tools will not be visible to anyone else who uses your site. For this you will have to make those changes permanent by changing your theme&#039;s CSS files for example.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Firebug ===&lt;br /&gt;
The single most useful tool is the [[:dev:Firebug|Firebug]] add-on for the [[:dev:Firefox|Firefox]] web browser. Firebug integrates with Firefox to put a wealth of development tools at your fingertips while you browse. You can edit, debug, and monitor CSS, HTML, and JavaScript live in any web page... And there are additional add-ons for making Firebug an even more powerful tool.&lt;br /&gt;
&lt;br /&gt;
==== Firebug enhancements ====&lt;br /&gt;
You can enhance Firebug even further. See [[:dev:Firebug|Firebug]] for more information.&lt;br /&gt;
&lt;br /&gt;
=== Web Developer Toolbar ===&lt;br /&gt;
Another great tool for any web developer is the [[:dev:Web developer extension|Web developer extension]], another Firefox add-on. One very useful feature is the option to &#039;&#039;&#039;disable your browser&#039;s cache&#039;&#039;&#039; while working on your theme. That way you are sure you&#039;re always presented with your latest modifications and not with an older, cached version.&lt;br /&gt;
&lt;br /&gt;
Now also available for Google&#039;s Chrome browser: [http://www.sitepoint.com/blogs/2010/03/23/chrome-web-developer-toolbar/ &amp;quot;The Web Developer Toolbar Comes to Chrome&amp;quot;]&lt;br /&gt;
&lt;br /&gt;
=== Stylish ===&lt;br /&gt;
Modifications made with Firebug are lost when refreshing your page. If you want your CSS changes to be a bit more permanent, for example to try them with different pages of your Moodle installation, you can use another Firefox plugin: [https://addons.mozilla.org/en-US/firefox/addon/2108 Stylish]. That way you can change your site&#039;s CSS with a simple mouse click without having to change Moodle code.&lt;br /&gt;
&lt;br /&gt;
See [[:dev:Stylish|Stylish]] for detailed instructions and examples.&lt;br /&gt;
&lt;br /&gt;
==== Stylish-Custom ====&lt;br /&gt;
This is an [https://addons.mozilla.org/en-US/firefox/addon/12105/ custom additions] to the Stylish extension which brings back features from 0.5.9 and adds new features.&lt;br /&gt;
&lt;br /&gt;
== How do I check for cross-browser compatibility? ==&lt;br /&gt;
There are some tools (standalone and online) which can show you how your site looks in different browsers. See this [http://moodle.org/mod/forum/discuss.php?d=127746 forum discussion] for details.  See the new device detection settings in [[Theme settings]] which will allow you to create a theme for those &amp;quot;special&amp;quot; browsers.&lt;br /&gt;
&lt;br /&gt;
==How are the device types used in Moodle 2.4 ?==&lt;br /&gt;
If &amp;quot;Enabled device detection&amp;quot; has been turned on, Moodle 2.4 will automatically use the theme which has been set for the device in the [[Standard themes|Theme selector]] settings page.   It is also possible to add additional types to the Theme selector page by using the &amp;quot;device detection regular expressions&amp;quot; fields.   &lt;br /&gt;
&lt;br /&gt;
Site administrators can find these enable device detection settings in Site administration &amp;gt; Appearance &amp;gt;Themes &amp;gt; [[Theme settings]] .&lt;br /&gt;
&lt;br /&gt;
== Concrete examples for modifying Moodle themes ==&lt;br /&gt;
&amp;lt;p class=&amp;quot;note&amp;quot;&amp;gt;&lt;br /&gt;
The following examples were taken from the former &#039;&#039;Theme Scrapbook&#039;&#039;:&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;quot;The Moodle &#039;&#039;&#039;Theme Scrapbook&#039;&#039;&#039; is a collection of small how-to descriptions. You theme designers and Moodle users working with themes add your knowledge here to help new Moodle users with tips and tricks for their theme work. &lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Feel free to add to this list! Don&#039;t know how? Read our [[MoodleDocs:Guidelines_for_contributors|Guidelines for contributors]].&amp;quot;&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Changing things ===&lt;br /&gt;
&lt;br /&gt;
==== Colors ====&lt;br /&gt;
* [[:dev:Forcing the colour of the chat discussion pane (pop-up mode)]]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=142765 Changing background colour of a topic box]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=152357 How to change the colour of the popup event&#039;s header and background]&lt;br /&gt;
&lt;br /&gt;
==== Logo and icons ====&lt;br /&gt;
* [[:dev:Alternate Icon Set|Using an alternate icon set in Moodle]]&lt;br /&gt;
* [[Favicon|Change the favicon that shows in front of the web address]]&lt;br /&gt;
* [[Footer replacement|Replace the logo in the footer with your web address and/or or own logo]]&lt;br /&gt;
*[[:dev:Header logo|Replace the logo in the header]]&lt;br /&gt;
&lt;br /&gt;
==== Layout ====&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=136546 Overriding the $menu / $button variables] using PHP regular expressions in header.html&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=143411 Changing the view of course categories] - work in progress&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=145077 Sub categories and courses layout] - work in progress&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=151370 Tracker &#039;components&#039; list too small]&lt;br /&gt;
&lt;br /&gt;
=== Adding things ===&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=157935 How to add a different img-bullet to each category?]&lt;br /&gt;
&lt;br /&gt;
=== Hiding things ===&lt;br /&gt;
* Hiding an element with CSS is generally achieved using the [http://reference.sitepoint.com/css/display display: none;] property on the element.&lt;br /&gt;
* See [[:dev:Print style]] and [[:dev:Stylish#Print style for Database records]] for an example how to hide parts of a page not meant for printing.&lt;br /&gt;
&lt;br /&gt;
=== Moving things ===&lt;br /&gt;
* [[:dev:Center Forum Posts|Centre smaller forum posts on the page]]&lt;br /&gt;
* [[:dev:Footer positioning|Positioning the page footer]]&lt;br /&gt;
* [[:dev:Left-align quiz|Left align quiz questions and answers]]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=121847 Indentation for nested categories]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=128599 Positioning login and choose language field]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=145179 Match question type - position answers nearer to the questions]&lt;br /&gt;
* [[:dev:Stylish#Fixed admin menue with CSS]]&lt;br /&gt;
&lt;br /&gt;
=== Miscellaneous ===&lt;br /&gt;
* [[:dev:Fixed-width theme|Creating a fixed-width theme]]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=146763 Is there a way to fix oversized HTML Editor using CSS?]&lt;br /&gt;
* [[:dev:Category Design|Modifying the design of specific categories with CSS]]&lt;br /&gt;
&lt;br /&gt;
==How can I see theme changes when using the Windows Complete Installer package==&lt;br /&gt;
In the [http://download.moodle.org/windows/ Windows Complete Installer package], the eAccelerator in the XAMPP install can cause some issues with changes to your theme&#039;s CSS and HTML files from showing.&lt;br /&gt;
&lt;br /&gt;
Open the php.ini file inside of the server\php folder from your install in notepad and search for &amp;quot;eAccelerator&amp;quot; you should see a line that reads: &lt;br /&gt;
 extension=eaccelerator.dll&lt;br /&gt;
&lt;br /&gt;
Insert a semi-colon (turns the line into a comment) at the start of this line so it now reads: &lt;br /&gt;
 ;extension=eaccelerator.dll&lt;br /&gt;
&lt;br /&gt;
Restart the Moodle server using the &amp;quot;stop moodle&amp;quot; and then the &amp;quot;start moodle&amp;quot; programs in your server folder. You should now find that all of your changes to your CSS are reflected as soon as you save the file and refresh your browser cache (usually you can refresh your cache by pressing F5). This FAQ from a discussion at [http://moodle.org/mod/forum/discuss.php?d=151562#p663950 Deactivating caching with XAMPP installations]&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
&lt;br /&gt;
* Using Moodle [http://moodle.org/mod/forum/view.php?f=29 Themes forum]&lt;br /&gt;
* [[:dev:CSS FAQ]]&lt;br /&gt;
* [http://learn.open.ac.uk/mod/oublog/view.php?user=155976 &amp;quot;Understanding Moodle Themes&amp;quot;] - Blog post by [http://moodle.org/user/view.php?id=78896&amp;amp;course=5 Christopher Douce] (Open University)&lt;br /&gt;
* Using Moodle [http://moodle.org/mod/forum/discuss.php?d=149534 Testing 2.0. Use for modern vs old browsers] forum discussion&lt;br /&gt;
&lt;br /&gt;
[[Category:FAQ]]&lt;br /&gt;
[[de:Designs_FAQ]]&lt;/div&gt;</summary>
		<author><name>Rwthornton</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/2x/ca/index.php?title=Themes_FAQ&amp;diff=104487</id>
		<title>Themes FAQ</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/2x/ca/index.php?title=Themes_FAQ&amp;diff=104487"/>
		<updated>2013-05-16T22:48:25Z</updated>

		<summary type="html">&lt;p&gt;Rwthornton: /* Note on Guest Access */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Themes}}&lt;br /&gt;
==How do I install a new theme?==&lt;br /&gt;
&lt;br /&gt;
# Unzip the .zip file to an empty local directory.&lt;br /&gt;
# Upload folder to your web server to the /moodle/theme/[Theme Name]. (Replace [Theme Name] with the name of the theme you have downloaded.) Ensure the new theme folder and its contents are readable by the webserver.  Change Read and Write permissions (CHMOD) for the files and folder to 755 - Owner read/write/execute, Group read/execute, Everyone read/execute.  Incorrect permissions may prevent display of the newly installed theme.&lt;br /&gt;
# Choose your new theme from within Moodle via &#039;&#039;Administration &amp;gt; Appearance &amp;gt; Themes &amp;gt; Theme selector&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
=== How do I install a new theme when using cPanel? ===&lt;br /&gt;
&lt;br /&gt;
# Upload your new theme .zip file to your web server via cPanel. &lt;br /&gt;
# Then using cPanel install the new theme to your Moodle theme&#039;s folder.  The new theme will be installed into its own folder at /moodle/theme/[mytheme] (where [mytheme] is the name of your new theme.&lt;br /&gt;
# Ensure the new theme folder and its contents are readable by the webserver. If necessary  change Read and Write permissions (CHMOD) for the files and folder to 755 - Owner read/write/execute, Group read/execute, Everyone read/execute.  Incorrect permissions may prevent display of the newly installed theme.&lt;br /&gt;
# Choose your new theme from within Moodle via &#039;&#039;Administration &amp;gt; Appearance &amp;gt; Themes &amp;gt; Theme selector&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=== Why is the new theme I uploaded not showing up in Theme Selector? ===&lt;br /&gt;
&lt;br /&gt;
You probably forgot to do something correctly. Here are steps to create a &amp;quot;new&amp;quot; theme from an existing theme called &amp;quot;standard&amp;quot;. Bold show places you must change for the theme to appear.&lt;br /&gt;
#Copy folder theme/standard and call it theme/new&lt;br /&gt;
#In theme/new/lang/en folder,&lt;br /&gt;
##&#039;&#039;&#039;Renamed theme_standard.php to theme_new.php&#039;&#039;&#039;&lt;br /&gt;
#Opened theme/new/lang/en/new.php,  recommend you change 2 lines to read something like:&lt;br /&gt;
##$string[&#039;pluginname&#039;] = &#039;New theme - Martin D&#039;; &lt;br /&gt;
##$string[&#039;chooseredme&#039;] = &#039;New theme came from the Standard theme and is being changed by Martin D in 2011&#039;;&lt;br /&gt;
##Saved the file&lt;br /&gt;
#In theme/new/config.php&lt;br /&gt;
##Change &#039;&#039;&#039;$THEME-&amp;gt;NAME  = &#039;new&#039;&#039;&#039;&#039;;&lt;br /&gt;
#Went to &#039;&#039;Settings &amp;gt; Site Administration &amp;gt;Appearance &amp;gt; Theme settings&#039;&#039; &amp;gt; Theme designer mode (Checked)&lt;br /&gt;
#&#039;&#039;Settings &amp;gt; Site Administration &amp;gt;Appearance &amp;gt; Theme selector&#039;&#039;&lt;br /&gt;
##Clear theme caches&lt;br /&gt;
##Select theme&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;Tip:&#039;&#039; There could be a number of problems with the theme you uploaded, but one major problem reported in the Themes Forum all point to the way in which the theme is uploaded on certain servers. Using the cPanel method, as described in  the FAQ [[Themes_FAQ#How do I install a new theme when using cPanel?|How do I install a new theme when using cPanel?]] will, in most cases, cure the problem.&lt;br /&gt;
&lt;br /&gt;
== How do I control what themes show up where? ==&lt;br /&gt;
&lt;br /&gt;
You can control which themes show up in which contexts by a series of settings in &#039;&#039;Settings&amp;gt;Site Administration&amp;gt;Appearance&amp;gt;Themes&amp;gt;Theme settings&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
===How can I restrict the available themes to users and in courses?===&lt;br /&gt;
&lt;br /&gt;
In&#039;&#039; Settings&amp;gt;Site Administration&amp;gt;Appearance&amp;gt;Themes&amp;gt;Theme settings&#039;&#039;, add the themes you want them to use in the Theme list. These will then restrict the theme choice lists in pull down menus the contexts (Course, Category, User) where you allow them.&lt;br /&gt;
&lt;br /&gt;
===What is the hierarchy of contexts for themes to override each other?===&lt;br /&gt;
&lt;br /&gt;
There are five contexts in which themes appear and can be set: courses, category, session, user, and site, and that is the level of priority of appearance they have as well. You enable/disable these in [https://docs.moodle.org/24/en/Theme_settings Theme settings.] (It is possible to change this hierarchy in the config.php file - see [https://docs.moodle.org/24/en/Theme_settings#Change_default_hierarchy change default hierarchy] for how.) &lt;br /&gt;
&lt;br /&gt;
* Course: themes set at the course level trump (override) all other theme settings&lt;br /&gt;
* Category: themes set at the category level trump all themes except course level themes&lt;br /&gt;
* Session: session level themes set with the URL parameter theme=theme_name are trumped by course and category but trump lower levels&lt;br /&gt;
* User: themes set at the user profile level are trumped by course, category and session, and only trump the site theme&lt;br /&gt;
* Site Default: is trumped by any of the above themes&lt;br /&gt;
&lt;br /&gt;
====Note on Session Themes====&lt;br /&gt;
&lt;br /&gt;
* It is important to note that Session level themes override the Site level theme ONLY for the user&#039;s current logged in session. When the user loga out, they will then see the Site Default theme, not the Session theme. &lt;br /&gt;
* You only have to set the theme once via the URL parameter and it will persist until the user logs out.&lt;br /&gt;
&lt;br /&gt;
====Note on Guest Access====&lt;br /&gt;
&lt;br /&gt;
Courses with Guest access turned on will show a course level theme or category theme as usual. There is no user level theme for Guest since it has no profile or account in the usual sense.&lt;br /&gt;
&lt;br /&gt;
You can use a Session level theme for Guest which will persist not only during the &amp;quot;session&amp;quot; but between sessions, too, in the same browser (i.e. same cookie). This is different than the experience of Authenticated users, who get the default site on log out even if they had a session theme. &lt;br /&gt;
&lt;br /&gt;
This will be an issue if your theme changes and a Guest returns from the same browser with the previous theme set. Since the restrictions in the &#039;theme list&#039; do not apply to Session level URLs, Guest would get the old theme as long as it still exists on the site by that short name instead of the new site theme. (Tip: using a non-existent theme name in the URL will force the site default to appear, e.g. &#039;?theme=.&#039; will reset it since you can&#039;t name a theme &#039;.&#039;)&lt;br /&gt;
&lt;br /&gt;
====Note on Devices and Themes====&lt;br /&gt;
&lt;br /&gt;
See the following issue discovered with device level themes http://tracker.moodle.org/browse/MDL-35148 overriding category and course level themes.&lt;br /&gt;
&lt;br /&gt;
==How do I create a custom theme?==&lt;br /&gt;
&lt;br /&gt;
See the developer documentation [[:dev:Theme development|Theme development]].&lt;br /&gt;
&lt;br /&gt;
==Can I assign a specific theme to a course?==&lt;br /&gt;
&lt;br /&gt;
Yes. In the course settings, use the &amp;quot;Force theme&amp;quot; dropdown box.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Is it possible to customise language strings per theme?==&lt;br /&gt;
Not by default, as when strings are customised, they are customised for the whole site. However, it is possible to make a new language  pack based on your main language and apply that pack to the course which has that theme. See this forum post for more information: https://moodle.org/mod/forum/discuss.php?d=220671&lt;br /&gt;
&lt;br /&gt;
==How can I get the links in  my custom menu to open in new windows?==&lt;br /&gt;
It is possible to create your own fly out menu via the custom menu block in Settings&amp;gt;Site administration&amp;gt;Appearance&amp;gt;Themes&amp;gt;Theme settings. Copy the examples given below the box. If you want the links to open in a new window, use the following code:&lt;br /&gt;
 Moodle|http://www.moodle.org&amp;quot; target=&amp;quot;_blank&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Where shall I put my custom CSS code? ==&lt;br /&gt;
&lt;br /&gt;
Note that the standard themes Afterburner, Arialist, Formal White, Fusion, Nonzero, Overlay, Sky High and Splash all offer the possibility to add custom CSS in their page settings via &#039;&#039;Settings&amp;gt;Appearance&amp;gt;Themes&amp;gt;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Failing this, instead of modifying the theme&#039;s CSS files you better put your own code in a separate CSS file and make your theme aware of that file by modifying its config.php file (be sure add your own CSS file as the last one in the list so that you will override all prior settings). See this posting for [http://moodle.org/mod/forum/discuss.php?d=128599#p564055 detailed instructions]. &lt;br /&gt;
&lt;br /&gt;
See also the instructions on creating your own theme mentioned above.&lt;br /&gt;
&lt;br /&gt;
==Will I lose my courses, language files, logo, etc. if I switch my theme?==&lt;br /&gt;
Switching themes only changes the appearance of your site, not the content within it. The logo is a part of the theme and will be lost when you switch.    &lt;br /&gt;
&lt;br /&gt;
Follow these instructions to [[:dev:Creating_a_custom_theme#Adding_a_Logo|add a logo]] to a theme.&lt;br /&gt;
:If you upgrade your Moodle site and tweaked an existing standard theme, you will lose your changes. Thus it is a good idea to create a custom theme which will not be changed when you upgrade.&lt;br /&gt;
&lt;br /&gt;
==I can&#039;t access theme files on the server. Can I still add a logo to a theme?==&lt;br /&gt;
Yes. You have two choices:&lt;br /&gt;
**Either upload your logo to another place publicly available online and then copy the image&#039;s URL to paste into the logo field of the theme page you are editing (such as Afterburner)&lt;br /&gt;
**Or add the main menu block to your front page; upload the logo via Main menu&amp;gt;Add a resource. Get its URL and paste it into the logo field of the theme page you are editing. You can safely then hide or delete the main menu block; the logo will still be there. (&#039;&#039;NOTE&#039;&#039; - your logo will appear in &#039;&#039;Navigation&amp;gt;Site pages&#039;&#039; as well.)&lt;br /&gt;
&lt;br /&gt;
== Are there tools which help me creating and editing themes? ==&lt;br /&gt;
&lt;br /&gt;
=== Clear Cache Button ===&lt;br /&gt;
This useful Firefox add-on let&#039;s you add a button to your tool bar for easily clearing your cache while working on your theme: https://addons.mozilla.org/de/firefox/addon/1801&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p class=&amp;quot;note&amp;quot;&amp;gt;Please note that the following tools are only for development. They only change the way &#039;&#039;you&#039;&#039; see your Moodle site, not the Moodle site itself. Any changes you make using these tools will not be visible to anyone else who uses your site. For this you will have to make those changes permanent by changing your theme&#039;s CSS files for example.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Firebug ===&lt;br /&gt;
The single most useful tool is the [[:dev:Firebug|Firebug]] add-on for the [[:dev:Firefox|Firefox]] web browser. Firebug integrates with Firefox to put a wealth of development tools at your fingertips while you browse. You can edit, debug, and monitor CSS, HTML, and JavaScript live in any web page... And there are additional add-ons for making Firebug an even more powerful tool.&lt;br /&gt;
&lt;br /&gt;
==== Firebug enhancements ====&lt;br /&gt;
You can enhance Firebug even further. See [[:dev:Firebug|Firebug]] for more information.&lt;br /&gt;
&lt;br /&gt;
=== Web Developer Toolbar ===&lt;br /&gt;
Another great tool for any web developer is the [[:dev:Web developer extension|Web developer extension]], another Firefox add-on. One very useful feature is the option to &#039;&#039;&#039;disable your browser&#039;s cache&#039;&#039;&#039; while working on your theme. That way you are sure you&#039;re always presented with your latest modifications and not with an older, cached version.&lt;br /&gt;
&lt;br /&gt;
Now also available for Google&#039;s Chrome browser: [http://www.sitepoint.com/blogs/2010/03/23/chrome-web-developer-toolbar/ &amp;quot;The Web Developer Toolbar Comes to Chrome&amp;quot;]&lt;br /&gt;
&lt;br /&gt;
=== Stylish ===&lt;br /&gt;
Modifications made with Firebug are lost when refreshing your page. If you want your CSS changes to be a bit more permanent, for example to try them with different pages of your Moodle installation, you can use another Firefox plugin: [https://addons.mozilla.org/en-US/firefox/addon/2108 Stylish]. That way you can change your site&#039;s CSS with a simple mouse click without having to change Moodle code.&lt;br /&gt;
&lt;br /&gt;
See [[:dev:Stylish|Stylish]] for detailed instructions and examples.&lt;br /&gt;
&lt;br /&gt;
==== Stylish-Custom ====&lt;br /&gt;
This is an [https://addons.mozilla.org/en-US/firefox/addon/12105/ custom additions] to the Stylish extension which brings back features from 0.5.9 and adds new features.&lt;br /&gt;
&lt;br /&gt;
== How do I check for cross-browser compatibility? ==&lt;br /&gt;
There are some tools (standalone and online) which can show you how your site looks in different browsers. See this [http://moodle.org/mod/forum/discuss.php?d=127746 forum discussion] for details.  See the new device detection settings in [[Theme settings]] which will allow you to create a theme for those &amp;quot;special&amp;quot; browsers.&lt;br /&gt;
&lt;br /&gt;
==How are the device types used in Moodle 2.4 ?==&lt;br /&gt;
If &amp;quot;Enabled device detection&amp;quot; has been turned on, Moodle 2.4 will automatically use the theme which has been set for the device in the [[Standard themes|Theme selector]] settings page.   It is also possible to add additional types to the Theme selector page by using the &amp;quot;device detection regular expressions&amp;quot; fields.   &lt;br /&gt;
&lt;br /&gt;
Site administrators can find these enable device detection settings in Site administration &amp;gt; Appearance &amp;gt;Themes &amp;gt; [[Theme settings]] .&lt;br /&gt;
&lt;br /&gt;
== Concrete examples for modifying Moodle themes ==&lt;br /&gt;
&amp;lt;p class=&amp;quot;note&amp;quot;&amp;gt;&lt;br /&gt;
The following examples were taken from the former &#039;&#039;Theme Scrapbook&#039;&#039;:&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;quot;The Moodle &#039;&#039;&#039;Theme Scrapbook&#039;&#039;&#039; is a collection of small how-to descriptions. You theme designers and Moodle users working with themes add your knowledge here to help new Moodle users with tips and tricks for their theme work. &lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Feel free to add to this list! Don&#039;t know how? Read our [[MoodleDocs:Guidelines_for_contributors|Guidelines for contributors]].&amp;quot;&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Changing things ===&lt;br /&gt;
&lt;br /&gt;
==== Colors ====&lt;br /&gt;
* [[:dev:Forcing the colour of the chat discussion pane (pop-up mode)]]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=142765 Changing background colour of a topic box]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=152357 How to change the colour of the popup event&#039;s header and background]&lt;br /&gt;
&lt;br /&gt;
==== Logo and icons ====&lt;br /&gt;
* [[:dev:Alternate Icon Set|Using an alternate icon set in Moodle]]&lt;br /&gt;
* [[Favicon|Change the favicon that shows in front of the web address]]&lt;br /&gt;
* [[Footer replacement|Replace the logo in the footer with your web address and/or or own logo]]&lt;br /&gt;
*[[:dev:Header logo|Replace the logo in the header]]&lt;br /&gt;
&lt;br /&gt;
==== Layout ====&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=136546 Overriding the $menu / $button variables] using PHP regular expressions in header.html&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=143411 Changing the view of course categories] - work in progress&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=145077 Sub categories and courses layout] - work in progress&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=151370 Tracker &#039;components&#039; list too small]&lt;br /&gt;
&lt;br /&gt;
=== Adding things ===&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=157935 How to add a different img-bullet to each category?]&lt;br /&gt;
&lt;br /&gt;
=== Hiding things ===&lt;br /&gt;
* Hiding an element with CSS is generally achieved using the [http://reference.sitepoint.com/css/display display: none;] property on the element.&lt;br /&gt;
* See [[:dev:Print style]] and [[:dev:Stylish#Print style for Database records]] for an example how to hide parts of a page not meant for printing.&lt;br /&gt;
&lt;br /&gt;
=== Moving things ===&lt;br /&gt;
* [[:dev:Center Forum Posts|Centre smaller forum posts on the page]]&lt;br /&gt;
* [[:dev:Footer positioning|Positioning the page footer]]&lt;br /&gt;
* [[:dev:Left-align quiz|Left align quiz questions and answers]]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=121847 Indentation for nested categories]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=128599 Positioning login and choose language field]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=145179 Match question type - position answers nearer to the questions]&lt;br /&gt;
* [[:dev:Stylish#Fixed admin menue with CSS]]&lt;br /&gt;
&lt;br /&gt;
=== Miscellaneous ===&lt;br /&gt;
* [[:dev:Fixed-width theme|Creating a fixed-width theme]]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=146763 Is there a way to fix oversized HTML Editor using CSS?]&lt;br /&gt;
* [[:dev:Category Design|Modifying the design of specific categories with CSS]]&lt;br /&gt;
&lt;br /&gt;
==How can I see theme changes when using the Windows Complete Installer package==&lt;br /&gt;
In the [http://download.moodle.org/windows/ Windows Complete Installer package], the eAccelerator in the XAMPP install can cause some issues with changes to your theme&#039;s CSS and HTML files from showing.&lt;br /&gt;
&lt;br /&gt;
Open the php.ini file inside of the server\php folder from your install in notepad and search for &amp;quot;eAccelerator&amp;quot; you should see a line that reads: &lt;br /&gt;
 extension=eaccelerator.dll&lt;br /&gt;
&lt;br /&gt;
Insert a semi-colon (turns the line into a comment) at the start of this line so it now reads: &lt;br /&gt;
 ;extension=eaccelerator.dll&lt;br /&gt;
&lt;br /&gt;
Restart the Moodle server using the &amp;quot;stop moodle&amp;quot; and then the &amp;quot;start moodle&amp;quot; programs in your server folder. You should now find that all of your changes to your CSS are reflected as soon as you save the file and refresh your browser cache (usually you can refresh your cache by pressing F5). This FAQ from a discussion at [http://moodle.org/mod/forum/discuss.php?d=151562#p663950 Deactivating caching with XAMPP installations]&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
&lt;br /&gt;
* Using Moodle [http://moodle.org/mod/forum/view.php?f=29 Themes forum]&lt;br /&gt;
* [[:dev:CSS FAQ]]&lt;br /&gt;
* [http://learn.open.ac.uk/mod/oublog/view.php?user=155976 &amp;quot;Understanding Moodle Themes&amp;quot;] - Blog post by [http://moodle.org/user/view.php?id=78896&amp;amp;course=5 Christopher Douce] (Open University)&lt;br /&gt;
* Using Moodle [http://moodle.org/mod/forum/discuss.php?d=149534 Testing 2.0. Use for modern vs old browsers] forum discussion&lt;br /&gt;
&lt;br /&gt;
[[Category:FAQ]]&lt;br /&gt;
[[de:Designs_FAQ]]&lt;/div&gt;</summary>
		<author><name>Rwthornton</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/2x/ca/index.php?title=Themes_FAQ&amp;diff=104486</id>
		<title>Themes FAQ</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/2x/ca/index.php?title=Themes_FAQ&amp;diff=104486"/>
		<updated>2013-05-16T22:47:06Z</updated>

		<summary type="html">&lt;p&gt;Rwthornton: /* Note on Session Themes */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Themes}}&lt;br /&gt;
==How do I install a new theme?==&lt;br /&gt;
&lt;br /&gt;
# Unzip the .zip file to an empty local directory.&lt;br /&gt;
# Upload folder to your web server to the /moodle/theme/[Theme Name]. (Replace [Theme Name] with the name of the theme you have downloaded.) Ensure the new theme folder and its contents are readable by the webserver.  Change Read and Write permissions (CHMOD) for the files and folder to 755 - Owner read/write/execute, Group read/execute, Everyone read/execute.  Incorrect permissions may prevent display of the newly installed theme.&lt;br /&gt;
# Choose your new theme from within Moodle via &#039;&#039;Administration &amp;gt; Appearance &amp;gt; Themes &amp;gt; Theme selector&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
=== How do I install a new theme when using cPanel? ===&lt;br /&gt;
&lt;br /&gt;
# Upload your new theme .zip file to your web server via cPanel. &lt;br /&gt;
# Then using cPanel install the new theme to your Moodle theme&#039;s folder.  The new theme will be installed into its own folder at /moodle/theme/[mytheme] (where [mytheme] is the name of your new theme.&lt;br /&gt;
# Ensure the new theme folder and its contents are readable by the webserver. If necessary  change Read and Write permissions (CHMOD) for the files and folder to 755 - Owner read/write/execute, Group read/execute, Everyone read/execute.  Incorrect permissions may prevent display of the newly installed theme.&lt;br /&gt;
# Choose your new theme from within Moodle via &#039;&#039;Administration &amp;gt; Appearance &amp;gt; Themes &amp;gt; Theme selector&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=== Why is the new theme I uploaded not showing up in Theme Selector? ===&lt;br /&gt;
&lt;br /&gt;
You probably forgot to do something correctly. Here are steps to create a &amp;quot;new&amp;quot; theme from an existing theme called &amp;quot;standard&amp;quot;. Bold show places you must change for the theme to appear.&lt;br /&gt;
#Copy folder theme/standard and call it theme/new&lt;br /&gt;
#In theme/new/lang/en folder,&lt;br /&gt;
##&#039;&#039;&#039;Renamed theme_standard.php to theme_new.php&#039;&#039;&#039;&lt;br /&gt;
#Opened theme/new/lang/en/new.php,  recommend you change 2 lines to read something like:&lt;br /&gt;
##$string[&#039;pluginname&#039;] = &#039;New theme - Martin D&#039;; &lt;br /&gt;
##$string[&#039;chooseredme&#039;] = &#039;New theme came from the Standard theme and is being changed by Martin D in 2011&#039;;&lt;br /&gt;
##Saved the file&lt;br /&gt;
#In theme/new/config.php&lt;br /&gt;
##Change &#039;&#039;&#039;$THEME-&amp;gt;NAME  = &#039;new&#039;&#039;&#039;&#039;;&lt;br /&gt;
#Went to &#039;&#039;Settings &amp;gt; Site Administration &amp;gt;Appearance &amp;gt; Theme settings&#039;&#039; &amp;gt; Theme designer mode (Checked)&lt;br /&gt;
#&#039;&#039;Settings &amp;gt; Site Administration &amp;gt;Appearance &amp;gt; Theme selector&#039;&#039;&lt;br /&gt;
##Clear theme caches&lt;br /&gt;
##Select theme&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;Tip:&#039;&#039; There could be a number of problems with the theme you uploaded, but one major problem reported in the Themes Forum all point to the way in which the theme is uploaded on certain servers. Using the cPanel method, as described in  the FAQ [[Themes_FAQ#How do I install a new theme when using cPanel?|How do I install a new theme when using cPanel?]] will, in most cases, cure the problem.&lt;br /&gt;
&lt;br /&gt;
== How do I control what themes show up where? ==&lt;br /&gt;
&lt;br /&gt;
You can control which themes show up in which contexts by a series of settings in &#039;&#039;Settings&amp;gt;Site Administration&amp;gt;Appearance&amp;gt;Themes&amp;gt;Theme settings&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
===How can I restrict the available themes to users and in courses?===&lt;br /&gt;
&lt;br /&gt;
In&#039;&#039; Settings&amp;gt;Site Administration&amp;gt;Appearance&amp;gt;Themes&amp;gt;Theme settings&#039;&#039;, add the themes you want them to use in the Theme list. These will then restrict the theme choice lists in pull down menus the contexts (Course, Category, User) where you allow them.&lt;br /&gt;
&lt;br /&gt;
===What is the hierarchy of contexts for themes to override each other?===&lt;br /&gt;
&lt;br /&gt;
There are five contexts in which themes appear and can be set: courses, category, session, user, and site, and that is the level of priority of appearance they have as well. You enable/disable these in [https://docs.moodle.org/24/en/Theme_settings Theme settings.] (It is possible to change this hierarchy in the config.php file - see [https://docs.moodle.org/24/en/Theme_settings#Change_default_hierarchy change default hierarchy] for how.) &lt;br /&gt;
&lt;br /&gt;
* Course: themes set at the course level trump (override) all other theme settings&lt;br /&gt;
* Category: themes set at the category level trump all themes except course level themes&lt;br /&gt;
* Session: session level themes set with the URL parameter theme=theme_name are trumped by course and category but trump lower levels&lt;br /&gt;
* User: themes set at the user profile level are trumped by course, category and session, and only trump the site theme&lt;br /&gt;
* Site Default: is trumped by any of the above themes&lt;br /&gt;
&lt;br /&gt;
====Note on Session Themes====&lt;br /&gt;
&lt;br /&gt;
* It is important to note that Session level themes override the Site level theme ONLY for the user&#039;s current logged in session. When the user loga out, they will then see the Site Default theme, not the Session theme. &lt;br /&gt;
* You only have to set the theme once via the URL parameter and it will persist until the user logs out.&lt;br /&gt;
&lt;br /&gt;
====Note on Guest Access====&lt;br /&gt;
&lt;br /&gt;
Courses with Guest access turned on will show a course level theme or category theme as usual. There is no user level theme for Guest since it has no profile or account in the usual sense.&lt;br /&gt;
&lt;br /&gt;
You can use a Session level theme for Guest which will persist not only during the &amp;quot;session&amp;quot; but between sessions, too, in the same browser (i.e. same cookie). This is different than the experience of Authenticated users, who get the default site them upon log out even if they had a session theme. &lt;br /&gt;
&lt;br /&gt;
This will be an issue if your theme changes and a Guest returns from the same browser with the previous theme set. Since the restrictions in the &#039;theme list&#039; do not apply to Session level URLs, Guest would get the old theme as long as it still exists on the site by that short name instead of the new site theme. (Tip: using a non-existent theme name in the URL will force the site default to appear, e.g. &#039;?theme=.&#039; will reset it since you can&#039;t name a theme &#039;.&#039;)&lt;br /&gt;
&lt;br /&gt;
====Note on Devices and Themes====&lt;br /&gt;
&lt;br /&gt;
See the following issue discovered with device level themes http://tracker.moodle.org/browse/MDL-35148 overriding category and course level themes.&lt;br /&gt;
&lt;br /&gt;
==How do I create a custom theme?==&lt;br /&gt;
&lt;br /&gt;
See the developer documentation [[:dev:Theme development|Theme development]].&lt;br /&gt;
&lt;br /&gt;
==Can I assign a specific theme to a course?==&lt;br /&gt;
&lt;br /&gt;
Yes. In the course settings, use the &amp;quot;Force theme&amp;quot; dropdown box.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Is it possible to customise language strings per theme?==&lt;br /&gt;
Not by default, as when strings are customised, they are customised for the whole site. However, it is possible to make a new language  pack based on your main language and apply that pack to the course which has that theme. See this forum post for more information: https://moodle.org/mod/forum/discuss.php?d=220671&lt;br /&gt;
&lt;br /&gt;
==How can I get the links in  my custom menu to open in new windows?==&lt;br /&gt;
It is possible to create your own fly out menu via the custom menu block in Settings&amp;gt;Site administration&amp;gt;Appearance&amp;gt;Themes&amp;gt;Theme settings. Copy the examples given below the box. If you want the links to open in a new window, use the following code:&lt;br /&gt;
 Moodle|http://www.moodle.org&amp;quot; target=&amp;quot;_blank&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Where shall I put my custom CSS code? ==&lt;br /&gt;
&lt;br /&gt;
Note that the standard themes Afterburner, Arialist, Formal White, Fusion, Nonzero, Overlay, Sky High and Splash all offer the possibility to add custom CSS in their page settings via &#039;&#039;Settings&amp;gt;Appearance&amp;gt;Themes&amp;gt;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Failing this, instead of modifying the theme&#039;s CSS files you better put your own code in a separate CSS file and make your theme aware of that file by modifying its config.php file (be sure add your own CSS file as the last one in the list so that you will override all prior settings). See this posting for [http://moodle.org/mod/forum/discuss.php?d=128599#p564055 detailed instructions]. &lt;br /&gt;
&lt;br /&gt;
See also the instructions on creating your own theme mentioned above.&lt;br /&gt;
&lt;br /&gt;
==Will I lose my courses, language files, logo, etc. if I switch my theme?==&lt;br /&gt;
Switching themes only changes the appearance of your site, not the content within it. The logo is a part of the theme and will be lost when you switch.    &lt;br /&gt;
&lt;br /&gt;
Follow these instructions to [[:dev:Creating_a_custom_theme#Adding_a_Logo|add a logo]] to a theme.&lt;br /&gt;
:If you upgrade your Moodle site and tweaked an existing standard theme, you will lose your changes. Thus it is a good idea to create a custom theme which will not be changed when you upgrade.&lt;br /&gt;
&lt;br /&gt;
==I can&#039;t access theme files on the server. Can I still add a logo to a theme?==&lt;br /&gt;
Yes. You have two choices:&lt;br /&gt;
**Either upload your logo to another place publicly available online and then copy the image&#039;s URL to paste into the logo field of the theme page you are editing (such as Afterburner)&lt;br /&gt;
**Or add the main menu block to your front page; upload the logo via Main menu&amp;gt;Add a resource. Get its URL and paste it into the logo field of the theme page you are editing. You can safely then hide or delete the main menu block; the logo will still be there. (&#039;&#039;NOTE&#039;&#039; - your logo will appear in &#039;&#039;Navigation&amp;gt;Site pages&#039;&#039; as well.)&lt;br /&gt;
&lt;br /&gt;
== Are there tools which help me creating and editing themes? ==&lt;br /&gt;
&lt;br /&gt;
=== Clear Cache Button ===&lt;br /&gt;
This useful Firefox add-on let&#039;s you add a button to your tool bar for easily clearing your cache while working on your theme: https://addons.mozilla.org/de/firefox/addon/1801&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p class=&amp;quot;note&amp;quot;&amp;gt;Please note that the following tools are only for development. They only change the way &#039;&#039;you&#039;&#039; see your Moodle site, not the Moodle site itself. Any changes you make using these tools will not be visible to anyone else who uses your site. For this you will have to make those changes permanent by changing your theme&#039;s CSS files for example.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Firebug ===&lt;br /&gt;
The single most useful tool is the [[:dev:Firebug|Firebug]] add-on for the [[:dev:Firefox|Firefox]] web browser. Firebug integrates with Firefox to put a wealth of development tools at your fingertips while you browse. You can edit, debug, and monitor CSS, HTML, and JavaScript live in any web page... And there are additional add-ons for making Firebug an even more powerful tool.&lt;br /&gt;
&lt;br /&gt;
==== Firebug enhancements ====&lt;br /&gt;
You can enhance Firebug even further. See [[:dev:Firebug|Firebug]] for more information.&lt;br /&gt;
&lt;br /&gt;
=== Web Developer Toolbar ===&lt;br /&gt;
Another great tool for any web developer is the [[:dev:Web developer extension|Web developer extension]], another Firefox add-on. One very useful feature is the option to &#039;&#039;&#039;disable your browser&#039;s cache&#039;&#039;&#039; while working on your theme. That way you are sure you&#039;re always presented with your latest modifications and not with an older, cached version.&lt;br /&gt;
&lt;br /&gt;
Now also available for Google&#039;s Chrome browser: [http://www.sitepoint.com/blogs/2010/03/23/chrome-web-developer-toolbar/ &amp;quot;The Web Developer Toolbar Comes to Chrome&amp;quot;]&lt;br /&gt;
&lt;br /&gt;
=== Stylish ===&lt;br /&gt;
Modifications made with Firebug are lost when refreshing your page. If you want your CSS changes to be a bit more permanent, for example to try them with different pages of your Moodle installation, you can use another Firefox plugin: [https://addons.mozilla.org/en-US/firefox/addon/2108 Stylish]. That way you can change your site&#039;s CSS with a simple mouse click without having to change Moodle code.&lt;br /&gt;
&lt;br /&gt;
See [[:dev:Stylish|Stylish]] for detailed instructions and examples.&lt;br /&gt;
&lt;br /&gt;
==== Stylish-Custom ====&lt;br /&gt;
This is an [https://addons.mozilla.org/en-US/firefox/addon/12105/ custom additions] to the Stylish extension which brings back features from 0.5.9 and adds new features.&lt;br /&gt;
&lt;br /&gt;
== How do I check for cross-browser compatibility? ==&lt;br /&gt;
There are some tools (standalone and online) which can show you how your site looks in different browsers. See this [http://moodle.org/mod/forum/discuss.php?d=127746 forum discussion] for details.  See the new device detection settings in [[Theme settings]] which will allow you to create a theme for those &amp;quot;special&amp;quot; browsers.&lt;br /&gt;
&lt;br /&gt;
==How are the device types used in Moodle 2.4 ?==&lt;br /&gt;
If &amp;quot;Enabled device detection&amp;quot; has been turned on, Moodle 2.4 will automatically use the theme which has been set for the device in the [[Standard themes|Theme selector]] settings page.   It is also possible to add additional types to the Theme selector page by using the &amp;quot;device detection regular expressions&amp;quot; fields.   &lt;br /&gt;
&lt;br /&gt;
Site administrators can find these enable device detection settings in Site administration &amp;gt; Appearance &amp;gt;Themes &amp;gt; [[Theme settings]] .&lt;br /&gt;
&lt;br /&gt;
== Concrete examples for modifying Moodle themes ==&lt;br /&gt;
&amp;lt;p class=&amp;quot;note&amp;quot;&amp;gt;&lt;br /&gt;
The following examples were taken from the former &#039;&#039;Theme Scrapbook&#039;&#039;:&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;quot;The Moodle &#039;&#039;&#039;Theme Scrapbook&#039;&#039;&#039; is a collection of small how-to descriptions. You theme designers and Moodle users working with themes add your knowledge here to help new Moodle users with tips and tricks for their theme work. &lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Feel free to add to this list! Don&#039;t know how? Read our [[MoodleDocs:Guidelines_for_contributors|Guidelines for contributors]].&amp;quot;&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Changing things ===&lt;br /&gt;
&lt;br /&gt;
==== Colors ====&lt;br /&gt;
* [[:dev:Forcing the colour of the chat discussion pane (pop-up mode)]]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=142765 Changing background colour of a topic box]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=152357 How to change the colour of the popup event&#039;s header and background]&lt;br /&gt;
&lt;br /&gt;
==== Logo and icons ====&lt;br /&gt;
* [[:dev:Alternate Icon Set|Using an alternate icon set in Moodle]]&lt;br /&gt;
* [[Favicon|Change the favicon that shows in front of the web address]]&lt;br /&gt;
* [[Footer replacement|Replace the logo in the footer with your web address and/or or own logo]]&lt;br /&gt;
*[[:dev:Header logo|Replace the logo in the header]]&lt;br /&gt;
&lt;br /&gt;
==== Layout ====&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=136546 Overriding the $menu / $button variables] using PHP regular expressions in header.html&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=143411 Changing the view of course categories] - work in progress&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=145077 Sub categories and courses layout] - work in progress&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=151370 Tracker &#039;components&#039; list too small]&lt;br /&gt;
&lt;br /&gt;
=== Adding things ===&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=157935 How to add a different img-bullet to each category?]&lt;br /&gt;
&lt;br /&gt;
=== Hiding things ===&lt;br /&gt;
* Hiding an element with CSS is generally achieved using the [http://reference.sitepoint.com/css/display display: none;] property on the element.&lt;br /&gt;
* See [[:dev:Print style]] and [[:dev:Stylish#Print style for Database records]] for an example how to hide parts of a page not meant for printing.&lt;br /&gt;
&lt;br /&gt;
=== Moving things ===&lt;br /&gt;
* [[:dev:Center Forum Posts|Centre smaller forum posts on the page]]&lt;br /&gt;
* [[:dev:Footer positioning|Positioning the page footer]]&lt;br /&gt;
* [[:dev:Left-align quiz|Left align quiz questions and answers]]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=121847 Indentation for nested categories]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=128599 Positioning login and choose language field]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=145179 Match question type - position answers nearer to the questions]&lt;br /&gt;
* [[:dev:Stylish#Fixed admin menue with CSS]]&lt;br /&gt;
&lt;br /&gt;
=== Miscellaneous ===&lt;br /&gt;
* [[:dev:Fixed-width theme|Creating a fixed-width theme]]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=146763 Is there a way to fix oversized HTML Editor using CSS?]&lt;br /&gt;
* [[:dev:Category Design|Modifying the design of specific categories with CSS]]&lt;br /&gt;
&lt;br /&gt;
==How can I see theme changes when using the Windows Complete Installer package==&lt;br /&gt;
In the [http://download.moodle.org/windows/ Windows Complete Installer package], the eAccelerator in the XAMPP install can cause some issues with changes to your theme&#039;s CSS and HTML files from showing.&lt;br /&gt;
&lt;br /&gt;
Open the php.ini file inside of the server\php folder from your install in notepad and search for &amp;quot;eAccelerator&amp;quot; you should see a line that reads: &lt;br /&gt;
 extension=eaccelerator.dll&lt;br /&gt;
&lt;br /&gt;
Insert a semi-colon (turns the line into a comment) at the start of this line so it now reads: &lt;br /&gt;
 ;extension=eaccelerator.dll&lt;br /&gt;
&lt;br /&gt;
Restart the Moodle server using the &amp;quot;stop moodle&amp;quot; and then the &amp;quot;start moodle&amp;quot; programs in your server folder. You should now find that all of your changes to your CSS are reflected as soon as you save the file and refresh your browser cache (usually you can refresh your cache by pressing F5). This FAQ from a discussion at [http://moodle.org/mod/forum/discuss.php?d=151562#p663950 Deactivating caching with XAMPP installations]&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
&lt;br /&gt;
* Using Moodle [http://moodle.org/mod/forum/view.php?f=29 Themes forum]&lt;br /&gt;
* [[:dev:CSS FAQ]]&lt;br /&gt;
* [http://learn.open.ac.uk/mod/oublog/view.php?user=155976 &amp;quot;Understanding Moodle Themes&amp;quot;] - Blog post by [http://moodle.org/user/view.php?id=78896&amp;amp;course=5 Christopher Douce] (Open University)&lt;br /&gt;
* Using Moodle [http://moodle.org/mod/forum/discuss.php?d=149534 Testing 2.0. Use for modern vs old browsers] forum discussion&lt;br /&gt;
&lt;br /&gt;
[[Category:FAQ]]&lt;br /&gt;
[[de:Designs_FAQ]]&lt;/div&gt;</summary>
		<author><name>Rwthornton</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/2x/ca/index.php?title=Themes_FAQ&amp;diff=104485</id>
		<title>Themes FAQ</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/2x/ca/index.php?title=Themes_FAQ&amp;diff=104485"/>
		<updated>2013-05-16T22:45:00Z</updated>

		<summary type="html">&lt;p&gt;Rwthornton: /* Note on Guest Access */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Themes}}&lt;br /&gt;
==How do I install a new theme?==&lt;br /&gt;
&lt;br /&gt;
# Unzip the .zip file to an empty local directory.&lt;br /&gt;
# Upload folder to your web server to the /moodle/theme/[Theme Name]. (Replace [Theme Name] with the name of the theme you have downloaded.) Ensure the new theme folder and its contents are readable by the webserver.  Change Read and Write permissions (CHMOD) for the files and folder to 755 - Owner read/write/execute, Group read/execute, Everyone read/execute.  Incorrect permissions may prevent display of the newly installed theme.&lt;br /&gt;
# Choose your new theme from within Moodle via &#039;&#039;Administration &amp;gt; Appearance &amp;gt; Themes &amp;gt; Theme selector&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
=== How do I install a new theme when using cPanel? ===&lt;br /&gt;
&lt;br /&gt;
# Upload your new theme .zip file to your web server via cPanel. &lt;br /&gt;
# Then using cPanel install the new theme to your Moodle theme&#039;s folder.  The new theme will be installed into its own folder at /moodle/theme/[mytheme] (where [mytheme] is the name of your new theme.&lt;br /&gt;
# Ensure the new theme folder and its contents are readable by the webserver. If necessary  change Read and Write permissions (CHMOD) for the files and folder to 755 - Owner read/write/execute, Group read/execute, Everyone read/execute.  Incorrect permissions may prevent display of the newly installed theme.&lt;br /&gt;
# Choose your new theme from within Moodle via &#039;&#039;Administration &amp;gt; Appearance &amp;gt; Themes &amp;gt; Theme selector&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=== Why is the new theme I uploaded not showing up in Theme Selector? ===&lt;br /&gt;
&lt;br /&gt;
You probably forgot to do something correctly. Here are steps to create a &amp;quot;new&amp;quot; theme from an existing theme called &amp;quot;standard&amp;quot;. Bold show places you must change for the theme to appear.&lt;br /&gt;
#Copy folder theme/standard and call it theme/new&lt;br /&gt;
#In theme/new/lang/en folder,&lt;br /&gt;
##&#039;&#039;&#039;Renamed theme_standard.php to theme_new.php&#039;&#039;&#039;&lt;br /&gt;
#Opened theme/new/lang/en/new.php,  recommend you change 2 lines to read something like:&lt;br /&gt;
##$string[&#039;pluginname&#039;] = &#039;New theme - Martin D&#039;; &lt;br /&gt;
##$string[&#039;chooseredme&#039;] = &#039;New theme came from the Standard theme and is being changed by Martin D in 2011&#039;;&lt;br /&gt;
##Saved the file&lt;br /&gt;
#In theme/new/config.php&lt;br /&gt;
##Change &#039;&#039;&#039;$THEME-&amp;gt;NAME  = &#039;new&#039;&#039;&#039;&#039;;&lt;br /&gt;
#Went to &#039;&#039;Settings &amp;gt; Site Administration &amp;gt;Appearance &amp;gt; Theme settings&#039;&#039; &amp;gt; Theme designer mode (Checked)&lt;br /&gt;
#&#039;&#039;Settings &amp;gt; Site Administration &amp;gt;Appearance &amp;gt; Theme selector&#039;&#039;&lt;br /&gt;
##Clear theme caches&lt;br /&gt;
##Select theme&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;Tip:&#039;&#039; There could be a number of problems with the theme you uploaded, but one major problem reported in the Themes Forum all point to the way in which the theme is uploaded on certain servers. Using the cPanel method, as described in  the FAQ [[Themes_FAQ#How do I install a new theme when using cPanel?|How do I install a new theme when using cPanel?]] will, in most cases, cure the problem.&lt;br /&gt;
&lt;br /&gt;
== How do I control what themes show up where? ==&lt;br /&gt;
&lt;br /&gt;
You can control which themes show up in which contexts by a series of settings in &#039;&#039;Settings&amp;gt;Site Administration&amp;gt;Appearance&amp;gt;Themes&amp;gt;Theme settings&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
===How can I restrict the available themes to users and in courses?===&lt;br /&gt;
&lt;br /&gt;
In&#039;&#039; Settings&amp;gt;Site Administration&amp;gt;Appearance&amp;gt;Themes&amp;gt;Theme settings&#039;&#039;, add the themes you want them to use in the Theme list. These will then restrict the theme choice lists in pull down menus the contexts (Course, Category, User) where you allow them.&lt;br /&gt;
&lt;br /&gt;
===What is the hierarchy of contexts for themes to override each other?===&lt;br /&gt;
&lt;br /&gt;
There are five contexts in which themes appear and can be set: courses, category, session, user, and site, and that is the level of priority of appearance they have as well. You enable/disable these in [https://docs.moodle.org/24/en/Theme_settings Theme settings.] (It is possible to change this hierarchy in the config.php file - see [https://docs.moodle.org/24/en/Theme_settings#Change_default_hierarchy change default hierarchy] for how.) &lt;br /&gt;
&lt;br /&gt;
* Course: themes set at the course level trump (override) all other theme settings&lt;br /&gt;
* Category: themes set at the category level trump all themes except course level themes&lt;br /&gt;
* Session: session level themes set with the URL parameter theme=theme_name are trumped by course and category but trump lower levels&lt;br /&gt;
* User: themes set at the user profile level are trumped by course, category and session, and only trump the site theme&lt;br /&gt;
* Site Default: is trumped by any of the above themes&lt;br /&gt;
&lt;br /&gt;
====Note on Session Themes====&lt;br /&gt;
&lt;br /&gt;
* It is important to note that Session level themes override the Site level theme ONLY for the user&#039;s current logged in session. When the user does log out however, they will then see the Site Default theme, not the Session theme. &lt;br /&gt;
* You only have to set the theme once via the URL parameter and it will persist until the user logs out.&lt;br /&gt;
&lt;br /&gt;
====Note on Guest Access====&lt;br /&gt;
&lt;br /&gt;
Courses with Guest access turned on will show a course level theme or category theme as usual. There is no user level theme for Guest since it has no profile or account in the usual sense.&lt;br /&gt;
&lt;br /&gt;
You can use a Session level theme for Guest which will persist not only during the &amp;quot;session&amp;quot; but between sessions, too, in the same browser (i.e. same cookie). This is different than the experience of Authenticated users, who get the default site them upon log out even if they had a session theme. &lt;br /&gt;
&lt;br /&gt;
This will be an issue if your theme changes and a Guest returns from the same browser with the previous theme set. Since the restrictions in the &#039;theme list&#039; do not apply to Session level URLs, Guest would get the old theme as long as it still exists on the site by that short name instead of the new site theme. (Tip: using a non-existent theme name in the URL will force the site default to appear, e.g. &#039;?theme=.&#039; will reset it since you can&#039;t name a theme &#039;.&#039;)&lt;br /&gt;
&lt;br /&gt;
====Note on Devices and Themes====&lt;br /&gt;
&lt;br /&gt;
See the following issue discovered with device level themes http://tracker.moodle.org/browse/MDL-35148 overriding category and course level themes.&lt;br /&gt;
&lt;br /&gt;
==How do I create a custom theme?==&lt;br /&gt;
&lt;br /&gt;
See the developer documentation [[:dev:Theme development|Theme development]].&lt;br /&gt;
&lt;br /&gt;
==Can I assign a specific theme to a course?==&lt;br /&gt;
&lt;br /&gt;
Yes. In the course settings, use the &amp;quot;Force theme&amp;quot; dropdown box.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Is it possible to customise language strings per theme?==&lt;br /&gt;
Not by default, as when strings are customised, they are customised for the whole site. However, it is possible to make a new language  pack based on your main language and apply that pack to the course which has that theme. See this forum post for more information: https://moodle.org/mod/forum/discuss.php?d=220671&lt;br /&gt;
&lt;br /&gt;
==How can I get the links in  my custom menu to open in new windows?==&lt;br /&gt;
It is possible to create your own fly out menu via the custom menu block in Settings&amp;gt;Site administration&amp;gt;Appearance&amp;gt;Themes&amp;gt;Theme settings. Copy the examples given below the box. If you want the links to open in a new window, use the following code:&lt;br /&gt;
 Moodle|http://www.moodle.org&amp;quot; target=&amp;quot;_blank&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Where shall I put my custom CSS code? ==&lt;br /&gt;
&lt;br /&gt;
Note that the standard themes Afterburner, Arialist, Formal White, Fusion, Nonzero, Overlay, Sky High and Splash all offer the possibility to add custom CSS in their page settings via &#039;&#039;Settings&amp;gt;Appearance&amp;gt;Themes&amp;gt;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Failing this, instead of modifying the theme&#039;s CSS files you better put your own code in a separate CSS file and make your theme aware of that file by modifying its config.php file (be sure add your own CSS file as the last one in the list so that you will override all prior settings). See this posting for [http://moodle.org/mod/forum/discuss.php?d=128599#p564055 detailed instructions]. &lt;br /&gt;
&lt;br /&gt;
See also the instructions on creating your own theme mentioned above.&lt;br /&gt;
&lt;br /&gt;
==Will I lose my courses, language files, logo, etc. if I switch my theme?==&lt;br /&gt;
Switching themes only changes the appearance of your site, not the content within it. The logo is a part of the theme and will be lost when you switch.    &lt;br /&gt;
&lt;br /&gt;
Follow these instructions to [[:dev:Creating_a_custom_theme#Adding_a_Logo|add a logo]] to a theme.&lt;br /&gt;
:If you upgrade your Moodle site and tweaked an existing standard theme, you will lose your changes. Thus it is a good idea to create a custom theme which will not be changed when you upgrade.&lt;br /&gt;
&lt;br /&gt;
==I can&#039;t access theme files on the server. Can I still add a logo to a theme?==&lt;br /&gt;
Yes. You have two choices:&lt;br /&gt;
**Either upload your logo to another place publicly available online and then copy the image&#039;s URL to paste into the logo field of the theme page you are editing (such as Afterburner)&lt;br /&gt;
**Or add the main menu block to your front page; upload the logo via Main menu&amp;gt;Add a resource. Get its URL and paste it into the logo field of the theme page you are editing. You can safely then hide or delete the main menu block; the logo will still be there. (&#039;&#039;NOTE&#039;&#039; - your logo will appear in &#039;&#039;Navigation&amp;gt;Site pages&#039;&#039; as well.)&lt;br /&gt;
&lt;br /&gt;
== Are there tools which help me creating and editing themes? ==&lt;br /&gt;
&lt;br /&gt;
=== Clear Cache Button ===&lt;br /&gt;
This useful Firefox add-on let&#039;s you add a button to your tool bar for easily clearing your cache while working on your theme: https://addons.mozilla.org/de/firefox/addon/1801&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p class=&amp;quot;note&amp;quot;&amp;gt;Please note that the following tools are only for development. They only change the way &#039;&#039;you&#039;&#039; see your Moodle site, not the Moodle site itself. Any changes you make using these tools will not be visible to anyone else who uses your site. For this you will have to make those changes permanent by changing your theme&#039;s CSS files for example.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Firebug ===&lt;br /&gt;
The single most useful tool is the [[:dev:Firebug|Firebug]] add-on for the [[:dev:Firefox|Firefox]] web browser. Firebug integrates with Firefox to put a wealth of development tools at your fingertips while you browse. You can edit, debug, and monitor CSS, HTML, and JavaScript live in any web page... And there are additional add-ons for making Firebug an even more powerful tool.&lt;br /&gt;
&lt;br /&gt;
==== Firebug enhancements ====&lt;br /&gt;
You can enhance Firebug even further. See [[:dev:Firebug|Firebug]] for more information.&lt;br /&gt;
&lt;br /&gt;
=== Web Developer Toolbar ===&lt;br /&gt;
Another great tool for any web developer is the [[:dev:Web developer extension|Web developer extension]], another Firefox add-on. One very useful feature is the option to &#039;&#039;&#039;disable your browser&#039;s cache&#039;&#039;&#039; while working on your theme. That way you are sure you&#039;re always presented with your latest modifications and not with an older, cached version.&lt;br /&gt;
&lt;br /&gt;
Now also available for Google&#039;s Chrome browser: [http://www.sitepoint.com/blogs/2010/03/23/chrome-web-developer-toolbar/ &amp;quot;The Web Developer Toolbar Comes to Chrome&amp;quot;]&lt;br /&gt;
&lt;br /&gt;
=== Stylish ===&lt;br /&gt;
Modifications made with Firebug are lost when refreshing your page. If you want your CSS changes to be a bit more permanent, for example to try them with different pages of your Moodle installation, you can use another Firefox plugin: [https://addons.mozilla.org/en-US/firefox/addon/2108 Stylish]. That way you can change your site&#039;s CSS with a simple mouse click without having to change Moodle code.&lt;br /&gt;
&lt;br /&gt;
See [[:dev:Stylish|Stylish]] for detailed instructions and examples.&lt;br /&gt;
&lt;br /&gt;
==== Stylish-Custom ====&lt;br /&gt;
This is an [https://addons.mozilla.org/en-US/firefox/addon/12105/ custom additions] to the Stylish extension which brings back features from 0.5.9 and adds new features.&lt;br /&gt;
&lt;br /&gt;
== How do I check for cross-browser compatibility? ==&lt;br /&gt;
There are some tools (standalone and online) which can show you how your site looks in different browsers. See this [http://moodle.org/mod/forum/discuss.php?d=127746 forum discussion] for details.  See the new device detection settings in [[Theme settings]] which will allow you to create a theme for those &amp;quot;special&amp;quot; browsers.&lt;br /&gt;
&lt;br /&gt;
==How are the device types used in Moodle 2.4 ?==&lt;br /&gt;
If &amp;quot;Enabled device detection&amp;quot; has been turned on, Moodle 2.4 will automatically use the theme which has been set for the device in the [[Standard themes|Theme selector]] settings page.   It is also possible to add additional types to the Theme selector page by using the &amp;quot;device detection regular expressions&amp;quot; fields.   &lt;br /&gt;
&lt;br /&gt;
Site administrators can find these enable device detection settings in Site administration &amp;gt; Appearance &amp;gt;Themes &amp;gt; [[Theme settings]] .&lt;br /&gt;
&lt;br /&gt;
== Concrete examples for modifying Moodle themes ==&lt;br /&gt;
&amp;lt;p class=&amp;quot;note&amp;quot;&amp;gt;&lt;br /&gt;
The following examples were taken from the former &#039;&#039;Theme Scrapbook&#039;&#039;:&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;quot;The Moodle &#039;&#039;&#039;Theme Scrapbook&#039;&#039;&#039; is a collection of small how-to descriptions. You theme designers and Moodle users working with themes add your knowledge here to help new Moodle users with tips and tricks for their theme work. &lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Feel free to add to this list! Don&#039;t know how? Read our [[MoodleDocs:Guidelines_for_contributors|Guidelines for contributors]].&amp;quot;&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Changing things ===&lt;br /&gt;
&lt;br /&gt;
==== Colors ====&lt;br /&gt;
* [[:dev:Forcing the colour of the chat discussion pane (pop-up mode)]]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=142765 Changing background colour of a topic box]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=152357 How to change the colour of the popup event&#039;s header and background]&lt;br /&gt;
&lt;br /&gt;
==== Logo and icons ====&lt;br /&gt;
* [[:dev:Alternate Icon Set|Using an alternate icon set in Moodle]]&lt;br /&gt;
* [[Favicon|Change the favicon that shows in front of the web address]]&lt;br /&gt;
* [[Footer replacement|Replace the logo in the footer with your web address and/or or own logo]]&lt;br /&gt;
*[[:dev:Header logo|Replace the logo in the header]]&lt;br /&gt;
&lt;br /&gt;
==== Layout ====&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=136546 Overriding the $menu / $button variables] using PHP regular expressions in header.html&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=143411 Changing the view of course categories] - work in progress&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=145077 Sub categories and courses layout] - work in progress&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=151370 Tracker &#039;components&#039; list too small]&lt;br /&gt;
&lt;br /&gt;
=== Adding things ===&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=157935 How to add a different img-bullet to each category?]&lt;br /&gt;
&lt;br /&gt;
=== Hiding things ===&lt;br /&gt;
* Hiding an element with CSS is generally achieved using the [http://reference.sitepoint.com/css/display display: none;] property on the element.&lt;br /&gt;
* See [[:dev:Print style]] and [[:dev:Stylish#Print style for Database records]] for an example how to hide parts of a page not meant for printing.&lt;br /&gt;
&lt;br /&gt;
=== Moving things ===&lt;br /&gt;
* [[:dev:Center Forum Posts|Centre smaller forum posts on the page]]&lt;br /&gt;
* [[:dev:Footer positioning|Positioning the page footer]]&lt;br /&gt;
* [[:dev:Left-align quiz|Left align quiz questions and answers]]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=121847 Indentation for nested categories]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=128599 Positioning login and choose language field]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=145179 Match question type - position answers nearer to the questions]&lt;br /&gt;
* [[:dev:Stylish#Fixed admin menue with CSS]]&lt;br /&gt;
&lt;br /&gt;
=== Miscellaneous ===&lt;br /&gt;
* [[:dev:Fixed-width theme|Creating a fixed-width theme]]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=146763 Is there a way to fix oversized HTML Editor using CSS?]&lt;br /&gt;
* [[:dev:Category Design|Modifying the design of specific categories with CSS]]&lt;br /&gt;
&lt;br /&gt;
==How can I see theme changes when using the Windows Complete Installer package==&lt;br /&gt;
In the [http://download.moodle.org/windows/ Windows Complete Installer package], the eAccelerator in the XAMPP install can cause some issues with changes to your theme&#039;s CSS and HTML files from showing.&lt;br /&gt;
&lt;br /&gt;
Open the php.ini file inside of the server\php folder from your install in notepad and search for &amp;quot;eAccelerator&amp;quot; you should see a line that reads: &lt;br /&gt;
 extension=eaccelerator.dll&lt;br /&gt;
&lt;br /&gt;
Insert a semi-colon (turns the line into a comment) at the start of this line so it now reads: &lt;br /&gt;
 ;extension=eaccelerator.dll&lt;br /&gt;
&lt;br /&gt;
Restart the Moodle server using the &amp;quot;stop moodle&amp;quot; and then the &amp;quot;start moodle&amp;quot; programs in your server folder. You should now find that all of your changes to your CSS are reflected as soon as you save the file and refresh your browser cache (usually you can refresh your cache by pressing F5). This FAQ from a discussion at [http://moodle.org/mod/forum/discuss.php?d=151562#p663950 Deactivating caching with XAMPP installations]&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
&lt;br /&gt;
* Using Moodle [http://moodle.org/mod/forum/view.php?f=29 Themes forum]&lt;br /&gt;
* [[:dev:CSS FAQ]]&lt;br /&gt;
* [http://learn.open.ac.uk/mod/oublog/view.php?user=155976 &amp;quot;Understanding Moodle Themes&amp;quot;] - Blog post by [http://moodle.org/user/view.php?id=78896&amp;amp;course=5 Christopher Douce] (Open University)&lt;br /&gt;
* Using Moodle [http://moodle.org/mod/forum/discuss.php?d=149534 Testing 2.0. Use for modern vs old browsers] forum discussion&lt;br /&gt;
&lt;br /&gt;
[[Category:FAQ]]&lt;br /&gt;
[[de:Designs_FAQ]]&lt;/div&gt;</summary>
		<author><name>Rwthornton</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/2x/ca/index.php?title=Themes_FAQ&amp;diff=104484</id>
		<title>Themes FAQ</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/2x/ca/index.php?title=Themes_FAQ&amp;diff=104484"/>
		<updated>2013-05-16T22:43:58Z</updated>

		<summary type="html">&lt;p&gt;Rwthornton: /* Note on Session Themes */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Themes}}&lt;br /&gt;
==How do I install a new theme?==&lt;br /&gt;
&lt;br /&gt;
# Unzip the .zip file to an empty local directory.&lt;br /&gt;
# Upload folder to your web server to the /moodle/theme/[Theme Name]. (Replace [Theme Name] with the name of the theme you have downloaded.) Ensure the new theme folder and its contents are readable by the webserver.  Change Read and Write permissions (CHMOD) for the files and folder to 755 - Owner read/write/execute, Group read/execute, Everyone read/execute.  Incorrect permissions may prevent display of the newly installed theme.&lt;br /&gt;
# Choose your new theme from within Moodle via &#039;&#039;Administration &amp;gt; Appearance &amp;gt; Themes &amp;gt; Theme selector&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
=== How do I install a new theme when using cPanel? ===&lt;br /&gt;
&lt;br /&gt;
# Upload your new theme .zip file to your web server via cPanel. &lt;br /&gt;
# Then using cPanel install the new theme to your Moodle theme&#039;s folder.  The new theme will be installed into its own folder at /moodle/theme/[mytheme] (where [mytheme] is the name of your new theme.&lt;br /&gt;
# Ensure the new theme folder and its contents are readable by the webserver. If necessary  change Read and Write permissions (CHMOD) for the files and folder to 755 - Owner read/write/execute, Group read/execute, Everyone read/execute.  Incorrect permissions may prevent display of the newly installed theme.&lt;br /&gt;
# Choose your new theme from within Moodle via &#039;&#039;Administration &amp;gt; Appearance &amp;gt; Themes &amp;gt; Theme selector&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=== Why is the new theme I uploaded not showing up in Theme Selector? ===&lt;br /&gt;
&lt;br /&gt;
You probably forgot to do something correctly. Here are steps to create a &amp;quot;new&amp;quot; theme from an existing theme called &amp;quot;standard&amp;quot;. Bold show places you must change for the theme to appear.&lt;br /&gt;
#Copy folder theme/standard and call it theme/new&lt;br /&gt;
#In theme/new/lang/en folder,&lt;br /&gt;
##&#039;&#039;&#039;Renamed theme_standard.php to theme_new.php&#039;&#039;&#039;&lt;br /&gt;
#Opened theme/new/lang/en/new.php,  recommend you change 2 lines to read something like:&lt;br /&gt;
##$string[&#039;pluginname&#039;] = &#039;New theme - Martin D&#039;; &lt;br /&gt;
##$string[&#039;chooseredme&#039;] = &#039;New theme came from the Standard theme and is being changed by Martin D in 2011&#039;;&lt;br /&gt;
##Saved the file&lt;br /&gt;
#In theme/new/config.php&lt;br /&gt;
##Change &#039;&#039;&#039;$THEME-&amp;gt;NAME  = &#039;new&#039;&#039;&#039;&#039;;&lt;br /&gt;
#Went to &#039;&#039;Settings &amp;gt; Site Administration &amp;gt;Appearance &amp;gt; Theme settings&#039;&#039; &amp;gt; Theme designer mode (Checked)&lt;br /&gt;
#&#039;&#039;Settings &amp;gt; Site Administration &amp;gt;Appearance &amp;gt; Theme selector&#039;&#039;&lt;br /&gt;
##Clear theme caches&lt;br /&gt;
##Select theme&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;Tip:&#039;&#039; There could be a number of problems with the theme you uploaded, but one major problem reported in the Themes Forum all point to the way in which the theme is uploaded on certain servers. Using the cPanel method, as described in  the FAQ [[Themes_FAQ#How do I install a new theme when using cPanel?|How do I install a new theme when using cPanel?]] will, in most cases, cure the problem.&lt;br /&gt;
&lt;br /&gt;
== How do I control what themes show up where? ==&lt;br /&gt;
&lt;br /&gt;
You can control which themes show up in which contexts by a series of settings in &#039;&#039;Settings&amp;gt;Site Administration&amp;gt;Appearance&amp;gt;Themes&amp;gt;Theme settings&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
===How can I restrict the available themes to users and in courses?===&lt;br /&gt;
&lt;br /&gt;
In&#039;&#039; Settings&amp;gt;Site Administration&amp;gt;Appearance&amp;gt;Themes&amp;gt;Theme settings&#039;&#039;, add the themes you want them to use in the Theme list. These will then restrict the theme choice lists in pull down menus the contexts (Course, Category, User) where you allow them.&lt;br /&gt;
&lt;br /&gt;
===What is the hierarchy of contexts for themes to override each other?===&lt;br /&gt;
&lt;br /&gt;
There are five contexts in which themes appear and can be set: courses, category, session, user, and site, and that is the level of priority of appearance they have as well. You enable/disable these in [https://docs.moodle.org/24/en/Theme_settings Theme settings.] (It is possible to change this hierarchy in the config.php file - see [https://docs.moodle.org/24/en/Theme_settings#Change_default_hierarchy change default hierarchy] for how.) &lt;br /&gt;
&lt;br /&gt;
* Course: themes set at the course level trump (override) all other theme settings&lt;br /&gt;
* Category: themes set at the category level trump all themes except course level themes&lt;br /&gt;
* Session: session level themes set with the URL parameter theme=theme_name are trumped by course and category but trump lower levels&lt;br /&gt;
* User: themes set at the user profile level are trumped by course, category and session, and only trump the site theme&lt;br /&gt;
* Site Default: is trumped by any of the above themes&lt;br /&gt;
&lt;br /&gt;
====Note on Session Themes====&lt;br /&gt;
&lt;br /&gt;
* It is important to note that Session level themes override the Site level theme ONLY for the user&#039;s current logged in session. When the user does log out however, they will then see the Site Default theme, not the Session theme. &lt;br /&gt;
* You only have to set the theme once via the URL parameter and it will persist until the user logs out.&lt;br /&gt;
&lt;br /&gt;
====Note on Guest Access====&lt;br /&gt;
&lt;br /&gt;
Courses with Guest access turned on will show a course level theme or category theme as usual. There is no user level theme for Guest since it has no profile or account in the usual sense.&lt;br /&gt;
&lt;br /&gt;
You can use a Session level theme for Guest which will persist not only during the &amp;quot;session&amp;quot; but between sessions, too, in the same browser (i.e. same cookie). This is different than the experience of Authenticated users, who get the default site them upon log out even if they had a session theme. &lt;br /&gt;
&lt;br /&gt;
This will be an issue if your theme changes and a Guest returns from the same browser with the previous theme set. Since the restrictions in the &#039;theme list&#039; do not apply to Session level URLs, they would get the old theme as long as it still exists on the site by that short name instead of the new site theme. (Tip: using a non-existent theme name in the URL will force the site default to appear, e.g. &#039;?theme=.&#039; will reset it since you can&#039;t name a theme &#039;.&#039;)&lt;br /&gt;
&lt;br /&gt;
====Note on Devices and Themes====&lt;br /&gt;
&lt;br /&gt;
See the following issue discovered with device level themes http://tracker.moodle.org/browse/MDL-35148 overriding category and course level themes.&lt;br /&gt;
&lt;br /&gt;
==How do I create a custom theme?==&lt;br /&gt;
&lt;br /&gt;
See the developer documentation [[:dev:Theme development|Theme development]].&lt;br /&gt;
&lt;br /&gt;
==Can I assign a specific theme to a course?==&lt;br /&gt;
&lt;br /&gt;
Yes. In the course settings, use the &amp;quot;Force theme&amp;quot; dropdown box.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Is it possible to customise language strings per theme?==&lt;br /&gt;
Not by default, as when strings are customised, they are customised for the whole site. However, it is possible to make a new language  pack based on your main language and apply that pack to the course which has that theme. See this forum post for more information: https://moodle.org/mod/forum/discuss.php?d=220671&lt;br /&gt;
&lt;br /&gt;
==How can I get the links in  my custom menu to open in new windows?==&lt;br /&gt;
It is possible to create your own fly out menu via the custom menu block in Settings&amp;gt;Site administration&amp;gt;Appearance&amp;gt;Themes&amp;gt;Theme settings. Copy the examples given below the box. If you want the links to open in a new window, use the following code:&lt;br /&gt;
 Moodle|http://www.moodle.org&amp;quot; target=&amp;quot;_blank&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Where shall I put my custom CSS code? ==&lt;br /&gt;
&lt;br /&gt;
Note that the standard themes Afterburner, Arialist, Formal White, Fusion, Nonzero, Overlay, Sky High and Splash all offer the possibility to add custom CSS in their page settings via &#039;&#039;Settings&amp;gt;Appearance&amp;gt;Themes&amp;gt;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Failing this, instead of modifying the theme&#039;s CSS files you better put your own code in a separate CSS file and make your theme aware of that file by modifying its config.php file (be sure add your own CSS file as the last one in the list so that you will override all prior settings). See this posting for [http://moodle.org/mod/forum/discuss.php?d=128599#p564055 detailed instructions]. &lt;br /&gt;
&lt;br /&gt;
See also the instructions on creating your own theme mentioned above.&lt;br /&gt;
&lt;br /&gt;
==Will I lose my courses, language files, logo, etc. if I switch my theme?==&lt;br /&gt;
Switching themes only changes the appearance of your site, not the content within it. The logo is a part of the theme and will be lost when you switch.    &lt;br /&gt;
&lt;br /&gt;
Follow these instructions to [[:dev:Creating_a_custom_theme#Adding_a_Logo|add a logo]] to a theme.&lt;br /&gt;
:If you upgrade your Moodle site and tweaked an existing standard theme, you will lose your changes. Thus it is a good idea to create a custom theme which will not be changed when you upgrade.&lt;br /&gt;
&lt;br /&gt;
==I can&#039;t access theme files on the server. Can I still add a logo to a theme?==&lt;br /&gt;
Yes. You have two choices:&lt;br /&gt;
**Either upload your logo to another place publicly available online and then copy the image&#039;s URL to paste into the logo field of the theme page you are editing (such as Afterburner)&lt;br /&gt;
**Or add the main menu block to your front page; upload the logo via Main menu&amp;gt;Add a resource. Get its URL and paste it into the logo field of the theme page you are editing. You can safely then hide or delete the main menu block; the logo will still be there. (&#039;&#039;NOTE&#039;&#039; - your logo will appear in &#039;&#039;Navigation&amp;gt;Site pages&#039;&#039; as well.)&lt;br /&gt;
&lt;br /&gt;
== Are there tools which help me creating and editing themes? ==&lt;br /&gt;
&lt;br /&gt;
=== Clear Cache Button ===&lt;br /&gt;
This useful Firefox add-on let&#039;s you add a button to your tool bar for easily clearing your cache while working on your theme: https://addons.mozilla.org/de/firefox/addon/1801&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p class=&amp;quot;note&amp;quot;&amp;gt;Please note that the following tools are only for development. They only change the way &#039;&#039;you&#039;&#039; see your Moodle site, not the Moodle site itself. Any changes you make using these tools will not be visible to anyone else who uses your site. For this you will have to make those changes permanent by changing your theme&#039;s CSS files for example.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Firebug ===&lt;br /&gt;
The single most useful tool is the [[:dev:Firebug|Firebug]] add-on for the [[:dev:Firefox|Firefox]] web browser. Firebug integrates with Firefox to put a wealth of development tools at your fingertips while you browse. You can edit, debug, and monitor CSS, HTML, and JavaScript live in any web page... And there are additional add-ons for making Firebug an even more powerful tool.&lt;br /&gt;
&lt;br /&gt;
==== Firebug enhancements ====&lt;br /&gt;
You can enhance Firebug even further. See [[:dev:Firebug|Firebug]] for more information.&lt;br /&gt;
&lt;br /&gt;
=== Web Developer Toolbar ===&lt;br /&gt;
Another great tool for any web developer is the [[:dev:Web developer extension|Web developer extension]], another Firefox add-on. One very useful feature is the option to &#039;&#039;&#039;disable your browser&#039;s cache&#039;&#039;&#039; while working on your theme. That way you are sure you&#039;re always presented with your latest modifications and not with an older, cached version.&lt;br /&gt;
&lt;br /&gt;
Now also available for Google&#039;s Chrome browser: [http://www.sitepoint.com/blogs/2010/03/23/chrome-web-developer-toolbar/ &amp;quot;The Web Developer Toolbar Comes to Chrome&amp;quot;]&lt;br /&gt;
&lt;br /&gt;
=== Stylish ===&lt;br /&gt;
Modifications made with Firebug are lost when refreshing your page. If you want your CSS changes to be a bit more permanent, for example to try them with different pages of your Moodle installation, you can use another Firefox plugin: [https://addons.mozilla.org/en-US/firefox/addon/2108 Stylish]. That way you can change your site&#039;s CSS with a simple mouse click without having to change Moodle code.&lt;br /&gt;
&lt;br /&gt;
See [[:dev:Stylish|Stylish]] for detailed instructions and examples.&lt;br /&gt;
&lt;br /&gt;
==== Stylish-Custom ====&lt;br /&gt;
This is an [https://addons.mozilla.org/en-US/firefox/addon/12105/ custom additions] to the Stylish extension which brings back features from 0.5.9 and adds new features.&lt;br /&gt;
&lt;br /&gt;
== How do I check for cross-browser compatibility? ==&lt;br /&gt;
There are some tools (standalone and online) which can show you how your site looks in different browsers. See this [http://moodle.org/mod/forum/discuss.php?d=127746 forum discussion] for details.  See the new device detection settings in [[Theme settings]] which will allow you to create a theme for those &amp;quot;special&amp;quot; browsers.&lt;br /&gt;
&lt;br /&gt;
==How are the device types used in Moodle 2.4 ?==&lt;br /&gt;
If &amp;quot;Enabled device detection&amp;quot; has been turned on, Moodle 2.4 will automatically use the theme which has been set for the device in the [[Standard themes|Theme selector]] settings page.   It is also possible to add additional types to the Theme selector page by using the &amp;quot;device detection regular expressions&amp;quot; fields.   &lt;br /&gt;
&lt;br /&gt;
Site administrators can find these enable device detection settings in Site administration &amp;gt; Appearance &amp;gt;Themes &amp;gt; [[Theme settings]] .&lt;br /&gt;
&lt;br /&gt;
== Concrete examples for modifying Moodle themes ==&lt;br /&gt;
&amp;lt;p class=&amp;quot;note&amp;quot;&amp;gt;&lt;br /&gt;
The following examples were taken from the former &#039;&#039;Theme Scrapbook&#039;&#039;:&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;quot;The Moodle &#039;&#039;&#039;Theme Scrapbook&#039;&#039;&#039; is a collection of small how-to descriptions. You theme designers and Moodle users working with themes add your knowledge here to help new Moodle users with tips and tricks for their theme work. &lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Feel free to add to this list! Don&#039;t know how? Read our [[MoodleDocs:Guidelines_for_contributors|Guidelines for contributors]].&amp;quot;&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Changing things ===&lt;br /&gt;
&lt;br /&gt;
==== Colors ====&lt;br /&gt;
* [[:dev:Forcing the colour of the chat discussion pane (pop-up mode)]]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=142765 Changing background colour of a topic box]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=152357 How to change the colour of the popup event&#039;s header and background]&lt;br /&gt;
&lt;br /&gt;
==== Logo and icons ====&lt;br /&gt;
* [[:dev:Alternate Icon Set|Using an alternate icon set in Moodle]]&lt;br /&gt;
* [[Favicon|Change the favicon that shows in front of the web address]]&lt;br /&gt;
* [[Footer replacement|Replace the logo in the footer with your web address and/or or own logo]]&lt;br /&gt;
*[[:dev:Header logo|Replace the logo in the header]]&lt;br /&gt;
&lt;br /&gt;
==== Layout ====&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=136546 Overriding the $menu / $button variables] using PHP regular expressions in header.html&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=143411 Changing the view of course categories] - work in progress&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=145077 Sub categories and courses layout] - work in progress&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=151370 Tracker &#039;components&#039; list too small]&lt;br /&gt;
&lt;br /&gt;
=== Adding things ===&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=157935 How to add a different img-bullet to each category?]&lt;br /&gt;
&lt;br /&gt;
=== Hiding things ===&lt;br /&gt;
* Hiding an element with CSS is generally achieved using the [http://reference.sitepoint.com/css/display display: none;] property on the element.&lt;br /&gt;
* See [[:dev:Print style]] and [[:dev:Stylish#Print style for Database records]] for an example how to hide parts of a page not meant for printing.&lt;br /&gt;
&lt;br /&gt;
=== Moving things ===&lt;br /&gt;
* [[:dev:Center Forum Posts|Centre smaller forum posts on the page]]&lt;br /&gt;
* [[:dev:Footer positioning|Positioning the page footer]]&lt;br /&gt;
* [[:dev:Left-align quiz|Left align quiz questions and answers]]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=121847 Indentation for nested categories]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=128599 Positioning login and choose language field]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=145179 Match question type - position answers nearer to the questions]&lt;br /&gt;
* [[:dev:Stylish#Fixed admin menue with CSS]]&lt;br /&gt;
&lt;br /&gt;
=== Miscellaneous ===&lt;br /&gt;
* [[:dev:Fixed-width theme|Creating a fixed-width theme]]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=146763 Is there a way to fix oversized HTML Editor using CSS?]&lt;br /&gt;
* [[:dev:Category Design|Modifying the design of specific categories with CSS]]&lt;br /&gt;
&lt;br /&gt;
==How can I see theme changes when using the Windows Complete Installer package==&lt;br /&gt;
In the [http://download.moodle.org/windows/ Windows Complete Installer package], the eAccelerator in the XAMPP install can cause some issues with changes to your theme&#039;s CSS and HTML files from showing.&lt;br /&gt;
&lt;br /&gt;
Open the php.ini file inside of the server\php folder from your install in notepad and search for &amp;quot;eAccelerator&amp;quot; you should see a line that reads: &lt;br /&gt;
 extension=eaccelerator.dll&lt;br /&gt;
&lt;br /&gt;
Insert a semi-colon (turns the line into a comment) at the start of this line so it now reads: &lt;br /&gt;
 ;extension=eaccelerator.dll&lt;br /&gt;
&lt;br /&gt;
Restart the Moodle server using the &amp;quot;stop moodle&amp;quot; and then the &amp;quot;start moodle&amp;quot; programs in your server folder. You should now find that all of your changes to your CSS are reflected as soon as you save the file and refresh your browser cache (usually you can refresh your cache by pressing F5). This FAQ from a discussion at [http://moodle.org/mod/forum/discuss.php?d=151562#p663950 Deactivating caching with XAMPP installations]&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
&lt;br /&gt;
* Using Moodle [http://moodle.org/mod/forum/view.php?f=29 Themes forum]&lt;br /&gt;
* [[:dev:CSS FAQ]]&lt;br /&gt;
* [http://learn.open.ac.uk/mod/oublog/view.php?user=155976 &amp;quot;Understanding Moodle Themes&amp;quot;] - Blog post by [http://moodle.org/user/view.php?id=78896&amp;amp;course=5 Christopher Douce] (Open University)&lt;br /&gt;
* Using Moodle [http://moodle.org/mod/forum/discuss.php?d=149534 Testing 2.0. Use for modern vs old browsers] forum discussion&lt;br /&gt;
&lt;br /&gt;
[[Category:FAQ]]&lt;br /&gt;
[[de:Designs_FAQ]]&lt;/div&gt;</summary>
		<author><name>Rwthornton</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/2x/ca/index.php?title=Themes_FAQ&amp;diff=104483</id>
		<title>Themes FAQ</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/2x/ca/index.php?title=Themes_FAQ&amp;diff=104483"/>
		<updated>2013-05-16T22:42:19Z</updated>

		<summary type="html">&lt;p&gt;Rwthornton: /* What is the hierarchy of contexts for themes to override each other? */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Themes}}&lt;br /&gt;
==How do I install a new theme?==&lt;br /&gt;
&lt;br /&gt;
# Unzip the .zip file to an empty local directory.&lt;br /&gt;
# Upload folder to your web server to the /moodle/theme/[Theme Name]. (Replace [Theme Name] with the name of the theme you have downloaded.) Ensure the new theme folder and its contents are readable by the webserver.  Change Read and Write permissions (CHMOD) for the files and folder to 755 - Owner read/write/execute, Group read/execute, Everyone read/execute.  Incorrect permissions may prevent display of the newly installed theme.&lt;br /&gt;
# Choose your new theme from within Moodle via &#039;&#039;Administration &amp;gt; Appearance &amp;gt; Themes &amp;gt; Theme selector&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
=== How do I install a new theme when using cPanel? ===&lt;br /&gt;
&lt;br /&gt;
# Upload your new theme .zip file to your web server via cPanel. &lt;br /&gt;
# Then using cPanel install the new theme to your Moodle theme&#039;s folder.  The new theme will be installed into its own folder at /moodle/theme/[mytheme] (where [mytheme] is the name of your new theme.&lt;br /&gt;
# Ensure the new theme folder and its contents are readable by the webserver. If necessary  change Read and Write permissions (CHMOD) for the files and folder to 755 - Owner read/write/execute, Group read/execute, Everyone read/execute.  Incorrect permissions may prevent display of the newly installed theme.&lt;br /&gt;
# Choose your new theme from within Moodle via &#039;&#039;Administration &amp;gt; Appearance &amp;gt; Themes &amp;gt; Theme selector&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=== Why is the new theme I uploaded not showing up in Theme Selector? ===&lt;br /&gt;
&lt;br /&gt;
You probably forgot to do something correctly. Here are steps to create a &amp;quot;new&amp;quot; theme from an existing theme called &amp;quot;standard&amp;quot;. Bold show places you must change for the theme to appear.&lt;br /&gt;
#Copy folder theme/standard and call it theme/new&lt;br /&gt;
#In theme/new/lang/en folder,&lt;br /&gt;
##&#039;&#039;&#039;Renamed theme_standard.php to theme_new.php&#039;&#039;&#039;&lt;br /&gt;
#Opened theme/new/lang/en/new.php,  recommend you change 2 lines to read something like:&lt;br /&gt;
##$string[&#039;pluginname&#039;] = &#039;New theme - Martin D&#039;; &lt;br /&gt;
##$string[&#039;chooseredme&#039;] = &#039;New theme came from the Standard theme and is being changed by Martin D in 2011&#039;;&lt;br /&gt;
##Saved the file&lt;br /&gt;
#In theme/new/config.php&lt;br /&gt;
##Change &#039;&#039;&#039;$THEME-&amp;gt;NAME  = &#039;new&#039;&#039;&#039;&#039;;&lt;br /&gt;
#Went to &#039;&#039;Settings &amp;gt; Site Administration &amp;gt;Appearance &amp;gt; Theme settings&#039;&#039; &amp;gt; Theme designer mode (Checked)&lt;br /&gt;
#&#039;&#039;Settings &amp;gt; Site Administration &amp;gt;Appearance &amp;gt; Theme selector&#039;&#039;&lt;br /&gt;
##Clear theme caches&lt;br /&gt;
##Select theme&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;Tip:&#039;&#039; There could be a number of problems with the theme you uploaded, but one major problem reported in the Themes Forum all point to the way in which the theme is uploaded on certain servers. Using the cPanel method, as described in  the FAQ [[Themes_FAQ#How do I install a new theme when using cPanel?|How do I install a new theme when using cPanel?]] will, in most cases, cure the problem.&lt;br /&gt;
&lt;br /&gt;
== How do I control what themes show up where? ==&lt;br /&gt;
&lt;br /&gt;
You can control which themes show up in which contexts by a series of settings in &#039;&#039;Settings&amp;gt;Site Administration&amp;gt;Appearance&amp;gt;Themes&amp;gt;Theme settings&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
===How can I restrict the available themes to users and in courses?===&lt;br /&gt;
&lt;br /&gt;
In&#039;&#039; Settings&amp;gt;Site Administration&amp;gt;Appearance&amp;gt;Themes&amp;gt;Theme settings&#039;&#039;, add the themes you want them to use in the Theme list. These will then restrict the theme choice lists in pull down menus the contexts (Course, Category, User) where you allow them.&lt;br /&gt;
&lt;br /&gt;
===What is the hierarchy of contexts for themes to override each other?===&lt;br /&gt;
&lt;br /&gt;
There are five contexts in which themes appear and can be set: courses, category, session, user, and site, and that is the level of priority of appearance they have as well. You enable/disable these in [https://docs.moodle.org/24/en/Theme_settings Theme settings.] (It is possible to change this hierarchy in the config.php file - see [https://docs.moodle.org/24/en/Theme_settings#Change_default_hierarchy change default hierarchy] for how.) &lt;br /&gt;
&lt;br /&gt;
* Course: themes set at the course level trump (override) all other theme settings&lt;br /&gt;
* Category: themes set at the category level trump all themes except course level themes&lt;br /&gt;
* Session: session level themes set with the URL parameter theme=theme_name are trumped by course and category but trump lower levels&lt;br /&gt;
* User: themes set at the user profile level are trumped by course, category and session, and only trump the site theme&lt;br /&gt;
* Site Default: is trumped by any of the above themes&lt;br /&gt;
&lt;br /&gt;
====Note on Session Themes====&lt;br /&gt;
&lt;br /&gt;
* It is important to note that Session level themes override the Site level theme ONLY for the user&#039;s current logged in session. When the user does log out however, they will then see the DEFAULT SITE theme, not the Session theme. &lt;br /&gt;
* You only have to set the theme once via the URL parameter and it will persist until the user logs out. &lt;br /&gt;
&lt;br /&gt;
====Note on Guest Access====&lt;br /&gt;
&lt;br /&gt;
Courses with Guest access turned on will show a course level theme or category theme as usual. There is no user level theme for Guest since it has no profile or account in the usual sense.&lt;br /&gt;
&lt;br /&gt;
You can use a Session level theme for Guest which will persist not only during the &amp;quot;session&amp;quot; but between sessions, too, in the same browser (i.e. same cookie). This is different than the experience of Authenticated users, who get the default site them upon log out even if they had a session theme. &lt;br /&gt;
&lt;br /&gt;
This will be an issue if your theme changes and a Guest returns from the same browser with the previous theme set. Since the restrictions in the &#039;theme list&#039; do not apply to Session level URLs, they would get the old theme as long as it still exists on the site by that short name instead of the new site theme. (Tip: using a non-existent theme name in the URL will force the site default to appear, e.g. &#039;?theme=.&#039; will reset it since you can&#039;t name a theme &#039;.&#039;)&lt;br /&gt;
&lt;br /&gt;
====Note on Devices and Themes====&lt;br /&gt;
&lt;br /&gt;
See the following issue discovered with device level themes http://tracker.moodle.org/browse/MDL-35148 overriding category and course level themes.&lt;br /&gt;
&lt;br /&gt;
==How do I create a custom theme?==&lt;br /&gt;
&lt;br /&gt;
See the developer documentation [[:dev:Theme development|Theme development]].&lt;br /&gt;
&lt;br /&gt;
==Can I assign a specific theme to a course?==&lt;br /&gt;
&lt;br /&gt;
Yes. In the course settings, use the &amp;quot;Force theme&amp;quot; dropdown box.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Is it possible to customise language strings per theme?==&lt;br /&gt;
Not by default, as when strings are customised, they are customised for the whole site. However, it is possible to make a new language  pack based on your main language and apply that pack to the course which has that theme. See this forum post for more information: https://moodle.org/mod/forum/discuss.php?d=220671&lt;br /&gt;
&lt;br /&gt;
==How can I get the links in  my custom menu to open in new windows?==&lt;br /&gt;
It is possible to create your own fly out menu via the custom menu block in Settings&amp;gt;Site administration&amp;gt;Appearance&amp;gt;Themes&amp;gt;Theme settings. Copy the examples given below the box. If you want the links to open in a new window, use the following code:&lt;br /&gt;
 Moodle|http://www.moodle.org&amp;quot; target=&amp;quot;_blank&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Where shall I put my custom CSS code? ==&lt;br /&gt;
&lt;br /&gt;
Note that the standard themes Afterburner, Arialist, Formal White, Fusion, Nonzero, Overlay, Sky High and Splash all offer the possibility to add custom CSS in their page settings via &#039;&#039;Settings&amp;gt;Appearance&amp;gt;Themes&amp;gt;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Failing this, instead of modifying the theme&#039;s CSS files you better put your own code in a separate CSS file and make your theme aware of that file by modifying its config.php file (be sure add your own CSS file as the last one in the list so that you will override all prior settings). See this posting for [http://moodle.org/mod/forum/discuss.php?d=128599#p564055 detailed instructions]. &lt;br /&gt;
&lt;br /&gt;
See also the instructions on creating your own theme mentioned above.&lt;br /&gt;
&lt;br /&gt;
==Will I lose my courses, language files, logo, etc. if I switch my theme?==&lt;br /&gt;
Switching themes only changes the appearance of your site, not the content within it. The logo is a part of the theme and will be lost when you switch.    &lt;br /&gt;
&lt;br /&gt;
Follow these instructions to [[:dev:Creating_a_custom_theme#Adding_a_Logo|add a logo]] to a theme.&lt;br /&gt;
:If you upgrade your Moodle site and tweaked an existing standard theme, you will lose your changes. Thus it is a good idea to create a custom theme which will not be changed when you upgrade.&lt;br /&gt;
&lt;br /&gt;
==I can&#039;t access theme files on the server. Can I still add a logo to a theme?==&lt;br /&gt;
Yes. You have two choices:&lt;br /&gt;
**Either upload your logo to another place publicly available online and then copy the image&#039;s URL to paste into the logo field of the theme page you are editing (such as Afterburner)&lt;br /&gt;
**Or add the main menu block to your front page; upload the logo via Main menu&amp;gt;Add a resource. Get its URL and paste it into the logo field of the theme page you are editing. You can safely then hide or delete the main menu block; the logo will still be there. (&#039;&#039;NOTE&#039;&#039; - your logo will appear in &#039;&#039;Navigation&amp;gt;Site pages&#039;&#039; as well.)&lt;br /&gt;
&lt;br /&gt;
== Are there tools which help me creating and editing themes? ==&lt;br /&gt;
&lt;br /&gt;
=== Clear Cache Button ===&lt;br /&gt;
This useful Firefox add-on let&#039;s you add a button to your tool bar for easily clearing your cache while working on your theme: https://addons.mozilla.org/de/firefox/addon/1801&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p class=&amp;quot;note&amp;quot;&amp;gt;Please note that the following tools are only for development. They only change the way &#039;&#039;you&#039;&#039; see your Moodle site, not the Moodle site itself. Any changes you make using these tools will not be visible to anyone else who uses your site. For this you will have to make those changes permanent by changing your theme&#039;s CSS files for example.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Firebug ===&lt;br /&gt;
The single most useful tool is the [[:dev:Firebug|Firebug]] add-on for the [[:dev:Firefox|Firefox]] web browser. Firebug integrates with Firefox to put a wealth of development tools at your fingertips while you browse. You can edit, debug, and monitor CSS, HTML, and JavaScript live in any web page... And there are additional add-ons for making Firebug an even more powerful tool.&lt;br /&gt;
&lt;br /&gt;
==== Firebug enhancements ====&lt;br /&gt;
You can enhance Firebug even further. See [[:dev:Firebug|Firebug]] for more information.&lt;br /&gt;
&lt;br /&gt;
=== Web Developer Toolbar ===&lt;br /&gt;
Another great tool for any web developer is the [[:dev:Web developer extension|Web developer extension]], another Firefox add-on. One very useful feature is the option to &#039;&#039;&#039;disable your browser&#039;s cache&#039;&#039;&#039; while working on your theme. That way you are sure you&#039;re always presented with your latest modifications and not with an older, cached version.&lt;br /&gt;
&lt;br /&gt;
Now also available for Google&#039;s Chrome browser: [http://www.sitepoint.com/blogs/2010/03/23/chrome-web-developer-toolbar/ &amp;quot;The Web Developer Toolbar Comes to Chrome&amp;quot;]&lt;br /&gt;
&lt;br /&gt;
=== Stylish ===&lt;br /&gt;
Modifications made with Firebug are lost when refreshing your page. If you want your CSS changes to be a bit more permanent, for example to try them with different pages of your Moodle installation, you can use another Firefox plugin: [https://addons.mozilla.org/en-US/firefox/addon/2108 Stylish]. That way you can change your site&#039;s CSS with a simple mouse click without having to change Moodle code.&lt;br /&gt;
&lt;br /&gt;
See [[:dev:Stylish|Stylish]] for detailed instructions and examples.&lt;br /&gt;
&lt;br /&gt;
==== Stylish-Custom ====&lt;br /&gt;
This is an [https://addons.mozilla.org/en-US/firefox/addon/12105/ custom additions] to the Stylish extension which brings back features from 0.5.9 and adds new features.&lt;br /&gt;
&lt;br /&gt;
== How do I check for cross-browser compatibility? ==&lt;br /&gt;
There are some tools (standalone and online) which can show you how your site looks in different browsers. See this [http://moodle.org/mod/forum/discuss.php?d=127746 forum discussion] for details.  See the new device detection settings in [[Theme settings]] which will allow you to create a theme for those &amp;quot;special&amp;quot; browsers.&lt;br /&gt;
&lt;br /&gt;
==How are the device types used in Moodle 2.4 ?==&lt;br /&gt;
If &amp;quot;Enabled device detection&amp;quot; has been turned on, Moodle 2.4 will automatically use the theme which has been set for the device in the [[Standard themes|Theme selector]] settings page.   It is also possible to add additional types to the Theme selector page by using the &amp;quot;device detection regular expressions&amp;quot; fields.   &lt;br /&gt;
&lt;br /&gt;
Site administrators can find these enable device detection settings in Site administration &amp;gt; Appearance &amp;gt;Themes &amp;gt; [[Theme settings]] .&lt;br /&gt;
&lt;br /&gt;
== Concrete examples for modifying Moodle themes ==&lt;br /&gt;
&amp;lt;p class=&amp;quot;note&amp;quot;&amp;gt;&lt;br /&gt;
The following examples were taken from the former &#039;&#039;Theme Scrapbook&#039;&#039;:&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;quot;The Moodle &#039;&#039;&#039;Theme Scrapbook&#039;&#039;&#039; is a collection of small how-to descriptions. You theme designers and Moodle users working with themes add your knowledge here to help new Moodle users with tips and tricks for their theme work. &lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Feel free to add to this list! Don&#039;t know how? Read our [[MoodleDocs:Guidelines_for_contributors|Guidelines for contributors]].&amp;quot;&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Changing things ===&lt;br /&gt;
&lt;br /&gt;
==== Colors ====&lt;br /&gt;
* [[:dev:Forcing the colour of the chat discussion pane (pop-up mode)]]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=142765 Changing background colour of a topic box]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=152357 How to change the colour of the popup event&#039;s header and background]&lt;br /&gt;
&lt;br /&gt;
==== Logo and icons ====&lt;br /&gt;
* [[:dev:Alternate Icon Set|Using an alternate icon set in Moodle]]&lt;br /&gt;
* [[Favicon|Change the favicon that shows in front of the web address]]&lt;br /&gt;
* [[Footer replacement|Replace the logo in the footer with your web address and/or or own logo]]&lt;br /&gt;
*[[:dev:Header logo|Replace the logo in the header]]&lt;br /&gt;
&lt;br /&gt;
==== Layout ====&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=136546 Overriding the $menu / $button variables] using PHP regular expressions in header.html&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=143411 Changing the view of course categories] - work in progress&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=145077 Sub categories and courses layout] - work in progress&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=151370 Tracker &#039;components&#039; list too small]&lt;br /&gt;
&lt;br /&gt;
=== Adding things ===&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=157935 How to add a different img-bullet to each category?]&lt;br /&gt;
&lt;br /&gt;
=== Hiding things ===&lt;br /&gt;
* Hiding an element with CSS is generally achieved using the [http://reference.sitepoint.com/css/display display: none;] property on the element.&lt;br /&gt;
* See [[:dev:Print style]] and [[:dev:Stylish#Print style for Database records]] for an example how to hide parts of a page not meant for printing.&lt;br /&gt;
&lt;br /&gt;
=== Moving things ===&lt;br /&gt;
* [[:dev:Center Forum Posts|Centre smaller forum posts on the page]]&lt;br /&gt;
* [[:dev:Footer positioning|Positioning the page footer]]&lt;br /&gt;
* [[:dev:Left-align quiz|Left align quiz questions and answers]]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=121847 Indentation for nested categories]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=128599 Positioning login and choose language field]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=145179 Match question type - position answers nearer to the questions]&lt;br /&gt;
* [[:dev:Stylish#Fixed admin menue with CSS]]&lt;br /&gt;
&lt;br /&gt;
=== Miscellaneous ===&lt;br /&gt;
* [[:dev:Fixed-width theme|Creating a fixed-width theme]]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=146763 Is there a way to fix oversized HTML Editor using CSS?]&lt;br /&gt;
* [[:dev:Category Design|Modifying the design of specific categories with CSS]]&lt;br /&gt;
&lt;br /&gt;
==How can I see theme changes when using the Windows Complete Installer package==&lt;br /&gt;
In the [http://download.moodle.org/windows/ Windows Complete Installer package], the eAccelerator in the XAMPP install can cause some issues with changes to your theme&#039;s CSS and HTML files from showing.&lt;br /&gt;
&lt;br /&gt;
Open the php.ini file inside of the server\php folder from your install in notepad and search for &amp;quot;eAccelerator&amp;quot; you should see a line that reads: &lt;br /&gt;
 extension=eaccelerator.dll&lt;br /&gt;
&lt;br /&gt;
Insert a semi-colon (turns the line into a comment) at the start of this line so it now reads: &lt;br /&gt;
 ;extension=eaccelerator.dll&lt;br /&gt;
&lt;br /&gt;
Restart the Moodle server using the &amp;quot;stop moodle&amp;quot; and then the &amp;quot;start moodle&amp;quot; programs in your server folder. You should now find that all of your changes to your CSS are reflected as soon as you save the file and refresh your browser cache (usually you can refresh your cache by pressing F5). This FAQ from a discussion at [http://moodle.org/mod/forum/discuss.php?d=151562#p663950 Deactivating caching with XAMPP installations]&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
&lt;br /&gt;
* Using Moodle [http://moodle.org/mod/forum/view.php?f=29 Themes forum]&lt;br /&gt;
* [[:dev:CSS FAQ]]&lt;br /&gt;
* [http://learn.open.ac.uk/mod/oublog/view.php?user=155976 &amp;quot;Understanding Moodle Themes&amp;quot;] - Blog post by [http://moodle.org/user/view.php?id=78896&amp;amp;course=5 Christopher Douce] (Open University)&lt;br /&gt;
* Using Moodle [http://moodle.org/mod/forum/discuss.php?d=149534 Testing 2.0. Use for modern vs old browsers] forum discussion&lt;br /&gt;
&lt;br /&gt;
[[Category:FAQ]]&lt;br /&gt;
[[de:Designs_FAQ]]&lt;/div&gt;</summary>
		<author><name>Rwthornton</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/2x/ca/index.php?title=Themes_FAQ&amp;diff=104482</id>
		<title>Themes FAQ</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/2x/ca/index.php?title=Themes_FAQ&amp;diff=104482"/>
		<updated>2013-05-16T22:40:54Z</updated>

		<summary type="html">&lt;p&gt;Rwthornton: /* What is the hierarchy of contexts for themes to override each other? */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Themes}}&lt;br /&gt;
==How do I install a new theme?==&lt;br /&gt;
&lt;br /&gt;
# Unzip the .zip file to an empty local directory.&lt;br /&gt;
# Upload folder to your web server to the /moodle/theme/[Theme Name]. (Replace [Theme Name] with the name of the theme you have downloaded.) Ensure the new theme folder and its contents are readable by the webserver.  Change Read and Write permissions (CHMOD) for the files and folder to 755 - Owner read/write/execute, Group read/execute, Everyone read/execute.  Incorrect permissions may prevent display of the newly installed theme.&lt;br /&gt;
# Choose your new theme from within Moodle via &#039;&#039;Administration &amp;gt; Appearance &amp;gt; Themes &amp;gt; Theme selector&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
=== How do I install a new theme when using cPanel? ===&lt;br /&gt;
&lt;br /&gt;
# Upload your new theme .zip file to your web server via cPanel. &lt;br /&gt;
# Then using cPanel install the new theme to your Moodle theme&#039;s folder.  The new theme will be installed into its own folder at /moodle/theme/[mytheme] (where [mytheme] is the name of your new theme.&lt;br /&gt;
# Ensure the new theme folder and its contents are readable by the webserver. If necessary  change Read and Write permissions (CHMOD) for the files and folder to 755 - Owner read/write/execute, Group read/execute, Everyone read/execute.  Incorrect permissions may prevent display of the newly installed theme.&lt;br /&gt;
# Choose your new theme from within Moodle via &#039;&#039;Administration &amp;gt; Appearance &amp;gt; Themes &amp;gt; Theme selector&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=== Why is the new theme I uploaded not showing up in Theme Selector? ===&lt;br /&gt;
&lt;br /&gt;
You probably forgot to do something correctly. Here are steps to create a &amp;quot;new&amp;quot; theme from an existing theme called &amp;quot;standard&amp;quot;. Bold show places you must change for the theme to appear.&lt;br /&gt;
#Copy folder theme/standard and call it theme/new&lt;br /&gt;
#In theme/new/lang/en folder,&lt;br /&gt;
##&#039;&#039;&#039;Renamed theme_standard.php to theme_new.php&#039;&#039;&#039;&lt;br /&gt;
#Opened theme/new/lang/en/new.php,  recommend you change 2 lines to read something like:&lt;br /&gt;
##$string[&#039;pluginname&#039;] = &#039;New theme - Martin D&#039;; &lt;br /&gt;
##$string[&#039;chooseredme&#039;] = &#039;New theme came from the Standard theme and is being changed by Martin D in 2011&#039;;&lt;br /&gt;
##Saved the file&lt;br /&gt;
#In theme/new/config.php&lt;br /&gt;
##Change &#039;&#039;&#039;$THEME-&amp;gt;NAME  = &#039;new&#039;&#039;&#039;&#039;;&lt;br /&gt;
#Went to &#039;&#039;Settings &amp;gt; Site Administration &amp;gt;Appearance &amp;gt; Theme settings&#039;&#039; &amp;gt; Theme designer mode (Checked)&lt;br /&gt;
#&#039;&#039;Settings &amp;gt; Site Administration &amp;gt;Appearance &amp;gt; Theme selector&#039;&#039;&lt;br /&gt;
##Clear theme caches&lt;br /&gt;
##Select theme&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;Tip:&#039;&#039; There could be a number of problems with the theme you uploaded, but one major problem reported in the Themes Forum all point to the way in which the theme is uploaded on certain servers. Using the cPanel method, as described in  the FAQ [[Themes_FAQ#How do I install a new theme when using cPanel?|How do I install a new theme when using cPanel?]] will, in most cases, cure the problem.&lt;br /&gt;
&lt;br /&gt;
== How do I control what themes show up where? ==&lt;br /&gt;
&lt;br /&gt;
You can control which themes show up in which contexts by a series of settings in &#039;&#039;Settings&amp;gt;Site Administration&amp;gt;Appearance&amp;gt;Themes&amp;gt;Theme settings&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
===How can I restrict the available themes to users and in courses?===&lt;br /&gt;
&lt;br /&gt;
In&#039;&#039; Settings&amp;gt;Site Administration&amp;gt;Appearance&amp;gt;Themes&amp;gt;Theme settings&#039;&#039;, add the themes you want them to use in the Theme list. These will then restrict the theme choice lists in pull down menus the contexts (Course, Category, User) where you allow them.&lt;br /&gt;
&lt;br /&gt;
===What is the hierarchy of contexts for themes to override each other?===&lt;br /&gt;
&lt;br /&gt;
There are five contexts in which themes appear and can be set: courses, category, session, user, and site, and that is the level of priority of appearance they have as well. You enable/disable these in [https://docs.moodle.org/24/en/Theme_settings Theme settings.] (It is possible to change this hierarchy in the config.php file - see [https://docs.moodle.org/24/en/Theme_settings#Change_default_hierarchy change default hierarchy] for how.) &lt;br /&gt;
&lt;br /&gt;
* Course: themes set at the course level trump (override) all other theme settings&lt;br /&gt;
* Category: themes set at the category level trump all themes except course level themes&lt;br /&gt;
* Session: session level themes set with the URL parameter theme=theme_name are trumped by course and category but trump lower levels&lt;br /&gt;
* User: themes set at the user profile level are trumped by course, category and session, and only trump the site theme&lt;br /&gt;
* Site Default: is trumped by any of the above themes&lt;br /&gt;
&lt;br /&gt;
Note on Session Themes: &lt;br /&gt;
&lt;br /&gt;
* It is important to note that Session level themes override the Site level theme ONLY for the user&#039;s current logged in session. When the user does log out however, they will then see the DEFAULT SITE theme, not the Session theme. &lt;br /&gt;
* You only have to set the theme once via the URL parameter and it will persist until the user logs out. &lt;br /&gt;
&lt;br /&gt;
Note on Guest Access:&lt;br /&gt;
&lt;br /&gt;
Courses with Guest access turned on will show a course level theme or category theme as usual. There is no user level theme for Guest since it has no profile or account in the usual sense.&lt;br /&gt;
&lt;br /&gt;
You can use a Session level theme for Guest which will persist not only during the &amp;quot;session&amp;quot; but between sessions, too, in the same browser (i.e. same cookie). This is different than the experience of Authenticated users, who get the default site them upon log out even if they had a session theme. &lt;br /&gt;
&lt;br /&gt;
This will be an issue if your theme changes and a Guest returns from the same browser with the previous theme set. Since the restrictions in the &#039;theme list&#039; do not apply to Session level URLs, they would get the old theme as long as it still exists on the site by that short name instead of the new site theme. (Tip: using a non-existent theme name in the URL will force the site default to appear, e.g. &#039;?theme=.&#039; will reset it since you can&#039;t name a theme &#039;.&#039;)&lt;br /&gt;
&lt;br /&gt;
Note on Devices and Themes: &lt;br /&gt;
&lt;br /&gt;
See the following issue discovered with device level themes http://tracker.moodle.org/browse/MDL-35148 overriding category and course level themes.&lt;br /&gt;
&lt;br /&gt;
==How do I create a custom theme?==&lt;br /&gt;
&lt;br /&gt;
See the developer documentation [[:dev:Theme development|Theme development]].&lt;br /&gt;
&lt;br /&gt;
==Can I assign a specific theme to a course?==&lt;br /&gt;
&lt;br /&gt;
Yes. In the course settings, use the &amp;quot;Force theme&amp;quot; dropdown box.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Is it possible to customise language strings per theme?==&lt;br /&gt;
Not by default, as when strings are customised, they are customised for the whole site. However, it is possible to make a new language  pack based on your main language and apply that pack to the course which has that theme. See this forum post for more information: https://moodle.org/mod/forum/discuss.php?d=220671&lt;br /&gt;
&lt;br /&gt;
==How can I get the links in  my custom menu to open in new windows?==&lt;br /&gt;
It is possible to create your own fly out menu via the custom menu block in Settings&amp;gt;Site administration&amp;gt;Appearance&amp;gt;Themes&amp;gt;Theme settings. Copy the examples given below the box. If you want the links to open in a new window, use the following code:&lt;br /&gt;
 Moodle|http://www.moodle.org&amp;quot; target=&amp;quot;_blank&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Where shall I put my custom CSS code? ==&lt;br /&gt;
&lt;br /&gt;
Note that the standard themes Afterburner, Arialist, Formal White, Fusion, Nonzero, Overlay, Sky High and Splash all offer the possibility to add custom CSS in their page settings via &#039;&#039;Settings&amp;gt;Appearance&amp;gt;Themes&amp;gt;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Failing this, instead of modifying the theme&#039;s CSS files you better put your own code in a separate CSS file and make your theme aware of that file by modifying its config.php file (be sure add your own CSS file as the last one in the list so that you will override all prior settings). See this posting for [http://moodle.org/mod/forum/discuss.php?d=128599#p564055 detailed instructions]. &lt;br /&gt;
&lt;br /&gt;
See also the instructions on creating your own theme mentioned above.&lt;br /&gt;
&lt;br /&gt;
==Will I lose my courses, language files, logo, etc. if I switch my theme?==&lt;br /&gt;
Switching themes only changes the appearance of your site, not the content within it. The logo is a part of the theme and will be lost when you switch.    &lt;br /&gt;
&lt;br /&gt;
Follow these instructions to [[:dev:Creating_a_custom_theme#Adding_a_Logo|add a logo]] to a theme.&lt;br /&gt;
:If you upgrade your Moodle site and tweaked an existing standard theme, you will lose your changes. Thus it is a good idea to create a custom theme which will not be changed when you upgrade.&lt;br /&gt;
&lt;br /&gt;
==I can&#039;t access theme files on the server. Can I still add a logo to a theme?==&lt;br /&gt;
Yes. You have two choices:&lt;br /&gt;
**Either upload your logo to another place publicly available online and then copy the image&#039;s URL to paste into the logo field of the theme page you are editing (such as Afterburner)&lt;br /&gt;
**Or add the main menu block to your front page; upload the logo via Main menu&amp;gt;Add a resource. Get its URL and paste it into the logo field of the theme page you are editing. You can safely then hide or delete the main menu block; the logo will still be there. (&#039;&#039;NOTE&#039;&#039; - your logo will appear in &#039;&#039;Navigation&amp;gt;Site pages&#039;&#039; as well.)&lt;br /&gt;
&lt;br /&gt;
== Are there tools which help me creating and editing themes? ==&lt;br /&gt;
&lt;br /&gt;
=== Clear Cache Button ===&lt;br /&gt;
This useful Firefox add-on let&#039;s you add a button to your tool bar for easily clearing your cache while working on your theme: https://addons.mozilla.org/de/firefox/addon/1801&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p class=&amp;quot;note&amp;quot;&amp;gt;Please note that the following tools are only for development. They only change the way &#039;&#039;you&#039;&#039; see your Moodle site, not the Moodle site itself. Any changes you make using these tools will not be visible to anyone else who uses your site. For this you will have to make those changes permanent by changing your theme&#039;s CSS files for example.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Firebug ===&lt;br /&gt;
The single most useful tool is the [[:dev:Firebug|Firebug]] add-on for the [[:dev:Firefox|Firefox]] web browser. Firebug integrates with Firefox to put a wealth of development tools at your fingertips while you browse. You can edit, debug, and monitor CSS, HTML, and JavaScript live in any web page... And there are additional add-ons for making Firebug an even more powerful tool.&lt;br /&gt;
&lt;br /&gt;
==== Firebug enhancements ====&lt;br /&gt;
You can enhance Firebug even further. See [[:dev:Firebug|Firebug]] for more information.&lt;br /&gt;
&lt;br /&gt;
=== Web Developer Toolbar ===&lt;br /&gt;
Another great tool for any web developer is the [[:dev:Web developer extension|Web developer extension]], another Firefox add-on. One very useful feature is the option to &#039;&#039;&#039;disable your browser&#039;s cache&#039;&#039;&#039; while working on your theme. That way you are sure you&#039;re always presented with your latest modifications and not with an older, cached version.&lt;br /&gt;
&lt;br /&gt;
Now also available for Google&#039;s Chrome browser: [http://www.sitepoint.com/blogs/2010/03/23/chrome-web-developer-toolbar/ &amp;quot;The Web Developer Toolbar Comes to Chrome&amp;quot;]&lt;br /&gt;
&lt;br /&gt;
=== Stylish ===&lt;br /&gt;
Modifications made with Firebug are lost when refreshing your page. If you want your CSS changes to be a bit more permanent, for example to try them with different pages of your Moodle installation, you can use another Firefox plugin: [https://addons.mozilla.org/en-US/firefox/addon/2108 Stylish]. That way you can change your site&#039;s CSS with a simple mouse click without having to change Moodle code.&lt;br /&gt;
&lt;br /&gt;
See [[:dev:Stylish|Stylish]] for detailed instructions and examples.&lt;br /&gt;
&lt;br /&gt;
==== Stylish-Custom ====&lt;br /&gt;
This is an [https://addons.mozilla.org/en-US/firefox/addon/12105/ custom additions] to the Stylish extension which brings back features from 0.5.9 and adds new features.&lt;br /&gt;
&lt;br /&gt;
== How do I check for cross-browser compatibility? ==&lt;br /&gt;
There are some tools (standalone and online) which can show you how your site looks in different browsers. See this [http://moodle.org/mod/forum/discuss.php?d=127746 forum discussion] for details.  See the new device detection settings in [[Theme settings]] which will allow you to create a theme for those &amp;quot;special&amp;quot; browsers.&lt;br /&gt;
&lt;br /&gt;
==How are the device types used in Moodle 2.4 ?==&lt;br /&gt;
If &amp;quot;Enabled device detection&amp;quot; has been turned on, Moodle 2.4 will automatically use the theme which has been set for the device in the [[Standard themes|Theme selector]] settings page.   It is also possible to add additional types to the Theme selector page by using the &amp;quot;device detection regular expressions&amp;quot; fields.   &lt;br /&gt;
&lt;br /&gt;
Site administrators can find these enable device detection settings in Site administration &amp;gt; Appearance &amp;gt;Themes &amp;gt; [[Theme settings]] .&lt;br /&gt;
&lt;br /&gt;
== Concrete examples for modifying Moodle themes ==&lt;br /&gt;
&amp;lt;p class=&amp;quot;note&amp;quot;&amp;gt;&lt;br /&gt;
The following examples were taken from the former &#039;&#039;Theme Scrapbook&#039;&#039;:&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;quot;The Moodle &#039;&#039;&#039;Theme Scrapbook&#039;&#039;&#039; is a collection of small how-to descriptions. You theme designers and Moodle users working with themes add your knowledge here to help new Moodle users with tips and tricks for their theme work. &lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Feel free to add to this list! Don&#039;t know how? Read our [[MoodleDocs:Guidelines_for_contributors|Guidelines for contributors]].&amp;quot;&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Changing things ===&lt;br /&gt;
&lt;br /&gt;
==== Colors ====&lt;br /&gt;
* [[:dev:Forcing the colour of the chat discussion pane (pop-up mode)]]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=142765 Changing background colour of a topic box]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=152357 How to change the colour of the popup event&#039;s header and background]&lt;br /&gt;
&lt;br /&gt;
==== Logo and icons ====&lt;br /&gt;
* [[:dev:Alternate Icon Set|Using an alternate icon set in Moodle]]&lt;br /&gt;
* [[Favicon|Change the favicon that shows in front of the web address]]&lt;br /&gt;
* [[Footer replacement|Replace the logo in the footer with your web address and/or or own logo]]&lt;br /&gt;
*[[:dev:Header logo|Replace the logo in the header]]&lt;br /&gt;
&lt;br /&gt;
==== Layout ====&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=136546 Overriding the $menu / $button variables] using PHP regular expressions in header.html&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=143411 Changing the view of course categories] - work in progress&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=145077 Sub categories and courses layout] - work in progress&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=151370 Tracker &#039;components&#039; list too small]&lt;br /&gt;
&lt;br /&gt;
=== Adding things ===&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=157935 How to add a different img-bullet to each category?]&lt;br /&gt;
&lt;br /&gt;
=== Hiding things ===&lt;br /&gt;
* Hiding an element with CSS is generally achieved using the [http://reference.sitepoint.com/css/display display: none;] property on the element.&lt;br /&gt;
* See [[:dev:Print style]] and [[:dev:Stylish#Print style for Database records]] for an example how to hide parts of a page not meant for printing.&lt;br /&gt;
&lt;br /&gt;
=== Moving things ===&lt;br /&gt;
* [[:dev:Center Forum Posts|Centre smaller forum posts on the page]]&lt;br /&gt;
* [[:dev:Footer positioning|Positioning the page footer]]&lt;br /&gt;
* [[:dev:Left-align quiz|Left align quiz questions and answers]]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=121847 Indentation for nested categories]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=128599 Positioning login and choose language field]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=145179 Match question type - position answers nearer to the questions]&lt;br /&gt;
* [[:dev:Stylish#Fixed admin menue with CSS]]&lt;br /&gt;
&lt;br /&gt;
=== Miscellaneous ===&lt;br /&gt;
* [[:dev:Fixed-width theme|Creating a fixed-width theme]]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=146763 Is there a way to fix oversized HTML Editor using CSS?]&lt;br /&gt;
* [[:dev:Category Design|Modifying the design of specific categories with CSS]]&lt;br /&gt;
&lt;br /&gt;
==How can I see theme changes when using the Windows Complete Installer package==&lt;br /&gt;
In the [http://download.moodle.org/windows/ Windows Complete Installer package], the eAccelerator in the XAMPP install can cause some issues with changes to your theme&#039;s CSS and HTML files from showing.&lt;br /&gt;
&lt;br /&gt;
Open the php.ini file inside of the server\php folder from your install in notepad and search for &amp;quot;eAccelerator&amp;quot; you should see a line that reads: &lt;br /&gt;
 extension=eaccelerator.dll&lt;br /&gt;
&lt;br /&gt;
Insert a semi-colon (turns the line into a comment) at the start of this line so it now reads: &lt;br /&gt;
 ;extension=eaccelerator.dll&lt;br /&gt;
&lt;br /&gt;
Restart the Moodle server using the &amp;quot;stop moodle&amp;quot; and then the &amp;quot;start moodle&amp;quot; programs in your server folder. You should now find that all of your changes to your CSS are reflected as soon as you save the file and refresh your browser cache (usually you can refresh your cache by pressing F5). This FAQ from a discussion at [http://moodle.org/mod/forum/discuss.php?d=151562#p663950 Deactivating caching with XAMPP installations]&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
&lt;br /&gt;
* Using Moodle [http://moodle.org/mod/forum/view.php?f=29 Themes forum]&lt;br /&gt;
* [[:dev:CSS FAQ]]&lt;br /&gt;
* [http://learn.open.ac.uk/mod/oublog/view.php?user=155976 &amp;quot;Understanding Moodle Themes&amp;quot;] - Blog post by [http://moodle.org/user/view.php?id=78896&amp;amp;course=5 Christopher Douce] (Open University)&lt;br /&gt;
* Using Moodle [http://moodle.org/mod/forum/discuss.php?d=149534 Testing 2.0. Use for modern vs old browsers] forum discussion&lt;br /&gt;
&lt;br /&gt;
[[Category:FAQ]]&lt;br /&gt;
[[de:Designs_FAQ]]&lt;/div&gt;</summary>
		<author><name>Rwthornton</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/2x/ca/index.php?title=Themes_FAQ&amp;diff=104481</id>
		<title>Themes FAQ</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/2x/ca/index.php?title=Themes_FAQ&amp;diff=104481"/>
		<updated>2013-05-16T22:30:14Z</updated>

		<summary type="html">&lt;p&gt;Rwthornton: /* What is the hierarchy of contexts for themes to override each other? */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Themes}}&lt;br /&gt;
==How do I install a new theme?==&lt;br /&gt;
&lt;br /&gt;
# Unzip the .zip file to an empty local directory.&lt;br /&gt;
# Upload folder to your web server to the /moodle/theme/[Theme Name]. (Replace [Theme Name] with the name of the theme you have downloaded.) Ensure the new theme folder and its contents are readable by the webserver.  Change Read and Write permissions (CHMOD) for the files and folder to 755 - Owner read/write/execute, Group read/execute, Everyone read/execute.  Incorrect permissions may prevent display of the newly installed theme.&lt;br /&gt;
# Choose your new theme from within Moodle via &#039;&#039;Administration &amp;gt; Appearance &amp;gt; Themes &amp;gt; Theme selector&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
=== How do I install a new theme when using cPanel? ===&lt;br /&gt;
&lt;br /&gt;
# Upload your new theme .zip file to your web server via cPanel. &lt;br /&gt;
# Then using cPanel install the new theme to your Moodle theme&#039;s folder.  The new theme will be installed into its own folder at /moodle/theme/[mytheme] (where [mytheme] is the name of your new theme.&lt;br /&gt;
# Ensure the new theme folder and its contents are readable by the webserver. If necessary  change Read and Write permissions (CHMOD) for the files and folder to 755 - Owner read/write/execute, Group read/execute, Everyone read/execute.  Incorrect permissions may prevent display of the newly installed theme.&lt;br /&gt;
# Choose your new theme from within Moodle via &#039;&#039;Administration &amp;gt; Appearance &amp;gt; Themes &amp;gt; Theme selector&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=== Why is the new theme I uploaded not showing up in Theme Selector? ===&lt;br /&gt;
&lt;br /&gt;
You probably forgot to do something correctly. Here are steps to create a &amp;quot;new&amp;quot; theme from an existing theme called &amp;quot;standard&amp;quot;. Bold show places you must change for the theme to appear.&lt;br /&gt;
#Copy folder theme/standard and call it theme/new&lt;br /&gt;
#In theme/new/lang/en folder,&lt;br /&gt;
##&#039;&#039;&#039;Renamed theme_standard.php to theme_new.php&#039;&#039;&#039;&lt;br /&gt;
#Opened theme/new/lang/en/new.php,  recommend you change 2 lines to read something like:&lt;br /&gt;
##$string[&#039;pluginname&#039;] = &#039;New theme - Martin D&#039;; &lt;br /&gt;
##$string[&#039;chooseredme&#039;] = &#039;New theme came from the Standard theme and is being changed by Martin D in 2011&#039;;&lt;br /&gt;
##Saved the file&lt;br /&gt;
#In theme/new/config.php&lt;br /&gt;
##Change &#039;&#039;&#039;$THEME-&amp;gt;NAME  = &#039;new&#039;&#039;&#039;&#039;;&lt;br /&gt;
#Went to &#039;&#039;Settings &amp;gt; Site Administration &amp;gt;Appearance &amp;gt; Theme settings&#039;&#039; &amp;gt; Theme designer mode (Checked)&lt;br /&gt;
#&#039;&#039;Settings &amp;gt; Site Administration &amp;gt;Appearance &amp;gt; Theme selector&#039;&#039;&lt;br /&gt;
##Clear theme caches&lt;br /&gt;
##Select theme&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;Tip:&#039;&#039; There could be a number of problems with the theme you uploaded, but one major problem reported in the Themes Forum all point to the way in which the theme is uploaded on certain servers. Using the cPanel method, as described in  the FAQ [[Themes_FAQ#How do I install a new theme when using cPanel?|How do I install a new theme when using cPanel?]] will, in most cases, cure the problem.&lt;br /&gt;
&lt;br /&gt;
== How do I control what themes show up where? ==&lt;br /&gt;
&lt;br /&gt;
You can control which themes show up in which contexts by a series of settings in &#039;&#039;Settings&amp;gt;Site Administration&amp;gt;Appearance&amp;gt;Themes&amp;gt;Theme settings&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
===How can I restrict the available themes to users and in courses?===&lt;br /&gt;
&lt;br /&gt;
In&#039;&#039; Settings&amp;gt;Site Administration&amp;gt;Appearance&amp;gt;Themes&amp;gt;Theme settings&#039;&#039;, add the themes you want them to use in the Theme list. These will then restrict the theme choice lists in pull down menus the contexts (Course, Category, User) where you allow them.&lt;br /&gt;
&lt;br /&gt;
===What is the hierarchy of contexts for themes to override each other?===&lt;br /&gt;
&lt;br /&gt;
There are five contexts in which themes appear and can be set: courses, category, session, user, and site, and that is the level of priority of appearance they have as well. You enable/disable these in [https://docs.moodle.org/24/en/Theme_settings Theme settings.] (It is possible to change this hierarchy in the config.php file - see [https://docs.moodle.org/24/en/Theme_settings#Change_default_hierarchy change default hierarchy] for how.) &lt;br /&gt;
&lt;br /&gt;
* Course: themes set at the course level trump (override) all other theme settings&lt;br /&gt;
* Category: themes set at the category level trump all themes except course level themes&lt;br /&gt;
* Session: session level themes set with the URL parameter theme=theme_name are trumped by course and category but trump lower levels&lt;br /&gt;
* User: themes set at the user profile level are trumped by course, category and session, and only trump the site theme&lt;br /&gt;
* Site Default: is trumped by any of the above themes&lt;br /&gt;
&lt;br /&gt;
Note on Session Themes: &lt;br /&gt;
&lt;br /&gt;
* It is important to note that Session level themes override the Site level theme ONLY for the user&#039;s current logged in session. When the user does log out however, they will then see the DEFAULT SITE theme, not the Session theme. &lt;br /&gt;
* You only have to set the theme once via the URL parameter and it will persist until the user logs out. &lt;br /&gt;
&lt;br /&gt;
Note on Guest Access:&lt;br /&gt;
&lt;br /&gt;
Courses with Guest access turned on will show a course level theme or category theme as usual. There is no user level theme for Guest since it has no profile or account in the usual sense.&lt;br /&gt;
&lt;br /&gt;
You can use a Session level theme for Guest which will persist not only during the &amp;quot;session&amp;quot; but between sessions, too, in the same browser (i.e. same cookie). This is different than the experience of Authenticated users, who get the default site them upon log out even if they had a session theme. This will be an issue if your theme changes and a Guest returns from the same browser with the previous theme set: they will get the old theme not the new one.  &lt;br /&gt;
&lt;br /&gt;
Note on Devices and Themes: &lt;br /&gt;
&lt;br /&gt;
See the following issue discovered with device level themes http://tracker.moodle.org/browse/MDL-35148 overriding category and course level themes.&lt;br /&gt;
&lt;br /&gt;
==How do I create a custom theme?==&lt;br /&gt;
&lt;br /&gt;
See the developer documentation [[:dev:Theme development|Theme development]].&lt;br /&gt;
&lt;br /&gt;
==Can I assign a specific theme to a course?==&lt;br /&gt;
&lt;br /&gt;
Yes. In the course settings, use the &amp;quot;Force theme&amp;quot; dropdown box.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Is it possible to customise language strings per theme?==&lt;br /&gt;
Not by default, as when strings are customised, they are customised for the whole site. However, it is possible to make a new language  pack based on your main language and apply that pack to the course which has that theme. See this forum post for more information: https://moodle.org/mod/forum/discuss.php?d=220671&lt;br /&gt;
&lt;br /&gt;
==How can I get the links in  my custom menu to open in new windows?==&lt;br /&gt;
It is possible to create your own fly out menu via the custom menu block in Settings&amp;gt;Site administration&amp;gt;Appearance&amp;gt;Themes&amp;gt;Theme settings. Copy the examples given below the box. If you want the links to open in a new window, use the following code:&lt;br /&gt;
 Moodle|http://www.moodle.org&amp;quot; target=&amp;quot;_blank&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Where shall I put my custom CSS code? ==&lt;br /&gt;
&lt;br /&gt;
Note that the standard themes Afterburner, Arialist, Formal White, Fusion, Nonzero, Overlay, Sky High and Splash all offer the possibility to add custom CSS in their page settings via &#039;&#039;Settings&amp;gt;Appearance&amp;gt;Themes&amp;gt;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Failing this, instead of modifying the theme&#039;s CSS files you better put your own code in a separate CSS file and make your theme aware of that file by modifying its config.php file (be sure add your own CSS file as the last one in the list so that you will override all prior settings). See this posting for [http://moodle.org/mod/forum/discuss.php?d=128599#p564055 detailed instructions]. &lt;br /&gt;
&lt;br /&gt;
See also the instructions on creating your own theme mentioned above.&lt;br /&gt;
&lt;br /&gt;
==Will I lose my courses, language files, logo, etc. if I switch my theme?==&lt;br /&gt;
Switching themes only changes the appearance of your site, not the content within it. The logo is a part of the theme and will be lost when you switch.    &lt;br /&gt;
&lt;br /&gt;
Follow these instructions to [[:dev:Creating_a_custom_theme#Adding_a_Logo|add a logo]] to a theme.&lt;br /&gt;
:If you upgrade your Moodle site and tweaked an existing standard theme, you will lose your changes. Thus it is a good idea to create a custom theme which will not be changed when you upgrade.&lt;br /&gt;
&lt;br /&gt;
==I can&#039;t access theme files on the server. Can I still add a logo to a theme?==&lt;br /&gt;
Yes. You have two choices:&lt;br /&gt;
**Either upload your logo to another place publicly available online and then copy the image&#039;s URL to paste into the logo field of the theme page you are editing (such as Afterburner)&lt;br /&gt;
**Or add the main menu block to your front page; upload the logo via Main menu&amp;gt;Add a resource. Get its URL and paste it into the logo field of the theme page you are editing. You can safely then hide or delete the main menu block; the logo will still be there. (&#039;&#039;NOTE&#039;&#039; - your logo will appear in &#039;&#039;Navigation&amp;gt;Site pages&#039;&#039; as well.)&lt;br /&gt;
&lt;br /&gt;
== Are there tools which help me creating and editing themes? ==&lt;br /&gt;
&lt;br /&gt;
=== Clear Cache Button ===&lt;br /&gt;
This useful Firefox add-on let&#039;s you add a button to your tool bar for easily clearing your cache while working on your theme: https://addons.mozilla.org/de/firefox/addon/1801&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p class=&amp;quot;note&amp;quot;&amp;gt;Please note that the following tools are only for development. They only change the way &#039;&#039;you&#039;&#039; see your Moodle site, not the Moodle site itself. Any changes you make using these tools will not be visible to anyone else who uses your site. For this you will have to make those changes permanent by changing your theme&#039;s CSS files for example.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Firebug ===&lt;br /&gt;
The single most useful tool is the [[:dev:Firebug|Firebug]] add-on for the [[:dev:Firefox|Firefox]] web browser. Firebug integrates with Firefox to put a wealth of development tools at your fingertips while you browse. You can edit, debug, and monitor CSS, HTML, and JavaScript live in any web page... And there are additional add-ons for making Firebug an even more powerful tool.&lt;br /&gt;
&lt;br /&gt;
==== Firebug enhancements ====&lt;br /&gt;
You can enhance Firebug even further. See [[:dev:Firebug|Firebug]] for more information.&lt;br /&gt;
&lt;br /&gt;
=== Web Developer Toolbar ===&lt;br /&gt;
Another great tool for any web developer is the [[:dev:Web developer extension|Web developer extension]], another Firefox add-on. One very useful feature is the option to &#039;&#039;&#039;disable your browser&#039;s cache&#039;&#039;&#039; while working on your theme. That way you are sure you&#039;re always presented with your latest modifications and not with an older, cached version.&lt;br /&gt;
&lt;br /&gt;
Now also available for Google&#039;s Chrome browser: [http://www.sitepoint.com/blogs/2010/03/23/chrome-web-developer-toolbar/ &amp;quot;The Web Developer Toolbar Comes to Chrome&amp;quot;]&lt;br /&gt;
&lt;br /&gt;
=== Stylish ===&lt;br /&gt;
Modifications made with Firebug are lost when refreshing your page. If you want your CSS changes to be a bit more permanent, for example to try them with different pages of your Moodle installation, you can use another Firefox plugin: [https://addons.mozilla.org/en-US/firefox/addon/2108 Stylish]. That way you can change your site&#039;s CSS with a simple mouse click without having to change Moodle code.&lt;br /&gt;
&lt;br /&gt;
See [[:dev:Stylish|Stylish]] for detailed instructions and examples.&lt;br /&gt;
&lt;br /&gt;
==== Stylish-Custom ====&lt;br /&gt;
This is an [https://addons.mozilla.org/en-US/firefox/addon/12105/ custom additions] to the Stylish extension which brings back features from 0.5.9 and adds new features.&lt;br /&gt;
&lt;br /&gt;
== How do I check for cross-browser compatibility? ==&lt;br /&gt;
There are some tools (standalone and online) which can show you how your site looks in different browsers. See this [http://moodle.org/mod/forum/discuss.php?d=127746 forum discussion] for details.  See the new device detection settings in [[Theme settings]] which will allow you to create a theme for those &amp;quot;special&amp;quot; browsers.&lt;br /&gt;
&lt;br /&gt;
==How are the device types used in Moodle 2.4 ?==&lt;br /&gt;
If &amp;quot;Enabled device detection&amp;quot; has been turned on, Moodle 2.4 will automatically use the theme which has been set for the device in the [[Standard themes|Theme selector]] settings page.   It is also possible to add additional types to the Theme selector page by using the &amp;quot;device detection regular expressions&amp;quot; fields.   &lt;br /&gt;
&lt;br /&gt;
Site administrators can find these enable device detection settings in Site administration &amp;gt; Appearance &amp;gt;Themes &amp;gt; [[Theme settings]] .&lt;br /&gt;
&lt;br /&gt;
== Concrete examples for modifying Moodle themes ==&lt;br /&gt;
&amp;lt;p class=&amp;quot;note&amp;quot;&amp;gt;&lt;br /&gt;
The following examples were taken from the former &#039;&#039;Theme Scrapbook&#039;&#039;:&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;quot;The Moodle &#039;&#039;&#039;Theme Scrapbook&#039;&#039;&#039; is a collection of small how-to descriptions. You theme designers and Moodle users working with themes add your knowledge here to help new Moodle users with tips and tricks for their theme work. &lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Feel free to add to this list! Don&#039;t know how? Read our [[MoodleDocs:Guidelines_for_contributors|Guidelines for contributors]].&amp;quot;&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Changing things ===&lt;br /&gt;
&lt;br /&gt;
==== Colors ====&lt;br /&gt;
* [[:dev:Forcing the colour of the chat discussion pane (pop-up mode)]]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=142765 Changing background colour of a topic box]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=152357 How to change the colour of the popup event&#039;s header and background]&lt;br /&gt;
&lt;br /&gt;
==== Logo and icons ====&lt;br /&gt;
* [[:dev:Alternate Icon Set|Using an alternate icon set in Moodle]]&lt;br /&gt;
* [[Favicon|Change the favicon that shows in front of the web address]]&lt;br /&gt;
* [[Footer replacement|Replace the logo in the footer with your web address and/or or own logo]]&lt;br /&gt;
*[[:dev:Header logo|Replace the logo in the header]]&lt;br /&gt;
&lt;br /&gt;
==== Layout ====&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=136546 Overriding the $menu / $button variables] using PHP regular expressions in header.html&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=143411 Changing the view of course categories] - work in progress&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=145077 Sub categories and courses layout] - work in progress&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=151370 Tracker &#039;components&#039; list too small]&lt;br /&gt;
&lt;br /&gt;
=== Adding things ===&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=157935 How to add a different img-bullet to each category?]&lt;br /&gt;
&lt;br /&gt;
=== Hiding things ===&lt;br /&gt;
* Hiding an element with CSS is generally achieved using the [http://reference.sitepoint.com/css/display display: none;] property on the element.&lt;br /&gt;
* See [[:dev:Print style]] and [[:dev:Stylish#Print style for Database records]] for an example how to hide parts of a page not meant for printing.&lt;br /&gt;
&lt;br /&gt;
=== Moving things ===&lt;br /&gt;
* [[:dev:Center Forum Posts|Centre smaller forum posts on the page]]&lt;br /&gt;
* [[:dev:Footer positioning|Positioning the page footer]]&lt;br /&gt;
* [[:dev:Left-align quiz|Left align quiz questions and answers]]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=121847 Indentation for nested categories]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=128599 Positioning login and choose language field]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=145179 Match question type - position answers nearer to the questions]&lt;br /&gt;
* [[:dev:Stylish#Fixed admin menue with CSS]]&lt;br /&gt;
&lt;br /&gt;
=== Miscellaneous ===&lt;br /&gt;
* [[:dev:Fixed-width theme|Creating a fixed-width theme]]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=146763 Is there a way to fix oversized HTML Editor using CSS?]&lt;br /&gt;
* [[:dev:Category Design|Modifying the design of specific categories with CSS]]&lt;br /&gt;
&lt;br /&gt;
==How can I see theme changes when using the Windows Complete Installer package==&lt;br /&gt;
In the [http://download.moodle.org/windows/ Windows Complete Installer package], the eAccelerator in the XAMPP install can cause some issues with changes to your theme&#039;s CSS and HTML files from showing.&lt;br /&gt;
&lt;br /&gt;
Open the php.ini file inside of the server\php folder from your install in notepad and search for &amp;quot;eAccelerator&amp;quot; you should see a line that reads: &lt;br /&gt;
 extension=eaccelerator.dll&lt;br /&gt;
&lt;br /&gt;
Insert a semi-colon (turns the line into a comment) at the start of this line so it now reads: &lt;br /&gt;
 ;extension=eaccelerator.dll&lt;br /&gt;
&lt;br /&gt;
Restart the Moodle server using the &amp;quot;stop moodle&amp;quot; and then the &amp;quot;start moodle&amp;quot; programs in your server folder. You should now find that all of your changes to your CSS are reflected as soon as you save the file and refresh your browser cache (usually you can refresh your cache by pressing F5). This FAQ from a discussion at [http://moodle.org/mod/forum/discuss.php?d=151562#p663950 Deactivating caching with XAMPP installations]&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
&lt;br /&gt;
* Using Moodle [http://moodle.org/mod/forum/view.php?f=29 Themes forum]&lt;br /&gt;
* [[:dev:CSS FAQ]]&lt;br /&gt;
* [http://learn.open.ac.uk/mod/oublog/view.php?user=155976 &amp;quot;Understanding Moodle Themes&amp;quot;] - Blog post by [http://moodle.org/user/view.php?id=78896&amp;amp;course=5 Christopher Douce] (Open University)&lt;br /&gt;
* Using Moodle [http://moodle.org/mod/forum/discuss.php?d=149534 Testing 2.0. Use for modern vs old browsers] forum discussion&lt;br /&gt;
&lt;br /&gt;
[[Category:FAQ]]&lt;br /&gt;
[[de:Designs_FAQ]]&lt;/div&gt;</summary>
		<author><name>Rwthornton</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/2x/ca/index.php?title=Themes_FAQ&amp;diff=104480</id>
		<title>Themes FAQ</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/2x/ca/index.php?title=Themes_FAQ&amp;diff=104480"/>
		<updated>2013-05-16T22:28:04Z</updated>

		<summary type="html">&lt;p&gt;Rwthornton: /* What is the hierarchy of contexts for themes to override each other? */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Themes}}&lt;br /&gt;
==How do I install a new theme?==&lt;br /&gt;
&lt;br /&gt;
# Unzip the .zip file to an empty local directory.&lt;br /&gt;
# Upload folder to your web server to the /moodle/theme/[Theme Name]. (Replace [Theme Name] with the name of the theme you have downloaded.) Ensure the new theme folder and its contents are readable by the webserver.  Change Read and Write permissions (CHMOD) for the files and folder to 755 - Owner read/write/execute, Group read/execute, Everyone read/execute.  Incorrect permissions may prevent display of the newly installed theme.&lt;br /&gt;
# Choose your new theme from within Moodle via &#039;&#039;Administration &amp;gt; Appearance &amp;gt; Themes &amp;gt; Theme selector&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
=== How do I install a new theme when using cPanel? ===&lt;br /&gt;
&lt;br /&gt;
# Upload your new theme .zip file to your web server via cPanel. &lt;br /&gt;
# Then using cPanel install the new theme to your Moodle theme&#039;s folder.  The new theme will be installed into its own folder at /moodle/theme/[mytheme] (where [mytheme] is the name of your new theme.&lt;br /&gt;
# Ensure the new theme folder and its contents are readable by the webserver. If necessary  change Read and Write permissions (CHMOD) for the files and folder to 755 - Owner read/write/execute, Group read/execute, Everyone read/execute.  Incorrect permissions may prevent display of the newly installed theme.&lt;br /&gt;
# Choose your new theme from within Moodle via &#039;&#039;Administration &amp;gt; Appearance &amp;gt; Themes &amp;gt; Theme selector&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=== Why is the new theme I uploaded not showing up in Theme Selector? ===&lt;br /&gt;
&lt;br /&gt;
You probably forgot to do something correctly. Here are steps to create a &amp;quot;new&amp;quot; theme from an existing theme called &amp;quot;standard&amp;quot;. Bold show places you must change for the theme to appear.&lt;br /&gt;
#Copy folder theme/standard and call it theme/new&lt;br /&gt;
#In theme/new/lang/en folder,&lt;br /&gt;
##&#039;&#039;&#039;Renamed theme_standard.php to theme_new.php&#039;&#039;&#039;&lt;br /&gt;
#Opened theme/new/lang/en/new.php,  recommend you change 2 lines to read something like:&lt;br /&gt;
##$string[&#039;pluginname&#039;] = &#039;New theme - Martin D&#039;; &lt;br /&gt;
##$string[&#039;chooseredme&#039;] = &#039;New theme came from the Standard theme and is being changed by Martin D in 2011&#039;;&lt;br /&gt;
##Saved the file&lt;br /&gt;
#In theme/new/config.php&lt;br /&gt;
##Change &#039;&#039;&#039;$THEME-&amp;gt;NAME  = &#039;new&#039;&#039;&#039;&#039;;&lt;br /&gt;
#Went to &#039;&#039;Settings &amp;gt; Site Administration &amp;gt;Appearance &amp;gt; Theme settings&#039;&#039; &amp;gt; Theme designer mode (Checked)&lt;br /&gt;
#&#039;&#039;Settings &amp;gt; Site Administration &amp;gt;Appearance &amp;gt; Theme selector&#039;&#039;&lt;br /&gt;
##Clear theme caches&lt;br /&gt;
##Select theme&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;Tip:&#039;&#039; There could be a number of problems with the theme you uploaded, but one major problem reported in the Themes Forum all point to the way in which the theme is uploaded on certain servers. Using the cPanel method, as described in  the FAQ [[Themes_FAQ#How do I install a new theme when using cPanel?|How do I install a new theme when using cPanel?]] will, in most cases, cure the problem.&lt;br /&gt;
&lt;br /&gt;
== How do I control what themes show up where? ==&lt;br /&gt;
&lt;br /&gt;
You can control which themes show up in which contexts by a series of settings in &#039;&#039;Settings&amp;gt;Site Administration&amp;gt;Appearance&amp;gt;Themes&amp;gt;Theme settings&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
===How can I restrict the available themes to users and in courses?===&lt;br /&gt;
&lt;br /&gt;
In&#039;&#039; Settings&amp;gt;Site Administration&amp;gt;Appearance&amp;gt;Themes&amp;gt;Theme settings&#039;&#039;, add the themes you want them to use in the Theme list. These will then restrict the theme choice lists in pull down menus the contexts (Course, Category, User) where you allow them.&lt;br /&gt;
&lt;br /&gt;
===What is the hierarchy of contexts for themes to override each other?===&lt;br /&gt;
&lt;br /&gt;
There are five contexts in which themes appear and can be set: courses, category, session, user, and site, and that is the level of priority of appearance they have as well. You enable/disable these in [https://docs.moodle.org/24/en/Theme_settings Theme settings.] (It is possible to change this hierarchy in the config.php file - see [https://docs.moodle.org/24/en/Theme_settings#Change_default_hierarchy change default hierarchy] for how.) &lt;br /&gt;
&lt;br /&gt;
* Course: themes set at the course level trump (override) all other theme settings&lt;br /&gt;
* Category: themes set at the category level trump all themes except course level themes&lt;br /&gt;
* Session: session level themes set with the URL parameter theme=theme_name are trumped by course and category but trump lower levels&lt;br /&gt;
* User: themes set at the user profile level are trumped by course, category and session, and only trump the site theme&lt;br /&gt;
* Site Default: is trumped by any of the above themes&lt;br /&gt;
&lt;br /&gt;
Note on Session Themes: &lt;br /&gt;
&lt;br /&gt;
* It is important to note that Session level themes override the Site level theme ONLY for the user&#039;s current logged in session. When the user does log out however, they will then see the DEFAULT SITE theme, not the Session theme. &lt;br /&gt;
* You only have to set the theme once via the URL parameter and it will persist until the user logs out. &lt;br /&gt;
&lt;br /&gt;
Note on Guest Access:&lt;br /&gt;
&lt;br /&gt;
Courses with Guest access turned on will show a course level theme or category theme as usual. There is no user level theme for Guest since it has no profile or account in the usual sense.&lt;br /&gt;
&lt;br /&gt;
You can use a Session level theme for Guest which will persist not only during the &amp;quot;session&amp;quot; but between sessions, too, in the same browser (i.e. same cookie). This is different than the experience of Authenticated users, who get the default site them upon log out even if they had a session theme. This will be an issue if your theme changes and a Guest returns from the same browser with the previous theme set: they will get the old theme not the new one.  &lt;br /&gt;
&lt;br /&gt;
Note on Device Themes: the following issue discovered with device level themes http://tracker.moodle.org/browse/MDL-35148 overriding category and course level themes.&lt;br /&gt;
&lt;br /&gt;
==How do I create a custom theme?==&lt;br /&gt;
&lt;br /&gt;
See the developer documentation [[:dev:Theme development|Theme development]].&lt;br /&gt;
&lt;br /&gt;
==Can I assign a specific theme to a course?==&lt;br /&gt;
&lt;br /&gt;
Yes. In the course settings, use the &amp;quot;Force theme&amp;quot; dropdown box.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Is it possible to customise language strings per theme?==&lt;br /&gt;
Not by default, as when strings are customised, they are customised for the whole site. However, it is possible to make a new language  pack based on your main language and apply that pack to the course which has that theme. See this forum post for more information: https://moodle.org/mod/forum/discuss.php?d=220671&lt;br /&gt;
&lt;br /&gt;
==How can I get the links in  my custom menu to open in new windows?==&lt;br /&gt;
It is possible to create your own fly out menu via the custom menu block in Settings&amp;gt;Site administration&amp;gt;Appearance&amp;gt;Themes&amp;gt;Theme settings. Copy the examples given below the box. If you want the links to open in a new window, use the following code:&lt;br /&gt;
 Moodle|http://www.moodle.org&amp;quot; target=&amp;quot;_blank&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Where shall I put my custom CSS code? ==&lt;br /&gt;
&lt;br /&gt;
Note that the standard themes Afterburner, Arialist, Formal White, Fusion, Nonzero, Overlay, Sky High and Splash all offer the possibility to add custom CSS in their page settings via &#039;&#039;Settings&amp;gt;Appearance&amp;gt;Themes&amp;gt;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Failing this, instead of modifying the theme&#039;s CSS files you better put your own code in a separate CSS file and make your theme aware of that file by modifying its config.php file (be sure add your own CSS file as the last one in the list so that you will override all prior settings). See this posting for [http://moodle.org/mod/forum/discuss.php?d=128599#p564055 detailed instructions]. &lt;br /&gt;
&lt;br /&gt;
See also the instructions on creating your own theme mentioned above.&lt;br /&gt;
&lt;br /&gt;
==Will I lose my courses, language files, logo, etc. if I switch my theme?==&lt;br /&gt;
Switching themes only changes the appearance of your site, not the content within it. The logo is a part of the theme and will be lost when you switch.    &lt;br /&gt;
&lt;br /&gt;
Follow these instructions to [[:dev:Creating_a_custom_theme#Adding_a_Logo|add a logo]] to a theme.&lt;br /&gt;
:If you upgrade your Moodle site and tweaked an existing standard theme, you will lose your changes. Thus it is a good idea to create a custom theme which will not be changed when you upgrade.&lt;br /&gt;
&lt;br /&gt;
==I can&#039;t access theme files on the server. Can I still add a logo to a theme?==&lt;br /&gt;
Yes. You have two choices:&lt;br /&gt;
**Either upload your logo to another place publicly available online and then copy the image&#039;s URL to paste into the logo field of the theme page you are editing (such as Afterburner)&lt;br /&gt;
**Or add the main menu block to your front page; upload the logo via Main menu&amp;gt;Add a resource. Get its URL and paste it into the logo field of the theme page you are editing. You can safely then hide or delete the main menu block; the logo will still be there. (&#039;&#039;NOTE&#039;&#039; - your logo will appear in &#039;&#039;Navigation&amp;gt;Site pages&#039;&#039; as well.)&lt;br /&gt;
&lt;br /&gt;
== Are there tools which help me creating and editing themes? ==&lt;br /&gt;
&lt;br /&gt;
=== Clear Cache Button ===&lt;br /&gt;
This useful Firefox add-on let&#039;s you add a button to your tool bar for easily clearing your cache while working on your theme: https://addons.mozilla.org/de/firefox/addon/1801&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p class=&amp;quot;note&amp;quot;&amp;gt;Please note that the following tools are only for development. They only change the way &#039;&#039;you&#039;&#039; see your Moodle site, not the Moodle site itself. Any changes you make using these tools will not be visible to anyone else who uses your site. For this you will have to make those changes permanent by changing your theme&#039;s CSS files for example.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Firebug ===&lt;br /&gt;
The single most useful tool is the [[:dev:Firebug|Firebug]] add-on for the [[:dev:Firefox|Firefox]] web browser. Firebug integrates with Firefox to put a wealth of development tools at your fingertips while you browse. You can edit, debug, and monitor CSS, HTML, and JavaScript live in any web page... And there are additional add-ons for making Firebug an even more powerful tool.&lt;br /&gt;
&lt;br /&gt;
==== Firebug enhancements ====&lt;br /&gt;
You can enhance Firebug even further. See [[:dev:Firebug|Firebug]] for more information.&lt;br /&gt;
&lt;br /&gt;
=== Web Developer Toolbar ===&lt;br /&gt;
Another great tool for any web developer is the [[:dev:Web developer extension|Web developer extension]], another Firefox add-on. One very useful feature is the option to &#039;&#039;&#039;disable your browser&#039;s cache&#039;&#039;&#039; while working on your theme. That way you are sure you&#039;re always presented with your latest modifications and not with an older, cached version.&lt;br /&gt;
&lt;br /&gt;
Now also available for Google&#039;s Chrome browser: [http://www.sitepoint.com/blogs/2010/03/23/chrome-web-developer-toolbar/ &amp;quot;The Web Developer Toolbar Comes to Chrome&amp;quot;]&lt;br /&gt;
&lt;br /&gt;
=== Stylish ===&lt;br /&gt;
Modifications made with Firebug are lost when refreshing your page. If you want your CSS changes to be a bit more permanent, for example to try them with different pages of your Moodle installation, you can use another Firefox plugin: [https://addons.mozilla.org/en-US/firefox/addon/2108 Stylish]. That way you can change your site&#039;s CSS with a simple mouse click without having to change Moodle code.&lt;br /&gt;
&lt;br /&gt;
See [[:dev:Stylish|Stylish]] for detailed instructions and examples.&lt;br /&gt;
&lt;br /&gt;
==== Stylish-Custom ====&lt;br /&gt;
This is an [https://addons.mozilla.org/en-US/firefox/addon/12105/ custom additions] to the Stylish extension which brings back features from 0.5.9 and adds new features.&lt;br /&gt;
&lt;br /&gt;
== How do I check for cross-browser compatibility? ==&lt;br /&gt;
There are some tools (standalone and online) which can show you how your site looks in different browsers. See this [http://moodle.org/mod/forum/discuss.php?d=127746 forum discussion] for details.  See the new device detection settings in [[Theme settings]] which will allow you to create a theme for those &amp;quot;special&amp;quot; browsers.&lt;br /&gt;
&lt;br /&gt;
==How are the device types used in Moodle 2.4 ?==&lt;br /&gt;
If &amp;quot;Enabled device detection&amp;quot; has been turned on, Moodle 2.4 will automatically use the theme which has been set for the device in the [[Standard themes|Theme selector]] settings page.   It is also possible to add additional types to the Theme selector page by using the &amp;quot;device detection regular expressions&amp;quot; fields.   &lt;br /&gt;
&lt;br /&gt;
Site administrators can find these enable device detection settings in Site administration &amp;gt; Appearance &amp;gt;Themes &amp;gt; [[Theme settings]] .&lt;br /&gt;
&lt;br /&gt;
== Concrete examples for modifying Moodle themes ==&lt;br /&gt;
&amp;lt;p class=&amp;quot;note&amp;quot;&amp;gt;&lt;br /&gt;
The following examples were taken from the former &#039;&#039;Theme Scrapbook&#039;&#039;:&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;quot;The Moodle &#039;&#039;&#039;Theme Scrapbook&#039;&#039;&#039; is a collection of small how-to descriptions. You theme designers and Moodle users working with themes add your knowledge here to help new Moodle users with tips and tricks for their theme work. &lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Feel free to add to this list! Don&#039;t know how? Read our [[MoodleDocs:Guidelines_for_contributors|Guidelines for contributors]].&amp;quot;&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Changing things ===&lt;br /&gt;
&lt;br /&gt;
==== Colors ====&lt;br /&gt;
* [[:dev:Forcing the colour of the chat discussion pane (pop-up mode)]]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=142765 Changing background colour of a topic box]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=152357 How to change the colour of the popup event&#039;s header and background]&lt;br /&gt;
&lt;br /&gt;
==== Logo and icons ====&lt;br /&gt;
* [[:dev:Alternate Icon Set|Using an alternate icon set in Moodle]]&lt;br /&gt;
* [[Favicon|Change the favicon that shows in front of the web address]]&lt;br /&gt;
* [[Footer replacement|Replace the logo in the footer with your web address and/or or own logo]]&lt;br /&gt;
*[[:dev:Header logo|Replace the logo in the header]]&lt;br /&gt;
&lt;br /&gt;
==== Layout ====&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=136546 Overriding the $menu / $button variables] using PHP regular expressions in header.html&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=143411 Changing the view of course categories] - work in progress&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=145077 Sub categories and courses layout] - work in progress&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=151370 Tracker &#039;components&#039; list too small]&lt;br /&gt;
&lt;br /&gt;
=== Adding things ===&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=157935 How to add a different img-bullet to each category?]&lt;br /&gt;
&lt;br /&gt;
=== Hiding things ===&lt;br /&gt;
* Hiding an element with CSS is generally achieved using the [http://reference.sitepoint.com/css/display display: none;] property on the element.&lt;br /&gt;
* See [[:dev:Print style]] and [[:dev:Stylish#Print style for Database records]] for an example how to hide parts of a page not meant for printing.&lt;br /&gt;
&lt;br /&gt;
=== Moving things ===&lt;br /&gt;
* [[:dev:Center Forum Posts|Centre smaller forum posts on the page]]&lt;br /&gt;
* [[:dev:Footer positioning|Positioning the page footer]]&lt;br /&gt;
* [[:dev:Left-align quiz|Left align quiz questions and answers]]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=121847 Indentation for nested categories]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=128599 Positioning login and choose language field]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=145179 Match question type - position answers nearer to the questions]&lt;br /&gt;
* [[:dev:Stylish#Fixed admin menue with CSS]]&lt;br /&gt;
&lt;br /&gt;
=== Miscellaneous ===&lt;br /&gt;
* [[:dev:Fixed-width theme|Creating a fixed-width theme]]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=146763 Is there a way to fix oversized HTML Editor using CSS?]&lt;br /&gt;
* [[:dev:Category Design|Modifying the design of specific categories with CSS]]&lt;br /&gt;
&lt;br /&gt;
==How can I see theme changes when using the Windows Complete Installer package==&lt;br /&gt;
In the [http://download.moodle.org/windows/ Windows Complete Installer package], the eAccelerator in the XAMPP install can cause some issues with changes to your theme&#039;s CSS and HTML files from showing.&lt;br /&gt;
&lt;br /&gt;
Open the php.ini file inside of the server\php folder from your install in notepad and search for &amp;quot;eAccelerator&amp;quot; you should see a line that reads: &lt;br /&gt;
 extension=eaccelerator.dll&lt;br /&gt;
&lt;br /&gt;
Insert a semi-colon (turns the line into a comment) at the start of this line so it now reads: &lt;br /&gt;
 ;extension=eaccelerator.dll&lt;br /&gt;
&lt;br /&gt;
Restart the Moodle server using the &amp;quot;stop moodle&amp;quot; and then the &amp;quot;start moodle&amp;quot; programs in your server folder. You should now find that all of your changes to your CSS are reflected as soon as you save the file and refresh your browser cache (usually you can refresh your cache by pressing F5). This FAQ from a discussion at [http://moodle.org/mod/forum/discuss.php?d=151562#p663950 Deactivating caching with XAMPP installations]&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
&lt;br /&gt;
* Using Moodle [http://moodle.org/mod/forum/view.php?f=29 Themes forum]&lt;br /&gt;
* [[:dev:CSS FAQ]]&lt;br /&gt;
* [http://learn.open.ac.uk/mod/oublog/view.php?user=155976 &amp;quot;Understanding Moodle Themes&amp;quot;] - Blog post by [http://moodle.org/user/view.php?id=78896&amp;amp;course=5 Christopher Douce] (Open University)&lt;br /&gt;
* Using Moodle [http://moodle.org/mod/forum/discuss.php?d=149534 Testing 2.0. Use for modern vs old browsers] forum discussion&lt;br /&gt;
&lt;br /&gt;
[[Category:FAQ]]&lt;br /&gt;
[[de:Designs_FAQ]]&lt;/div&gt;</summary>
		<author><name>Rwthornton</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/2x/ca/index.php?title=Themes_FAQ&amp;diff=104479</id>
		<title>Themes FAQ</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/2x/ca/index.php?title=Themes_FAQ&amp;diff=104479"/>
		<updated>2013-05-16T22:27:18Z</updated>

		<summary type="html">&lt;p&gt;Rwthornton: /* What is the hierarchy of contexts for themes to override each other? */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Themes}}&lt;br /&gt;
==How do I install a new theme?==&lt;br /&gt;
&lt;br /&gt;
# Unzip the .zip file to an empty local directory.&lt;br /&gt;
# Upload folder to your web server to the /moodle/theme/[Theme Name]. (Replace [Theme Name] with the name of the theme you have downloaded.) Ensure the new theme folder and its contents are readable by the webserver.  Change Read and Write permissions (CHMOD) for the files and folder to 755 - Owner read/write/execute, Group read/execute, Everyone read/execute.  Incorrect permissions may prevent display of the newly installed theme.&lt;br /&gt;
# Choose your new theme from within Moodle via &#039;&#039;Administration &amp;gt; Appearance &amp;gt; Themes &amp;gt; Theme selector&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
=== How do I install a new theme when using cPanel? ===&lt;br /&gt;
&lt;br /&gt;
# Upload your new theme .zip file to your web server via cPanel. &lt;br /&gt;
# Then using cPanel install the new theme to your Moodle theme&#039;s folder.  The new theme will be installed into its own folder at /moodle/theme/[mytheme] (where [mytheme] is the name of your new theme.&lt;br /&gt;
# Ensure the new theme folder and its contents are readable by the webserver. If necessary  change Read and Write permissions (CHMOD) for the files and folder to 755 - Owner read/write/execute, Group read/execute, Everyone read/execute.  Incorrect permissions may prevent display of the newly installed theme.&lt;br /&gt;
# Choose your new theme from within Moodle via &#039;&#039;Administration &amp;gt; Appearance &amp;gt; Themes &amp;gt; Theme selector&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=== Why is the new theme I uploaded not showing up in Theme Selector? ===&lt;br /&gt;
&lt;br /&gt;
You probably forgot to do something correctly. Here are steps to create a &amp;quot;new&amp;quot; theme from an existing theme called &amp;quot;standard&amp;quot;. Bold show places you must change for the theme to appear.&lt;br /&gt;
#Copy folder theme/standard and call it theme/new&lt;br /&gt;
#In theme/new/lang/en folder,&lt;br /&gt;
##&#039;&#039;&#039;Renamed theme_standard.php to theme_new.php&#039;&#039;&#039;&lt;br /&gt;
#Opened theme/new/lang/en/new.php,  recommend you change 2 lines to read something like:&lt;br /&gt;
##$string[&#039;pluginname&#039;] = &#039;New theme - Martin D&#039;; &lt;br /&gt;
##$string[&#039;chooseredme&#039;] = &#039;New theme came from the Standard theme and is being changed by Martin D in 2011&#039;;&lt;br /&gt;
##Saved the file&lt;br /&gt;
#In theme/new/config.php&lt;br /&gt;
##Change &#039;&#039;&#039;$THEME-&amp;gt;NAME  = &#039;new&#039;&#039;&#039;&#039;;&lt;br /&gt;
#Went to &#039;&#039;Settings &amp;gt; Site Administration &amp;gt;Appearance &amp;gt; Theme settings&#039;&#039; &amp;gt; Theme designer mode (Checked)&lt;br /&gt;
#&#039;&#039;Settings &amp;gt; Site Administration &amp;gt;Appearance &amp;gt; Theme selector&#039;&#039;&lt;br /&gt;
##Clear theme caches&lt;br /&gt;
##Select theme&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;Tip:&#039;&#039; There could be a number of problems with the theme you uploaded, but one major problem reported in the Themes Forum all point to the way in which the theme is uploaded on certain servers. Using the cPanel method, as described in  the FAQ [[Themes_FAQ#How do I install a new theme when using cPanel?|How do I install a new theme when using cPanel?]] will, in most cases, cure the problem.&lt;br /&gt;
&lt;br /&gt;
== How do I control what themes show up where? ==&lt;br /&gt;
&lt;br /&gt;
You can control which themes show up in which contexts by a series of settings in &#039;&#039;Settings&amp;gt;Site Administration&amp;gt;Appearance&amp;gt;Themes&amp;gt;Theme settings&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
===How can I restrict the available themes to users and in courses?===&lt;br /&gt;
&lt;br /&gt;
In&#039;&#039; Settings&amp;gt;Site Administration&amp;gt;Appearance&amp;gt;Themes&amp;gt;Theme settings&#039;&#039;, add the themes you want them to use in the Theme list. These will then restrict the theme choice lists in pull down menus the contexts (Course, Category, User) where you allow them.&lt;br /&gt;
&lt;br /&gt;
===What is the hierarchy of contexts for themes to override each other?===&lt;br /&gt;
&lt;br /&gt;
There are five contexts in which themes appear and can be set: courses, category, session, user, and site, and that is the level of priority of appearance they have as well. You enable/disable these in [https://docs.moodle.org/24/en/Theme_settings Theme settings.] (It is possible to change this hierarchy in the config.php file - see [https://docs.moodle.org/24/en/Theme_settings#Change_default_hierarchy change default hierarchy] for how.) &lt;br /&gt;
&lt;br /&gt;
* Course: themes set at the course level trump (override) all other theme settings&lt;br /&gt;
* Category: themes set at the category level trump all themes except course level themes&lt;br /&gt;
* Session: session level themes set with the URL parameter theme=theme_name are trumped by course and category but trump lower levels&lt;br /&gt;
* User: themes set at the user profile level are trumped by course, category and session, and only trump the site theme&lt;br /&gt;
* Site: is trumped by any of the above themes&lt;br /&gt;
&lt;br /&gt;
Note on Session Themes: &lt;br /&gt;
&lt;br /&gt;
* It is important to note that Session level themes override the Site level theme ONLY for the user&#039;s current logged in session. When the user does log out however, they will then see the DEFAULT SITE theme, not the Session theme. &lt;br /&gt;
* You only have to set the theme once via the URL parameter and it will persist until the user logs out. &lt;br /&gt;
&lt;br /&gt;
Note on Guest Access:&lt;br /&gt;
&lt;br /&gt;
Courses with Guest access turned on will show a course level theme or category theme as usual. There is no user level theme for Guest since it has no profile or account in the usual sense.&lt;br /&gt;
&lt;br /&gt;
You can use a Session level theme for Guest which will persist not only during the &amp;quot;session&amp;quot; but between sessions, too, in the same browser (i.e. same cookie). This is different than the experience of Authenticated users, who get the default site them upon log out even if they had a session theme. This will be an issue if your theme changes and a Guest returns from the same browser with the previous theme set: they will get the old theme not the new one.  &lt;br /&gt;
&lt;br /&gt;
Note on Device Themes: the following issue discovered with device level themes http://tracker.moodle.org/browse/MDL-35148 overriding category and course level themes.&lt;br /&gt;
&lt;br /&gt;
==How do I create a custom theme?==&lt;br /&gt;
&lt;br /&gt;
See the developer documentation [[:dev:Theme development|Theme development]].&lt;br /&gt;
&lt;br /&gt;
==Can I assign a specific theme to a course?==&lt;br /&gt;
&lt;br /&gt;
Yes. In the course settings, use the &amp;quot;Force theme&amp;quot; dropdown box.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Is it possible to customise language strings per theme?==&lt;br /&gt;
Not by default, as when strings are customised, they are customised for the whole site. However, it is possible to make a new language  pack based on your main language and apply that pack to the course which has that theme. See this forum post for more information: https://moodle.org/mod/forum/discuss.php?d=220671&lt;br /&gt;
&lt;br /&gt;
==How can I get the links in  my custom menu to open in new windows?==&lt;br /&gt;
It is possible to create your own fly out menu via the custom menu block in Settings&amp;gt;Site administration&amp;gt;Appearance&amp;gt;Themes&amp;gt;Theme settings. Copy the examples given below the box. If you want the links to open in a new window, use the following code:&lt;br /&gt;
 Moodle|http://www.moodle.org&amp;quot; target=&amp;quot;_blank&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Where shall I put my custom CSS code? ==&lt;br /&gt;
&lt;br /&gt;
Note that the standard themes Afterburner, Arialist, Formal White, Fusion, Nonzero, Overlay, Sky High and Splash all offer the possibility to add custom CSS in their page settings via &#039;&#039;Settings&amp;gt;Appearance&amp;gt;Themes&amp;gt;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Failing this, instead of modifying the theme&#039;s CSS files you better put your own code in a separate CSS file and make your theme aware of that file by modifying its config.php file (be sure add your own CSS file as the last one in the list so that you will override all prior settings). See this posting for [http://moodle.org/mod/forum/discuss.php?d=128599#p564055 detailed instructions]. &lt;br /&gt;
&lt;br /&gt;
See also the instructions on creating your own theme mentioned above.&lt;br /&gt;
&lt;br /&gt;
==Will I lose my courses, language files, logo, etc. if I switch my theme?==&lt;br /&gt;
Switching themes only changes the appearance of your site, not the content within it. The logo is a part of the theme and will be lost when you switch.    &lt;br /&gt;
&lt;br /&gt;
Follow these instructions to [[:dev:Creating_a_custom_theme#Adding_a_Logo|add a logo]] to a theme.&lt;br /&gt;
:If you upgrade your Moodle site and tweaked an existing standard theme, you will lose your changes. Thus it is a good idea to create a custom theme which will not be changed when you upgrade.&lt;br /&gt;
&lt;br /&gt;
==I can&#039;t access theme files on the server. Can I still add a logo to a theme?==&lt;br /&gt;
Yes. You have two choices:&lt;br /&gt;
**Either upload your logo to another place publicly available online and then copy the image&#039;s URL to paste into the logo field of the theme page you are editing (such as Afterburner)&lt;br /&gt;
**Or add the main menu block to your front page; upload the logo via Main menu&amp;gt;Add a resource. Get its URL and paste it into the logo field of the theme page you are editing. You can safely then hide or delete the main menu block; the logo will still be there. (&#039;&#039;NOTE&#039;&#039; - your logo will appear in &#039;&#039;Navigation&amp;gt;Site pages&#039;&#039; as well.)&lt;br /&gt;
&lt;br /&gt;
== Are there tools which help me creating and editing themes? ==&lt;br /&gt;
&lt;br /&gt;
=== Clear Cache Button ===&lt;br /&gt;
This useful Firefox add-on let&#039;s you add a button to your tool bar for easily clearing your cache while working on your theme: https://addons.mozilla.org/de/firefox/addon/1801&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p class=&amp;quot;note&amp;quot;&amp;gt;Please note that the following tools are only for development. They only change the way &#039;&#039;you&#039;&#039; see your Moodle site, not the Moodle site itself. Any changes you make using these tools will not be visible to anyone else who uses your site. For this you will have to make those changes permanent by changing your theme&#039;s CSS files for example.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Firebug ===&lt;br /&gt;
The single most useful tool is the [[:dev:Firebug|Firebug]] add-on for the [[:dev:Firefox|Firefox]] web browser. Firebug integrates with Firefox to put a wealth of development tools at your fingertips while you browse. You can edit, debug, and monitor CSS, HTML, and JavaScript live in any web page... And there are additional add-ons for making Firebug an even more powerful tool.&lt;br /&gt;
&lt;br /&gt;
==== Firebug enhancements ====&lt;br /&gt;
You can enhance Firebug even further. See [[:dev:Firebug|Firebug]] for more information.&lt;br /&gt;
&lt;br /&gt;
=== Web Developer Toolbar ===&lt;br /&gt;
Another great tool for any web developer is the [[:dev:Web developer extension|Web developer extension]], another Firefox add-on. One very useful feature is the option to &#039;&#039;&#039;disable your browser&#039;s cache&#039;&#039;&#039; while working on your theme. That way you are sure you&#039;re always presented with your latest modifications and not with an older, cached version.&lt;br /&gt;
&lt;br /&gt;
Now also available for Google&#039;s Chrome browser: [http://www.sitepoint.com/blogs/2010/03/23/chrome-web-developer-toolbar/ &amp;quot;The Web Developer Toolbar Comes to Chrome&amp;quot;]&lt;br /&gt;
&lt;br /&gt;
=== Stylish ===&lt;br /&gt;
Modifications made with Firebug are lost when refreshing your page. If you want your CSS changes to be a bit more permanent, for example to try them with different pages of your Moodle installation, you can use another Firefox plugin: [https://addons.mozilla.org/en-US/firefox/addon/2108 Stylish]. That way you can change your site&#039;s CSS with a simple mouse click without having to change Moodle code.&lt;br /&gt;
&lt;br /&gt;
See [[:dev:Stylish|Stylish]] for detailed instructions and examples.&lt;br /&gt;
&lt;br /&gt;
==== Stylish-Custom ====&lt;br /&gt;
This is an [https://addons.mozilla.org/en-US/firefox/addon/12105/ custom additions] to the Stylish extension which brings back features from 0.5.9 and adds new features.&lt;br /&gt;
&lt;br /&gt;
== How do I check for cross-browser compatibility? ==&lt;br /&gt;
There are some tools (standalone and online) which can show you how your site looks in different browsers. See this [http://moodle.org/mod/forum/discuss.php?d=127746 forum discussion] for details.  See the new device detection settings in [[Theme settings]] which will allow you to create a theme for those &amp;quot;special&amp;quot; browsers.&lt;br /&gt;
&lt;br /&gt;
==How are the device types used in Moodle 2.4 ?==&lt;br /&gt;
If &amp;quot;Enabled device detection&amp;quot; has been turned on, Moodle 2.4 will automatically use the theme which has been set for the device in the [[Standard themes|Theme selector]] settings page.   It is also possible to add additional types to the Theme selector page by using the &amp;quot;device detection regular expressions&amp;quot; fields.   &lt;br /&gt;
&lt;br /&gt;
Site administrators can find these enable device detection settings in Site administration &amp;gt; Appearance &amp;gt;Themes &amp;gt; [[Theme settings]] .&lt;br /&gt;
&lt;br /&gt;
== Concrete examples for modifying Moodle themes ==&lt;br /&gt;
&amp;lt;p class=&amp;quot;note&amp;quot;&amp;gt;&lt;br /&gt;
The following examples were taken from the former &#039;&#039;Theme Scrapbook&#039;&#039;:&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;quot;The Moodle &#039;&#039;&#039;Theme Scrapbook&#039;&#039;&#039; is a collection of small how-to descriptions. You theme designers and Moodle users working with themes add your knowledge here to help new Moodle users with tips and tricks for their theme work. &lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Feel free to add to this list! Don&#039;t know how? Read our [[MoodleDocs:Guidelines_for_contributors|Guidelines for contributors]].&amp;quot;&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Changing things ===&lt;br /&gt;
&lt;br /&gt;
==== Colors ====&lt;br /&gt;
* [[:dev:Forcing the colour of the chat discussion pane (pop-up mode)]]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=142765 Changing background colour of a topic box]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=152357 How to change the colour of the popup event&#039;s header and background]&lt;br /&gt;
&lt;br /&gt;
==== Logo and icons ====&lt;br /&gt;
* [[:dev:Alternate Icon Set|Using an alternate icon set in Moodle]]&lt;br /&gt;
* [[Favicon|Change the favicon that shows in front of the web address]]&lt;br /&gt;
* [[Footer replacement|Replace the logo in the footer with your web address and/or or own logo]]&lt;br /&gt;
*[[:dev:Header logo|Replace the logo in the header]]&lt;br /&gt;
&lt;br /&gt;
==== Layout ====&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=136546 Overriding the $menu / $button variables] using PHP regular expressions in header.html&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=143411 Changing the view of course categories] - work in progress&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=145077 Sub categories and courses layout] - work in progress&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=151370 Tracker &#039;components&#039; list too small]&lt;br /&gt;
&lt;br /&gt;
=== Adding things ===&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=157935 How to add a different img-bullet to each category?]&lt;br /&gt;
&lt;br /&gt;
=== Hiding things ===&lt;br /&gt;
* Hiding an element with CSS is generally achieved using the [http://reference.sitepoint.com/css/display display: none;] property on the element.&lt;br /&gt;
* See [[:dev:Print style]] and [[:dev:Stylish#Print style for Database records]] for an example how to hide parts of a page not meant for printing.&lt;br /&gt;
&lt;br /&gt;
=== Moving things ===&lt;br /&gt;
* [[:dev:Center Forum Posts|Centre smaller forum posts on the page]]&lt;br /&gt;
* [[:dev:Footer positioning|Positioning the page footer]]&lt;br /&gt;
* [[:dev:Left-align quiz|Left align quiz questions and answers]]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=121847 Indentation for nested categories]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=128599 Positioning login and choose language field]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=145179 Match question type - position answers nearer to the questions]&lt;br /&gt;
* [[:dev:Stylish#Fixed admin menue with CSS]]&lt;br /&gt;
&lt;br /&gt;
=== Miscellaneous ===&lt;br /&gt;
* [[:dev:Fixed-width theme|Creating a fixed-width theme]]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=146763 Is there a way to fix oversized HTML Editor using CSS?]&lt;br /&gt;
* [[:dev:Category Design|Modifying the design of specific categories with CSS]]&lt;br /&gt;
&lt;br /&gt;
==How can I see theme changes when using the Windows Complete Installer package==&lt;br /&gt;
In the [http://download.moodle.org/windows/ Windows Complete Installer package], the eAccelerator in the XAMPP install can cause some issues with changes to your theme&#039;s CSS and HTML files from showing.&lt;br /&gt;
&lt;br /&gt;
Open the php.ini file inside of the server\php folder from your install in notepad and search for &amp;quot;eAccelerator&amp;quot; you should see a line that reads: &lt;br /&gt;
 extension=eaccelerator.dll&lt;br /&gt;
&lt;br /&gt;
Insert a semi-colon (turns the line into a comment) at the start of this line so it now reads: &lt;br /&gt;
 ;extension=eaccelerator.dll&lt;br /&gt;
&lt;br /&gt;
Restart the Moodle server using the &amp;quot;stop moodle&amp;quot; and then the &amp;quot;start moodle&amp;quot; programs in your server folder. You should now find that all of your changes to your CSS are reflected as soon as you save the file and refresh your browser cache (usually you can refresh your cache by pressing F5). This FAQ from a discussion at [http://moodle.org/mod/forum/discuss.php?d=151562#p663950 Deactivating caching with XAMPP installations]&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
&lt;br /&gt;
* Using Moodle [http://moodle.org/mod/forum/view.php?f=29 Themes forum]&lt;br /&gt;
* [[:dev:CSS FAQ]]&lt;br /&gt;
* [http://learn.open.ac.uk/mod/oublog/view.php?user=155976 &amp;quot;Understanding Moodle Themes&amp;quot;] - Blog post by [http://moodle.org/user/view.php?id=78896&amp;amp;course=5 Christopher Douce] (Open University)&lt;br /&gt;
* Using Moodle [http://moodle.org/mod/forum/discuss.php?d=149534 Testing 2.0. Use for modern vs old browsers] forum discussion&lt;br /&gt;
&lt;br /&gt;
[[Category:FAQ]]&lt;br /&gt;
[[de:Designs_FAQ]]&lt;/div&gt;</summary>
		<author><name>Rwthornton</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/2x/ca/index.php?title=Themes_FAQ&amp;diff=104478</id>
		<title>Themes FAQ</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/2x/ca/index.php?title=Themes_FAQ&amp;diff=104478"/>
		<updated>2013-05-16T21:28:52Z</updated>

		<summary type="html">&lt;p&gt;Rwthornton: /* What is the hierarchy of contexts for themes to override each other? */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Themes}}&lt;br /&gt;
==How do I install a new theme?==&lt;br /&gt;
&lt;br /&gt;
# Unzip the .zip file to an empty local directory.&lt;br /&gt;
# Upload folder to your web server to the /moodle/theme/[Theme Name]. (Replace [Theme Name] with the name of the theme you have downloaded.) Ensure the new theme folder and its contents are readable by the webserver.  Change Read and Write permissions (CHMOD) for the files and folder to 755 - Owner read/write/execute, Group read/execute, Everyone read/execute.  Incorrect permissions may prevent display of the newly installed theme.&lt;br /&gt;
# Choose your new theme from within Moodle via &#039;&#039;Administration &amp;gt; Appearance &amp;gt; Themes &amp;gt; Theme selector&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
=== How do I install a new theme when using cPanel? ===&lt;br /&gt;
&lt;br /&gt;
# Upload your new theme .zip file to your web server via cPanel. &lt;br /&gt;
# Then using cPanel install the new theme to your Moodle theme&#039;s folder.  The new theme will be installed into its own folder at /moodle/theme/[mytheme] (where [mytheme] is the name of your new theme.&lt;br /&gt;
# Ensure the new theme folder and its contents are readable by the webserver. If necessary  change Read and Write permissions (CHMOD) for the files and folder to 755 - Owner read/write/execute, Group read/execute, Everyone read/execute.  Incorrect permissions may prevent display of the newly installed theme.&lt;br /&gt;
# Choose your new theme from within Moodle via &#039;&#039;Administration &amp;gt; Appearance &amp;gt; Themes &amp;gt; Theme selector&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=== Why is the new theme I uploaded not showing up in Theme Selector? ===&lt;br /&gt;
&lt;br /&gt;
You probably forgot to do something correctly. Here are steps to create a &amp;quot;new&amp;quot; theme from an existing theme called &amp;quot;standard&amp;quot;. Bold show places you must change for the theme to appear.&lt;br /&gt;
#Copy folder theme/standard and call it theme/new&lt;br /&gt;
#In theme/new/lang/en folder,&lt;br /&gt;
##&#039;&#039;&#039;Renamed theme_standard.php to theme_new.php&#039;&#039;&#039;&lt;br /&gt;
#Opened theme/new/lang/en/new.php,  recommend you change 2 lines to read something like:&lt;br /&gt;
##$string[&#039;pluginname&#039;] = &#039;New theme - Martin D&#039;; &lt;br /&gt;
##$string[&#039;chooseredme&#039;] = &#039;New theme came from the Standard theme and is being changed by Martin D in 2011&#039;;&lt;br /&gt;
##Saved the file&lt;br /&gt;
#In theme/new/config.php&lt;br /&gt;
##Change &#039;&#039;&#039;$THEME-&amp;gt;NAME  = &#039;new&#039;&#039;&#039;&#039;;&lt;br /&gt;
#Went to &#039;&#039;Settings &amp;gt; Site Administration &amp;gt;Appearance &amp;gt; Theme settings&#039;&#039; &amp;gt; Theme designer mode (Checked)&lt;br /&gt;
#&#039;&#039;Settings &amp;gt; Site Administration &amp;gt;Appearance &amp;gt; Theme selector&#039;&#039;&lt;br /&gt;
##Clear theme caches&lt;br /&gt;
##Select theme&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;Tip:&#039;&#039; There could be a number of problems with the theme you uploaded, but one major problem reported in the Themes Forum all point to the way in which the theme is uploaded on certain servers. Using the cPanel method, as described in  the FAQ [[Themes_FAQ#How do I install a new theme when using cPanel?|How do I install a new theme when using cPanel?]] will, in most cases, cure the problem.&lt;br /&gt;
&lt;br /&gt;
== How do I control what themes show up where? ==&lt;br /&gt;
&lt;br /&gt;
You can control which themes show up in which contexts by a series of settings in &#039;&#039;Settings&amp;gt;Site Administration&amp;gt;Appearance&amp;gt;Themes&amp;gt;Theme settings&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
===How can I restrict the available themes to users and in courses?===&lt;br /&gt;
&lt;br /&gt;
In&#039;&#039; Settings&amp;gt;Site Administration&amp;gt;Appearance&amp;gt;Themes&amp;gt;Theme settings&#039;&#039;, add the themes you want them to use in the Theme list. These will then restrict the theme choice lists in pull down menus the contexts (Course, Category, User) where you allow them.&lt;br /&gt;
&lt;br /&gt;
===What is the hierarchy of contexts for themes to override each other?===&lt;br /&gt;
&lt;br /&gt;
There are five contexts in which themes appear and can be set: courses, category, session, user, and site, and that is the level of priority of appearance they have as well. You enable/disable these in [https://docs.moodle.org/24/en/Theme_settings Theme settings.] (It is possible to change this hierarchy in the config.php file - see [https://docs.moodle.org/24/en/Theme_settings#Change_default_hierarchy change default hierarchy] for how.) &lt;br /&gt;
&lt;br /&gt;
* Course: themes set at the course level trump (override) all other theme settings&lt;br /&gt;
* Category: themes set at the category level trump all themes except course level themes&lt;br /&gt;
* Session: session level themes set with the URL parameter theme=theme_name are trumped by course and category but trump lower levels&lt;br /&gt;
* User: themes set at the user profile level are trumped by course, category and session, and only trump the site theme&lt;br /&gt;
* Site: is trumped by any of the above themes&lt;br /&gt;
&lt;br /&gt;
Note on Session Themes: &lt;br /&gt;
&lt;br /&gt;
* It is important to note that Session level themes override the Site level theme ONLY for the user&#039;s current logged in session. When the user does log out however, they will then see the DEFAULT SITE theme, not the Session theme. &lt;br /&gt;
* You only have to set the theme once via the URL parameter and it will persist until the user logs out. &lt;br /&gt;
&lt;br /&gt;
Note on Device Themes: the following issue discovered with device level themes http://tracker.moodle.org/browse/MDL-35148 overriding category and course level themes.&lt;br /&gt;
&lt;br /&gt;
==How do I create a custom theme?==&lt;br /&gt;
&lt;br /&gt;
See the developer documentation [[:dev:Theme development|Theme development]].&lt;br /&gt;
&lt;br /&gt;
==Can I assign a specific theme to a course?==&lt;br /&gt;
&lt;br /&gt;
Yes. In the course settings, use the &amp;quot;Force theme&amp;quot; dropdown box.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Is it possible to customise language strings per theme?==&lt;br /&gt;
Not by default, as when strings are customised, they are customised for the whole site. However, it is possible to make a new language  pack based on your main language and apply that pack to the course which has that theme. See this forum post for more information: https://moodle.org/mod/forum/discuss.php?d=220671&lt;br /&gt;
&lt;br /&gt;
==How can I get the links in  my custom menu to open in new windows?==&lt;br /&gt;
It is possible to create your own fly out menu via the custom menu block in Settings&amp;gt;Site administration&amp;gt;Appearance&amp;gt;Themes&amp;gt;Theme settings. Copy the examples given below the box. If you want the links to open in a new window, use the following code:&lt;br /&gt;
 Moodle|http://www.moodle.org&amp;quot; target=&amp;quot;_blank&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Where shall I put my custom CSS code? ==&lt;br /&gt;
&lt;br /&gt;
Note that the standard themes Afterburner, Arialist, Formal White, Fusion, Nonzero, Overlay, Sky High and Splash all offer the possibility to add custom CSS in their page settings via &#039;&#039;Settings&amp;gt;Appearance&amp;gt;Themes&amp;gt;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Failing this, instead of modifying the theme&#039;s CSS files you better put your own code in a separate CSS file and make your theme aware of that file by modifying its config.php file (be sure add your own CSS file as the last one in the list so that you will override all prior settings). See this posting for [http://moodle.org/mod/forum/discuss.php?d=128599#p564055 detailed instructions]. &lt;br /&gt;
&lt;br /&gt;
See also the instructions on creating your own theme mentioned above.&lt;br /&gt;
&lt;br /&gt;
==Will I lose my courses, language files, logo, etc. if I switch my theme?==&lt;br /&gt;
Switching themes only changes the appearance of your site, not the content within it. The logo is a part of the theme and will be lost when you switch.    &lt;br /&gt;
&lt;br /&gt;
Follow these instructions to [[:dev:Creating_a_custom_theme#Adding_a_Logo|add a logo]] to a theme.&lt;br /&gt;
:If you upgrade your Moodle site and tweaked an existing standard theme, you will lose your changes. Thus it is a good idea to create a custom theme which will not be changed when you upgrade.&lt;br /&gt;
&lt;br /&gt;
==I can&#039;t access theme files on the server. Can I still add a logo to a theme?==&lt;br /&gt;
Yes. You have two choices:&lt;br /&gt;
**Either upload your logo to another place publicly available online and then copy the image&#039;s URL to paste into the logo field of the theme page you are editing (such as Afterburner)&lt;br /&gt;
**Or add the main menu block to your front page; upload the logo via Main menu&amp;gt;Add a resource. Get its URL and paste it into the logo field of the theme page you are editing. You can safely then hide or delete the main menu block; the logo will still be there. (&#039;&#039;NOTE&#039;&#039; - your logo will appear in &#039;&#039;Navigation&amp;gt;Site pages&#039;&#039; as well.)&lt;br /&gt;
&lt;br /&gt;
== Are there tools which help me creating and editing themes? ==&lt;br /&gt;
&lt;br /&gt;
=== Clear Cache Button ===&lt;br /&gt;
This useful Firefox add-on let&#039;s you add a button to your tool bar for easily clearing your cache while working on your theme: https://addons.mozilla.org/de/firefox/addon/1801&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p class=&amp;quot;note&amp;quot;&amp;gt;Please note that the following tools are only for development. They only change the way &#039;&#039;you&#039;&#039; see your Moodle site, not the Moodle site itself. Any changes you make using these tools will not be visible to anyone else who uses your site. For this you will have to make those changes permanent by changing your theme&#039;s CSS files for example.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Firebug ===&lt;br /&gt;
The single most useful tool is the [[:dev:Firebug|Firebug]] add-on for the [[:dev:Firefox|Firefox]] web browser. Firebug integrates with Firefox to put a wealth of development tools at your fingertips while you browse. You can edit, debug, and monitor CSS, HTML, and JavaScript live in any web page... And there are additional add-ons for making Firebug an even more powerful tool.&lt;br /&gt;
&lt;br /&gt;
==== Firebug enhancements ====&lt;br /&gt;
You can enhance Firebug even further. See [[:dev:Firebug|Firebug]] for more information.&lt;br /&gt;
&lt;br /&gt;
=== Web Developer Toolbar ===&lt;br /&gt;
Another great tool for any web developer is the [[:dev:Web developer extension|Web developer extension]], another Firefox add-on. One very useful feature is the option to &#039;&#039;&#039;disable your browser&#039;s cache&#039;&#039;&#039; while working on your theme. That way you are sure you&#039;re always presented with your latest modifications and not with an older, cached version.&lt;br /&gt;
&lt;br /&gt;
Now also available for Google&#039;s Chrome browser: [http://www.sitepoint.com/blogs/2010/03/23/chrome-web-developer-toolbar/ &amp;quot;The Web Developer Toolbar Comes to Chrome&amp;quot;]&lt;br /&gt;
&lt;br /&gt;
=== Stylish ===&lt;br /&gt;
Modifications made with Firebug are lost when refreshing your page. If you want your CSS changes to be a bit more permanent, for example to try them with different pages of your Moodle installation, you can use another Firefox plugin: [https://addons.mozilla.org/en-US/firefox/addon/2108 Stylish]. That way you can change your site&#039;s CSS with a simple mouse click without having to change Moodle code.&lt;br /&gt;
&lt;br /&gt;
See [[:dev:Stylish|Stylish]] for detailed instructions and examples.&lt;br /&gt;
&lt;br /&gt;
==== Stylish-Custom ====&lt;br /&gt;
This is an [https://addons.mozilla.org/en-US/firefox/addon/12105/ custom additions] to the Stylish extension which brings back features from 0.5.9 and adds new features.&lt;br /&gt;
&lt;br /&gt;
== How do I check for cross-browser compatibility? ==&lt;br /&gt;
There are some tools (standalone and online) which can show you how your site looks in different browsers. See this [http://moodle.org/mod/forum/discuss.php?d=127746 forum discussion] for details.  See the new device detection settings in [[Theme settings]] which will allow you to create a theme for those &amp;quot;special&amp;quot; browsers.&lt;br /&gt;
&lt;br /&gt;
==How are the device types used in Moodle 2.4 ?==&lt;br /&gt;
If &amp;quot;Enabled device detection&amp;quot; has been turned on, Moodle 2.4 will automatically use the theme which has been set for the device in the [[Standard themes|Theme selector]] settings page.   It is also possible to add additional types to the Theme selector page by using the &amp;quot;device detection regular expressions&amp;quot; fields.   &lt;br /&gt;
&lt;br /&gt;
Site administrators can find these enable device detection settings in Site administration &amp;gt; Appearance &amp;gt;Themes &amp;gt; [[Theme settings]] .&lt;br /&gt;
&lt;br /&gt;
== Concrete examples for modifying Moodle themes ==&lt;br /&gt;
&amp;lt;p class=&amp;quot;note&amp;quot;&amp;gt;&lt;br /&gt;
The following examples were taken from the former &#039;&#039;Theme Scrapbook&#039;&#039;:&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;quot;The Moodle &#039;&#039;&#039;Theme Scrapbook&#039;&#039;&#039; is a collection of small how-to descriptions. You theme designers and Moodle users working with themes add your knowledge here to help new Moodle users with tips and tricks for their theme work. &lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Feel free to add to this list! Don&#039;t know how? Read our [[MoodleDocs:Guidelines_for_contributors|Guidelines for contributors]].&amp;quot;&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Changing things ===&lt;br /&gt;
&lt;br /&gt;
==== Colors ====&lt;br /&gt;
* [[:dev:Forcing the colour of the chat discussion pane (pop-up mode)]]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=142765 Changing background colour of a topic box]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=152357 How to change the colour of the popup event&#039;s header and background]&lt;br /&gt;
&lt;br /&gt;
==== Logo and icons ====&lt;br /&gt;
* [[:dev:Alternate Icon Set|Using an alternate icon set in Moodle]]&lt;br /&gt;
* [[Favicon|Change the favicon that shows in front of the web address]]&lt;br /&gt;
* [[Footer replacement|Replace the logo in the footer with your web address and/or or own logo]]&lt;br /&gt;
*[[:dev:Header logo|Replace the logo in the header]]&lt;br /&gt;
&lt;br /&gt;
==== Layout ====&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=136546 Overriding the $menu / $button variables] using PHP regular expressions in header.html&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=143411 Changing the view of course categories] - work in progress&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=145077 Sub categories and courses layout] - work in progress&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=151370 Tracker &#039;components&#039; list too small]&lt;br /&gt;
&lt;br /&gt;
=== Adding things ===&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=157935 How to add a different img-bullet to each category?]&lt;br /&gt;
&lt;br /&gt;
=== Hiding things ===&lt;br /&gt;
* Hiding an element with CSS is generally achieved using the [http://reference.sitepoint.com/css/display display: none;] property on the element.&lt;br /&gt;
* See [[:dev:Print style]] and [[:dev:Stylish#Print style for Database records]] for an example how to hide parts of a page not meant for printing.&lt;br /&gt;
&lt;br /&gt;
=== Moving things ===&lt;br /&gt;
* [[:dev:Center Forum Posts|Centre smaller forum posts on the page]]&lt;br /&gt;
* [[:dev:Footer positioning|Positioning the page footer]]&lt;br /&gt;
* [[:dev:Left-align quiz|Left align quiz questions and answers]]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=121847 Indentation for nested categories]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=128599 Positioning login and choose language field]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=145179 Match question type - position answers nearer to the questions]&lt;br /&gt;
* [[:dev:Stylish#Fixed admin menue with CSS]]&lt;br /&gt;
&lt;br /&gt;
=== Miscellaneous ===&lt;br /&gt;
* [[:dev:Fixed-width theme|Creating a fixed-width theme]]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=146763 Is there a way to fix oversized HTML Editor using CSS?]&lt;br /&gt;
* [[:dev:Category Design|Modifying the design of specific categories with CSS]]&lt;br /&gt;
&lt;br /&gt;
==How can I see theme changes when using the Windows Complete Installer package==&lt;br /&gt;
In the [http://download.moodle.org/windows/ Windows Complete Installer package], the eAccelerator in the XAMPP install can cause some issues with changes to your theme&#039;s CSS and HTML files from showing.&lt;br /&gt;
&lt;br /&gt;
Open the php.ini file inside of the server\php folder from your install in notepad and search for &amp;quot;eAccelerator&amp;quot; you should see a line that reads: &lt;br /&gt;
 extension=eaccelerator.dll&lt;br /&gt;
&lt;br /&gt;
Insert a semi-colon (turns the line into a comment) at the start of this line so it now reads: &lt;br /&gt;
 ;extension=eaccelerator.dll&lt;br /&gt;
&lt;br /&gt;
Restart the Moodle server using the &amp;quot;stop moodle&amp;quot; and then the &amp;quot;start moodle&amp;quot; programs in your server folder. You should now find that all of your changes to your CSS are reflected as soon as you save the file and refresh your browser cache (usually you can refresh your cache by pressing F5). This FAQ from a discussion at [http://moodle.org/mod/forum/discuss.php?d=151562#p663950 Deactivating caching with XAMPP installations]&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
&lt;br /&gt;
* Using Moodle [http://moodle.org/mod/forum/view.php?f=29 Themes forum]&lt;br /&gt;
* [[:dev:CSS FAQ]]&lt;br /&gt;
* [http://learn.open.ac.uk/mod/oublog/view.php?user=155976 &amp;quot;Understanding Moodle Themes&amp;quot;] - Blog post by [http://moodle.org/user/view.php?id=78896&amp;amp;course=5 Christopher Douce] (Open University)&lt;br /&gt;
* Using Moodle [http://moodle.org/mod/forum/discuss.php?d=149534 Testing 2.0. Use for modern vs old browsers] forum discussion&lt;br /&gt;
&lt;br /&gt;
[[Category:FAQ]]&lt;br /&gt;
[[de:Designs_FAQ]]&lt;/div&gt;</summary>
		<author><name>Rwthornton</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/2x/ca/index.php?title=Themes_FAQ&amp;diff=104477</id>
		<title>Themes FAQ</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/2x/ca/index.php?title=Themes_FAQ&amp;diff=104477"/>
		<updated>2013-05-16T21:27:58Z</updated>

		<summary type="html">&lt;p&gt;Rwthornton: /* What is the hierarchy of contexts for themes to override each other? */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Themes}}&lt;br /&gt;
==How do I install a new theme?==&lt;br /&gt;
&lt;br /&gt;
# Unzip the .zip file to an empty local directory.&lt;br /&gt;
# Upload folder to your web server to the /moodle/theme/[Theme Name]. (Replace [Theme Name] with the name of the theme you have downloaded.) Ensure the new theme folder and its contents are readable by the webserver.  Change Read and Write permissions (CHMOD) for the files and folder to 755 - Owner read/write/execute, Group read/execute, Everyone read/execute.  Incorrect permissions may prevent display of the newly installed theme.&lt;br /&gt;
# Choose your new theme from within Moodle via &#039;&#039;Administration &amp;gt; Appearance &amp;gt; Themes &amp;gt; Theme selector&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
=== How do I install a new theme when using cPanel? ===&lt;br /&gt;
&lt;br /&gt;
# Upload your new theme .zip file to your web server via cPanel. &lt;br /&gt;
# Then using cPanel install the new theme to your Moodle theme&#039;s folder.  The new theme will be installed into its own folder at /moodle/theme/[mytheme] (where [mytheme] is the name of your new theme.&lt;br /&gt;
# Ensure the new theme folder and its contents are readable by the webserver. If necessary  change Read and Write permissions (CHMOD) for the files and folder to 755 - Owner read/write/execute, Group read/execute, Everyone read/execute.  Incorrect permissions may prevent display of the newly installed theme.&lt;br /&gt;
# Choose your new theme from within Moodle via &#039;&#039;Administration &amp;gt; Appearance &amp;gt; Themes &amp;gt; Theme selector&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=== Why is the new theme I uploaded not showing up in Theme Selector? ===&lt;br /&gt;
&lt;br /&gt;
You probably forgot to do something correctly. Here are steps to create a &amp;quot;new&amp;quot; theme from an existing theme called &amp;quot;standard&amp;quot;. Bold show places you must change for the theme to appear.&lt;br /&gt;
#Copy folder theme/standard and call it theme/new&lt;br /&gt;
#In theme/new/lang/en folder,&lt;br /&gt;
##&#039;&#039;&#039;Renamed theme_standard.php to theme_new.php&#039;&#039;&#039;&lt;br /&gt;
#Opened theme/new/lang/en/new.php,  recommend you change 2 lines to read something like:&lt;br /&gt;
##$string[&#039;pluginname&#039;] = &#039;New theme - Martin D&#039;; &lt;br /&gt;
##$string[&#039;chooseredme&#039;] = &#039;New theme came from the Standard theme and is being changed by Martin D in 2011&#039;;&lt;br /&gt;
##Saved the file&lt;br /&gt;
#In theme/new/config.php&lt;br /&gt;
##Change &#039;&#039;&#039;$THEME-&amp;gt;NAME  = &#039;new&#039;&#039;&#039;&#039;;&lt;br /&gt;
#Went to &#039;&#039;Settings &amp;gt; Site Administration &amp;gt;Appearance &amp;gt; Theme settings&#039;&#039; &amp;gt; Theme designer mode (Checked)&lt;br /&gt;
#&#039;&#039;Settings &amp;gt; Site Administration &amp;gt;Appearance &amp;gt; Theme selector&#039;&#039;&lt;br /&gt;
##Clear theme caches&lt;br /&gt;
##Select theme&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;Tip:&#039;&#039; There could be a number of problems with the theme you uploaded, but one major problem reported in the Themes Forum all point to the way in which the theme is uploaded on certain servers. Using the cPanel method, as described in  the FAQ [[Themes_FAQ#How do I install a new theme when using cPanel?|How do I install a new theme when using cPanel?]] will, in most cases, cure the problem.&lt;br /&gt;
&lt;br /&gt;
== How do I control what themes show up where? ==&lt;br /&gt;
&lt;br /&gt;
You can control which themes show up in which contexts by a series of settings in &#039;&#039;Settings&amp;gt;Site Administration&amp;gt;Appearance&amp;gt;Themes&amp;gt;Theme settings&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
===How can I restrict the available themes to users and in courses?===&lt;br /&gt;
&lt;br /&gt;
In&#039;&#039; Settings&amp;gt;Site Administration&amp;gt;Appearance&amp;gt;Themes&amp;gt;Theme settings&#039;&#039;, add the themes you want them to use in the Theme list. These will then restrict the theme choice lists in pull down menus the contexts (Course, Category, User) where you allow them.&lt;br /&gt;
&lt;br /&gt;
===What is the hierarchy of contexts for themes to override each other?===&lt;br /&gt;
&lt;br /&gt;
There are five contexts in which themes appear and can be set: courses, category, session, user, and site, and that is the level of priority of appearance they have as well. You enable course, category, and user in [https://docs.moodle.org/24/en/Theme_settings Theme settings.] (It is possible to change this hierarchy in the config.php file - see [https://docs.moodle.org/24/en/Theme_settings#Change_default_hierarchy change default hierarchy] for how.) &lt;br /&gt;
&lt;br /&gt;
* Course: themes set at the course level trump (override) all other theme settings&lt;br /&gt;
* Category: themes set at the category level trump all themes except course level themes&lt;br /&gt;
* Session: session level themes set with the URL parameter theme=theme_name are trumped by course and category but trump lower levels&lt;br /&gt;
* User: themes set at the user profile level are trumped by course, category and session, and only trump the site theme&lt;br /&gt;
* Site: is trumped by any of the above themes&lt;br /&gt;
&lt;br /&gt;
Note on Session Themes: &lt;br /&gt;
&lt;br /&gt;
* It is important to note that Session level themes override the Site level theme ONLY for the user&#039;s current logged in session. When the user does log out however, they will then see the DEFAULT SITE theme, not the Session theme. &lt;br /&gt;
* You only have to set the theme once via the URL parameter and it will persist until the user logs out. &lt;br /&gt;
&lt;br /&gt;
Note on Device Themes: the following issue discovered with device level themes http://tracker.moodle.org/browse/MDL-35148 overriding category and course level themes.&lt;br /&gt;
&lt;br /&gt;
==How do I create a custom theme?==&lt;br /&gt;
&lt;br /&gt;
See the developer documentation [[:dev:Theme development|Theme development]].&lt;br /&gt;
&lt;br /&gt;
==Can I assign a specific theme to a course?==&lt;br /&gt;
&lt;br /&gt;
Yes. In the course settings, use the &amp;quot;Force theme&amp;quot; dropdown box.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Is it possible to customise language strings per theme?==&lt;br /&gt;
Not by default, as when strings are customised, they are customised for the whole site. However, it is possible to make a new language  pack based on your main language and apply that pack to the course which has that theme. See this forum post for more information: https://moodle.org/mod/forum/discuss.php?d=220671&lt;br /&gt;
&lt;br /&gt;
==How can I get the links in  my custom menu to open in new windows?==&lt;br /&gt;
It is possible to create your own fly out menu via the custom menu block in Settings&amp;gt;Site administration&amp;gt;Appearance&amp;gt;Themes&amp;gt;Theme settings. Copy the examples given below the box. If you want the links to open in a new window, use the following code:&lt;br /&gt;
 Moodle|http://www.moodle.org&amp;quot; target=&amp;quot;_blank&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Where shall I put my custom CSS code? ==&lt;br /&gt;
&lt;br /&gt;
Note that the standard themes Afterburner, Arialist, Formal White, Fusion, Nonzero, Overlay, Sky High and Splash all offer the possibility to add custom CSS in their page settings via &#039;&#039;Settings&amp;gt;Appearance&amp;gt;Themes&amp;gt;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Failing this, instead of modifying the theme&#039;s CSS files you better put your own code in a separate CSS file and make your theme aware of that file by modifying its config.php file (be sure add your own CSS file as the last one in the list so that you will override all prior settings). See this posting for [http://moodle.org/mod/forum/discuss.php?d=128599#p564055 detailed instructions]. &lt;br /&gt;
&lt;br /&gt;
See also the instructions on creating your own theme mentioned above.&lt;br /&gt;
&lt;br /&gt;
==Will I lose my courses, language files, logo, etc. if I switch my theme?==&lt;br /&gt;
Switching themes only changes the appearance of your site, not the content within it. The logo is a part of the theme and will be lost when you switch.    &lt;br /&gt;
&lt;br /&gt;
Follow these instructions to [[:dev:Creating_a_custom_theme#Adding_a_Logo|add a logo]] to a theme.&lt;br /&gt;
:If you upgrade your Moodle site and tweaked an existing standard theme, you will lose your changes. Thus it is a good idea to create a custom theme which will not be changed when you upgrade.&lt;br /&gt;
&lt;br /&gt;
==I can&#039;t access theme files on the server. Can I still add a logo to a theme?==&lt;br /&gt;
Yes. You have two choices:&lt;br /&gt;
**Either upload your logo to another place publicly available online and then copy the image&#039;s URL to paste into the logo field of the theme page you are editing (such as Afterburner)&lt;br /&gt;
**Or add the main menu block to your front page; upload the logo via Main menu&amp;gt;Add a resource. Get its URL and paste it into the logo field of the theme page you are editing. You can safely then hide or delete the main menu block; the logo will still be there. (&#039;&#039;NOTE&#039;&#039; - your logo will appear in &#039;&#039;Navigation&amp;gt;Site pages&#039;&#039; as well.)&lt;br /&gt;
&lt;br /&gt;
== Are there tools which help me creating and editing themes? ==&lt;br /&gt;
&lt;br /&gt;
=== Clear Cache Button ===&lt;br /&gt;
This useful Firefox add-on let&#039;s you add a button to your tool bar for easily clearing your cache while working on your theme: https://addons.mozilla.org/de/firefox/addon/1801&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p class=&amp;quot;note&amp;quot;&amp;gt;Please note that the following tools are only for development. They only change the way &#039;&#039;you&#039;&#039; see your Moodle site, not the Moodle site itself. Any changes you make using these tools will not be visible to anyone else who uses your site. For this you will have to make those changes permanent by changing your theme&#039;s CSS files for example.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Firebug ===&lt;br /&gt;
The single most useful tool is the [[:dev:Firebug|Firebug]] add-on for the [[:dev:Firefox|Firefox]] web browser. Firebug integrates with Firefox to put a wealth of development tools at your fingertips while you browse. You can edit, debug, and monitor CSS, HTML, and JavaScript live in any web page... And there are additional add-ons for making Firebug an even more powerful tool.&lt;br /&gt;
&lt;br /&gt;
==== Firebug enhancements ====&lt;br /&gt;
You can enhance Firebug even further. See [[:dev:Firebug|Firebug]] for more information.&lt;br /&gt;
&lt;br /&gt;
=== Web Developer Toolbar ===&lt;br /&gt;
Another great tool for any web developer is the [[:dev:Web developer extension|Web developer extension]], another Firefox add-on. One very useful feature is the option to &#039;&#039;&#039;disable your browser&#039;s cache&#039;&#039;&#039; while working on your theme. That way you are sure you&#039;re always presented with your latest modifications and not with an older, cached version.&lt;br /&gt;
&lt;br /&gt;
Now also available for Google&#039;s Chrome browser: [http://www.sitepoint.com/blogs/2010/03/23/chrome-web-developer-toolbar/ &amp;quot;The Web Developer Toolbar Comes to Chrome&amp;quot;]&lt;br /&gt;
&lt;br /&gt;
=== Stylish ===&lt;br /&gt;
Modifications made with Firebug are lost when refreshing your page. If you want your CSS changes to be a bit more permanent, for example to try them with different pages of your Moodle installation, you can use another Firefox plugin: [https://addons.mozilla.org/en-US/firefox/addon/2108 Stylish]. That way you can change your site&#039;s CSS with a simple mouse click without having to change Moodle code.&lt;br /&gt;
&lt;br /&gt;
See [[:dev:Stylish|Stylish]] for detailed instructions and examples.&lt;br /&gt;
&lt;br /&gt;
==== Stylish-Custom ====&lt;br /&gt;
This is an [https://addons.mozilla.org/en-US/firefox/addon/12105/ custom additions] to the Stylish extension which brings back features from 0.5.9 and adds new features.&lt;br /&gt;
&lt;br /&gt;
== How do I check for cross-browser compatibility? ==&lt;br /&gt;
There are some tools (standalone and online) which can show you how your site looks in different browsers. See this [http://moodle.org/mod/forum/discuss.php?d=127746 forum discussion] for details.  See the new device detection settings in [[Theme settings]] which will allow you to create a theme for those &amp;quot;special&amp;quot; browsers.&lt;br /&gt;
&lt;br /&gt;
==How are the device types used in Moodle 2.4 ?==&lt;br /&gt;
If &amp;quot;Enabled device detection&amp;quot; has been turned on, Moodle 2.4 will automatically use the theme which has been set for the device in the [[Standard themes|Theme selector]] settings page.   It is also possible to add additional types to the Theme selector page by using the &amp;quot;device detection regular expressions&amp;quot; fields.   &lt;br /&gt;
&lt;br /&gt;
Site administrators can find these enable device detection settings in Site administration &amp;gt; Appearance &amp;gt;Themes &amp;gt; [[Theme settings]] .&lt;br /&gt;
&lt;br /&gt;
== Concrete examples for modifying Moodle themes ==&lt;br /&gt;
&amp;lt;p class=&amp;quot;note&amp;quot;&amp;gt;&lt;br /&gt;
The following examples were taken from the former &#039;&#039;Theme Scrapbook&#039;&#039;:&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;quot;The Moodle &#039;&#039;&#039;Theme Scrapbook&#039;&#039;&#039; is a collection of small how-to descriptions. You theme designers and Moodle users working with themes add your knowledge here to help new Moodle users with tips and tricks for their theme work. &lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Feel free to add to this list! Don&#039;t know how? Read our [[MoodleDocs:Guidelines_for_contributors|Guidelines for contributors]].&amp;quot;&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Changing things ===&lt;br /&gt;
&lt;br /&gt;
==== Colors ====&lt;br /&gt;
* [[:dev:Forcing the colour of the chat discussion pane (pop-up mode)]]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=142765 Changing background colour of a topic box]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=152357 How to change the colour of the popup event&#039;s header and background]&lt;br /&gt;
&lt;br /&gt;
==== Logo and icons ====&lt;br /&gt;
* [[:dev:Alternate Icon Set|Using an alternate icon set in Moodle]]&lt;br /&gt;
* [[Favicon|Change the favicon that shows in front of the web address]]&lt;br /&gt;
* [[Footer replacement|Replace the logo in the footer with your web address and/or or own logo]]&lt;br /&gt;
*[[:dev:Header logo|Replace the logo in the header]]&lt;br /&gt;
&lt;br /&gt;
==== Layout ====&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=136546 Overriding the $menu / $button variables] using PHP regular expressions in header.html&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=143411 Changing the view of course categories] - work in progress&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=145077 Sub categories and courses layout] - work in progress&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=151370 Tracker &#039;components&#039; list too small]&lt;br /&gt;
&lt;br /&gt;
=== Adding things ===&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=157935 How to add a different img-bullet to each category?]&lt;br /&gt;
&lt;br /&gt;
=== Hiding things ===&lt;br /&gt;
* Hiding an element with CSS is generally achieved using the [http://reference.sitepoint.com/css/display display: none;] property on the element.&lt;br /&gt;
* See [[:dev:Print style]] and [[:dev:Stylish#Print style for Database records]] for an example how to hide parts of a page not meant for printing.&lt;br /&gt;
&lt;br /&gt;
=== Moving things ===&lt;br /&gt;
* [[:dev:Center Forum Posts|Centre smaller forum posts on the page]]&lt;br /&gt;
* [[:dev:Footer positioning|Positioning the page footer]]&lt;br /&gt;
* [[:dev:Left-align quiz|Left align quiz questions and answers]]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=121847 Indentation for nested categories]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=128599 Positioning login and choose language field]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=145179 Match question type - position answers nearer to the questions]&lt;br /&gt;
* [[:dev:Stylish#Fixed admin menue with CSS]]&lt;br /&gt;
&lt;br /&gt;
=== Miscellaneous ===&lt;br /&gt;
* [[:dev:Fixed-width theme|Creating a fixed-width theme]]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=146763 Is there a way to fix oversized HTML Editor using CSS?]&lt;br /&gt;
* [[:dev:Category Design|Modifying the design of specific categories with CSS]]&lt;br /&gt;
&lt;br /&gt;
==How can I see theme changes when using the Windows Complete Installer package==&lt;br /&gt;
In the [http://download.moodle.org/windows/ Windows Complete Installer package], the eAccelerator in the XAMPP install can cause some issues with changes to your theme&#039;s CSS and HTML files from showing.&lt;br /&gt;
&lt;br /&gt;
Open the php.ini file inside of the server\php folder from your install in notepad and search for &amp;quot;eAccelerator&amp;quot; you should see a line that reads: &lt;br /&gt;
 extension=eaccelerator.dll&lt;br /&gt;
&lt;br /&gt;
Insert a semi-colon (turns the line into a comment) at the start of this line so it now reads: &lt;br /&gt;
 ;extension=eaccelerator.dll&lt;br /&gt;
&lt;br /&gt;
Restart the Moodle server using the &amp;quot;stop moodle&amp;quot; and then the &amp;quot;start moodle&amp;quot; programs in your server folder. You should now find that all of your changes to your CSS are reflected as soon as you save the file and refresh your browser cache (usually you can refresh your cache by pressing F5). This FAQ from a discussion at [http://moodle.org/mod/forum/discuss.php?d=151562#p663950 Deactivating caching with XAMPP installations]&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
&lt;br /&gt;
* Using Moodle [http://moodle.org/mod/forum/view.php?f=29 Themes forum]&lt;br /&gt;
* [[:dev:CSS FAQ]]&lt;br /&gt;
* [http://learn.open.ac.uk/mod/oublog/view.php?user=155976 &amp;quot;Understanding Moodle Themes&amp;quot;] - Blog post by [http://moodle.org/user/view.php?id=78896&amp;amp;course=5 Christopher Douce] (Open University)&lt;br /&gt;
* Using Moodle [http://moodle.org/mod/forum/discuss.php?d=149534 Testing 2.0. Use for modern vs old browsers] forum discussion&lt;br /&gt;
&lt;br /&gt;
[[Category:FAQ]]&lt;br /&gt;
[[de:Designs_FAQ]]&lt;/div&gt;</summary>
		<author><name>Rwthornton</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/2x/ca/index.php?title=Themes_FAQ&amp;diff=104476</id>
		<title>Themes FAQ</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/2x/ca/index.php?title=Themes_FAQ&amp;diff=104476"/>
		<updated>2013-05-16T21:27:42Z</updated>

		<summary type="html">&lt;p&gt;Rwthornton: /* What is the hierarchy of contexts for themes to override each other? */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Themes}}&lt;br /&gt;
==How do I install a new theme?==&lt;br /&gt;
&lt;br /&gt;
# Unzip the .zip file to an empty local directory.&lt;br /&gt;
# Upload folder to your web server to the /moodle/theme/[Theme Name]. (Replace [Theme Name] with the name of the theme you have downloaded.) Ensure the new theme folder and its contents are readable by the webserver.  Change Read and Write permissions (CHMOD) for the files and folder to 755 - Owner read/write/execute, Group read/execute, Everyone read/execute.  Incorrect permissions may prevent display of the newly installed theme.&lt;br /&gt;
# Choose your new theme from within Moodle via &#039;&#039;Administration &amp;gt; Appearance &amp;gt; Themes &amp;gt; Theme selector&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
=== How do I install a new theme when using cPanel? ===&lt;br /&gt;
&lt;br /&gt;
# Upload your new theme .zip file to your web server via cPanel. &lt;br /&gt;
# Then using cPanel install the new theme to your Moodle theme&#039;s folder.  The new theme will be installed into its own folder at /moodle/theme/[mytheme] (where [mytheme] is the name of your new theme.&lt;br /&gt;
# Ensure the new theme folder and its contents are readable by the webserver. If necessary  change Read and Write permissions (CHMOD) for the files and folder to 755 - Owner read/write/execute, Group read/execute, Everyone read/execute.  Incorrect permissions may prevent display of the newly installed theme.&lt;br /&gt;
# Choose your new theme from within Moodle via &#039;&#039;Administration &amp;gt; Appearance &amp;gt; Themes &amp;gt; Theme selector&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=== Why is the new theme I uploaded not showing up in Theme Selector? ===&lt;br /&gt;
&lt;br /&gt;
You probably forgot to do something correctly. Here are steps to create a &amp;quot;new&amp;quot; theme from an existing theme called &amp;quot;standard&amp;quot;. Bold show places you must change for the theme to appear.&lt;br /&gt;
#Copy folder theme/standard and call it theme/new&lt;br /&gt;
#In theme/new/lang/en folder,&lt;br /&gt;
##&#039;&#039;&#039;Renamed theme_standard.php to theme_new.php&#039;&#039;&#039;&lt;br /&gt;
#Opened theme/new/lang/en/new.php,  recommend you change 2 lines to read something like:&lt;br /&gt;
##$string[&#039;pluginname&#039;] = &#039;New theme - Martin D&#039;; &lt;br /&gt;
##$string[&#039;chooseredme&#039;] = &#039;New theme came from the Standard theme and is being changed by Martin D in 2011&#039;;&lt;br /&gt;
##Saved the file&lt;br /&gt;
#In theme/new/config.php&lt;br /&gt;
##Change &#039;&#039;&#039;$THEME-&amp;gt;NAME  = &#039;new&#039;&#039;&#039;&#039;;&lt;br /&gt;
#Went to &#039;&#039;Settings &amp;gt; Site Administration &amp;gt;Appearance &amp;gt; Theme settings&#039;&#039; &amp;gt; Theme designer mode (Checked)&lt;br /&gt;
#&#039;&#039;Settings &amp;gt; Site Administration &amp;gt;Appearance &amp;gt; Theme selector&#039;&#039;&lt;br /&gt;
##Clear theme caches&lt;br /&gt;
##Select theme&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;Tip:&#039;&#039; There could be a number of problems with the theme you uploaded, but one major problem reported in the Themes Forum all point to the way in which the theme is uploaded on certain servers. Using the cPanel method, as described in  the FAQ [[Themes_FAQ#How do I install a new theme when using cPanel?|How do I install a new theme when using cPanel?]] will, in most cases, cure the problem.&lt;br /&gt;
&lt;br /&gt;
== How do I control what themes show up where? ==&lt;br /&gt;
&lt;br /&gt;
You can control which themes show up in which contexts by a series of settings in &#039;&#039;Settings&amp;gt;Site Administration&amp;gt;Appearance&amp;gt;Themes&amp;gt;Theme settings&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
===How can I restrict the available themes to users and in courses?===&lt;br /&gt;
&lt;br /&gt;
In&#039;&#039; Settings&amp;gt;Site Administration&amp;gt;Appearance&amp;gt;Themes&amp;gt;Theme settings&#039;&#039;, add the themes you want them to use in the Theme list. These will then restrict the theme choice lists in pull down menus the contexts (Course, Category, User) where you allow them.&lt;br /&gt;
&lt;br /&gt;
===What is the hierarchy of contexts for themes to override each other?===&lt;br /&gt;
&lt;br /&gt;
There are five contexts in which themes appear and can be set: courses, category, session, user, and site, and that is the level of priority of appearance they have as well. You enable course, category, and user in [https://docs.moodle.org/24/en/Theme_settings Theme settings.] (It is possible to change this hierarchy in the config.php file - see [https://docs.moodle.org/24/en/Theme_settings#Change_default_hierarchy change default hierarchy] for details.) &lt;br /&gt;
&lt;br /&gt;
* Course: themes set at the course level trump (override) all other theme settings&lt;br /&gt;
* Category: themes set at the category level trump all themes except course level themes&lt;br /&gt;
* Session: session level themes set with the URL parameter theme=theme_name are trumped by course and category but trump lower levels&lt;br /&gt;
* User: themes set at the user profile level are trumped by course, category and session, and only trump the site theme&lt;br /&gt;
* Site: is trumped by any of the above themes&lt;br /&gt;
&lt;br /&gt;
Note on Session Themes: &lt;br /&gt;
&lt;br /&gt;
* It is important to note that Session level themes override the Site level theme ONLY for the user&#039;s current logged in session. When the user does log out however, they will then see the DEFAULT SITE theme, not the Session theme. &lt;br /&gt;
* You only have to set the theme once via the URL parameter and it will persist until the user logs out. &lt;br /&gt;
&lt;br /&gt;
Note on Device Themes: the following issue discovered with device level themes http://tracker.moodle.org/browse/MDL-35148 overriding category and course level themes.&lt;br /&gt;
&lt;br /&gt;
==How do I create a custom theme?==&lt;br /&gt;
&lt;br /&gt;
See the developer documentation [[:dev:Theme development|Theme development]].&lt;br /&gt;
&lt;br /&gt;
==Can I assign a specific theme to a course?==&lt;br /&gt;
&lt;br /&gt;
Yes. In the course settings, use the &amp;quot;Force theme&amp;quot; dropdown box.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Is it possible to customise language strings per theme?==&lt;br /&gt;
Not by default, as when strings are customised, they are customised for the whole site. However, it is possible to make a new language  pack based on your main language and apply that pack to the course which has that theme. See this forum post for more information: https://moodle.org/mod/forum/discuss.php?d=220671&lt;br /&gt;
&lt;br /&gt;
==How can I get the links in  my custom menu to open in new windows?==&lt;br /&gt;
It is possible to create your own fly out menu via the custom menu block in Settings&amp;gt;Site administration&amp;gt;Appearance&amp;gt;Themes&amp;gt;Theme settings. Copy the examples given below the box. If you want the links to open in a new window, use the following code:&lt;br /&gt;
 Moodle|http://www.moodle.org&amp;quot; target=&amp;quot;_blank&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Where shall I put my custom CSS code? ==&lt;br /&gt;
&lt;br /&gt;
Note that the standard themes Afterburner, Arialist, Formal White, Fusion, Nonzero, Overlay, Sky High and Splash all offer the possibility to add custom CSS in their page settings via &#039;&#039;Settings&amp;gt;Appearance&amp;gt;Themes&amp;gt;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Failing this, instead of modifying the theme&#039;s CSS files you better put your own code in a separate CSS file and make your theme aware of that file by modifying its config.php file (be sure add your own CSS file as the last one in the list so that you will override all prior settings). See this posting for [http://moodle.org/mod/forum/discuss.php?d=128599#p564055 detailed instructions]. &lt;br /&gt;
&lt;br /&gt;
See also the instructions on creating your own theme mentioned above.&lt;br /&gt;
&lt;br /&gt;
==Will I lose my courses, language files, logo, etc. if I switch my theme?==&lt;br /&gt;
Switching themes only changes the appearance of your site, not the content within it. The logo is a part of the theme and will be lost when you switch.    &lt;br /&gt;
&lt;br /&gt;
Follow these instructions to [[:dev:Creating_a_custom_theme#Adding_a_Logo|add a logo]] to a theme.&lt;br /&gt;
:If you upgrade your Moodle site and tweaked an existing standard theme, you will lose your changes. Thus it is a good idea to create a custom theme which will not be changed when you upgrade.&lt;br /&gt;
&lt;br /&gt;
==I can&#039;t access theme files on the server. Can I still add a logo to a theme?==&lt;br /&gt;
Yes. You have two choices:&lt;br /&gt;
**Either upload your logo to another place publicly available online and then copy the image&#039;s URL to paste into the logo field of the theme page you are editing (such as Afterburner)&lt;br /&gt;
**Or add the main menu block to your front page; upload the logo via Main menu&amp;gt;Add a resource. Get its URL and paste it into the logo field of the theme page you are editing. You can safely then hide or delete the main menu block; the logo will still be there. (&#039;&#039;NOTE&#039;&#039; - your logo will appear in &#039;&#039;Navigation&amp;gt;Site pages&#039;&#039; as well.)&lt;br /&gt;
&lt;br /&gt;
== Are there tools which help me creating and editing themes? ==&lt;br /&gt;
&lt;br /&gt;
=== Clear Cache Button ===&lt;br /&gt;
This useful Firefox add-on let&#039;s you add a button to your tool bar for easily clearing your cache while working on your theme: https://addons.mozilla.org/de/firefox/addon/1801&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p class=&amp;quot;note&amp;quot;&amp;gt;Please note that the following tools are only for development. They only change the way &#039;&#039;you&#039;&#039; see your Moodle site, not the Moodle site itself. Any changes you make using these tools will not be visible to anyone else who uses your site. For this you will have to make those changes permanent by changing your theme&#039;s CSS files for example.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Firebug ===&lt;br /&gt;
The single most useful tool is the [[:dev:Firebug|Firebug]] add-on for the [[:dev:Firefox|Firefox]] web browser. Firebug integrates with Firefox to put a wealth of development tools at your fingertips while you browse. You can edit, debug, and monitor CSS, HTML, and JavaScript live in any web page... And there are additional add-ons for making Firebug an even more powerful tool.&lt;br /&gt;
&lt;br /&gt;
==== Firebug enhancements ====&lt;br /&gt;
You can enhance Firebug even further. See [[:dev:Firebug|Firebug]] for more information.&lt;br /&gt;
&lt;br /&gt;
=== Web Developer Toolbar ===&lt;br /&gt;
Another great tool for any web developer is the [[:dev:Web developer extension|Web developer extension]], another Firefox add-on. One very useful feature is the option to &#039;&#039;&#039;disable your browser&#039;s cache&#039;&#039;&#039; while working on your theme. That way you are sure you&#039;re always presented with your latest modifications and not with an older, cached version.&lt;br /&gt;
&lt;br /&gt;
Now also available for Google&#039;s Chrome browser: [http://www.sitepoint.com/blogs/2010/03/23/chrome-web-developer-toolbar/ &amp;quot;The Web Developer Toolbar Comes to Chrome&amp;quot;]&lt;br /&gt;
&lt;br /&gt;
=== Stylish ===&lt;br /&gt;
Modifications made with Firebug are lost when refreshing your page. If you want your CSS changes to be a bit more permanent, for example to try them with different pages of your Moodle installation, you can use another Firefox plugin: [https://addons.mozilla.org/en-US/firefox/addon/2108 Stylish]. That way you can change your site&#039;s CSS with a simple mouse click without having to change Moodle code.&lt;br /&gt;
&lt;br /&gt;
See [[:dev:Stylish|Stylish]] for detailed instructions and examples.&lt;br /&gt;
&lt;br /&gt;
==== Stylish-Custom ====&lt;br /&gt;
This is an [https://addons.mozilla.org/en-US/firefox/addon/12105/ custom additions] to the Stylish extension which brings back features from 0.5.9 and adds new features.&lt;br /&gt;
&lt;br /&gt;
== How do I check for cross-browser compatibility? ==&lt;br /&gt;
There are some tools (standalone and online) which can show you how your site looks in different browsers. See this [http://moodle.org/mod/forum/discuss.php?d=127746 forum discussion] for details.  See the new device detection settings in [[Theme settings]] which will allow you to create a theme for those &amp;quot;special&amp;quot; browsers.&lt;br /&gt;
&lt;br /&gt;
==How are the device types used in Moodle 2.4 ?==&lt;br /&gt;
If &amp;quot;Enabled device detection&amp;quot; has been turned on, Moodle 2.4 will automatically use the theme which has been set for the device in the [[Standard themes|Theme selector]] settings page.   It is also possible to add additional types to the Theme selector page by using the &amp;quot;device detection regular expressions&amp;quot; fields.   &lt;br /&gt;
&lt;br /&gt;
Site administrators can find these enable device detection settings in Site administration &amp;gt; Appearance &amp;gt;Themes &amp;gt; [[Theme settings]] .&lt;br /&gt;
&lt;br /&gt;
== Concrete examples for modifying Moodle themes ==&lt;br /&gt;
&amp;lt;p class=&amp;quot;note&amp;quot;&amp;gt;&lt;br /&gt;
The following examples were taken from the former &#039;&#039;Theme Scrapbook&#039;&#039;:&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;quot;The Moodle &#039;&#039;&#039;Theme Scrapbook&#039;&#039;&#039; is a collection of small how-to descriptions. You theme designers and Moodle users working with themes add your knowledge here to help new Moodle users with tips and tricks for their theme work. &lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Feel free to add to this list! Don&#039;t know how? Read our [[MoodleDocs:Guidelines_for_contributors|Guidelines for contributors]].&amp;quot;&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Changing things ===&lt;br /&gt;
&lt;br /&gt;
==== Colors ====&lt;br /&gt;
* [[:dev:Forcing the colour of the chat discussion pane (pop-up mode)]]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=142765 Changing background colour of a topic box]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=152357 How to change the colour of the popup event&#039;s header and background]&lt;br /&gt;
&lt;br /&gt;
==== Logo and icons ====&lt;br /&gt;
* [[:dev:Alternate Icon Set|Using an alternate icon set in Moodle]]&lt;br /&gt;
* [[Favicon|Change the favicon that shows in front of the web address]]&lt;br /&gt;
* [[Footer replacement|Replace the logo in the footer with your web address and/or or own logo]]&lt;br /&gt;
*[[:dev:Header logo|Replace the logo in the header]]&lt;br /&gt;
&lt;br /&gt;
==== Layout ====&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=136546 Overriding the $menu / $button variables] using PHP regular expressions in header.html&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=143411 Changing the view of course categories] - work in progress&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=145077 Sub categories and courses layout] - work in progress&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=151370 Tracker &#039;components&#039; list too small]&lt;br /&gt;
&lt;br /&gt;
=== Adding things ===&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=157935 How to add a different img-bullet to each category?]&lt;br /&gt;
&lt;br /&gt;
=== Hiding things ===&lt;br /&gt;
* Hiding an element with CSS is generally achieved using the [http://reference.sitepoint.com/css/display display: none;] property on the element.&lt;br /&gt;
* See [[:dev:Print style]] and [[:dev:Stylish#Print style for Database records]] for an example how to hide parts of a page not meant for printing.&lt;br /&gt;
&lt;br /&gt;
=== Moving things ===&lt;br /&gt;
* [[:dev:Center Forum Posts|Centre smaller forum posts on the page]]&lt;br /&gt;
* [[:dev:Footer positioning|Positioning the page footer]]&lt;br /&gt;
* [[:dev:Left-align quiz|Left align quiz questions and answers]]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=121847 Indentation for nested categories]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=128599 Positioning login and choose language field]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=145179 Match question type - position answers nearer to the questions]&lt;br /&gt;
* [[:dev:Stylish#Fixed admin menue with CSS]]&lt;br /&gt;
&lt;br /&gt;
=== Miscellaneous ===&lt;br /&gt;
* [[:dev:Fixed-width theme|Creating a fixed-width theme]]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=146763 Is there a way to fix oversized HTML Editor using CSS?]&lt;br /&gt;
* [[:dev:Category Design|Modifying the design of specific categories with CSS]]&lt;br /&gt;
&lt;br /&gt;
==How can I see theme changes when using the Windows Complete Installer package==&lt;br /&gt;
In the [http://download.moodle.org/windows/ Windows Complete Installer package], the eAccelerator in the XAMPP install can cause some issues with changes to your theme&#039;s CSS and HTML files from showing.&lt;br /&gt;
&lt;br /&gt;
Open the php.ini file inside of the server\php folder from your install in notepad and search for &amp;quot;eAccelerator&amp;quot; you should see a line that reads: &lt;br /&gt;
 extension=eaccelerator.dll&lt;br /&gt;
&lt;br /&gt;
Insert a semi-colon (turns the line into a comment) at the start of this line so it now reads: &lt;br /&gt;
 ;extension=eaccelerator.dll&lt;br /&gt;
&lt;br /&gt;
Restart the Moodle server using the &amp;quot;stop moodle&amp;quot; and then the &amp;quot;start moodle&amp;quot; programs in your server folder. You should now find that all of your changes to your CSS are reflected as soon as you save the file and refresh your browser cache (usually you can refresh your cache by pressing F5). This FAQ from a discussion at [http://moodle.org/mod/forum/discuss.php?d=151562#p663950 Deactivating caching with XAMPP installations]&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
&lt;br /&gt;
* Using Moodle [http://moodle.org/mod/forum/view.php?f=29 Themes forum]&lt;br /&gt;
* [[:dev:CSS FAQ]]&lt;br /&gt;
* [http://learn.open.ac.uk/mod/oublog/view.php?user=155976 &amp;quot;Understanding Moodle Themes&amp;quot;] - Blog post by [http://moodle.org/user/view.php?id=78896&amp;amp;course=5 Christopher Douce] (Open University)&lt;br /&gt;
* Using Moodle [http://moodle.org/mod/forum/discuss.php?d=149534 Testing 2.0. Use for modern vs old browsers] forum discussion&lt;br /&gt;
&lt;br /&gt;
[[Category:FAQ]]&lt;br /&gt;
[[de:Designs_FAQ]]&lt;/div&gt;</summary>
		<author><name>Rwthornton</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/2x/ca/index.php?title=Themes_FAQ&amp;diff=104475</id>
		<title>Themes FAQ</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/2x/ca/index.php?title=Themes_FAQ&amp;diff=104475"/>
		<updated>2013-05-16T21:26:46Z</updated>

		<summary type="html">&lt;p&gt;Rwthornton: /* What is the hierarchy of contexts for themes to override each other? */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Themes}}&lt;br /&gt;
==How do I install a new theme?==&lt;br /&gt;
&lt;br /&gt;
# Unzip the .zip file to an empty local directory.&lt;br /&gt;
# Upload folder to your web server to the /moodle/theme/[Theme Name]. (Replace [Theme Name] with the name of the theme you have downloaded.) Ensure the new theme folder and its contents are readable by the webserver.  Change Read and Write permissions (CHMOD) for the files and folder to 755 - Owner read/write/execute, Group read/execute, Everyone read/execute.  Incorrect permissions may prevent display of the newly installed theme.&lt;br /&gt;
# Choose your new theme from within Moodle via &#039;&#039;Administration &amp;gt; Appearance &amp;gt; Themes &amp;gt; Theme selector&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
=== How do I install a new theme when using cPanel? ===&lt;br /&gt;
&lt;br /&gt;
# Upload your new theme .zip file to your web server via cPanel. &lt;br /&gt;
# Then using cPanel install the new theme to your Moodle theme&#039;s folder.  The new theme will be installed into its own folder at /moodle/theme/[mytheme] (where [mytheme] is the name of your new theme.&lt;br /&gt;
# Ensure the new theme folder and its contents are readable by the webserver. If necessary  change Read and Write permissions (CHMOD) for the files and folder to 755 - Owner read/write/execute, Group read/execute, Everyone read/execute.  Incorrect permissions may prevent display of the newly installed theme.&lt;br /&gt;
# Choose your new theme from within Moodle via &#039;&#039;Administration &amp;gt; Appearance &amp;gt; Themes &amp;gt; Theme selector&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=== Why is the new theme I uploaded not showing up in Theme Selector? ===&lt;br /&gt;
&lt;br /&gt;
You probably forgot to do something correctly. Here are steps to create a &amp;quot;new&amp;quot; theme from an existing theme called &amp;quot;standard&amp;quot;. Bold show places you must change for the theme to appear.&lt;br /&gt;
#Copy folder theme/standard and call it theme/new&lt;br /&gt;
#In theme/new/lang/en folder,&lt;br /&gt;
##&#039;&#039;&#039;Renamed theme_standard.php to theme_new.php&#039;&#039;&#039;&lt;br /&gt;
#Opened theme/new/lang/en/new.php,  recommend you change 2 lines to read something like:&lt;br /&gt;
##$string[&#039;pluginname&#039;] = &#039;New theme - Martin D&#039;; &lt;br /&gt;
##$string[&#039;chooseredme&#039;] = &#039;New theme came from the Standard theme and is being changed by Martin D in 2011&#039;;&lt;br /&gt;
##Saved the file&lt;br /&gt;
#In theme/new/config.php&lt;br /&gt;
##Change &#039;&#039;&#039;$THEME-&amp;gt;NAME  = &#039;new&#039;&#039;&#039;&#039;;&lt;br /&gt;
#Went to &#039;&#039;Settings &amp;gt; Site Administration &amp;gt;Appearance &amp;gt; Theme settings&#039;&#039; &amp;gt; Theme designer mode (Checked)&lt;br /&gt;
#&#039;&#039;Settings &amp;gt; Site Administration &amp;gt;Appearance &amp;gt; Theme selector&#039;&#039;&lt;br /&gt;
##Clear theme caches&lt;br /&gt;
##Select theme&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;Tip:&#039;&#039; There could be a number of problems with the theme you uploaded, but one major problem reported in the Themes Forum all point to the way in which the theme is uploaded on certain servers. Using the cPanel method, as described in  the FAQ [[Themes_FAQ#How do I install a new theme when using cPanel?|How do I install a new theme when using cPanel?]] will, in most cases, cure the problem.&lt;br /&gt;
&lt;br /&gt;
== How do I control what themes show up where? ==&lt;br /&gt;
&lt;br /&gt;
You can control which themes show up in which contexts by a series of settings in &#039;&#039;Settings&amp;gt;Site Administration&amp;gt;Appearance&amp;gt;Themes&amp;gt;Theme settings&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
===How can I restrict the available themes to users and in courses?===&lt;br /&gt;
&lt;br /&gt;
In&#039;&#039; Settings&amp;gt;Site Administration&amp;gt;Appearance&amp;gt;Themes&amp;gt;Theme settings&#039;&#039;, add the themes you want them to use in the Theme list. These will then restrict the theme choice lists in pull down menus the contexts (Course, Category, User) where you allow them.&lt;br /&gt;
&lt;br /&gt;
===What is the hierarchy of contexts for themes to override each other?===&lt;br /&gt;
&lt;br /&gt;
There are five contexts in which themes appear and can be set: courses, category, session, user, and site, and that is the level of priority of appearance they have as well. You enable course, category, and user in [https://docs.moodle.org/24/en/Theme_settings Theme settings.] (It is possible to change this hierarchy in the config.php file - see https://docs.moodle.org/24/en/Theme_settings#Change_default_hierarchy for details.) &lt;br /&gt;
&lt;br /&gt;
* Course: themes set at the course level trump (override) all other theme settings&lt;br /&gt;
* Category: themes set at the category level trump all themes except course level themes&lt;br /&gt;
* Session: session level themes set with the URL parameter theme=theme_name are trumped by course and category but trump lower levels&lt;br /&gt;
* User: themes set at the user profile level are trumped by course, category and session, and only trump the site theme&lt;br /&gt;
* Site: is trumped by any of the above themes&lt;br /&gt;
&lt;br /&gt;
Note on Session Themes: &lt;br /&gt;
&lt;br /&gt;
* It is important to note that Session level themes override the Site level theme ONLY for the user&#039;s current logged in session. When the user does log out however, they will then see the DEFAULT SITE theme, not the Session theme. &lt;br /&gt;
* You only have to set the theme once via the URL parameter and it will persist until the user logs out. &lt;br /&gt;
&lt;br /&gt;
Note on Device Themes: the following issue discovered with device level themes http://tracker.moodle.org/browse/MDL-35148 overriding category and course level themes.&lt;br /&gt;
&lt;br /&gt;
==How do I create a custom theme?==&lt;br /&gt;
&lt;br /&gt;
See the developer documentation [[:dev:Theme development|Theme development]].&lt;br /&gt;
&lt;br /&gt;
==Can I assign a specific theme to a course?==&lt;br /&gt;
&lt;br /&gt;
Yes. In the course settings, use the &amp;quot;Force theme&amp;quot; dropdown box.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Is it possible to customise language strings per theme?==&lt;br /&gt;
Not by default, as when strings are customised, they are customised for the whole site. However, it is possible to make a new language  pack based on your main language and apply that pack to the course which has that theme. See this forum post for more information: https://moodle.org/mod/forum/discuss.php?d=220671&lt;br /&gt;
&lt;br /&gt;
==How can I get the links in  my custom menu to open in new windows?==&lt;br /&gt;
It is possible to create your own fly out menu via the custom menu block in Settings&amp;gt;Site administration&amp;gt;Appearance&amp;gt;Themes&amp;gt;Theme settings. Copy the examples given below the box. If you want the links to open in a new window, use the following code:&lt;br /&gt;
 Moodle|http://www.moodle.org&amp;quot; target=&amp;quot;_blank&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Where shall I put my custom CSS code? ==&lt;br /&gt;
&lt;br /&gt;
Note that the standard themes Afterburner, Arialist, Formal White, Fusion, Nonzero, Overlay, Sky High and Splash all offer the possibility to add custom CSS in their page settings via &#039;&#039;Settings&amp;gt;Appearance&amp;gt;Themes&amp;gt;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Failing this, instead of modifying the theme&#039;s CSS files you better put your own code in a separate CSS file and make your theme aware of that file by modifying its config.php file (be sure add your own CSS file as the last one in the list so that you will override all prior settings). See this posting for [http://moodle.org/mod/forum/discuss.php?d=128599#p564055 detailed instructions]. &lt;br /&gt;
&lt;br /&gt;
See also the instructions on creating your own theme mentioned above.&lt;br /&gt;
&lt;br /&gt;
==Will I lose my courses, language files, logo, etc. if I switch my theme?==&lt;br /&gt;
Switching themes only changes the appearance of your site, not the content within it. The logo is a part of the theme and will be lost when you switch.    &lt;br /&gt;
&lt;br /&gt;
Follow these instructions to [[:dev:Creating_a_custom_theme#Adding_a_Logo|add a logo]] to a theme.&lt;br /&gt;
:If you upgrade your Moodle site and tweaked an existing standard theme, you will lose your changes. Thus it is a good idea to create a custom theme which will not be changed when you upgrade.&lt;br /&gt;
&lt;br /&gt;
==I can&#039;t access theme files on the server. Can I still add a logo to a theme?==&lt;br /&gt;
Yes. You have two choices:&lt;br /&gt;
**Either upload your logo to another place publicly available online and then copy the image&#039;s URL to paste into the logo field of the theme page you are editing (such as Afterburner)&lt;br /&gt;
**Or add the main menu block to your front page; upload the logo via Main menu&amp;gt;Add a resource. Get its URL and paste it into the logo field of the theme page you are editing. You can safely then hide or delete the main menu block; the logo will still be there. (&#039;&#039;NOTE&#039;&#039; - your logo will appear in &#039;&#039;Navigation&amp;gt;Site pages&#039;&#039; as well.)&lt;br /&gt;
&lt;br /&gt;
== Are there tools which help me creating and editing themes? ==&lt;br /&gt;
&lt;br /&gt;
=== Clear Cache Button ===&lt;br /&gt;
This useful Firefox add-on let&#039;s you add a button to your tool bar for easily clearing your cache while working on your theme: https://addons.mozilla.org/de/firefox/addon/1801&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p class=&amp;quot;note&amp;quot;&amp;gt;Please note that the following tools are only for development. They only change the way &#039;&#039;you&#039;&#039; see your Moodle site, not the Moodle site itself. Any changes you make using these tools will not be visible to anyone else who uses your site. For this you will have to make those changes permanent by changing your theme&#039;s CSS files for example.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Firebug ===&lt;br /&gt;
The single most useful tool is the [[:dev:Firebug|Firebug]] add-on for the [[:dev:Firefox|Firefox]] web browser. Firebug integrates with Firefox to put a wealth of development tools at your fingertips while you browse. You can edit, debug, and monitor CSS, HTML, and JavaScript live in any web page... And there are additional add-ons for making Firebug an even more powerful tool.&lt;br /&gt;
&lt;br /&gt;
==== Firebug enhancements ====&lt;br /&gt;
You can enhance Firebug even further. See [[:dev:Firebug|Firebug]] for more information.&lt;br /&gt;
&lt;br /&gt;
=== Web Developer Toolbar ===&lt;br /&gt;
Another great tool for any web developer is the [[:dev:Web developer extension|Web developer extension]], another Firefox add-on. One very useful feature is the option to &#039;&#039;&#039;disable your browser&#039;s cache&#039;&#039;&#039; while working on your theme. That way you are sure you&#039;re always presented with your latest modifications and not with an older, cached version.&lt;br /&gt;
&lt;br /&gt;
Now also available for Google&#039;s Chrome browser: [http://www.sitepoint.com/blogs/2010/03/23/chrome-web-developer-toolbar/ &amp;quot;The Web Developer Toolbar Comes to Chrome&amp;quot;]&lt;br /&gt;
&lt;br /&gt;
=== Stylish ===&lt;br /&gt;
Modifications made with Firebug are lost when refreshing your page. If you want your CSS changes to be a bit more permanent, for example to try them with different pages of your Moodle installation, you can use another Firefox plugin: [https://addons.mozilla.org/en-US/firefox/addon/2108 Stylish]. That way you can change your site&#039;s CSS with a simple mouse click without having to change Moodle code.&lt;br /&gt;
&lt;br /&gt;
See [[:dev:Stylish|Stylish]] for detailed instructions and examples.&lt;br /&gt;
&lt;br /&gt;
==== Stylish-Custom ====&lt;br /&gt;
This is an [https://addons.mozilla.org/en-US/firefox/addon/12105/ custom additions] to the Stylish extension which brings back features from 0.5.9 and adds new features.&lt;br /&gt;
&lt;br /&gt;
== How do I check for cross-browser compatibility? ==&lt;br /&gt;
There are some tools (standalone and online) which can show you how your site looks in different browsers. See this [http://moodle.org/mod/forum/discuss.php?d=127746 forum discussion] for details.  See the new device detection settings in [[Theme settings]] which will allow you to create a theme for those &amp;quot;special&amp;quot; browsers.&lt;br /&gt;
&lt;br /&gt;
==How are the device types used in Moodle 2.4 ?==&lt;br /&gt;
If &amp;quot;Enabled device detection&amp;quot; has been turned on, Moodle 2.4 will automatically use the theme which has been set for the device in the [[Standard themes|Theme selector]] settings page.   It is also possible to add additional types to the Theme selector page by using the &amp;quot;device detection regular expressions&amp;quot; fields.   &lt;br /&gt;
&lt;br /&gt;
Site administrators can find these enable device detection settings in Site administration &amp;gt; Appearance &amp;gt;Themes &amp;gt; [[Theme settings]] .&lt;br /&gt;
&lt;br /&gt;
== Concrete examples for modifying Moodle themes ==&lt;br /&gt;
&amp;lt;p class=&amp;quot;note&amp;quot;&amp;gt;&lt;br /&gt;
The following examples were taken from the former &#039;&#039;Theme Scrapbook&#039;&#039;:&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;quot;The Moodle &#039;&#039;&#039;Theme Scrapbook&#039;&#039;&#039; is a collection of small how-to descriptions. You theme designers and Moodle users working with themes add your knowledge here to help new Moodle users with tips and tricks for their theme work. &lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Feel free to add to this list! Don&#039;t know how? Read our [[MoodleDocs:Guidelines_for_contributors|Guidelines for contributors]].&amp;quot;&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Changing things ===&lt;br /&gt;
&lt;br /&gt;
==== Colors ====&lt;br /&gt;
* [[:dev:Forcing the colour of the chat discussion pane (pop-up mode)]]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=142765 Changing background colour of a topic box]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=152357 How to change the colour of the popup event&#039;s header and background]&lt;br /&gt;
&lt;br /&gt;
==== Logo and icons ====&lt;br /&gt;
* [[:dev:Alternate Icon Set|Using an alternate icon set in Moodle]]&lt;br /&gt;
* [[Favicon|Change the favicon that shows in front of the web address]]&lt;br /&gt;
* [[Footer replacement|Replace the logo in the footer with your web address and/or or own logo]]&lt;br /&gt;
*[[:dev:Header logo|Replace the logo in the header]]&lt;br /&gt;
&lt;br /&gt;
==== Layout ====&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=136546 Overriding the $menu / $button variables] using PHP regular expressions in header.html&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=143411 Changing the view of course categories] - work in progress&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=145077 Sub categories and courses layout] - work in progress&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=151370 Tracker &#039;components&#039; list too small]&lt;br /&gt;
&lt;br /&gt;
=== Adding things ===&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=157935 How to add a different img-bullet to each category?]&lt;br /&gt;
&lt;br /&gt;
=== Hiding things ===&lt;br /&gt;
* Hiding an element with CSS is generally achieved using the [http://reference.sitepoint.com/css/display display: none;] property on the element.&lt;br /&gt;
* See [[:dev:Print style]] and [[:dev:Stylish#Print style for Database records]] for an example how to hide parts of a page not meant for printing.&lt;br /&gt;
&lt;br /&gt;
=== Moving things ===&lt;br /&gt;
* [[:dev:Center Forum Posts|Centre smaller forum posts on the page]]&lt;br /&gt;
* [[:dev:Footer positioning|Positioning the page footer]]&lt;br /&gt;
* [[:dev:Left-align quiz|Left align quiz questions and answers]]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=121847 Indentation for nested categories]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=128599 Positioning login and choose language field]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=145179 Match question type - position answers nearer to the questions]&lt;br /&gt;
* [[:dev:Stylish#Fixed admin menue with CSS]]&lt;br /&gt;
&lt;br /&gt;
=== Miscellaneous ===&lt;br /&gt;
* [[:dev:Fixed-width theme|Creating a fixed-width theme]]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=146763 Is there a way to fix oversized HTML Editor using CSS?]&lt;br /&gt;
* [[:dev:Category Design|Modifying the design of specific categories with CSS]]&lt;br /&gt;
&lt;br /&gt;
==How can I see theme changes when using the Windows Complete Installer package==&lt;br /&gt;
In the [http://download.moodle.org/windows/ Windows Complete Installer package], the eAccelerator in the XAMPP install can cause some issues with changes to your theme&#039;s CSS and HTML files from showing.&lt;br /&gt;
&lt;br /&gt;
Open the php.ini file inside of the server\php folder from your install in notepad and search for &amp;quot;eAccelerator&amp;quot; you should see a line that reads: &lt;br /&gt;
 extension=eaccelerator.dll&lt;br /&gt;
&lt;br /&gt;
Insert a semi-colon (turns the line into a comment) at the start of this line so it now reads: &lt;br /&gt;
 ;extension=eaccelerator.dll&lt;br /&gt;
&lt;br /&gt;
Restart the Moodle server using the &amp;quot;stop moodle&amp;quot; and then the &amp;quot;start moodle&amp;quot; programs in your server folder. You should now find that all of your changes to your CSS are reflected as soon as you save the file and refresh your browser cache (usually you can refresh your cache by pressing F5). This FAQ from a discussion at [http://moodle.org/mod/forum/discuss.php?d=151562#p663950 Deactivating caching with XAMPP installations]&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
&lt;br /&gt;
* Using Moodle [http://moodle.org/mod/forum/view.php?f=29 Themes forum]&lt;br /&gt;
* [[:dev:CSS FAQ]]&lt;br /&gt;
* [http://learn.open.ac.uk/mod/oublog/view.php?user=155976 &amp;quot;Understanding Moodle Themes&amp;quot;] - Blog post by [http://moodle.org/user/view.php?id=78896&amp;amp;course=5 Christopher Douce] (Open University)&lt;br /&gt;
* Using Moodle [http://moodle.org/mod/forum/discuss.php?d=149534 Testing 2.0. Use for modern vs old browsers] forum discussion&lt;br /&gt;
&lt;br /&gt;
[[Category:FAQ]]&lt;br /&gt;
[[de:Designs_FAQ]]&lt;/div&gt;</summary>
		<author><name>Rwthornton</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/2x/ca/index.php?title=Themes_FAQ&amp;diff=104473</id>
		<title>Themes FAQ</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/2x/ca/index.php?title=Themes_FAQ&amp;diff=104473"/>
		<updated>2013-05-16T19:05:14Z</updated>

		<summary type="html">&lt;p&gt;Rwthornton: /* What is the hierarchy of contexts for themes to override each other? */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Themes}}&lt;br /&gt;
==How do I install a new theme?==&lt;br /&gt;
&lt;br /&gt;
# Unzip the .zip file to an empty local directory.&lt;br /&gt;
# Upload folder to your web server to the /moodle/theme/[Theme Name]. (Replace [Theme Name] with the name of the theme you have downloaded.) Ensure the new theme folder and its contents are readable by the webserver.  Change Read and Write permissions (CHMOD) for the files and folder to 755 - Owner read/write/execute, Group read/execute, Everyone read/execute.  Incorrect permissions may prevent display of the newly installed theme.&lt;br /&gt;
# Choose your new theme from within Moodle via &#039;&#039;Administration &amp;gt; Appearance &amp;gt; Themes &amp;gt; Theme selector&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
=== How do I install a new theme when using cPanel? ===&lt;br /&gt;
&lt;br /&gt;
# Upload your new theme .zip file to your web server via cPanel. &lt;br /&gt;
# Then using cPanel install the new theme to your Moodle theme&#039;s folder.  The new theme will be installed into its own folder at /moodle/theme/[mytheme] (where [mytheme] is the name of your new theme.&lt;br /&gt;
# Ensure the new theme folder and its contents are readable by the webserver. If necessary  change Read and Write permissions (CHMOD) for the files and folder to 755 - Owner read/write/execute, Group read/execute, Everyone read/execute.  Incorrect permissions may prevent display of the newly installed theme.&lt;br /&gt;
# Choose your new theme from within Moodle via &#039;&#039;Administration &amp;gt; Appearance &amp;gt; Themes &amp;gt; Theme selector&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=== Why is the new theme I uploaded not showing up in Theme Selector? ===&lt;br /&gt;
&lt;br /&gt;
You probably forgot to do something correctly. Here are steps to create a &amp;quot;new&amp;quot; theme from an existing theme called &amp;quot;standard&amp;quot;. Bold show places you must change for the theme to appear.&lt;br /&gt;
#Copy folder theme/standard and call it theme/new&lt;br /&gt;
#In theme/new/lang/en folder,&lt;br /&gt;
##&#039;&#039;&#039;Renamed theme_standard.php to theme_new.php&#039;&#039;&#039;&lt;br /&gt;
#Opened theme/new/lang/en/new.php,  recommend you change 2 lines to read something like:&lt;br /&gt;
##$string[&#039;pluginname&#039;] = &#039;New theme - Martin D&#039;; &lt;br /&gt;
##$string[&#039;chooseredme&#039;] = &#039;New theme came from the Standard theme and is being changed by Martin D in 2011&#039;;&lt;br /&gt;
##Saved the file&lt;br /&gt;
#In theme/new/config.php&lt;br /&gt;
##Change &#039;&#039;&#039;$THEME-&amp;gt;NAME  = &#039;new&#039;&#039;&#039;&#039;;&lt;br /&gt;
#Went to &#039;&#039;Settings &amp;gt; Site Administration &amp;gt;Appearance &amp;gt; Theme settings&#039;&#039; &amp;gt; Theme designer mode (Checked)&lt;br /&gt;
#&#039;&#039;Settings &amp;gt; Site Administration &amp;gt;Appearance &amp;gt; Theme selector&#039;&#039;&lt;br /&gt;
##Clear theme caches&lt;br /&gt;
##Select theme&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;Tip:&#039;&#039; There could be a number of problems with the theme you uploaded, but one major problem reported in the Themes Forum all point to the way in which the theme is uploaded on certain servers. Using the cPanel method, as described in  the FAQ [[Themes_FAQ#How do I install a new theme when using cPanel?|How do I install a new theme when using cPanel?]] will, in most cases, cure the problem.&lt;br /&gt;
&lt;br /&gt;
== How do I control what themes show up where? ==&lt;br /&gt;
&lt;br /&gt;
You can control which themes show up in which contexts by a series of settings in &#039;&#039;Settings&amp;gt;Site Administration&amp;gt;Appearance&amp;gt;Themes&amp;gt;Theme settings&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
===How can I restrict the available themes to users and in courses?===&lt;br /&gt;
&lt;br /&gt;
In&#039;&#039; Settings&amp;gt;Site Administration&amp;gt;Appearance&amp;gt;Themes&amp;gt;Theme settings&#039;&#039;, add the themes you want them to use in the Theme list. These will then restrict the theme choice lists in pull down menus the contexts (Course, Category, User) where you allow them.&lt;br /&gt;
&lt;br /&gt;
===What is the hierarchy of contexts for themes to override each other?===&lt;br /&gt;
&lt;br /&gt;
There are five contexts in which themes appear and can be set: courses, category, session, user, and site, and that is the level of priority of appearance they have as well. You enable course, category, and user in [https://docs.moodle.org/24/en/Theme_settings Theme settings.]  &lt;br /&gt;
&lt;br /&gt;
* Course: themes set at the course level trump (override) all other theme settings&lt;br /&gt;
* Category: themes set at the category level trump all themes except course level themes&lt;br /&gt;
* Session: session level themes set with the URL parameter theme=theme_name are trumped by course and category but trump lower levels&lt;br /&gt;
* User: themes set at the user profile level are trumped by course, category and session, and only trump the site theme&lt;br /&gt;
* Site: Is trumped by any of the above themes&lt;br /&gt;
&lt;br /&gt;
Note on Session Themes: &lt;br /&gt;
&lt;br /&gt;
* It is important to note that Session level themes override the Site level theme ONLY for the user&#039;s current logged in session. When the user does log out however, they will then see the DEFAULT SITE theme, not the Session theme. &lt;br /&gt;
* You only have to set the theme once via the URL parameter and it will persist until the user logs out. &lt;br /&gt;
&lt;br /&gt;
Note on Device Themes:&lt;br /&gt;
&lt;br /&gt;
Note the following issue discovered with device level themes http://tracker.moodle.org/browse/MDL-35148 overriding category and course level themes.&lt;br /&gt;
&lt;br /&gt;
==How do I create a custom theme?==&lt;br /&gt;
&lt;br /&gt;
See the developer documentation [[:dev:Theme development|Theme development]].&lt;br /&gt;
&lt;br /&gt;
==Can I assign a specific theme to a course?==&lt;br /&gt;
&lt;br /&gt;
Yes. In the course settings, use the &amp;quot;Force theme&amp;quot; dropdown box.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Is it possible to customise language strings per theme?==&lt;br /&gt;
Not by default, as when strings are customised, they are customised for the whole site. However, it is possible to make a new language  pack based on your main language and apply that pack to the course which has that theme. See this forum post for more information: https://moodle.org/mod/forum/discuss.php?d=220671&lt;br /&gt;
&lt;br /&gt;
==How can I get the links in  my custom menu to open in new windows?==&lt;br /&gt;
It is possible to create your own fly out menu via the custom menu block in Settings&amp;gt;Site administration&amp;gt;Appearance&amp;gt;Themes&amp;gt;Theme settings. Copy the examples given below the box. If you want the links to open in a new window, use the following code:&lt;br /&gt;
 Moodle|http://www.moodle.org&amp;quot; target=&amp;quot;_blank&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Where shall I put my custom CSS code? ==&lt;br /&gt;
&lt;br /&gt;
Note that the standard themes Afterburner, Arialist, Formal White, Fusion, Nonzero, Overlay, Sky High and Splash all offer the possibility to add custom CSS in their page settings via &#039;&#039;Settings&amp;gt;Appearance&amp;gt;Themes&amp;gt;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Failing this, instead of modifying the theme&#039;s CSS files you better put your own code in a separate CSS file and make your theme aware of that file by modifying its config.php file (be sure add your own CSS file as the last one in the list so that you will override all prior settings). See this posting for [http://moodle.org/mod/forum/discuss.php?d=128599#p564055 detailed instructions]. &lt;br /&gt;
&lt;br /&gt;
See also the instructions on creating your own theme mentioned above.&lt;br /&gt;
&lt;br /&gt;
==Will I lose my courses, language files, logo, etc. if I switch my theme?==&lt;br /&gt;
Switching themes only changes the appearance of your site, not the content within it. The logo is a part of the theme and will be lost when you switch.    &lt;br /&gt;
&lt;br /&gt;
Follow these instructions to [[:dev:Creating_a_custom_theme#Adding_a_Logo|add a logo]] to a theme.&lt;br /&gt;
:If you upgrade your Moodle site and tweaked an existing standard theme, you will lose your changes. Thus it is a good idea to create a custom theme which will not be changed when you upgrade.&lt;br /&gt;
&lt;br /&gt;
==I can&#039;t access theme files on the server. Can I still add a logo to a theme?==&lt;br /&gt;
Yes. You have two choices:&lt;br /&gt;
**Either upload your logo to another place publicly available online and then copy the image&#039;s URL to paste into the logo field of the theme page you are editing (such as Afterburner)&lt;br /&gt;
**Or add the main menu block to your front page; upload the logo via Main menu&amp;gt;Add a resource. Get its URL and paste it into the logo field of the theme page you are editing. You can safely then hide or delete the main menu block; the logo will still be there. (&#039;&#039;NOTE&#039;&#039; - your logo will appear in &#039;&#039;Navigation&amp;gt;Site pages&#039;&#039; as well.)&lt;br /&gt;
&lt;br /&gt;
== Are there tools which help me creating and editing themes? ==&lt;br /&gt;
&lt;br /&gt;
=== Clear Cache Button ===&lt;br /&gt;
This useful Firefox add-on let&#039;s you add a button to your tool bar for easily clearing your cache while working on your theme: https://addons.mozilla.org/de/firefox/addon/1801&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p class=&amp;quot;note&amp;quot;&amp;gt;Please note that the following tools are only for development. They only change the way &#039;&#039;you&#039;&#039; see your Moodle site, not the Moodle site itself. Any changes you make using these tools will not be visible to anyone else who uses your site. For this you will have to make those changes permanent by changing your theme&#039;s CSS files for example.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Firebug ===&lt;br /&gt;
The single most useful tool is the [[:dev:Firebug|Firebug]] add-on for the [[:dev:Firefox|Firefox]] web browser. Firebug integrates with Firefox to put a wealth of development tools at your fingertips while you browse. You can edit, debug, and monitor CSS, HTML, and JavaScript live in any web page... And there are additional add-ons for making Firebug an even more powerful tool.&lt;br /&gt;
&lt;br /&gt;
==== Firebug enhancements ====&lt;br /&gt;
You can enhance Firebug even further. See [[:dev:Firebug|Firebug]] for more information.&lt;br /&gt;
&lt;br /&gt;
=== Web Developer Toolbar ===&lt;br /&gt;
Another great tool for any web developer is the [[:dev:Web developer extension|Web developer extension]], another Firefox add-on. One very useful feature is the option to &#039;&#039;&#039;disable your browser&#039;s cache&#039;&#039;&#039; while working on your theme. That way you are sure you&#039;re always presented with your latest modifications and not with an older, cached version.&lt;br /&gt;
&lt;br /&gt;
Now also available for Google&#039;s Chrome browser: [http://www.sitepoint.com/blogs/2010/03/23/chrome-web-developer-toolbar/ &amp;quot;The Web Developer Toolbar Comes to Chrome&amp;quot;]&lt;br /&gt;
&lt;br /&gt;
=== Stylish ===&lt;br /&gt;
Modifications made with Firebug are lost when refreshing your page. If you want your CSS changes to be a bit more permanent, for example to try them with different pages of your Moodle installation, you can use another Firefox plugin: [https://addons.mozilla.org/en-US/firefox/addon/2108 Stylish]. That way you can change your site&#039;s CSS with a simple mouse click without having to change Moodle code.&lt;br /&gt;
&lt;br /&gt;
See [[:dev:Stylish|Stylish]] for detailed instructions and examples.&lt;br /&gt;
&lt;br /&gt;
==== Stylish-Custom ====&lt;br /&gt;
This is an [https://addons.mozilla.org/en-US/firefox/addon/12105/ custom additions] to the Stylish extension which brings back features from 0.5.9 and adds new features.&lt;br /&gt;
&lt;br /&gt;
== How do I check for cross-browser compatibility? ==&lt;br /&gt;
There are some tools (standalone and online) which can show you how your site looks in different browsers. See this [http://moodle.org/mod/forum/discuss.php?d=127746 forum discussion] for details.  See the new device detection settings in [[Theme settings]] which will allow you to create a theme for those &amp;quot;special&amp;quot; browsers.&lt;br /&gt;
&lt;br /&gt;
==How are the device types used in Moodle 2.4 ?==&lt;br /&gt;
If &amp;quot;Enabled device detection&amp;quot; has been turned on, Moodle 2.4 will automatically use the theme which has been set for the device in the [[Standard themes|Theme selector]] settings page.   It is also possible to add additional types to the Theme selector page by using the &amp;quot;device detection regular expressions&amp;quot; fields.   &lt;br /&gt;
&lt;br /&gt;
Site administrators can find these enable device detection settings in Site administration &amp;gt; Appearance &amp;gt;Themes &amp;gt; [[Theme settings]] .&lt;br /&gt;
&lt;br /&gt;
== Concrete examples for modifying Moodle themes ==&lt;br /&gt;
&amp;lt;p class=&amp;quot;note&amp;quot;&amp;gt;&lt;br /&gt;
The following examples were taken from the former &#039;&#039;Theme Scrapbook&#039;&#039;:&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;quot;The Moodle &#039;&#039;&#039;Theme Scrapbook&#039;&#039;&#039; is a collection of small how-to descriptions. You theme designers and Moodle users working with themes add your knowledge here to help new Moodle users with tips and tricks for their theme work. &lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Feel free to add to this list! Don&#039;t know how? Read our [[MoodleDocs:Guidelines_for_contributors|Guidelines for contributors]].&amp;quot;&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Changing things ===&lt;br /&gt;
&lt;br /&gt;
==== Colors ====&lt;br /&gt;
* [[:dev:Forcing the colour of the chat discussion pane (pop-up mode)]]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=142765 Changing background colour of a topic box]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=152357 How to change the colour of the popup event&#039;s header and background]&lt;br /&gt;
&lt;br /&gt;
==== Logo and icons ====&lt;br /&gt;
* [[:dev:Alternate Icon Set|Using an alternate icon set in Moodle]]&lt;br /&gt;
* [[Favicon|Change the favicon that shows in front of the web address]]&lt;br /&gt;
* [[Footer replacement|Replace the logo in the footer with your web address and/or or own logo]]&lt;br /&gt;
*[[:dev:Header logo|Replace the logo in the header]]&lt;br /&gt;
&lt;br /&gt;
==== Layout ====&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=136546 Overriding the $menu / $button variables] using PHP regular expressions in header.html&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=143411 Changing the view of course categories] - work in progress&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=145077 Sub categories and courses layout] - work in progress&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=151370 Tracker &#039;components&#039; list too small]&lt;br /&gt;
&lt;br /&gt;
=== Adding things ===&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=157935 How to add a different img-bullet to each category?]&lt;br /&gt;
&lt;br /&gt;
=== Hiding things ===&lt;br /&gt;
* Hiding an element with CSS is generally achieved using the [http://reference.sitepoint.com/css/display display: none;] property on the element.&lt;br /&gt;
* See [[:dev:Print style]] and [[:dev:Stylish#Print style for Database records]] for an example how to hide parts of a page not meant for printing.&lt;br /&gt;
&lt;br /&gt;
=== Moving things ===&lt;br /&gt;
* [[:dev:Center Forum Posts|Centre smaller forum posts on the page]]&lt;br /&gt;
* [[:dev:Footer positioning|Positioning the page footer]]&lt;br /&gt;
* [[:dev:Left-align quiz|Left align quiz questions and answers]]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=121847 Indentation for nested categories]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=128599 Positioning login and choose language field]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=145179 Match question type - position answers nearer to the questions]&lt;br /&gt;
* [[:dev:Stylish#Fixed admin menue with CSS]]&lt;br /&gt;
&lt;br /&gt;
=== Miscellaneous ===&lt;br /&gt;
* [[:dev:Fixed-width theme|Creating a fixed-width theme]]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=146763 Is there a way to fix oversized HTML Editor using CSS?]&lt;br /&gt;
* [[:dev:Category Design|Modifying the design of specific categories with CSS]]&lt;br /&gt;
&lt;br /&gt;
==How can I see theme changes when using the Windows Complete Installer package==&lt;br /&gt;
In the [http://download.moodle.org/windows/ Windows Complete Installer package], the eAccelerator in the XAMPP install can cause some issues with changes to your theme&#039;s CSS and HTML files from showing.&lt;br /&gt;
&lt;br /&gt;
Open the php.ini file inside of the server\php folder from your install in notepad and search for &amp;quot;eAccelerator&amp;quot; you should see a line that reads: &lt;br /&gt;
 extension=eaccelerator.dll&lt;br /&gt;
&lt;br /&gt;
Insert a semi-colon (turns the line into a comment) at the start of this line so it now reads: &lt;br /&gt;
 ;extension=eaccelerator.dll&lt;br /&gt;
&lt;br /&gt;
Restart the Moodle server using the &amp;quot;stop moodle&amp;quot; and then the &amp;quot;start moodle&amp;quot; programs in your server folder. You should now find that all of your changes to your CSS are reflected as soon as you save the file and refresh your browser cache (usually you can refresh your cache by pressing F5). This FAQ from a discussion at [http://moodle.org/mod/forum/discuss.php?d=151562#p663950 Deactivating caching with XAMPP installations]&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
&lt;br /&gt;
* Using Moodle [http://moodle.org/mod/forum/view.php?f=29 Themes forum]&lt;br /&gt;
* [[:dev:CSS FAQ]]&lt;br /&gt;
* [http://learn.open.ac.uk/mod/oublog/view.php?user=155976 &amp;quot;Understanding Moodle Themes&amp;quot;] - Blog post by [http://moodle.org/user/view.php?id=78896&amp;amp;course=5 Christopher Douce] (Open University)&lt;br /&gt;
* Using Moodle [http://moodle.org/mod/forum/discuss.php?d=149534 Testing 2.0. Use for modern vs old browsers] forum discussion&lt;br /&gt;
&lt;br /&gt;
[[Category:FAQ]]&lt;br /&gt;
[[de:Designs_FAQ]]&lt;/div&gt;</summary>
		<author><name>Rwthornton</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/2x/ca/index.php?title=Themes_FAQ&amp;diff=104472</id>
		<title>Themes FAQ</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/2x/ca/index.php?title=Themes_FAQ&amp;diff=104472"/>
		<updated>2013-05-16T19:04:53Z</updated>

		<summary type="html">&lt;p&gt;Rwthornton: /* What is the hierarchy of contexts for themes to override each other? */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Themes}}&lt;br /&gt;
==How do I install a new theme?==&lt;br /&gt;
&lt;br /&gt;
# Unzip the .zip file to an empty local directory.&lt;br /&gt;
# Upload folder to your web server to the /moodle/theme/[Theme Name]. (Replace [Theme Name] with the name of the theme you have downloaded.) Ensure the new theme folder and its contents are readable by the webserver.  Change Read and Write permissions (CHMOD) for the files and folder to 755 - Owner read/write/execute, Group read/execute, Everyone read/execute.  Incorrect permissions may prevent display of the newly installed theme.&lt;br /&gt;
# Choose your new theme from within Moodle via &#039;&#039;Administration &amp;gt; Appearance &amp;gt; Themes &amp;gt; Theme selector&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
=== How do I install a new theme when using cPanel? ===&lt;br /&gt;
&lt;br /&gt;
# Upload your new theme .zip file to your web server via cPanel. &lt;br /&gt;
# Then using cPanel install the new theme to your Moodle theme&#039;s folder.  The new theme will be installed into its own folder at /moodle/theme/[mytheme] (where [mytheme] is the name of your new theme.&lt;br /&gt;
# Ensure the new theme folder and its contents are readable by the webserver. If necessary  change Read and Write permissions (CHMOD) for the files and folder to 755 - Owner read/write/execute, Group read/execute, Everyone read/execute.  Incorrect permissions may prevent display of the newly installed theme.&lt;br /&gt;
# Choose your new theme from within Moodle via &#039;&#039;Administration &amp;gt; Appearance &amp;gt; Themes &amp;gt; Theme selector&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=== Why is the new theme I uploaded not showing up in Theme Selector? ===&lt;br /&gt;
&lt;br /&gt;
You probably forgot to do something correctly. Here are steps to create a &amp;quot;new&amp;quot; theme from an existing theme called &amp;quot;standard&amp;quot;. Bold show places you must change for the theme to appear.&lt;br /&gt;
#Copy folder theme/standard and call it theme/new&lt;br /&gt;
#In theme/new/lang/en folder,&lt;br /&gt;
##&#039;&#039;&#039;Renamed theme_standard.php to theme_new.php&#039;&#039;&#039;&lt;br /&gt;
#Opened theme/new/lang/en/new.php,  recommend you change 2 lines to read something like:&lt;br /&gt;
##$string[&#039;pluginname&#039;] = &#039;New theme - Martin D&#039;; &lt;br /&gt;
##$string[&#039;chooseredme&#039;] = &#039;New theme came from the Standard theme and is being changed by Martin D in 2011&#039;;&lt;br /&gt;
##Saved the file&lt;br /&gt;
#In theme/new/config.php&lt;br /&gt;
##Change &#039;&#039;&#039;$THEME-&amp;gt;NAME  = &#039;new&#039;&#039;&#039;&#039;;&lt;br /&gt;
#Went to &#039;&#039;Settings &amp;gt; Site Administration &amp;gt;Appearance &amp;gt; Theme settings&#039;&#039; &amp;gt; Theme designer mode (Checked)&lt;br /&gt;
#&#039;&#039;Settings &amp;gt; Site Administration &amp;gt;Appearance &amp;gt; Theme selector&#039;&#039;&lt;br /&gt;
##Clear theme caches&lt;br /&gt;
##Select theme&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;Tip:&#039;&#039; There could be a number of problems with the theme you uploaded, but one major problem reported in the Themes Forum all point to the way in which the theme is uploaded on certain servers. Using the cPanel method, as described in  the FAQ [[Themes_FAQ#How do I install a new theme when using cPanel?|How do I install a new theme when using cPanel?]] will, in most cases, cure the problem.&lt;br /&gt;
&lt;br /&gt;
== How do I control what themes show up where? ==&lt;br /&gt;
&lt;br /&gt;
You can control which themes show up in which contexts by a series of settings in &#039;&#039;Settings&amp;gt;Site Administration&amp;gt;Appearance&amp;gt;Themes&amp;gt;Theme settings&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
===How can I restrict the available themes to users and in courses?===&lt;br /&gt;
&lt;br /&gt;
In&#039;&#039; Settings&amp;gt;Site Administration&amp;gt;Appearance&amp;gt;Themes&amp;gt;Theme settings&#039;&#039;, add the themes you want them to use in the Theme list. These will then restrict the theme choice lists in pull down menus the contexts (Course, Category, User) where you allow them.&lt;br /&gt;
&lt;br /&gt;
===What is the hierarchy of contexts for themes to override each other?===&lt;br /&gt;
&lt;br /&gt;
There are five contexts in which themes appear and can be set: courses, category, session, user, and site, and that is the level of priority of appearance they have as well. You enable course, category, and user in [https://docs.moodle.org/24/en/Theme_settings Theme settings.]  &lt;br /&gt;
&lt;br /&gt;
* Course: themes set at the course level trump (override) all other theme settings&lt;br /&gt;
* Category: themes set at the category level trump all themes except course level themes&lt;br /&gt;
* Session: session level themes set with the URL parameter theme=theme_name are trumped by course and category but trump lower levels&lt;br /&gt;
* User: themes set at the user profile level are trumped by course, category and session, and only trump the site theme&lt;br /&gt;
* Site: Is trumped by any of the above themes&lt;br /&gt;
&lt;br /&gt;
Note on Session Themes: &lt;br /&gt;
&lt;br /&gt;
* It is important to note that Session level themes override the Site level theme ONLY for the user&#039;s current logged in session. When the user does log out however, they will then see the DEFAULT SITE theme, not the Session theme. &lt;br /&gt;
* You only have to set the theme once via the URL parameter and it will persist until the user logs out. &lt;br /&gt;
&lt;br /&gt;
Note on Device Themes:&lt;br /&gt;
&lt;br /&gt;
Note the following issue discovered with device level themes [http://tracker.moodle.org/browse/MDL-35148 MDL-35148] overriding category and course level themes.&lt;br /&gt;
&lt;br /&gt;
==How do I create a custom theme?==&lt;br /&gt;
&lt;br /&gt;
See the developer documentation [[:dev:Theme development|Theme development]].&lt;br /&gt;
&lt;br /&gt;
==Can I assign a specific theme to a course?==&lt;br /&gt;
&lt;br /&gt;
Yes. In the course settings, use the &amp;quot;Force theme&amp;quot; dropdown box.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Is it possible to customise language strings per theme?==&lt;br /&gt;
Not by default, as when strings are customised, they are customised for the whole site. However, it is possible to make a new language  pack based on your main language and apply that pack to the course which has that theme. See this forum post for more information: https://moodle.org/mod/forum/discuss.php?d=220671&lt;br /&gt;
&lt;br /&gt;
==How can I get the links in  my custom menu to open in new windows?==&lt;br /&gt;
It is possible to create your own fly out menu via the custom menu block in Settings&amp;gt;Site administration&amp;gt;Appearance&amp;gt;Themes&amp;gt;Theme settings. Copy the examples given below the box. If you want the links to open in a new window, use the following code:&lt;br /&gt;
 Moodle|http://www.moodle.org&amp;quot; target=&amp;quot;_blank&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Where shall I put my custom CSS code? ==&lt;br /&gt;
&lt;br /&gt;
Note that the standard themes Afterburner, Arialist, Formal White, Fusion, Nonzero, Overlay, Sky High and Splash all offer the possibility to add custom CSS in their page settings via &#039;&#039;Settings&amp;gt;Appearance&amp;gt;Themes&amp;gt;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Failing this, instead of modifying the theme&#039;s CSS files you better put your own code in a separate CSS file and make your theme aware of that file by modifying its config.php file (be sure add your own CSS file as the last one in the list so that you will override all prior settings). See this posting for [http://moodle.org/mod/forum/discuss.php?d=128599#p564055 detailed instructions]. &lt;br /&gt;
&lt;br /&gt;
See also the instructions on creating your own theme mentioned above.&lt;br /&gt;
&lt;br /&gt;
==Will I lose my courses, language files, logo, etc. if I switch my theme?==&lt;br /&gt;
Switching themes only changes the appearance of your site, not the content within it. The logo is a part of the theme and will be lost when you switch.    &lt;br /&gt;
&lt;br /&gt;
Follow these instructions to [[:dev:Creating_a_custom_theme#Adding_a_Logo|add a logo]] to a theme.&lt;br /&gt;
:If you upgrade your Moodle site and tweaked an existing standard theme, you will lose your changes. Thus it is a good idea to create a custom theme which will not be changed when you upgrade.&lt;br /&gt;
&lt;br /&gt;
==I can&#039;t access theme files on the server. Can I still add a logo to a theme?==&lt;br /&gt;
Yes. You have two choices:&lt;br /&gt;
**Either upload your logo to another place publicly available online and then copy the image&#039;s URL to paste into the logo field of the theme page you are editing (such as Afterburner)&lt;br /&gt;
**Or add the main menu block to your front page; upload the logo via Main menu&amp;gt;Add a resource. Get its URL and paste it into the logo field of the theme page you are editing. You can safely then hide or delete the main menu block; the logo will still be there. (&#039;&#039;NOTE&#039;&#039; - your logo will appear in &#039;&#039;Navigation&amp;gt;Site pages&#039;&#039; as well.)&lt;br /&gt;
&lt;br /&gt;
== Are there tools which help me creating and editing themes? ==&lt;br /&gt;
&lt;br /&gt;
=== Clear Cache Button ===&lt;br /&gt;
This useful Firefox add-on let&#039;s you add a button to your tool bar for easily clearing your cache while working on your theme: https://addons.mozilla.org/de/firefox/addon/1801&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p class=&amp;quot;note&amp;quot;&amp;gt;Please note that the following tools are only for development. They only change the way &#039;&#039;you&#039;&#039; see your Moodle site, not the Moodle site itself. Any changes you make using these tools will not be visible to anyone else who uses your site. For this you will have to make those changes permanent by changing your theme&#039;s CSS files for example.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Firebug ===&lt;br /&gt;
The single most useful tool is the [[:dev:Firebug|Firebug]] add-on for the [[:dev:Firefox|Firefox]] web browser. Firebug integrates with Firefox to put a wealth of development tools at your fingertips while you browse. You can edit, debug, and monitor CSS, HTML, and JavaScript live in any web page... And there are additional add-ons for making Firebug an even more powerful tool.&lt;br /&gt;
&lt;br /&gt;
==== Firebug enhancements ====&lt;br /&gt;
You can enhance Firebug even further. See [[:dev:Firebug|Firebug]] for more information.&lt;br /&gt;
&lt;br /&gt;
=== Web Developer Toolbar ===&lt;br /&gt;
Another great tool for any web developer is the [[:dev:Web developer extension|Web developer extension]], another Firefox add-on. One very useful feature is the option to &#039;&#039;&#039;disable your browser&#039;s cache&#039;&#039;&#039; while working on your theme. That way you are sure you&#039;re always presented with your latest modifications and not with an older, cached version.&lt;br /&gt;
&lt;br /&gt;
Now also available for Google&#039;s Chrome browser: [http://www.sitepoint.com/blogs/2010/03/23/chrome-web-developer-toolbar/ &amp;quot;The Web Developer Toolbar Comes to Chrome&amp;quot;]&lt;br /&gt;
&lt;br /&gt;
=== Stylish ===&lt;br /&gt;
Modifications made with Firebug are lost when refreshing your page. If you want your CSS changes to be a bit more permanent, for example to try them with different pages of your Moodle installation, you can use another Firefox plugin: [https://addons.mozilla.org/en-US/firefox/addon/2108 Stylish]. That way you can change your site&#039;s CSS with a simple mouse click without having to change Moodle code.&lt;br /&gt;
&lt;br /&gt;
See [[:dev:Stylish|Stylish]] for detailed instructions and examples.&lt;br /&gt;
&lt;br /&gt;
==== Stylish-Custom ====&lt;br /&gt;
This is an [https://addons.mozilla.org/en-US/firefox/addon/12105/ custom additions] to the Stylish extension which brings back features from 0.5.9 and adds new features.&lt;br /&gt;
&lt;br /&gt;
== How do I check for cross-browser compatibility? ==&lt;br /&gt;
There are some tools (standalone and online) which can show you how your site looks in different browsers. See this [http://moodle.org/mod/forum/discuss.php?d=127746 forum discussion] for details.  See the new device detection settings in [[Theme settings]] which will allow you to create a theme for those &amp;quot;special&amp;quot; browsers.&lt;br /&gt;
&lt;br /&gt;
==How are the device types used in Moodle 2.4 ?==&lt;br /&gt;
If &amp;quot;Enabled device detection&amp;quot; has been turned on, Moodle 2.4 will automatically use the theme which has been set for the device in the [[Standard themes|Theme selector]] settings page.   It is also possible to add additional types to the Theme selector page by using the &amp;quot;device detection regular expressions&amp;quot; fields.   &lt;br /&gt;
&lt;br /&gt;
Site administrators can find these enable device detection settings in Site administration &amp;gt; Appearance &amp;gt;Themes &amp;gt; [[Theme settings]] .&lt;br /&gt;
&lt;br /&gt;
== Concrete examples for modifying Moodle themes ==&lt;br /&gt;
&amp;lt;p class=&amp;quot;note&amp;quot;&amp;gt;&lt;br /&gt;
The following examples were taken from the former &#039;&#039;Theme Scrapbook&#039;&#039;:&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;quot;The Moodle &#039;&#039;&#039;Theme Scrapbook&#039;&#039;&#039; is a collection of small how-to descriptions. You theme designers and Moodle users working with themes add your knowledge here to help new Moodle users with tips and tricks for their theme work. &lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Feel free to add to this list! Don&#039;t know how? Read our [[MoodleDocs:Guidelines_for_contributors|Guidelines for contributors]].&amp;quot;&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Changing things ===&lt;br /&gt;
&lt;br /&gt;
==== Colors ====&lt;br /&gt;
* [[:dev:Forcing the colour of the chat discussion pane (pop-up mode)]]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=142765 Changing background colour of a topic box]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=152357 How to change the colour of the popup event&#039;s header and background]&lt;br /&gt;
&lt;br /&gt;
==== Logo and icons ====&lt;br /&gt;
* [[:dev:Alternate Icon Set|Using an alternate icon set in Moodle]]&lt;br /&gt;
* [[Favicon|Change the favicon that shows in front of the web address]]&lt;br /&gt;
* [[Footer replacement|Replace the logo in the footer with your web address and/or or own logo]]&lt;br /&gt;
*[[:dev:Header logo|Replace the logo in the header]]&lt;br /&gt;
&lt;br /&gt;
==== Layout ====&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=136546 Overriding the $menu / $button variables] using PHP regular expressions in header.html&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=143411 Changing the view of course categories] - work in progress&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=145077 Sub categories and courses layout] - work in progress&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=151370 Tracker &#039;components&#039; list too small]&lt;br /&gt;
&lt;br /&gt;
=== Adding things ===&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=157935 How to add a different img-bullet to each category?]&lt;br /&gt;
&lt;br /&gt;
=== Hiding things ===&lt;br /&gt;
* Hiding an element with CSS is generally achieved using the [http://reference.sitepoint.com/css/display display: none;] property on the element.&lt;br /&gt;
* See [[:dev:Print style]] and [[:dev:Stylish#Print style for Database records]] for an example how to hide parts of a page not meant for printing.&lt;br /&gt;
&lt;br /&gt;
=== Moving things ===&lt;br /&gt;
* [[:dev:Center Forum Posts|Centre smaller forum posts on the page]]&lt;br /&gt;
* [[:dev:Footer positioning|Positioning the page footer]]&lt;br /&gt;
* [[:dev:Left-align quiz|Left align quiz questions and answers]]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=121847 Indentation for nested categories]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=128599 Positioning login and choose language field]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=145179 Match question type - position answers nearer to the questions]&lt;br /&gt;
* [[:dev:Stylish#Fixed admin menue with CSS]]&lt;br /&gt;
&lt;br /&gt;
=== Miscellaneous ===&lt;br /&gt;
* [[:dev:Fixed-width theme|Creating a fixed-width theme]]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=146763 Is there a way to fix oversized HTML Editor using CSS?]&lt;br /&gt;
* [[:dev:Category Design|Modifying the design of specific categories with CSS]]&lt;br /&gt;
&lt;br /&gt;
==How can I see theme changes when using the Windows Complete Installer package==&lt;br /&gt;
In the [http://download.moodle.org/windows/ Windows Complete Installer package], the eAccelerator in the XAMPP install can cause some issues with changes to your theme&#039;s CSS and HTML files from showing.&lt;br /&gt;
&lt;br /&gt;
Open the php.ini file inside of the server\php folder from your install in notepad and search for &amp;quot;eAccelerator&amp;quot; you should see a line that reads: &lt;br /&gt;
 extension=eaccelerator.dll&lt;br /&gt;
&lt;br /&gt;
Insert a semi-colon (turns the line into a comment) at the start of this line so it now reads: &lt;br /&gt;
 ;extension=eaccelerator.dll&lt;br /&gt;
&lt;br /&gt;
Restart the Moodle server using the &amp;quot;stop moodle&amp;quot; and then the &amp;quot;start moodle&amp;quot; programs in your server folder. You should now find that all of your changes to your CSS are reflected as soon as you save the file and refresh your browser cache (usually you can refresh your cache by pressing F5). This FAQ from a discussion at [http://moodle.org/mod/forum/discuss.php?d=151562#p663950 Deactivating caching with XAMPP installations]&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
&lt;br /&gt;
* Using Moodle [http://moodle.org/mod/forum/view.php?f=29 Themes forum]&lt;br /&gt;
* [[:dev:CSS FAQ]]&lt;br /&gt;
* [http://learn.open.ac.uk/mod/oublog/view.php?user=155976 &amp;quot;Understanding Moodle Themes&amp;quot;] - Blog post by [http://moodle.org/user/view.php?id=78896&amp;amp;course=5 Christopher Douce] (Open University)&lt;br /&gt;
* Using Moodle [http://moodle.org/mod/forum/discuss.php?d=149534 Testing 2.0. Use for modern vs old browsers] forum discussion&lt;br /&gt;
&lt;br /&gt;
[[Category:FAQ]]&lt;br /&gt;
[[de:Designs_FAQ]]&lt;/div&gt;</summary>
		<author><name>Rwthornton</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/2x/ca/index.php?title=Themes_FAQ&amp;diff=104471</id>
		<title>Themes FAQ</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/2x/ca/index.php?title=Themes_FAQ&amp;diff=104471"/>
		<updated>2013-05-16T19:04:31Z</updated>

		<summary type="html">&lt;p&gt;Rwthornton: /* What is the hierarchy of contexts for themes to override each other? */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Themes}}&lt;br /&gt;
==How do I install a new theme?==&lt;br /&gt;
&lt;br /&gt;
# Unzip the .zip file to an empty local directory.&lt;br /&gt;
# Upload folder to your web server to the /moodle/theme/[Theme Name]. (Replace [Theme Name] with the name of the theme you have downloaded.) Ensure the new theme folder and its contents are readable by the webserver.  Change Read and Write permissions (CHMOD) for the files and folder to 755 - Owner read/write/execute, Group read/execute, Everyone read/execute.  Incorrect permissions may prevent display of the newly installed theme.&lt;br /&gt;
# Choose your new theme from within Moodle via &#039;&#039;Administration &amp;gt; Appearance &amp;gt; Themes &amp;gt; Theme selector&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
=== How do I install a new theme when using cPanel? ===&lt;br /&gt;
&lt;br /&gt;
# Upload your new theme .zip file to your web server via cPanel. &lt;br /&gt;
# Then using cPanel install the new theme to your Moodle theme&#039;s folder.  The new theme will be installed into its own folder at /moodle/theme/[mytheme] (where [mytheme] is the name of your new theme.&lt;br /&gt;
# Ensure the new theme folder and its contents are readable by the webserver. If necessary  change Read and Write permissions (CHMOD) for the files and folder to 755 - Owner read/write/execute, Group read/execute, Everyone read/execute.  Incorrect permissions may prevent display of the newly installed theme.&lt;br /&gt;
# Choose your new theme from within Moodle via &#039;&#039;Administration &amp;gt; Appearance &amp;gt; Themes &amp;gt; Theme selector&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=== Why is the new theme I uploaded not showing up in Theme Selector? ===&lt;br /&gt;
&lt;br /&gt;
You probably forgot to do something correctly. Here are steps to create a &amp;quot;new&amp;quot; theme from an existing theme called &amp;quot;standard&amp;quot;. Bold show places you must change for the theme to appear.&lt;br /&gt;
#Copy folder theme/standard and call it theme/new&lt;br /&gt;
#In theme/new/lang/en folder,&lt;br /&gt;
##&#039;&#039;&#039;Renamed theme_standard.php to theme_new.php&#039;&#039;&#039;&lt;br /&gt;
#Opened theme/new/lang/en/new.php,  recommend you change 2 lines to read something like:&lt;br /&gt;
##$string[&#039;pluginname&#039;] = &#039;New theme - Martin D&#039;; &lt;br /&gt;
##$string[&#039;chooseredme&#039;] = &#039;New theme came from the Standard theme and is being changed by Martin D in 2011&#039;;&lt;br /&gt;
##Saved the file&lt;br /&gt;
#In theme/new/config.php&lt;br /&gt;
##Change &#039;&#039;&#039;$THEME-&amp;gt;NAME  = &#039;new&#039;&#039;&#039;&#039;;&lt;br /&gt;
#Went to &#039;&#039;Settings &amp;gt; Site Administration &amp;gt;Appearance &amp;gt; Theme settings&#039;&#039; &amp;gt; Theme designer mode (Checked)&lt;br /&gt;
#&#039;&#039;Settings &amp;gt; Site Administration &amp;gt;Appearance &amp;gt; Theme selector&#039;&#039;&lt;br /&gt;
##Clear theme caches&lt;br /&gt;
##Select theme&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;Tip:&#039;&#039; There could be a number of problems with the theme you uploaded, but one major problem reported in the Themes Forum all point to the way in which the theme is uploaded on certain servers. Using the cPanel method, as described in  the FAQ [[Themes_FAQ#How do I install a new theme when using cPanel?|How do I install a new theme when using cPanel?]] will, in most cases, cure the problem.&lt;br /&gt;
&lt;br /&gt;
== How do I control what themes show up where? ==&lt;br /&gt;
&lt;br /&gt;
You can control which themes show up in which contexts by a series of settings in &#039;&#039;Settings&amp;gt;Site Administration&amp;gt;Appearance&amp;gt;Themes&amp;gt;Theme settings&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
===How can I restrict the available themes to users and in courses?===&lt;br /&gt;
&lt;br /&gt;
In&#039;&#039; Settings&amp;gt;Site Administration&amp;gt;Appearance&amp;gt;Themes&amp;gt;Theme settings&#039;&#039;, add the themes you want them to use in the Theme list. These will then restrict the theme choice lists in pull down menus the contexts (Course, Category, User) where you allow them.&lt;br /&gt;
&lt;br /&gt;
===What is the hierarchy of contexts for themes to override each other?===&lt;br /&gt;
&lt;br /&gt;
There are five contexts in which themes appear and can be set: courses, category, session, user, and site, and that is the level of priority of appearance they have as well. You enable course, category, and user in [https://docs.moodle.org/24/en/Theme_settings Theme settings.]  &lt;br /&gt;
&lt;br /&gt;
* Course: themes set at the course level trump (override) all other theme settings&lt;br /&gt;
* Category: themes set at the category level trump all themes except course level themes&lt;br /&gt;
* Session: session level themes set with the URL parameter theme=theme_name are trumped by course and category but trump lower levels&lt;br /&gt;
* User: themes set at the user profile level are trumped by course, category and session, and only trump the site theme&lt;br /&gt;
* Site: Is trumped by any of the above themes&lt;br /&gt;
&lt;br /&gt;
Note on Session Themes: &lt;br /&gt;
&lt;br /&gt;
* It is important to note that Session level themes override the Site level theme ONLY for the user&#039;s current logged in session. When the user does log out however, they will then see the DEFAULT SITE theme, not the Session theme. &lt;br /&gt;
* You only have to set the theme once via the URL parameter and it will persist until the user logs out. &lt;br /&gt;
&lt;br /&gt;
Note on Device Themes:&lt;br /&gt;
&lt;br /&gt;
Note the following issue discovered with device level themes [http://tracker.moodle.org/browse/MDL-35148] overriding category and course level themes.&lt;br /&gt;
&lt;br /&gt;
==How do I create a custom theme?==&lt;br /&gt;
&lt;br /&gt;
See the developer documentation [[:dev:Theme development|Theme development]].&lt;br /&gt;
&lt;br /&gt;
==Can I assign a specific theme to a course?==&lt;br /&gt;
&lt;br /&gt;
Yes. In the course settings, use the &amp;quot;Force theme&amp;quot; dropdown box.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Is it possible to customise language strings per theme?==&lt;br /&gt;
Not by default, as when strings are customised, they are customised for the whole site. However, it is possible to make a new language  pack based on your main language and apply that pack to the course which has that theme. See this forum post for more information: https://moodle.org/mod/forum/discuss.php?d=220671&lt;br /&gt;
&lt;br /&gt;
==How can I get the links in  my custom menu to open in new windows?==&lt;br /&gt;
It is possible to create your own fly out menu via the custom menu block in Settings&amp;gt;Site administration&amp;gt;Appearance&amp;gt;Themes&amp;gt;Theme settings. Copy the examples given below the box. If you want the links to open in a new window, use the following code:&lt;br /&gt;
 Moodle|http://www.moodle.org&amp;quot; target=&amp;quot;_blank&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Where shall I put my custom CSS code? ==&lt;br /&gt;
&lt;br /&gt;
Note that the standard themes Afterburner, Arialist, Formal White, Fusion, Nonzero, Overlay, Sky High and Splash all offer the possibility to add custom CSS in their page settings via &#039;&#039;Settings&amp;gt;Appearance&amp;gt;Themes&amp;gt;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Failing this, instead of modifying the theme&#039;s CSS files you better put your own code in a separate CSS file and make your theme aware of that file by modifying its config.php file (be sure add your own CSS file as the last one in the list so that you will override all prior settings). See this posting for [http://moodle.org/mod/forum/discuss.php?d=128599#p564055 detailed instructions]. &lt;br /&gt;
&lt;br /&gt;
See also the instructions on creating your own theme mentioned above.&lt;br /&gt;
&lt;br /&gt;
==Will I lose my courses, language files, logo, etc. if I switch my theme?==&lt;br /&gt;
Switching themes only changes the appearance of your site, not the content within it. The logo is a part of the theme and will be lost when you switch.    &lt;br /&gt;
&lt;br /&gt;
Follow these instructions to [[:dev:Creating_a_custom_theme#Adding_a_Logo|add a logo]] to a theme.&lt;br /&gt;
:If you upgrade your Moodle site and tweaked an existing standard theme, you will lose your changes. Thus it is a good idea to create a custom theme which will not be changed when you upgrade.&lt;br /&gt;
&lt;br /&gt;
==I can&#039;t access theme files on the server. Can I still add a logo to a theme?==&lt;br /&gt;
Yes. You have two choices:&lt;br /&gt;
**Either upload your logo to another place publicly available online and then copy the image&#039;s URL to paste into the logo field of the theme page you are editing (such as Afterburner)&lt;br /&gt;
**Or add the main menu block to your front page; upload the logo via Main menu&amp;gt;Add a resource. Get its URL and paste it into the logo field of the theme page you are editing. You can safely then hide or delete the main menu block; the logo will still be there. (&#039;&#039;NOTE&#039;&#039; - your logo will appear in &#039;&#039;Navigation&amp;gt;Site pages&#039;&#039; as well.)&lt;br /&gt;
&lt;br /&gt;
== Are there tools which help me creating and editing themes? ==&lt;br /&gt;
&lt;br /&gt;
=== Clear Cache Button ===&lt;br /&gt;
This useful Firefox add-on let&#039;s you add a button to your tool bar for easily clearing your cache while working on your theme: https://addons.mozilla.org/de/firefox/addon/1801&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p class=&amp;quot;note&amp;quot;&amp;gt;Please note that the following tools are only for development. They only change the way &#039;&#039;you&#039;&#039; see your Moodle site, not the Moodle site itself. Any changes you make using these tools will not be visible to anyone else who uses your site. For this you will have to make those changes permanent by changing your theme&#039;s CSS files for example.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Firebug ===&lt;br /&gt;
The single most useful tool is the [[:dev:Firebug|Firebug]] add-on for the [[:dev:Firefox|Firefox]] web browser. Firebug integrates with Firefox to put a wealth of development tools at your fingertips while you browse. You can edit, debug, and monitor CSS, HTML, and JavaScript live in any web page... And there are additional add-ons for making Firebug an even more powerful tool.&lt;br /&gt;
&lt;br /&gt;
==== Firebug enhancements ====&lt;br /&gt;
You can enhance Firebug even further. See [[:dev:Firebug|Firebug]] for more information.&lt;br /&gt;
&lt;br /&gt;
=== Web Developer Toolbar ===&lt;br /&gt;
Another great tool for any web developer is the [[:dev:Web developer extension|Web developer extension]], another Firefox add-on. One very useful feature is the option to &#039;&#039;&#039;disable your browser&#039;s cache&#039;&#039;&#039; while working on your theme. That way you are sure you&#039;re always presented with your latest modifications and not with an older, cached version.&lt;br /&gt;
&lt;br /&gt;
Now also available for Google&#039;s Chrome browser: [http://www.sitepoint.com/blogs/2010/03/23/chrome-web-developer-toolbar/ &amp;quot;The Web Developer Toolbar Comes to Chrome&amp;quot;]&lt;br /&gt;
&lt;br /&gt;
=== Stylish ===&lt;br /&gt;
Modifications made with Firebug are lost when refreshing your page. If you want your CSS changes to be a bit more permanent, for example to try them with different pages of your Moodle installation, you can use another Firefox plugin: [https://addons.mozilla.org/en-US/firefox/addon/2108 Stylish]. That way you can change your site&#039;s CSS with a simple mouse click without having to change Moodle code.&lt;br /&gt;
&lt;br /&gt;
See [[:dev:Stylish|Stylish]] for detailed instructions and examples.&lt;br /&gt;
&lt;br /&gt;
==== Stylish-Custom ====&lt;br /&gt;
This is an [https://addons.mozilla.org/en-US/firefox/addon/12105/ custom additions] to the Stylish extension which brings back features from 0.5.9 and adds new features.&lt;br /&gt;
&lt;br /&gt;
== How do I check for cross-browser compatibility? ==&lt;br /&gt;
There are some tools (standalone and online) which can show you how your site looks in different browsers. See this [http://moodle.org/mod/forum/discuss.php?d=127746 forum discussion] for details.  See the new device detection settings in [[Theme settings]] which will allow you to create a theme for those &amp;quot;special&amp;quot; browsers.&lt;br /&gt;
&lt;br /&gt;
==How are the device types used in Moodle 2.4 ?==&lt;br /&gt;
If &amp;quot;Enabled device detection&amp;quot; has been turned on, Moodle 2.4 will automatically use the theme which has been set for the device in the [[Standard themes|Theme selector]] settings page.   It is also possible to add additional types to the Theme selector page by using the &amp;quot;device detection regular expressions&amp;quot; fields.   &lt;br /&gt;
&lt;br /&gt;
Site administrators can find these enable device detection settings in Site administration &amp;gt; Appearance &amp;gt;Themes &amp;gt; [[Theme settings]] .&lt;br /&gt;
&lt;br /&gt;
== Concrete examples for modifying Moodle themes ==&lt;br /&gt;
&amp;lt;p class=&amp;quot;note&amp;quot;&amp;gt;&lt;br /&gt;
The following examples were taken from the former &#039;&#039;Theme Scrapbook&#039;&#039;:&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;quot;The Moodle &#039;&#039;&#039;Theme Scrapbook&#039;&#039;&#039; is a collection of small how-to descriptions. You theme designers and Moodle users working with themes add your knowledge here to help new Moodle users with tips and tricks for their theme work. &lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Feel free to add to this list! Don&#039;t know how? Read our [[MoodleDocs:Guidelines_for_contributors|Guidelines for contributors]].&amp;quot;&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Changing things ===&lt;br /&gt;
&lt;br /&gt;
==== Colors ====&lt;br /&gt;
* [[:dev:Forcing the colour of the chat discussion pane (pop-up mode)]]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=142765 Changing background colour of a topic box]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=152357 How to change the colour of the popup event&#039;s header and background]&lt;br /&gt;
&lt;br /&gt;
==== Logo and icons ====&lt;br /&gt;
* [[:dev:Alternate Icon Set|Using an alternate icon set in Moodle]]&lt;br /&gt;
* [[Favicon|Change the favicon that shows in front of the web address]]&lt;br /&gt;
* [[Footer replacement|Replace the logo in the footer with your web address and/or or own logo]]&lt;br /&gt;
*[[:dev:Header logo|Replace the logo in the header]]&lt;br /&gt;
&lt;br /&gt;
==== Layout ====&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=136546 Overriding the $menu / $button variables] using PHP regular expressions in header.html&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=143411 Changing the view of course categories] - work in progress&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=145077 Sub categories and courses layout] - work in progress&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=151370 Tracker &#039;components&#039; list too small]&lt;br /&gt;
&lt;br /&gt;
=== Adding things ===&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=157935 How to add a different img-bullet to each category?]&lt;br /&gt;
&lt;br /&gt;
=== Hiding things ===&lt;br /&gt;
* Hiding an element with CSS is generally achieved using the [http://reference.sitepoint.com/css/display display: none;] property on the element.&lt;br /&gt;
* See [[:dev:Print style]] and [[:dev:Stylish#Print style for Database records]] for an example how to hide parts of a page not meant for printing.&lt;br /&gt;
&lt;br /&gt;
=== Moving things ===&lt;br /&gt;
* [[:dev:Center Forum Posts|Centre smaller forum posts on the page]]&lt;br /&gt;
* [[:dev:Footer positioning|Positioning the page footer]]&lt;br /&gt;
* [[:dev:Left-align quiz|Left align quiz questions and answers]]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=121847 Indentation for nested categories]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=128599 Positioning login and choose language field]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=145179 Match question type - position answers nearer to the questions]&lt;br /&gt;
* [[:dev:Stylish#Fixed admin menue with CSS]]&lt;br /&gt;
&lt;br /&gt;
=== Miscellaneous ===&lt;br /&gt;
* [[:dev:Fixed-width theme|Creating a fixed-width theme]]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=146763 Is there a way to fix oversized HTML Editor using CSS?]&lt;br /&gt;
* [[:dev:Category Design|Modifying the design of specific categories with CSS]]&lt;br /&gt;
&lt;br /&gt;
==How can I see theme changes when using the Windows Complete Installer package==&lt;br /&gt;
In the [http://download.moodle.org/windows/ Windows Complete Installer package], the eAccelerator in the XAMPP install can cause some issues with changes to your theme&#039;s CSS and HTML files from showing.&lt;br /&gt;
&lt;br /&gt;
Open the php.ini file inside of the server\php folder from your install in notepad and search for &amp;quot;eAccelerator&amp;quot; you should see a line that reads: &lt;br /&gt;
 extension=eaccelerator.dll&lt;br /&gt;
&lt;br /&gt;
Insert a semi-colon (turns the line into a comment) at the start of this line so it now reads: &lt;br /&gt;
 ;extension=eaccelerator.dll&lt;br /&gt;
&lt;br /&gt;
Restart the Moodle server using the &amp;quot;stop moodle&amp;quot; and then the &amp;quot;start moodle&amp;quot; programs in your server folder. You should now find that all of your changes to your CSS are reflected as soon as you save the file and refresh your browser cache (usually you can refresh your cache by pressing F5). This FAQ from a discussion at [http://moodle.org/mod/forum/discuss.php?d=151562#p663950 Deactivating caching with XAMPP installations]&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
&lt;br /&gt;
* Using Moodle [http://moodle.org/mod/forum/view.php?f=29 Themes forum]&lt;br /&gt;
* [[:dev:CSS FAQ]]&lt;br /&gt;
* [http://learn.open.ac.uk/mod/oublog/view.php?user=155976 &amp;quot;Understanding Moodle Themes&amp;quot;] - Blog post by [http://moodle.org/user/view.php?id=78896&amp;amp;course=5 Christopher Douce] (Open University)&lt;br /&gt;
* Using Moodle [http://moodle.org/mod/forum/discuss.php?d=149534 Testing 2.0. Use for modern vs old browsers] forum discussion&lt;br /&gt;
&lt;br /&gt;
[[Category:FAQ]]&lt;br /&gt;
[[de:Designs_FAQ]]&lt;/div&gt;</summary>
		<author><name>Rwthornton</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/2x/ca/index.php?title=Themes_FAQ&amp;diff=104470</id>
		<title>Themes FAQ</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/2x/ca/index.php?title=Themes_FAQ&amp;diff=104470"/>
		<updated>2013-05-16T19:03:21Z</updated>

		<summary type="html">&lt;p&gt;Rwthornton: /* What is the hierarchy of contexts for themes to override each other? */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Themes}}&lt;br /&gt;
==How do I install a new theme?==&lt;br /&gt;
&lt;br /&gt;
# Unzip the .zip file to an empty local directory.&lt;br /&gt;
# Upload folder to your web server to the /moodle/theme/[Theme Name]. (Replace [Theme Name] with the name of the theme you have downloaded.) Ensure the new theme folder and its contents are readable by the webserver.  Change Read and Write permissions (CHMOD) for the files and folder to 755 - Owner read/write/execute, Group read/execute, Everyone read/execute.  Incorrect permissions may prevent display of the newly installed theme.&lt;br /&gt;
# Choose your new theme from within Moodle via &#039;&#039;Administration &amp;gt; Appearance &amp;gt; Themes &amp;gt; Theme selector&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
=== How do I install a new theme when using cPanel? ===&lt;br /&gt;
&lt;br /&gt;
# Upload your new theme .zip file to your web server via cPanel. &lt;br /&gt;
# Then using cPanel install the new theme to your Moodle theme&#039;s folder.  The new theme will be installed into its own folder at /moodle/theme/[mytheme] (where [mytheme] is the name of your new theme.&lt;br /&gt;
# Ensure the new theme folder and its contents are readable by the webserver. If necessary  change Read and Write permissions (CHMOD) for the files and folder to 755 - Owner read/write/execute, Group read/execute, Everyone read/execute.  Incorrect permissions may prevent display of the newly installed theme.&lt;br /&gt;
# Choose your new theme from within Moodle via &#039;&#039;Administration &amp;gt; Appearance &amp;gt; Themes &amp;gt; Theme selector&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=== Why is the new theme I uploaded not showing up in Theme Selector? ===&lt;br /&gt;
&lt;br /&gt;
You probably forgot to do something correctly. Here are steps to create a &amp;quot;new&amp;quot; theme from an existing theme called &amp;quot;standard&amp;quot;. Bold show places you must change for the theme to appear.&lt;br /&gt;
#Copy folder theme/standard and call it theme/new&lt;br /&gt;
#In theme/new/lang/en folder,&lt;br /&gt;
##&#039;&#039;&#039;Renamed theme_standard.php to theme_new.php&#039;&#039;&#039;&lt;br /&gt;
#Opened theme/new/lang/en/new.php,  recommend you change 2 lines to read something like:&lt;br /&gt;
##$string[&#039;pluginname&#039;] = &#039;New theme - Martin D&#039;; &lt;br /&gt;
##$string[&#039;chooseredme&#039;] = &#039;New theme came from the Standard theme and is being changed by Martin D in 2011&#039;;&lt;br /&gt;
##Saved the file&lt;br /&gt;
#In theme/new/config.php&lt;br /&gt;
##Change &#039;&#039;&#039;$THEME-&amp;gt;NAME  = &#039;new&#039;&#039;&#039;&#039;;&lt;br /&gt;
#Went to &#039;&#039;Settings &amp;gt; Site Administration &amp;gt;Appearance &amp;gt; Theme settings&#039;&#039; &amp;gt; Theme designer mode (Checked)&lt;br /&gt;
#&#039;&#039;Settings &amp;gt; Site Administration &amp;gt;Appearance &amp;gt; Theme selector&#039;&#039;&lt;br /&gt;
##Clear theme caches&lt;br /&gt;
##Select theme&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;Tip:&#039;&#039; There could be a number of problems with the theme you uploaded, but one major problem reported in the Themes Forum all point to the way in which the theme is uploaded on certain servers. Using the cPanel method, as described in  the FAQ [[Themes_FAQ#How do I install a new theme when using cPanel?|How do I install a new theme when using cPanel?]] will, in most cases, cure the problem.&lt;br /&gt;
&lt;br /&gt;
== How do I control what themes show up where? ==&lt;br /&gt;
&lt;br /&gt;
You can control which themes show up in which contexts by a series of settings in &#039;&#039;Settings&amp;gt;Site Administration&amp;gt;Appearance&amp;gt;Themes&amp;gt;Theme settings&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
===How can I restrict the available themes to users and in courses?===&lt;br /&gt;
&lt;br /&gt;
In&#039;&#039; Settings&amp;gt;Site Administration&amp;gt;Appearance&amp;gt;Themes&amp;gt;Theme settings&#039;&#039;, add the themes you want them to use in the Theme list. These will then restrict the theme choice lists in pull down menus the contexts (Course, Category, User) where you allow them.&lt;br /&gt;
&lt;br /&gt;
===What is the hierarchy of contexts for themes to override each other?===&lt;br /&gt;
&lt;br /&gt;
There are five contexts in which themes appear and can be set: courses, category, session, user, and site, and that is the level of priority of appearance they have as well. You enable course, category, and user in [https://docs.moodle.org/24/en/Theme_settings Theme settings.]  &lt;br /&gt;
&lt;br /&gt;
* Course: themes set at the course level trump (override) all other theme settings&lt;br /&gt;
* Category: themes set at the category level trump all themes except course level themes&lt;br /&gt;
* Session: session level themes set with the URL parameter theme=theme_name are trumped by course and category but trump lower levels&lt;br /&gt;
* User: themes set at the user profile level are trumped by course, category and session, and only trump the site theme&lt;br /&gt;
* Site: Is trumped by any of the above themes&lt;br /&gt;
&lt;br /&gt;
Note on Session Themes: &lt;br /&gt;
&lt;br /&gt;
* It is important to note that Session level themes override the Site level theme ONLY for the user&#039;s current logged in session. When the user does log out however, they will then see the DEFAULT SITE theme, not the Session theme. &lt;br /&gt;
* You only have to set the theme once via the URL parameter and it will persist until the user logs out. &lt;br /&gt;
&lt;br /&gt;
Note on Device Themes:&lt;br /&gt;
&lt;br /&gt;
Note the following issue discovered with device level themes [http://tracker.moodle.org/browse/MDL-35148 MDL-35148.]&lt;br /&gt;
&lt;br /&gt;
==How do I create a custom theme?==&lt;br /&gt;
&lt;br /&gt;
See the developer documentation [[:dev:Theme development|Theme development]].&lt;br /&gt;
&lt;br /&gt;
==Can I assign a specific theme to a course?==&lt;br /&gt;
&lt;br /&gt;
Yes. In the course settings, use the &amp;quot;Force theme&amp;quot; dropdown box.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Is it possible to customise language strings per theme?==&lt;br /&gt;
Not by default, as when strings are customised, they are customised for the whole site. However, it is possible to make a new language  pack based on your main language and apply that pack to the course which has that theme. See this forum post for more information: https://moodle.org/mod/forum/discuss.php?d=220671&lt;br /&gt;
&lt;br /&gt;
==How can I get the links in  my custom menu to open in new windows?==&lt;br /&gt;
It is possible to create your own fly out menu via the custom menu block in Settings&amp;gt;Site administration&amp;gt;Appearance&amp;gt;Themes&amp;gt;Theme settings. Copy the examples given below the box. If you want the links to open in a new window, use the following code:&lt;br /&gt;
 Moodle|http://www.moodle.org&amp;quot; target=&amp;quot;_blank&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Where shall I put my custom CSS code? ==&lt;br /&gt;
&lt;br /&gt;
Note that the standard themes Afterburner, Arialist, Formal White, Fusion, Nonzero, Overlay, Sky High and Splash all offer the possibility to add custom CSS in their page settings via &#039;&#039;Settings&amp;gt;Appearance&amp;gt;Themes&amp;gt;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Failing this, instead of modifying the theme&#039;s CSS files you better put your own code in a separate CSS file and make your theme aware of that file by modifying its config.php file (be sure add your own CSS file as the last one in the list so that you will override all prior settings). See this posting for [http://moodle.org/mod/forum/discuss.php?d=128599#p564055 detailed instructions]. &lt;br /&gt;
&lt;br /&gt;
See also the instructions on creating your own theme mentioned above.&lt;br /&gt;
&lt;br /&gt;
==Will I lose my courses, language files, logo, etc. if I switch my theme?==&lt;br /&gt;
Switching themes only changes the appearance of your site, not the content within it. The logo is a part of the theme and will be lost when you switch.    &lt;br /&gt;
&lt;br /&gt;
Follow these instructions to [[:dev:Creating_a_custom_theme#Adding_a_Logo|add a logo]] to a theme.&lt;br /&gt;
:If you upgrade your Moodle site and tweaked an existing standard theme, you will lose your changes. Thus it is a good idea to create a custom theme which will not be changed when you upgrade.&lt;br /&gt;
&lt;br /&gt;
==I can&#039;t access theme files on the server. Can I still add a logo to a theme?==&lt;br /&gt;
Yes. You have two choices:&lt;br /&gt;
**Either upload your logo to another place publicly available online and then copy the image&#039;s URL to paste into the logo field of the theme page you are editing (such as Afterburner)&lt;br /&gt;
**Or add the main menu block to your front page; upload the logo via Main menu&amp;gt;Add a resource. Get its URL and paste it into the logo field of the theme page you are editing. You can safely then hide or delete the main menu block; the logo will still be there. (&#039;&#039;NOTE&#039;&#039; - your logo will appear in &#039;&#039;Navigation&amp;gt;Site pages&#039;&#039; as well.)&lt;br /&gt;
&lt;br /&gt;
== Are there tools which help me creating and editing themes? ==&lt;br /&gt;
&lt;br /&gt;
=== Clear Cache Button ===&lt;br /&gt;
This useful Firefox add-on let&#039;s you add a button to your tool bar for easily clearing your cache while working on your theme: https://addons.mozilla.org/de/firefox/addon/1801&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p class=&amp;quot;note&amp;quot;&amp;gt;Please note that the following tools are only for development. They only change the way &#039;&#039;you&#039;&#039; see your Moodle site, not the Moodle site itself. Any changes you make using these tools will not be visible to anyone else who uses your site. For this you will have to make those changes permanent by changing your theme&#039;s CSS files for example.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Firebug ===&lt;br /&gt;
The single most useful tool is the [[:dev:Firebug|Firebug]] add-on for the [[:dev:Firefox|Firefox]] web browser. Firebug integrates with Firefox to put a wealth of development tools at your fingertips while you browse. You can edit, debug, and monitor CSS, HTML, and JavaScript live in any web page... And there are additional add-ons for making Firebug an even more powerful tool.&lt;br /&gt;
&lt;br /&gt;
==== Firebug enhancements ====&lt;br /&gt;
You can enhance Firebug even further. See [[:dev:Firebug|Firebug]] for more information.&lt;br /&gt;
&lt;br /&gt;
=== Web Developer Toolbar ===&lt;br /&gt;
Another great tool for any web developer is the [[:dev:Web developer extension|Web developer extension]], another Firefox add-on. One very useful feature is the option to &#039;&#039;&#039;disable your browser&#039;s cache&#039;&#039;&#039; while working on your theme. That way you are sure you&#039;re always presented with your latest modifications and not with an older, cached version.&lt;br /&gt;
&lt;br /&gt;
Now also available for Google&#039;s Chrome browser: [http://www.sitepoint.com/blogs/2010/03/23/chrome-web-developer-toolbar/ &amp;quot;The Web Developer Toolbar Comes to Chrome&amp;quot;]&lt;br /&gt;
&lt;br /&gt;
=== Stylish ===&lt;br /&gt;
Modifications made with Firebug are lost when refreshing your page. If you want your CSS changes to be a bit more permanent, for example to try them with different pages of your Moodle installation, you can use another Firefox plugin: [https://addons.mozilla.org/en-US/firefox/addon/2108 Stylish]. That way you can change your site&#039;s CSS with a simple mouse click without having to change Moodle code.&lt;br /&gt;
&lt;br /&gt;
See [[:dev:Stylish|Stylish]] for detailed instructions and examples.&lt;br /&gt;
&lt;br /&gt;
==== Stylish-Custom ====&lt;br /&gt;
This is an [https://addons.mozilla.org/en-US/firefox/addon/12105/ custom additions] to the Stylish extension which brings back features from 0.5.9 and adds new features.&lt;br /&gt;
&lt;br /&gt;
== How do I check for cross-browser compatibility? ==&lt;br /&gt;
There are some tools (standalone and online) which can show you how your site looks in different browsers. See this [http://moodle.org/mod/forum/discuss.php?d=127746 forum discussion] for details.  See the new device detection settings in [[Theme settings]] which will allow you to create a theme for those &amp;quot;special&amp;quot; browsers.&lt;br /&gt;
&lt;br /&gt;
==How are the device types used in Moodle 2.4 ?==&lt;br /&gt;
If &amp;quot;Enabled device detection&amp;quot; has been turned on, Moodle 2.4 will automatically use the theme which has been set for the device in the [[Standard themes|Theme selector]] settings page.   It is also possible to add additional types to the Theme selector page by using the &amp;quot;device detection regular expressions&amp;quot; fields.   &lt;br /&gt;
&lt;br /&gt;
Site administrators can find these enable device detection settings in Site administration &amp;gt; Appearance &amp;gt;Themes &amp;gt; [[Theme settings]] .&lt;br /&gt;
&lt;br /&gt;
== Concrete examples for modifying Moodle themes ==&lt;br /&gt;
&amp;lt;p class=&amp;quot;note&amp;quot;&amp;gt;&lt;br /&gt;
The following examples were taken from the former &#039;&#039;Theme Scrapbook&#039;&#039;:&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;quot;The Moodle &#039;&#039;&#039;Theme Scrapbook&#039;&#039;&#039; is a collection of small how-to descriptions. You theme designers and Moodle users working with themes add your knowledge here to help new Moodle users with tips and tricks for their theme work. &lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Feel free to add to this list! Don&#039;t know how? Read our [[MoodleDocs:Guidelines_for_contributors|Guidelines for contributors]].&amp;quot;&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Changing things ===&lt;br /&gt;
&lt;br /&gt;
==== Colors ====&lt;br /&gt;
* [[:dev:Forcing the colour of the chat discussion pane (pop-up mode)]]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=142765 Changing background colour of a topic box]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=152357 How to change the colour of the popup event&#039;s header and background]&lt;br /&gt;
&lt;br /&gt;
==== Logo and icons ====&lt;br /&gt;
* [[:dev:Alternate Icon Set|Using an alternate icon set in Moodle]]&lt;br /&gt;
* [[Favicon|Change the favicon that shows in front of the web address]]&lt;br /&gt;
* [[Footer replacement|Replace the logo in the footer with your web address and/or or own logo]]&lt;br /&gt;
*[[:dev:Header logo|Replace the logo in the header]]&lt;br /&gt;
&lt;br /&gt;
==== Layout ====&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=136546 Overriding the $menu / $button variables] using PHP regular expressions in header.html&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=143411 Changing the view of course categories] - work in progress&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=145077 Sub categories and courses layout] - work in progress&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=151370 Tracker &#039;components&#039; list too small]&lt;br /&gt;
&lt;br /&gt;
=== Adding things ===&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=157935 How to add a different img-bullet to each category?]&lt;br /&gt;
&lt;br /&gt;
=== Hiding things ===&lt;br /&gt;
* Hiding an element with CSS is generally achieved using the [http://reference.sitepoint.com/css/display display: none;] property on the element.&lt;br /&gt;
* See [[:dev:Print style]] and [[:dev:Stylish#Print style for Database records]] for an example how to hide parts of a page not meant for printing.&lt;br /&gt;
&lt;br /&gt;
=== Moving things ===&lt;br /&gt;
* [[:dev:Center Forum Posts|Centre smaller forum posts on the page]]&lt;br /&gt;
* [[:dev:Footer positioning|Positioning the page footer]]&lt;br /&gt;
* [[:dev:Left-align quiz|Left align quiz questions and answers]]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=121847 Indentation for nested categories]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=128599 Positioning login and choose language field]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=145179 Match question type - position answers nearer to the questions]&lt;br /&gt;
* [[:dev:Stylish#Fixed admin menue with CSS]]&lt;br /&gt;
&lt;br /&gt;
=== Miscellaneous ===&lt;br /&gt;
* [[:dev:Fixed-width theme|Creating a fixed-width theme]]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=146763 Is there a way to fix oversized HTML Editor using CSS?]&lt;br /&gt;
* [[:dev:Category Design|Modifying the design of specific categories with CSS]]&lt;br /&gt;
&lt;br /&gt;
==How can I see theme changes when using the Windows Complete Installer package==&lt;br /&gt;
In the [http://download.moodle.org/windows/ Windows Complete Installer package], the eAccelerator in the XAMPP install can cause some issues with changes to your theme&#039;s CSS and HTML files from showing.&lt;br /&gt;
&lt;br /&gt;
Open the php.ini file inside of the server\php folder from your install in notepad and search for &amp;quot;eAccelerator&amp;quot; you should see a line that reads: &lt;br /&gt;
 extension=eaccelerator.dll&lt;br /&gt;
&lt;br /&gt;
Insert a semi-colon (turns the line into a comment) at the start of this line so it now reads: &lt;br /&gt;
 ;extension=eaccelerator.dll&lt;br /&gt;
&lt;br /&gt;
Restart the Moodle server using the &amp;quot;stop moodle&amp;quot; and then the &amp;quot;start moodle&amp;quot; programs in your server folder. You should now find that all of your changes to your CSS are reflected as soon as you save the file and refresh your browser cache (usually you can refresh your cache by pressing F5). This FAQ from a discussion at [http://moodle.org/mod/forum/discuss.php?d=151562#p663950 Deactivating caching with XAMPP installations]&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
&lt;br /&gt;
* Using Moodle [http://moodle.org/mod/forum/view.php?f=29 Themes forum]&lt;br /&gt;
* [[:dev:CSS FAQ]]&lt;br /&gt;
* [http://learn.open.ac.uk/mod/oublog/view.php?user=155976 &amp;quot;Understanding Moodle Themes&amp;quot;] - Blog post by [http://moodle.org/user/view.php?id=78896&amp;amp;course=5 Christopher Douce] (Open University)&lt;br /&gt;
* Using Moodle [http://moodle.org/mod/forum/discuss.php?d=149534 Testing 2.0. Use for modern vs old browsers] forum discussion&lt;br /&gt;
&lt;br /&gt;
[[Category:FAQ]]&lt;br /&gt;
[[de:Designs_FAQ]]&lt;/div&gt;</summary>
		<author><name>Rwthornton</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/2x/ca/index.php?title=Themes_FAQ&amp;diff=104469</id>
		<title>Themes FAQ</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/2x/ca/index.php?title=Themes_FAQ&amp;diff=104469"/>
		<updated>2013-05-16T19:02:26Z</updated>

		<summary type="html">&lt;p&gt;Rwthornton: /* What is the hierarchy of contexts for themes to override each other? */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Themes}}&lt;br /&gt;
==How do I install a new theme?==&lt;br /&gt;
&lt;br /&gt;
# Unzip the .zip file to an empty local directory.&lt;br /&gt;
# Upload folder to your web server to the /moodle/theme/[Theme Name]. (Replace [Theme Name] with the name of the theme you have downloaded.) Ensure the new theme folder and its contents are readable by the webserver.  Change Read and Write permissions (CHMOD) for the files and folder to 755 - Owner read/write/execute, Group read/execute, Everyone read/execute.  Incorrect permissions may prevent display of the newly installed theme.&lt;br /&gt;
# Choose your new theme from within Moodle via &#039;&#039;Administration &amp;gt; Appearance &amp;gt; Themes &amp;gt; Theme selector&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
=== How do I install a new theme when using cPanel? ===&lt;br /&gt;
&lt;br /&gt;
# Upload your new theme .zip file to your web server via cPanel. &lt;br /&gt;
# Then using cPanel install the new theme to your Moodle theme&#039;s folder.  The new theme will be installed into its own folder at /moodle/theme/[mytheme] (where [mytheme] is the name of your new theme.&lt;br /&gt;
# Ensure the new theme folder and its contents are readable by the webserver. If necessary  change Read and Write permissions (CHMOD) for the files and folder to 755 - Owner read/write/execute, Group read/execute, Everyone read/execute.  Incorrect permissions may prevent display of the newly installed theme.&lt;br /&gt;
# Choose your new theme from within Moodle via &#039;&#039;Administration &amp;gt; Appearance &amp;gt; Themes &amp;gt; Theme selector&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=== Why is the new theme I uploaded not showing up in Theme Selector? ===&lt;br /&gt;
&lt;br /&gt;
You probably forgot to do something correctly. Here are steps to create a &amp;quot;new&amp;quot; theme from an existing theme called &amp;quot;standard&amp;quot;. Bold show places you must change for the theme to appear.&lt;br /&gt;
#Copy folder theme/standard and call it theme/new&lt;br /&gt;
#In theme/new/lang/en folder,&lt;br /&gt;
##&#039;&#039;&#039;Renamed theme_standard.php to theme_new.php&#039;&#039;&#039;&lt;br /&gt;
#Opened theme/new/lang/en/new.php,  recommend you change 2 lines to read something like:&lt;br /&gt;
##$string[&#039;pluginname&#039;] = &#039;New theme - Martin D&#039;; &lt;br /&gt;
##$string[&#039;chooseredme&#039;] = &#039;New theme came from the Standard theme and is being changed by Martin D in 2011&#039;;&lt;br /&gt;
##Saved the file&lt;br /&gt;
#In theme/new/config.php&lt;br /&gt;
##Change &#039;&#039;&#039;$THEME-&amp;gt;NAME  = &#039;new&#039;&#039;&#039;&#039;;&lt;br /&gt;
#Went to &#039;&#039;Settings &amp;gt; Site Administration &amp;gt;Appearance &amp;gt; Theme settings&#039;&#039; &amp;gt; Theme designer mode (Checked)&lt;br /&gt;
#&#039;&#039;Settings &amp;gt; Site Administration &amp;gt;Appearance &amp;gt; Theme selector&#039;&#039;&lt;br /&gt;
##Clear theme caches&lt;br /&gt;
##Select theme&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;Tip:&#039;&#039; There could be a number of problems with the theme you uploaded, but one major problem reported in the Themes Forum all point to the way in which the theme is uploaded on certain servers. Using the cPanel method, as described in  the FAQ [[Themes_FAQ#How do I install a new theme when using cPanel?|How do I install a new theme when using cPanel?]] will, in most cases, cure the problem.&lt;br /&gt;
&lt;br /&gt;
== How do I control what themes show up where? ==&lt;br /&gt;
&lt;br /&gt;
You can control which themes show up in which contexts by a series of settings in &#039;&#039;Settings&amp;gt;Site Administration&amp;gt;Appearance&amp;gt;Themes&amp;gt;Theme settings&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
===How can I restrict the available themes to users and in courses?===&lt;br /&gt;
&lt;br /&gt;
In&#039;&#039; Settings&amp;gt;Site Administration&amp;gt;Appearance&amp;gt;Themes&amp;gt;Theme settings&#039;&#039;, add the themes you want them to use in the Theme list. These will then restrict the theme choice lists in pull down menus the contexts (Course, Category, User) where you allow them.&lt;br /&gt;
&lt;br /&gt;
===What is the hierarchy of contexts for themes to override each other?===&lt;br /&gt;
&lt;br /&gt;
There are five contexts in which themes appear and can be set: courses, category, session, user, and site, and that is the level of priority of appearance they have as well. You enable course, category, and user in [https://docs.moodle.org/24/en/Theme_settings Theme settings.]  &lt;br /&gt;
&lt;br /&gt;
* Course: themes set at the course level trump (override) all other theme settings&lt;br /&gt;
* Category: themes set at the category level trump all themes except course level themes&lt;br /&gt;
* Session: session level themes set with the URL parameter theme=theme_name are trumped by course and category but trump lower levels&lt;br /&gt;
* User: themes set at the user profile level are trumped by course, category and session, and only trump the site theme&lt;br /&gt;
* Site: Is trumped by any of the above themes&lt;br /&gt;
&lt;br /&gt;
Note on Session Themes: &lt;br /&gt;
&lt;br /&gt;
* It is important to note that Session level themes override the Site level theme ONLY for the user&#039;s current logged in session. When the user does log out however, they will then see the DEFAULT SITE theme, not the Session theme. &lt;br /&gt;
* You only have to set the theme once via the URL parameter and it will persist until the user logs out. &lt;br /&gt;
&lt;br /&gt;
Note on Device Themes:&lt;br /&gt;
&lt;br /&gt;
Note the following issue discovered with device level themes [http://tracker.moodle.org/browse/MDL-35148 MDL-35148]&lt;br /&gt;
&lt;br /&gt;
==How do I create a custom theme?==&lt;br /&gt;
&lt;br /&gt;
See the developer documentation [[:dev:Theme development|Theme development]].&lt;br /&gt;
&lt;br /&gt;
==Can I assign a specific theme to a course?==&lt;br /&gt;
&lt;br /&gt;
Yes. In the course settings, use the &amp;quot;Force theme&amp;quot; dropdown box.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Is it possible to customise language strings per theme?==&lt;br /&gt;
Not by default, as when strings are customised, they are customised for the whole site. However, it is possible to make a new language  pack based on your main language and apply that pack to the course which has that theme. See this forum post for more information: https://moodle.org/mod/forum/discuss.php?d=220671&lt;br /&gt;
&lt;br /&gt;
==How can I get the links in  my custom menu to open in new windows?==&lt;br /&gt;
It is possible to create your own fly out menu via the custom menu block in Settings&amp;gt;Site administration&amp;gt;Appearance&amp;gt;Themes&amp;gt;Theme settings. Copy the examples given below the box. If you want the links to open in a new window, use the following code:&lt;br /&gt;
 Moodle|http://www.moodle.org&amp;quot; target=&amp;quot;_blank&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Where shall I put my custom CSS code? ==&lt;br /&gt;
&lt;br /&gt;
Note that the standard themes Afterburner, Arialist, Formal White, Fusion, Nonzero, Overlay, Sky High and Splash all offer the possibility to add custom CSS in their page settings via &#039;&#039;Settings&amp;gt;Appearance&amp;gt;Themes&amp;gt;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Failing this, instead of modifying the theme&#039;s CSS files you better put your own code in a separate CSS file and make your theme aware of that file by modifying its config.php file (be sure add your own CSS file as the last one in the list so that you will override all prior settings). See this posting for [http://moodle.org/mod/forum/discuss.php?d=128599#p564055 detailed instructions]. &lt;br /&gt;
&lt;br /&gt;
See also the instructions on creating your own theme mentioned above.&lt;br /&gt;
&lt;br /&gt;
==Will I lose my courses, language files, logo, etc. if I switch my theme?==&lt;br /&gt;
Switching themes only changes the appearance of your site, not the content within it. The logo is a part of the theme and will be lost when you switch.    &lt;br /&gt;
&lt;br /&gt;
Follow these instructions to [[:dev:Creating_a_custom_theme#Adding_a_Logo|add a logo]] to a theme.&lt;br /&gt;
:If you upgrade your Moodle site and tweaked an existing standard theme, you will lose your changes. Thus it is a good idea to create a custom theme which will not be changed when you upgrade.&lt;br /&gt;
&lt;br /&gt;
==I can&#039;t access theme files on the server. Can I still add a logo to a theme?==&lt;br /&gt;
Yes. You have two choices:&lt;br /&gt;
**Either upload your logo to another place publicly available online and then copy the image&#039;s URL to paste into the logo field of the theme page you are editing (such as Afterburner)&lt;br /&gt;
**Or add the main menu block to your front page; upload the logo via Main menu&amp;gt;Add a resource. Get its URL and paste it into the logo field of the theme page you are editing. You can safely then hide or delete the main menu block; the logo will still be there. (&#039;&#039;NOTE&#039;&#039; - your logo will appear in &#039;&#039;Navigation&amp;gt;Site pages&#039;&#039; as well.)&lt;br /&gt;
&lt;br /&gt;
== Are there tools which help me creating and editing themes? ==&lt;br /&gt;
&lt;br /&gt;
=== Clear Cache Button ===&lt;br /&gt;
This useful Firefox add-on let&#039;s you add a button to your tool bar for easily clearing your cache while working on your theme: https://addons.mozilla.org/de/firefox/addon/1801&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p class=&amp;quot;note&amp;quot;&amp;gt;Please note that the following tools are only for development. They only change the way &#039;&#039;you&#039;&#039; see your Moodle site, not the Moodle site itself. Any changes you make using these tools will not be visible to anyone else who uses your site. For this you will have to make those changes permanent by changing your theme&#039;s CSS files for example.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Firebug ===&lt;br /&gt;
The single most useful tool is the [[:dev:Firebug|Firebug]] add-on for the [[:dev:Firefox|Firefox]] web browser. Firebug integrates with Firefox to put a wealth of development tools at your fingertips while you browse. You can edit, debug, and monitor CSS, HTML, and JavaScript live in any web page... And there are additional add-ons for making Firebug an even more powerful tool.&lt;br /&gt;
&lt;br /&gt;
==== Firebug enhancements ====&lt;br /&gt;
You can enhance Firebug even further. See [[:dev:Firebug|Firebug]] for more information.&lt;br /&gt;
&lt;br /&gt;
=== Web Developer Toolbar ===&lt;br /&gt;
Another great tool for any web developer is the [[:dev:Web developer extension|Web developer extension]], another Firefox add-on. One very useful feature is the option to &#039;&#039;&#039;disable your browser&#039;s cache&#039;&#039;&#039; while working on your theme. That way you are sure you&#039;re always presented with your latest modifications and not with an older, cached version.&lt;br /&gt;
&lt;br /&gt;
Now also available for Google&#039;s Chrome browser: [http://www.sitepoint.com/blogs/2010/03/23/chrome-web-developer-toolbar/ &amp;quot;The Web Developer Toolbar Comes to Chrome&amp;quot;]&lt;br /&gt;
&lt;br /&gt;
=== Stylish ===&lt;br /&gt;
Modifications made with Firebug are lost when refreshing your page. If you want your CSS changes to be a bit more permanent, for example to try them with different pages of your Moodle installation, you can use another Firefox plugin: [https://addons.mozilla.org/en-US/firefox/addon/2108 Stylish]. That way you can change your site&#039;s CSS with a simple mouse click without having to change Moodle code.&lt;br /&gt;
&lt;br /&gt;
See [[:dev:Stylish|Stylish]] for detailed instructions and examples.&lt;br /&gt;
&lt;br /&gt;
==== Stylish-Custom ====&lt;br /&gt;
This is an [https://addons.mozilla.org/en-US/firefox/addon/12105/ custom additions] to the Stylish extension which brings back features from 0.5.9 and adds new features.&lt;br /&gt;
&lt;br /&gt;
== How do I check for cross-browser compatibility? ==&lt;br /&gt;
There are some tools (standalone and online) which can show you how your site looks in different browsers. See this [http://moodle.org/mod/forum/discuss.php?d=127746 forum discussion] for details.  See the new device detection settings in [[Theme settings]] which will allow you to create a theme for those &amp;quot;special&amp;quot; browsers.&lt;br /&gt;
&lt;br /&gt;
==How are the device types used in Moodle 2.4 ?==&lt;br /&gt;
If &amp;quot;Enabled device detection&amp;quot; has been turned on, Moodle 2.4 will automatically use the theme which has been set for the device in the [[Standard themes|Theme selector]] settings page.   It is also possible to add additional types to the Theme selector page by using the &amp;quot;device detection regular expressions&amp;quot; fields.   &lt;br /&gt;
&lt;br /&gt;
Site administrators can find these enable device detection settings in Site administration &amp;gt; Appearance &amp;gt;Themes &amp;gt; [[Theme settings]] .&lt;br /&gt;
&lt;br /&gt;
== Concrete examples for modifying Moodle themes ==&lt;br /&gt;
&amp;lt;p class=&amp;quot;note&amp;quot;&amp;gt;&lt;br /&gt;
The following examples were taken from the former &#039;&#039;Theme Scrapbook&#039;&#039;:&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;quot;The Moodle &#039;&#039;&#039;Theme Scrapbook&#039;&#039;&#039; is a collection of small how-to descriptions. You theme designers and Moodle users working with themes add your knowledge here to help new Moodle users with tips and tricks for their theme work. &lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Feel free to add to this list! Don&#039;t know how? Read our [[MoodleDocs:Guidelines_for_contributors|Guidelines for contributors]].&amp;quot;&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Changing things ===&lt;br /&gt;
&lt;br /&gt;
==== Colors ====&lt;br /&gt;
* [[:dev:Forcing the colour of the chat discussion pane (pop-up mode)]]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=142765 Changing background colour of a topic box]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=152357 How to change the colour of the popup event&#039;s header and background]&lt;br /&gt;
&lt;br /&gt;
==== Logo and icons ====&lt;br /&gt;
* [[:dev:Alternate Icon Set|Using an alternate icon set in Moodle]]&lt;br /&gt;
* [[Favicon|Change the favicon that shows in front of the web address]]&lt;br /&gt;
* [[Footer replacement|Replace the logo in the footer with your web address and/or or own logo]]&lt;br /&gt;
*[[:dev:Header logo|Replace the logo in the header]]&lt;br /&gt;
&lt;br /&gt;
==== Layout ====&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=136546 Overriding the $menu / $button variables] using PHP regular expressions in header.html&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=143411 Changing the view of course categories] - work in progress&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=145077 Sub categories and courses layout] - work in progress&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=151370 Tracker &#039;components&#039; list too small]&lt;br /&gt;
&lt;br /&gt;
=== Adding things ===&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=157935 How to add a different img-bullet to each category?]&lt;br /&gt;
&lt;br /&gt;
=== Hiding things ===&lt;br /&gt;
* Hiding an element with CSS is generally achieved using the [http://reference.sitepoint.com/css/display display: none;] property on the element.&lt;br /&gt;
* See [[:dev:Print style]] and [[:dev:Stylish#Print style for Database records]] for an example how to hide parts of a page not meant for printing.&lt;br /&gt;
&lt;br /&gt;
=== Moving things ===&lt;br /&gt;
* [[:dev:Center Forum Posts|Centre smaller forum posts on the page]]&lt;br /&gt;
* [[:dev:Footer positioning|Positioning the page footer]]&lt;br /&gt;
* [[:dev:Left-align quiz|Left align quiz questions and answers]]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=121847 Indentation for nested categories]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=128599 Positioning login and choose language field]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=145179 Match question type - position answers nearer to the questions]&lt;br /&gt;
* [[:dev:Stylish#Fixed admin menue with CSS]]&lt;br /&gt;
&lt;br /&gt;
=== Miscellaneous ===&lt;br /&gt;
* [[:dev:Fixed-width theme|Creating a fixed-width theme]]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=146763 Is there a way to fix oversized HTML Editor using CSS?]&lt;br /&gt;
* [[:dev:Category Design|Modifying the design of specific categories with CSS]]&lt;br /&gt;
&lt;br /&gt;
==How can I see theme changes when using the Windows Complete Installer package==&lt;br /&gt;
In the [http://download.moodle.org/windows/ Windows Complete Installer package], the eAccelerator in the XAMPP install can cause some issues with changes to your theme&#039;s CSS and HTML files from showing.&lt;br /&gt;
&lt;br /&gt;
Open the php.ini file inside of the server\php folder from your install in notepad and search for &amp;quot;eAccelerator&amp;quot; you should see a line that reads: &lt;br /&gt;
 extension=eaccelerator.dll&lt;br /&gt;
&lt;br /&gt;
Insert a semi-colon (turns the line into a comment) at the start of this line so it now reads: &lt;br /&gt;
 ;extension=eaccelerator.dll&lt;br /&gt;
&lt;br /&gt;
Restart the Moodle server using the &amp;quot;stop moodle&amp;quot; and then the &amp;quot;start moodle&amp;quot; programs in your server folder. You should now find that all of your changes to your CSS are reflected as soon as you save the file and refresh your browser cache (usually you can refresh your cache by pressing F5). This FAQ from a discussion at [http://moodle.org/mod/forum/discuss.php?d=151562#p663950 Deactivating caching with XAMPP installations]&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
&lt;br /&gt;
* Using Moodle [http://moodle.org/mod/forum/view.php?f=29 Themes forum]&lt;br /&gt;
* [[:dev:CSS FAQ]]&lt;br /&gt;
* [http://learn.open.ac.uk/mod/oublog/view.php?user=155976 &amp;quot;Understanding Moodle Themes&amp;quot;] - Blog post by [http://moodle.org/user/view.php?id=78896&amp;amp;course=5 Christopher Douce] (Open University)&lt;br /&gt;
* Using Moodle [http://moodle.org/mod/forum/discuss.php?d=149534 Testing 2.0. Use for modern vs old browsers] forum discussion&lt;br /&gt;
&lt;br /&gt;
[[Category:FAQ]]&lt;br /&gt;
[[de:Designs_FAQ]]&lt;/div&gt;</summary>
		<author><name>Rwthornton</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/2x/ca/index.php?title=Themes_FAQ&amp;diff=104468</id>
		<title>Themes FAQ</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/2x/ca/index.php?title=Themes_FAQ&amp;diff=104468"/>
		<updated>2013-05-16T18:53:31Z</updated>

		<summary type="html">&lt;p&gt;Rwthornton: /* What is the hierarchy of contexts for themes to override each other? */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Themes}}&lt;br /&gt;
==How do I install a new theme?==&lt;br /&gt;
&lt;br /&gt;
# Unzip the .zip file to an empty local directory.&lt;br /&gt;
# Upload folder to your web server to the /moodle/theme/[Theme Name]. (Replace [Theme Name] with the name of the theme you have downloaded.) Ensure the new theme folder and its contents are readable by the webserver.  Change Read and Write permissions (CHMOD) for the files and folder to 755 - Owner read/write/execute, Group read/execute, Everyone read/execute.  Incorrect permissions may prevent display of the newly installed theme.&lt;br /&gt;
# Choose your new theme from within Moodle via &#039;&#039;Administration &amp;gt; Appearance &amp;gt; Themes &amp;gt; Theme selector&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
=== How do I install a new theme when using cPanel? ===&lt;br /&gt;
&lt;br /&gt;
# Upload your new theme .zip file to your web server via cPanel. &lt;br /&gt;
# Then using cPanel install the new theme to your Moodle theme&#039;s folder.  The new theme will be installed into its own folder at /moodle/theme/[mytheme] (where [mytheme] is the name of your new theme.&lt;br /&gt;
# Ensure the new theme folder and its contents are readable by the webserver. If necessary  change Read and Write permissions (CHMOD) for the files and folder to 755 - Owner read/write/execute, Group read/execute, Everyone read/execute.  Incorrect permissions may prevent display of the newly installed theme.&lt;br /&gt;
# Choose your new theme from within Moodle via &#039;&#039;Administration &amp;gt; Appearance &amp;gt; Themes &amp;gt; Theme selector&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=== Why is the new theme I uploaded not showing up in Theme Selector? ===&lt;br /&gt;
&lt;br /&gt;
You probably forgot to do something correctly. Here are steps to create a &amp;quot;new&amp;quot; theme from an existing theme called &amp;quot;standard&amp;quot;. Bold show places you must change for the theme to appear.&lt;br /&gt;
#Copy folder theme/standard and call it theme/new&lt;br /&gt;
#In theme/new/lang/en folder,&lt;br /&gt;
##&#039;&#039;&#039;Renamed theme_standard.php to theme_new.php&#039;&#039;&#039;&lt;br /&gt;
#Opened theme/new/lang/en/new.php,  recommend you change 2 lines to read something like:&lt;br /&gt;
##$string[&#039;pluginname&#039;] = &#039;New theme - Martin D&#039;; &lt;br /&gt;
##$string[&#039;chooseredme&#039;] = &#039;New theme came from the Standard theme and is being changed by Martin D in 2011&#039;;&lt;br /&gt;
##Saved the file&lt;br /&gt;
#In theme/new/config.php&lt;br /&gt;
##Change &#039;&#039;&#039;$THEME-&amp;gt;NAME  = &#039;new&#039;&#039;&#039;&#039;;&lt;br /&gt;
#Went to &#039;&#039;Settings &amp;gt; Site Administration &amp;gt;Appearance &amp;gt; Theme settings&#039;&#039; &amp;gt; Theme designer mode (Checked)&lt;br /&gt;
#&#039;&#039;Settings &amp;gt; Site Administration &amp;gt;Appearance &amp;gt; Theme selector&#039;&#039;&lt;br /&gt;
##Clear theme caches&lt;br /&gt;
##Select theme&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;Tip:&#039;&#039; There could be a number of problems with the theme you uploaded, but one major problem reported in the Themes Forum all point to the way in which the theme is uploaded on certain servers. Using the cPanel method, as described in  the FAQ [[Themes_FAQ#How do I install a new theme when using cPanel?|How do I install a new theme when using cPanel?]] will, in most cases, cure the problem.&lt;br /&gt;
&lt;br /&gt;
== How do I control what themes show up where? ==&lt;br /&gt;
&lt;br /&gt;
You can control which themes show up in which contexts by a series of settings in &#039;&#039;Settings&amp;gt;Site Administration&amp;gt;Appearance&amp;gt;Themes&amp;gt;Theme settings&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
===How can I restrict the available themes to users and in courses?===&lt;br /&gt;
&lt;br /&gt;
In&#039;&#039; Settings&amp;gt;Site Administration&amp;gt;Appearance&amp;gt;Themes&amp;gt;Theme settings&#039;&#039;, add the themes you want them to use in the Theme list. These will then restrict the theme choice lists in pull down menus the contexts (Course, Category, User) where you allow them.&lt;br /&gt;
&lt;br /&gt;
===What is the hierarchy of contexts for themes to override each other?===&lt;br /&gt;
&lt;br /&gt;
There are five contexts in which themes appear and can be set: courses, category, session, user, and site, and that is the level of priority of appearance they have as well.  &lt;br /&gt;
&lt;br /&gt;
* Course: themes set at the course level trump (override) all other theme settings&lt;br /&gt;
* Category: themes set at the category level trump all themes except course level themes&lt;br /&gt;
* Session: session level themes set with the URL parameter theme=theme_name are trumped by course and category but trump lower levels&lt;br /&gt;
* User: themes set at the user profile level are trumped by course, category and session, and only trump the site theme&lt;br /&gt;
* Site: Is trumped by any of the above themes&lt;br /&gt;
&lt;br /&gt;
Note on Session Themes: &lt;br /&gt;
&lt;br /&gt;
* It is important to note that Session level themes override the Site level theme ONLY for the user&#039;s current logged in session. When the user does log out however, they will then see the DEFAULT SITE theme, not the Session theme. &lt;br /&gt;
* You only have to set the theme once via the URL parameter and it will persist until the user logs out. &lt;br /&gt;
&lt;br /&gt;
Note on Device Themes:&lt;br /&gt;
&lt;br /&gt;
Note the following issue discovered with device level themes https://tracker.moodle.org/browse/MDL-35148&lt;br /&gt;
&lt;br /&gt;
==How do I create a custom theme?==&lt;br /&gt;
&lt;br /&gt;
See the developer documentation [[:dev:Theme development|Theme development]].&lt;br /&gt;
&lt;br /&gt;
==Can I assign a specific theme to a course?==&lt;br /&gt;
&lt;br /&gt;
Yes. In the course settings, use the &amp;quot;Force theme&amp;quot; dropdown box.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Is it possible to customise language strings per theme?==&lt;br /&gt;
Not by default, as when strings are customised, they are customised for the whole site. However, it is possible to make a new language  pack based on your main language and apply that pack to the course which has that theme. See this forum post for more information: https://moodle.org/mod/forum/discuss.php?d=220671&lt;br /&gt;
&lt;br /&gt;
==How can I get the links in  my custom menu to open in new windows?==&lt;br /&gt;
It is possible to create your own fly out menu via the custom menu block in Settings&amp;gt;Site administration&amp;gt;Appearance&amp;gt;Themes&amp;gt;Theme settings. Copy the examples given below the box. If you want the links to open in a new window, use the following code:&lt;br /&gt;
 Moodle|http://www.moodle.org&amp;quot; target=&amp;quot;_blank&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Where shall I put my custom CSS code? ==&lt;br /&gt;
&lt;br /&gt;
Note that the standard themes Afterburner, Arialist, Formal White, Fusion, Nonzero, Overlay, Sky High and Splash all offer the possibility to add custom CSS in their page settings via &#039;&#039;Settings&amp;gt;Appearance&amp;gt;Themes&amp;gt;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Failing this, instead of modifying the theme&#039;s CSS files you better put your own code in a separate CSS file and make your theme aware of that file by modifying its config.php file (be sure add your own CSS file as the last one in the list so that you will override all prior settings). See this posting for [http://moodle.org/mod/forum/discuss.php?d=128599#p564055 detailed instructions]. &lt;br /&gt;
&lt;br /&gt;
See also the instructions on creating your own theme mentioned above.&lt;br /&gt;
&lt;br /&gt;
==Will I lose my courses, language files, logo, etc. if I switch my theme?==&lt;br /&gt;
Switching themes only changes the appearance of your site, not the content within it. The logo is a part of the theme and will be lost when you switch.    &lt;br /&gt;
&lt;br /&gt;
Follow these instructions to [[:dev:Creating_a_custom_theme#Adding_a_Logo|add a logo]] to a theme.&lt;br /&gt;
:If you upgrade your Moodle site and tweaked an existing standard theme, you will lose your changes. Thus it is a good idea to create a custom theme which will not be changed when you upgrade.&lt;br /&gt;
&lt;br /&gt;
==I can&#039;t access theme files on the server. Can I still add a logo to a theme?==&lt;br /&gt;
Yes. You have two choices:&lt;br /&gt;
**Either upload your logo to another place publicly available online and then copy the image&#039;s URL to paste into the logo field of the theme page you are editing (such as Afterburner)&lt;br /&gt;
**Or add the main menu block to your front page; upload the logo via Main menu&amp;gt;Add a resource. Get its URL and paste it into the logo field of the theme page you are editing. You can safely then hide or delete the main menu block; the logo will still be there. (&#039;&#039;NOTE&#039;&#039; - your logo will appear in &#039;&#039;Navigation&amp;gt;Site pages&#039;&#039; as well.)&lt;br /&gt;
&lt;br /&gt;
== Are there tools which help me creating and editing themes? ==&lt;br /&gt;
&lt;br /&gt;
=== Clear Cache Button ===&lt;br /&gt;
This useful Firefox add-on let&#039;s you add a button to your tool bar for easily clearing your cache while working on your theme: https://addons.mozilla.org/de/firefox/addon/1801&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p class=&amp;quot;note&amp;quot;&amp;gt;Please note that the following tools are only for development. They only change the way &#039;&#039;you&#039;&#039; see your Moodle site, not the Moodle site itself. Any changes you make using these tools will not be visible to anyone else who uses your site. For this you will have to make those changes permanent by changing your theme&#039;s CSS files for example.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Firebug ===&lt;br /&gt;
The single most useful tool is the [[:dev:Firebug|Firebug]] add-on for the [[:dev:Firefox|Firefox]] web browser. Firebug integrates with Firefox to put a wealth of development tools at your fingertips while you browse. You can edit, debug, and monitor CSS, HTML, and JavaScript live in any web page... And there are additional add-ons for making Firebug an even more powerful tool.&lt;br /&gt;
&lt;br /&gt;
==== Firebug enhancements ====&lt;br /&gt;
You can enhance Firebug even further. See [[:dev:Firebug|Firebug]] for more information.&lt;br /&gt;
&lt;br /&gt;
=== Web Developer Toolbar ===&lt;br /&gt;
Another great tool for any web developer is the [[:dev:Web developer extension|Web developer extension]], another Firefox add-on. One very useful feature is the option to &#039;&#039;&#039;disable your browser&#039;s cache&#039;&#039;&#039; while working on your theme. That way you are sure you&#039;re always presented with your latest modifications and not with an older, cached version.&lt;br /&gt;
&lt;br /&gt;
Now also available for Google&#039;s Chrome browser: [http://www.sitepoint.com/blogs/2010/03/23/chrome-web-developer-toolbar/ &amp;quot;The Web Developer Toolbar Comes to Chrome&amp;quot;]&lt;br /&gt;
&lt;br /&gt;
=== Stylish ===&lt;br /&gt;
Modifications made with Firebug are lost when refreshing your page. If you want your CSS changes to be a bit more permanent, for example to try them with different pages of your Moodle installation, you can use another Firefox plugin: [https://addons.mozilla.org/en-US/firefox/addon/2108 Stylish]. That way you can change your site&#039;s CSS with a simple mouse click without having to change Moodle code.&lt;br /&gt;
&lt;br /&gt;
See [[:dev:Stylish|Stylish]] for detailed instructions and examples.&lt;br /&gt;
&lt;br /&gt;
==== Stylish-Custom ====&lt;br /&gt;
This is an [https://addons.mozilla.org/en-US/firefox/addon/12105/ custom additions] to the Stylish extension which brings back features from 0.5.9 and adds new features.&lt;br /&gt;
&lt;br /&gt;
== How do I check for cross-browser compatibility? ==&lt;br /&gt;
There are some tools (standalone and online) which can show you how your site looks in different browsers. See this [http://moodle.org/mod/forum/discuss.php?d=127746 forum discussion] for details.  See the new device detection settings in [[Theme settings]] which will allow you to create a theme for those &amp;quot;special&amp;quot; browsers.&lt;br /&gt;
&lt;br /&gt;
==How are the device types used in Moodle 2.4 ?==&lt;br /&gt;
If &amp;quot;Enabled device detection&amp;quot; has been turned on, Moodle 2.4 will automatically use the theme which has been set for the device in the [[Standard themes|Theme selector]] settings page.   It is also possible to add additional types to the Theme selector page by using the &amp;quot;device detection regular expressions&amp;quot; fields.   &lt;br /&gt;
&lt;br /&gt;
Site administrators can find these enable device detection settings in Site administration &amp;gt; Appearance &amp;gt;Themes &amp;gt; [[Theme settings]] .&lt;br /&gt;
&lt;br /&gt;
== Concrete examples for modifying Moodle themes ==&lt;br /&gt;
&amp;lt;p class=&amp;quot;note&amp;quot;&amp;gt;&lt;br /&gt;
The following examples were taken from the former &#039;&#039;Theme Scrapbook&#039;&#039;:&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;quot;The Moodle &#039;&#039;&#039;Theme Scrapbook&#039;&#039;&#039; is a collection of small how-to descriptions. You theme designers and Moodle users working with themes add your knowledge here to help new Moodle users with tips and tricks for their theme work. &lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Feel free to add to this list! Don&#039;t know how? Read our [[MoodleDocs:Guidelines_for_contributors|Guidelines for contributors]].&amp;quot;&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Changing things ===&lt;br /&gt;
&lt;br /&gt;
==== Colors ====&lt;br /&gt;
* [[:dev:Forcing the colour of the chat discussion pane (pop-up mode)]]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=142765 Changing background colour of a topic box]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=152357 How to change the colour of the popup event&#039;s header and background]&lt;br /&gt;
&lt;br /&gt;
==== Logo and icons ====&lt;br /&gt;
* [[:dev:Alternate Icon Set|Using an alternate icon set in Moodle]]&lt;br /&gt;
* [[Favicon|Change the favicon that shows in front of the web address]]&lt;br /&gt;
* [[Footer replacement|Replace the logo in the footer with your web address and/or or own logo]]&lt;br /&gt;
*[[:dev:Header logo|Replace the logo in the header]]&lt;br /&gt;
&lt;br /&gt;
==== Layout ====&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=136546 Overriding the $menu / $button variables] using PHP regular expressions in header.html&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=143411 Changing the view of course categories] - work in progress&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=145077 Sub categories and courses layout] - work in progress&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=151370 Tracker &#039;components&#039; list too small]&lt;br /&gt;
&lt;br /&gt;
=== Adding things ===&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=157935 How to add a different img-bullet to each category?]&lt;br /&gt;
&lt;br /&gt;
=== Hiding things ===&lt;br /&gt;
* Hiding an element with CSS is generally achieved using the [http://reference.sitepoint.com/css/display display: none;] property on the element.&lt;br /&gt;
* See [[:dev:Print style]] and [[:dev:Stylish#Print style for Database records]] for an example how to hide parts of a page not meant for printing.&lt;br /&gt;
&lt;br /&gt;
=== Moving things ===&lt;br /&gt;
* [[:dev:Center Forum Posts|Centre smaller forum posts on the page]]&lt;br /&gt;
* [[:dev:Footer positioning|Positioning the page footer]]&lt;br /&gt;
* [[:dev:Left-align quiz|Left align quiz questions and answers]]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=121847 Indentation for nested categories]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=128599 Positioning login and choose language field]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=145179 Match question type - position answers nearer to the questions]&lt;br /&gt;
* [[:dev:Stylish#Fixed admin menue with CSS]]&lt;br /&gt;
&lt;br /&gt;
=== Miscellaneous ===&lt;br /&gt;
* [[:dev:Fixed-width theme|Creating a fixed-width theme]]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=146763 Is there a way to fix oversized HTML Editor using CSS?]&lt;br /&gt;
* [[:dev:Category Design|Modifying the design of specific categories with CSS]]&lt;br /&gt;
&lt;br /&gt;
==How can I see theme changes when using the Windows Complete Installer package==&lt;br /&gt;
In the [http://download.moodle.org/windows/ Windows Complete Installer package], the eAccelerator in the XAMPP install can cause some issues with changes to your theme&#039;s CSS and HTML files from showing.&lt;br /&gt;
&lt;br /&gt;
Open the php.ini file inside of the server\php folder from your install in notepad and search for &amp;quot;eAccelerator&amp;quot; you should see a line that reads: &lt;br /&gt;
 extension=eaccelerator.dll&lt;br /&gt;
&lt;br /&gt;
Insert a semi-colon (turns the line into a comment) at the start of this line so it now reads: &lt;br /&gt;
 ;extension=eaccelerator.dll&lt;br /&gt;
&lt;br /&gt;
Restart the Moodle server using the &amp;quot;stop moodle&amp;quot; and then the &amp;quot;start moodle&amp;quot; programs in your server folder. You should now find that all of your changes to your CSS are reflected as soon as you save the file and refresh your browser cache (usually you can refresh your cache by pressing F5). This FAQ from a discussion at [http://moodle.org/mod/forum/discuss.php?d=151562#p663950 Deactivating caching with XAMPP installations]&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
&lt;br /&gt;
* Using Moodle [http://moodle.org/mod/forum/view.php?f=29 Themes forum]&lt;br /&gt;
* [[:dev:CSS FAQ]]&lt;br /&gt;
* [http://learn.open.ac.uk/mod/oublog/view.php?user=155976 &amp;quot;Understanding Moodle Themes&amp;quot;] - Blog post by [http://moodle.org/user/view.php?id=78896&amp;amp;course=5 Christopher Douce] (Open University)&lt;br /&gt;
* Using Moodle [http://moodle.org/mod/forum/discuss.php?d=149534 Testing 2.0. Use for modern vs old browsers] forum discussion&lt;br /&gt;
&lt;br /&gt;
[[Category:FAQ]]&lt;br /&gt;
[[de:Designs_FAQ]]&lt;/div&gt;</summary>
		<author><name>Rwthornton</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/2x/ca/index.php?title=Themes_FAQ&amp;diff=104467</id>
		<title>Themes FAQ</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/2x/ca/index.php?title=Themes_FAQ&amp;diff=104467"/>
		<updated>2013-05-16T18:50:07Z</updated>

		<summary type="html">&lt;p&gt;Rwthornton: /* How can I restrict the available themes to users and in courses? */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Themes}}&lt;br /&gt;
==How do I install a new theme?==&lt;br /&gt;
&lt;br /&gt;
# Unzip the .zip file to an empty local directory.&lt;br /&gt;
# Upload folder to your web server to the /moodle/theme/[Theme Name]. (Replace [Theme Name] with the name of the theme you have downloaded.) Ensure the new theme folder and its contents are readable by the webserver.  Change Read and Write permissions (CHMOD) for the files and folder to 755 - Owner read/write/execute, Group read/execute, Everyone read/execute.  Incorrect permissions may prevent display of the newly installed theme.&lt;br /&gt;
# Choose your new theme from within Moodle via &#039;&#039;Administration &amp;gt; Appearance &amp;gt; Themes &amp;gt; Theme selector&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
=== How do I install a new theme when using cPanel? ===&lt;br /&gt;
&lt;br /&gt;
# Upload your new theme .zip file to your web server via cPanel. &lt;br /&gt;
# Then using cPanel install the new theme to your Moodle theme&#039;s folder.  The new theme will be installed into its own folder at /moodle/theme/[mytheme] (where [mytheme] is the name of your new theme.&lt;br /&gt;
# Ensure the new theme folder and its contents are readable by the webserver. If necessary  change Read and Write permissions (CHMOD) for the files and folder to 755 - Owner read/write/execute, Group read/execute, Everyone read/execute.  Incorrect permissions may prevent display of the newly installed theme.&lt;br /&gt;
# Choose your new theme from within Moodle via &#039;&#039;Administration &amp;gt; Appearance &amp;gt; Themes &amp;gt; Theme selector&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=== Why is the new theme I uploaded not showing up in Theme Selector? ===&lt;br /&gt;
&lt;br /&gt;
You probably forgot to do something correctly. Here are steps to create a &amp;quot;new&amp;quot; theme from an existing theme called &amp;quot;standard&amp;quot;. Bold show places you must change for the theme to appear.&lt;br /&gt;
#Copy folder theme/standard and call it theme/new&lt;br /&gt;
#In theme/new/lang/en folder,&lt;br /&gt;
##&#039;&#039;&#039;Renamed theme_standard.php to theme_new.php&#039;&#039;&#039;&lt;br /&gt;
#Opened theme/new/lang/en/new.php,  recommend you change 2 lines to read something like:&lt;br /&gt;
##$string[&#039;pluginname&#039;] = &#039;New theme - Martin D&#039;; &lt;br /&gt;
##$string[&#039;chooseredme&#039;] = &#039;New theme came from the Standard theme and is being changed by Martin D in 2011&#039;;&lt;br /&gt;
##Saved the file&lt;br /&gt;
#In theme/new/config.php&lt;br /&gt;
##Change &#039;&#039;&#039;$THEME-&amp;gt;NAME  = &#039;new&#039;&#039;&#039;&#039;;&lt;br /&gt;
#Went to &#039;&#039;Settings &amp;gt; Site Administration &amp;gt;Appearance &amp;gt; Theme settings&#039;&#039; &amp;gt; Theme designer mode (Checked)&lt;br /&gt;
#&#039;&#039;Settings &amp;gt; Site Administration &amp;gt;Appearance &amp;gt; Theme selector&#039;&#039;&lt;br /&gt;
##Clear theme caches&lt;br /&gt;
##Select theme&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;Tip:&#039;&#039; There could be a number of problems with the theme you uploaded, but one major problem reported in the Themes Forum all point to the way in which the theme is uploaded on certain servers. Using the cPanel method, as described in  the FAQ [[Themes_FAQ#How do I install a new theme when using cPanel?|How do I install a new theme when using cPanel?]] will, in most cases, cure the problem.&lt;br /&gt;
&lt;br /&gt;
== How do I control what themes show up where? ==&lt;br /&gt;
&lt;br /&gt;
You can control which themes show up in which contexts by a series of settings in &#039;&#039;Settings&amp;gt;Site Administration&amp;gt;Appearance&amp;gt;Themes&amp;gt;Theme settings&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
===How can I restrict the available themes to users and in courses?===&lt;br /&gt;
&lt;br /&gt;
In&#039;&#039; Settings&amp;gt;Site Administration&amp;gt;Appearance&amp;gt;Themes&amp;gt;Theme settings&#039;&#039;, add the themes you want them to use in the Theme list. These will then restrict the theme choice lists in pull down menus the contexts (Course, Category, User) where you allow them.&lt;br /&gt;
&lt;br /&gt;
===What is the hierarchy of contexts for themes to override each other?===&lt;br /&gt;
&lt;br /&gt;
There are five contexts in which themes appear and can be set: courses, category, session, user, and site, and that is the level of priority of appearance they have as well.  &lt;br /&gt;
&lt;br /&gt;
* Course: themes set at the course level trump (override) all other theme settings&lt;br /&gt;
* Category: themes set at the category level trump all themes except course level themes&lt;br /&gt;
* Session: session level themes set with the URL parameter theme=theme_name are trumped by course and category but trump lower levels&lt;br /&gt;
* User: themes set at the user profile level are trumped by course, category and session, and only trump the site theme&lt;br /&gt;
* Site: Is trumped by any of the above themes&lt;br /&gt;
&lt;br /&gt;
Note: Session, Site and Public: it is important to note that Session level themes override the Site level theme ONLY for the user&#039;s current logged in session. You only have to set the theme once via the URL parameter and it will persist until the user logs out. When the user does log out however, they will then see the DEFAULT SITE theme, not the Session theme.&lt;br /&gt;
&lt;br /&gt;
==How do I create a custom theme?==&lt;br /&gt;
&lt;br /&gt;
See the developer documentation [[:dev:Theme development|Theme development]].&lt;br /&gt;
&lt;br /&gt;
==Can I assign a specific theme to a course?==&lt;br /&gt;
&lt;br /&gt;
Yes. In the course settings, use the &amp;quot;Force theme&amp;quot; dropdown box.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Is it possible to customise language strings per theme?==&lt;br /&gt;
Not by default, as when strings are customised, they are customised for the whole site. However, it is possible to make a new language  pack based on your main language and apply that pack to the course which has that theme. See this forum post for more information: https://moodle.org/mod/forum/discuss.php?d=220671&lt;br /&gt;
&lt;br /&gt;
==How can I get the links in  my custom menu to open in new windows?==&lt;br /&gt;
It is possible to create your own fly out menu via the custom menu block in Settings&amp;gt;Site administration&amp;gt;Appearance&amp;gt;Themes&amp;gt;Theme settings. Copy the examples given below the box. If you want the links to open in a new window, use the following code:&lt;br /&gt;
 Moodle|http://www.moodle.org&amp;quot; target=&amp;quot;_blank&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Where shall I put my custom CSS code? ==&lt;br /&gt;
&lt;br /&gt;
Note that the standard themes Afterburner, Arialist, Formal White, Fusion, Nonzero, Overlay, Sky High and Splash all offer the possibility to add custom CSS in their page settings via &#039;&#039;Settings&amp;gt;Appearance&amp;gt;Themes&amp;gt;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Failing this, instead of modifying the theme&#039;s CSS files you better put your own code in a separate CSS file and make your theme aware of that file by modifying its config.php file (be sure add your own CSS file as the last one in the list so that you will override all prior settings). See this posting for [http://moodle.org/mod/forum/discuss.php?d=128599#p564055 detailed instructions]. &lt;br /&gt;
&lt;br /&gt;
See also the instructions on creating your own theme mentioned above.&lt;br /&gt;
&lt;br /&gt;
==Will I lose my courses, language files, logo, etc. if I switch my theme?==&lt;br /&gt;
Switching themes only changes the appearance of your site, not the content within it. The logo is a part of the theme and will be lost when you switch.    &lt;br /&gt;
&lt;br /&gt;
Follow these instructions to [[:dev:Creating_a_custom_theme#Adding_a_Logo|add a logo]] to a theme.&lt;br /&gt;
:If you upgrade your Moodle site and tweaked an existing standard theme, you will lose your changes. Thus it is a good idea to create a custom theme which will not be changed when you upgrade.&lt;br /&gt;
&lt;br /&gt;
==I can&#039;t access theme files on the server. Can I still add a logo to a theme?==&lt;br /&gt;
Yes. You have two choices:&lt;br /&gt;
**Either upload your logo to another place publicly available online and then copy the image&#039;s URL to paste into the logo field of the theme page you are editing (such as Afterburner)&lt;br /&gt;
**Or add the main menu block to your front page; upload the logo via Main menu&amp;gt;Add a resource. Get its URL and paste it into the logo field of the theme page you are editing. You can safely then hide or delete the main menu block; the logo will still be there. (&#039;&#039;NOTE&#039;&#039; - your logo will appear in &#039;&#039;Navigation&amp;gt;Site pages&#039;&#039; as well.)&lt;br /&gt;
&lt;br /&gt;
== Are there tools which help me creating and editing themes? ==&lt;br /&gt;
&lt;br /&gt;
=== Clear Cache Button ===&lt;br /&gt;
This useful Firefox add-on let&#039;s you add a button to your tool bar for easily clearing your cache while working on your theme: https://addons.mozilla.org/de/firefox/addon/1801&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p class=&amp;quot;note&amp;quot;&amp;gt;Please note that the following tools are only for development. They only change the way &#039;&#039;you&#039;&#039; see your Moodle site, not the Moodle site itself. Any changes you make using these tools will not be visible to anyone else who uses your site. For this you will have to make those changes permanent by changing your theme&#039;s CSS files for example.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Firebug ===&lt;br /&gt;
The single most useful tool is the [[:dev:Firebug|Firebug]] add-on for the [[:dev:Firefox|Firefox]] web browser. Firebug integrates with Firefox to put a wealth of development tools at your fingertips while you browse. You can edit, debug, and monitor CSS, HTML, and JavaScript live in any web page... And there are additional add-ons for making Firebug an even more powerful tool.&lt;br /&gt;
&lt;br /&gt;
==== Firebug enhancements ====&lt;br /&gt;
You can enhance Firebug even further. See [[:dev:Firebug|Firebug]] for more information.&lt;br /&gt;
&lt;br /&gt;
=== Web Developer Toolbar ===&lt;br /&gt;
Another great tool for any web developer is the [[:dev:Web developer extension|Web developer extension]], another Firefox add-on. One very useful feature is the option to &#039;&#039;&#039;disable your browser&#039;s cache&#039;&#039;&#039; while working on your theme. That way you are sure you&#039;re always presented with your latest modifications and not with an older, cached version.&lt;br /&gt;
&lt;br /&gt;
Now also available for Google&#039;s Chrome browser: [http://www.sitepoint.com/blogs/2010/03/23/chrome-web-developer-toolbar/ &amp;quot;The Web Developer Toolbar Comes to Chrome&amp;quot;]&lt;br /&gt;
&lt;br /&gt;
=== Stylish ===&lt;br /&gt;
Modifications made with Firebug are lost when refreshing your page. If you want your CSS changes to be a bit more permanent, for example to try them with different pages of your Moodle installation, you can use another Firefox plugin: [https://addons.mozilla.org/en-US/firefox/addon/2108 Stylish]. That way you can change your site&#039;s CSS with a simple mouse click without having to change Moodle code.&lt;br /&gt;
&lt;br /&gt;
See [[:dev:Stylish|Stylish]] for detailed instructions and examples.&lt;br /&gt;
&lt;br /&gt;
==== Stylish-Custom ====&lt;br /&gt;
This is an [https://addons.mozilla.org/en-US/firefox/addon/12105/ custom additions] to the Stylish extension which brings back features from 0.5.9 and adds new features.&lt;br /&gt;
&lt;br /&gt;
== How do I check for cross-browser compatibility? ==&lt;br /&gt;
There are some tools (standalone and online) which can show you how your site looks in different browsers. See this [http://moodle.org/mod/forum/discuss.php?d=127746 forum discussion] for details.  See the new device detection settings in [[Theme settings]] which will allow you to create a theme for those &amp;quot;special&amp;quot; browsers.&lt;br /&gt;
&lt;br /&gt;
==How are the device types used in Moodle 2.4 ?==&lt;br /&gt;
If &amp;quot;Enabled device detection&amp;quot; has been turned on, Moodle 2.4 will automatically use the theme which has been set for the device in the [[Standard themes|Theme selector]] settings page.   It is also possible to add additional types to the Theme selector page by using the &amp;quot;device detection regular expressions&amp;quot; fields.   &lt;br /&gt;
&lt;br /&gt;
Site administrators can find these enable device detection settings in Site administration &amp;gt; Appearance &amp;gt;Themes &amp;gt; [[Theme settings]] .&lt;br /&gt;
&lt;br /&gt;
== Concrete examples for modifying Moodle themes ==&lt;br /&gt;
&amp;lt;p class=&amp;quot;note&amp;quot;&amp;gt;&lt;br /&gt;
The following examples were taken from the former &#039;&#039;Theme Scrapbook&#039;&#039;:&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;quot;The Moodle &#039;&#039;&#039;Theme Scrapbook&#039;&#039;&#039; is a collection of small how-to descriptions. You theme designers and Moodle users working with themes add your knowledge here to help new Moodle users with tips and tricks for their theme work. &lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Feel free to add to this list! Don&#039;t know how? Read our [[MoodleDocs:Guidelines_for_contributors|Guidelines for contributors]].&amp;quot;&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Changing things ===&lt;br /&gt;
&lt;br /&gt;
==== Colors ====&lt;br /&gt;
* [[:dev:Forcing the colour of the chat discussion pane (pop-up mode)]]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=142765 Changing background colour of a topic box]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=152357 How to change the colour of the popup event&#039;s header and background]&lt;br /&gt;
&lt;br /&gt;
==== Logo and icons ====&lt;br /&gt;
* [[:dev:Alternate Icon Set|Using an alternate icon set in Moodle]]&lt;br /&gt;
* [[Favicon|Change the favicon that shows in front of the web address]]&lt;br /&gt;
* [[Footer replacement|Replace the logo in the footer with your web address and/or or own logo]]&lt;br /&gt;
*[[:dev:Header logo|Replace the logo in the header]]&lt;br /&gt;
&lt;br /&gt;
==== Layout ====&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=136546 Overriding the $menu / $button variables] using PHP regular expressions in header.html&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=143411 Changing the view of course categories] - work in progress&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=145077 Sub categories and courses layout] - work in progress&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=151370 Tracker &#039;components&#039; list too small]&lt;br /&gt;
&lt;br /&gt;
=== Adding things ===&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=157935 How to add a different img-bullet to each category?]&lt;br /&gt;
&lt;br /&gt;
=== Hiding things ===&lt;br /&gt;
* Hiding an element with CSS is generally achieved using the [http://reference.sitepoint.com/css/display display: none;] property on the element.&lt;br /&gt;
* See [[:dev:Print style]] and [[:dev:Stylish#Print style for Database records]] for an example how to hide parts of a page not meant for printing.&lt;br /&gt;
&lt;br /&gt;
=== Moving things ===&lt;br /&gt;
* [[:dev:Center Forum Posts|Centre smaller forum posts on the page]]&lt;br /&gt;
* [[:dev:Footer positioning|Positioning the page footer]]&lt;br /&gt;
* [[:dev:Left-align quiz|Left align quiz questions and answers]]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=121847 Indentation for nested categories]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=128599 Positioning login and choose language field]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=145179 Match question type - position answers nearer to the questions]&lt;br /&gt;
* [[:dev:Stylish#Fixed admin menue with CSS]]&lt;br /&gt;
&lt;br /&gt;
=== Miscellaneous ===&lt;br /&gt;
* [[:dev:Fixed-width theme|Creating a fixed-width theme]]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=146763 Is there a way to fix oversized HTML Editor using CSS?]&lt;br /&gt;
* [[:dev:Category Design|Modifying the design of specific categories with CSS]]&lt;br /&gt;
&lt;br /&gt;
==How can I see theme changes when using the Windows Complete Installer package==&lt;br /&gt;
In the [http://download.moodle.org/windows/ Windows Complete Installer package], the eAccelerator in the XAMPP install can cause some issues with changes to your theme&#039;s CSS and HTML files from showing.&lt;br /&gt;
&lt;br /&gt;
Open the php.ini file inside of the server\php folder from your install in notepad and search for &amp;quot;eAccelerator&amp;quot; you should see a line that reads: &lt;br /&gt;
 extension=eaccelerator.dll&lt;br /&gt;
&lt;br /&gt;
Insert a semi-colon (turns the line into a comment) at the start of this line so it now reads: &lt;br /&gt;
 ;extension=eaccelerator.dll&lt;br /&gt;
&lt;br /&gt;
Restart the Moodle server using the &amp;quot;stop moodle&amp;quot; and then the &amp;quot;start moodle&amp;quot; programs in your server folder. You should now find that all of your changes to your CSS are reflected as soon as you save the file and refresh your browser cache (usually you can refresh your cache by pressing F5). This FAQ from a discussion at [http://moodle.org/mod/forum/discuss.php?d=151562#p663950 Deactivating caching with XAMPP installations]&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
&lt;br /&gt;
* Using Moodle [http://moodle.org/mod/forum/view.php?f=29 Themes forum]&lt;br /&gt;
* [[:dev:CSS FAQ]]&lt;br /&gt;
* [http://learn.open.ac.uk/mod/oublog/view.php?user=155976 &amp;quot;Understanding Moodle Themes&amp;quot;] - Blog post by [http://moodle.org/user/view.php?id=78896&amp;amp;course=5 Christopher Douce] (Open University)&lt;br /&gt;
* Using Moodle [http://moodle.org/mod/forum/discuss.php?d=149534 Testing 2.0. Use for modern vs old browsers] forum discussion&lt;br /&gt;
&lt;br /&gt;
[[Category:FAQ]]&lt;br /&gt;
[[de:Designs_FAQ]]&lt;/div&gt;</summary>
		<author><name>Rwthornton</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/2x/ca/index.php?title=Themes_FAQ&amp;diff=104466</id>
		<title>Themes FAQ</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/2x/ca/index.php?title=Themes_FAQ&amp;diff=104466"/>
		<updated>2013-05-16T18:49:50Z</updated>

		<summary type="html">&lt;p&gt;Rwthornton: /* What is the hierarchy of contexts for themes to override each other? */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Themes}}&lt;br /&gt;
==How do I install a new theme?==&lt;br /&gt;
&lt;br /&gt;
# Unzip the .zip file to an empty local directory.&lt;br /&gt;
# Upload folder to your web server to the /moodle/theme/[Theme Name]. (Replace [Theme Name] with the name of the theme you have downloaded.) Ensure the new theme folder and its contents are readable by the webserver.  Change Read and Write permissions (CHMOD) for the files and folder to 755 - Owner read/write/execute, Group read/execute, Everyone read/execute.  Incorrect permissions may prevent display of the newly installed theme.&lt;br /&gt;
# Choose your new theme from within Moodle via &#039;&#039;Administration &amp;gt; Appearance &amp;gt; Themes &amp;gt; Theme selector&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
=== How do I install a new theme when using cPanel? ===&lt;br /&gt;
&lt;br /&gt;
# Upload your new theme .zip file to your web server via cPanel. &lt;br /&gt;
# Then using cPanel install the new theme to your Moodle theme&#039;s folder.  The new theme will be installed into its own folder at /moodle/theme/[mytheme] (where [mytheme] is the name of your new theme.&lt;br /&gt;
# Ensure the new theme folder and its contents are readable by the webserver. If necessary  change Read and Write permissions (CHMOD) for the files and folder to 755 - Owner read/write/execute, Group read/execute, Everyone read/execute.  Incorrect permissions may prevent display of the newly installed theme.&lt;br /&gt;
# Choose your new theme from within Moodle via &#039;&#039;Administration &amp;gt; Appearance &amp;gt; Themes &amp;gt; Theme selector&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=== Why is the new theme I uploaded not showing up in Theme Selector? ===&lt;br /&gt;
&lt;br /&gt;
You probably forgot to do something correctly. Here are steps to create a &amp;quot;new&amp;quot; theme from an existing theme called &amp;quot;standard&amp;quot;. Bold show places you must change for the theme to appear.&lt;br /&gt;
#Copy folder theme/standard and call it theme/new&lt;br /&gt;
#In theme/new/lang/en folder,&lt;br /&gt;
##&#039;&#039;&#039;Renamed theme_standard.php to theme_new.php&#039;&#039;&#039;&lt;br /&gt;
#Opened theme/new/lang/en/new.php,  recommend you change 2 lines to read something like:&lt;br /&gt;
##$string[&#039;pluginname&#039;] = &#039;New theme - Martin D&#039;; &lt;br /&gt;
##$string[&#039;chooseredme&#039;] = &#039;New theme came from the Standard theme and is being changed by Martin D in 2011&#039;;&lt;br /&gt;
##Saved the file&lt;br /&gt;
#In theme/new/config.php&lt;br /&gt;
##Change &#039;&#039;&#039;$THEME-&amp;gt;NAME  = &#039;new&#039;&#039;&#039;&#039;;&lt;br /&gt;
#Went to &#039;&#039;Settings &amp;gt; Site Administration &amp;gt;Appearance &amp;gt; Theme settings&#039;&#039; &amp;gt; Theme designer mode (Checked)&lt;br /&gt;
#&#039;&#039;Settings &amp;gt; Site Administration &amp;gt;Appearance &amp;gt; Theme selector&#039;&#039;&lt;br /&gt;
##Clear theme caches&lt;br /&gt;
##Select theme&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;Tip:&#039;&#039; There could be a number of problems with the theme you uploaded, but one major problem reported in the Themes Forum all point to the way in which the theme is uploaded on certain servers. Using the cPanel method, as described in  the FAQ [[Themes_FAQ#How do I install a new theme when using cPanel?|How do I install a new theme when using cPanel?]] will, in most cases, cure the problem.&lt;br /&gt;
&lt;br /&gt;
== How do I control what themes show up where? ==&lt;br /&gt;
&lt;br /&gt;
You can control which themes show up in which contexts by a series of settings in &#039;&#039;Settings&amp;gt;Site Administration&amp;gt;Appearance&amp;gt;Themes&amp;gt;Theme settings&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
===How can I restrict the available themes to users and in courses?===&lt;br /&gt;
#In&#039;&#039; Settings&amp;gt;Site Administration&amp;gt;Appearance&amp;gt;Themes&amp;gt;Theme settings&#039;&#039;, add the themes you want them to use in the Theme list. These will then restrict the theme choice lists in pull down menus the contexts (Course, Category, User) where you allow them.&lt;br /&gt;
&lt;br /&gt;
===What is the hierarchy of contexts for themes to override each other?===&lt;br /&gt;
&lt;br /&gt;
There are five contexts in which themes appear and can be set: courses, category, session, user, and site, and that is the level of priority of appearance they have as well.  &lt;br /&gt;
&lt;br /&gt;
* Course: themes set at the course level trump (override) all other theme settings&lt;br /&gt;
* Category: themes set at the category level trump all themes except course level themes&lt;br /&gt;
* Session: session level themes set with the URL parameter theme=theme_name are trumped by course and category but trump lower levels&lt;br /&gt;
* User: themes set at the user profile level are trumped by course, category and session, and only trump the site theme&lt;br /&gt;
* Site: Is trumped by any of the above themes&lt;br /&gt;
&lt;br /&gt;
Note: Session, Site and Public: it is important to note that Session level themes override the Site level theme ONLY for the user&#039;s current logged in session. You only have to set the theme once via the URL parameter and it will persist until the user logs out. When the user does log out however, they will then see the DEFAULT SITE theme, not the Session theme.&lt;br /&gt;
&lt;br /&gt;
==How do I create a custom theme?==&lt;br /&gt;
&lt;br /&gt;
See the developer documentation [[:dev:Theme development|Theme development]].&lt;br /&gt;
&lt;br /&gt;
==Can I assign a specific theme to a course?==&lt;br /&gt;
&lt;br /&gt;
Yes. In the course settings, use the &amp;quot;Force theme&amp;quot; dropdown box.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Is it possible to customise language strings per theme?==&lt;br /&gt;
Not by default, as when strings are customised, they are customised for the whole site. However, it is possible to make a new language  pack based on your main language and apply that pack to the course which has that theme. See this forum post for more information: https://moodle.org/mod/forum/discuss.php?d=220671&lt;br /&gt;
&lt;br /&gt;
==How can I get the links in  my custom menu to open in new windows?==&lt;br /&gt;
It is possible to create your own fly out menu via the custom menu block in Settings&amp;gt;Site administration&amp;gt;Appearance&amp;gt;Themes&amp;gt;Theme settings. Copy the examples given below the box. If you want the links to open in a new window, use the following code:&lt;br /&gt;
 Moodle|http://www.moodle.org&amp;quot; target=&amp;quot;_blank&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Where shall I put my custom CSS code? ==&lt;br /&gt;
&lt;br /&gt;
Note that the standard themes Afterburner, Arialist, Formal White, Fusion, Nonzero, Overlay, Sky High and Splash all offer the possibility to add custom CSS in their page settings via &#039;&#039;Settings&amp;gt;Appearance&amp;gt;Themes&amp;gt;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Failing this, instead of modifying the theme&#039;s CSS files you better put your own code in a separate CSS file and make your theme aware of that file by modifying its config.php file (be sure add your own CSS file as the last one in the list so that you will override all prior settings). See this posting for [http://moodle.org/mod/forum/discuss.php?d=128599#p564055 detailed instructions]. &lt;br /&gt;
&lt;br /&gt;
See also the instructions on creating your own theme mentioned above.&lt;br /&gt;
&lt;br /&gt;
==Will I lose my courses, language files, logo, etc. if I switch my theme?==&lt;br /&gt;
Switching themes only changes the appearance of your site, not the content within it. The logo is a part of the theme and will be lost when you switch.    &lt;br /&gt;
&lt;br /&gt;
Follow these instructions to [[:dev:Creating_a_custom_theme#Adding_a_Logo|add a logo]] to a theme.&lt;br /&gt;
:If you upgrade your Moodle site and tweaked an existing standard theme, you will lose your changes. Thus it is a good idea to create a custom theme which will not be changed when you upgrade.&lt;br /&gt;
&lt;br /&gt;
==I can&#039;t access theme files on the server. Can I still add a logo to a theme?==&lt;br /&gt;
Yes. You have two choices:&lt;br /&gt;
**Either upload your logo to another place publicly available online and then copy the image&#039;s URL to paste into the logo field of the theme page you are editing (such as Afterburner)&lt;br /&gt;
**Or add the main menu block to your front page; upload the logo via Main menu&amp;gt;Add a resource. Get its URL and paste it into the logo field of the theme page you are editing. You can safely then hide or delete the main menu block; the logo will still be there. (&#039;&#039;NOTE&#039;&#039; - your logo will appear in &#039;&#039;Navigation&amp;gt;Site pages&#039;&#039; as well.)&lt;br /&gt;
&lt;br /&gt;
== Are there tools which help me creating and editing themes? ==&lt;br /&gt;
&lt;br /&gt;
=== Clear Cache Button ===&lt;br /&gt;
This useful Firefox add-on let&#039;s you add a button to your tool bar for easily clearing your cache while working on your theme: https://addons.mozilla.org/de/firefox/addon/1801&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p class=&amp;quot;note&amp;quot;&amp;gt;Please note that the following tools are only for development. They only change the way &#039;&#039;you&#039;&#039; see your Moodle site, not the Moodle site itself. Any changes you make using these tools will not be visible to anyone else who uses your site. For this you will have to make those changes permanent by changing your theme&#039;s CSS files for example.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Firebug ===&lt;br /&gt;
The single most useful tool is the [[:dev:Firebug|Firebug]] add-on for the [[:dev:Firefox|Firefox]] web browser. Firebug integrates with Firefox to put a wealth of development tools at your fingertips while you browse. You can edit, debug, and monitor CSS, HTML, and JavaScript live in any web page... And there are additional add-ons for making Firebug an even more powerful tool.&lt;br /&gt;
&lt;br /&gt;
==== Firebug enhancements ====&lt;br /&gt;
You can enhance Firebug even further. See [[:dev:Firebug|Firebug]] for more information.&lt;br /&gt;
&lt;br /&gt;
=== Web Developer Toolbar ===&lt;br /&gt;
Another great tool for any web developer is the [[:dev:Web developer extension|Web developer extension]], another Firefox add-on. One very useful feature is the option to &#039;&#039;&#039;disable your browser&#039;s cache&#039;&#039;&#039; while working on your theme. That way you are sure you&#039;re always presented with your latest modifications and not with an older, cached version.&lt;br /&gt;
&lt;br /&gt;
Now also available for Google&#039;s Chrome browser: [http://www.sitepoint.com/blogs/2010/03/23/chrome-web-developer-toolbar/ &amp;quot;The Web Developer Toolbar Comes to Chrome&amp;quot;]&lt;br /&gt;
&lt;br /&gt;
=== Stylish ===&lt;br /&gt;
Modifications made with Firebug are lost when refreshing your page. If you want your CSS changes to be a bit more permanent, for example to try them with different pages of your Moodle installation, you can use another Firefox plugin: [https://addons.mozilla.org/en-US/firefox/addon/2108 Stylish]. That way you can change your site&#039;s CSS with a simple mouse click without having to change Moodle code.&lt;br /&gt;
&lt;br /&gt;
See [[:dev:Stylish|Stylish]] for detailed instructions and examples.&lt;br /&gt;
&lt;br /&gt;
==== Stylish-Custom ====&lt;br /&gt;
This is an [https://addons.mozilla.org/en-US/firefox/addon/12105/ custom additions] to the Stylish extension which brings back features from 0.5.9 and adds new features.&lt;br /&gt;
&lt;br /&gt;
== How do I check for cross-browser compatibility? ==&lt;br /&gt;
There are some tools (standalone and online) which can show you how your site looks in different browsers. See this [http://moodle.org/mod/forum/discuss.php?d=127746 forum discussion] for details.  See the new device detection settings in [[Theme settings]] which will allow you to create a theme for those &amp;quot;special&amp;quot; browsers.&lt;br /&gt;
&lt;br /&gt;
==How are the device types used in Moodle 2.4 ?==&lt;br /&gt;
If &amp;quot;Enabled device detection&amp;quot; has been turned on, Moodle 2.4 will automatically use the theme which has been set for the device in the [[Standard themes|Theme selector]] settings page.   It is also possible to add additional types to the Theme selector page by using the &amp;quot;device detection regular expressions&amp;quot; fields.   &lt;br /&gt;
&lt;br /&gt;
Site administrators can find these enable device detection settings in Site administration &amp;gt; Appearance &amp;gt;Themes &amp;gt; [[Theme settings]] .&lt;br /&gt;
&lt;br /&gt;
== Concrete examples for modifying Moodle themes ==&lt;br /&gt;
&amp;lt;p class=&amp;quot;note&amp;quot;&amp;gt;&lt;br /&gt;
The following examples were taken from the former &#039;&#039;Theme Scrapbook&#039;&#039;:&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;quot;The Moodle &#039;&#039;&#039;Theme Scrapbook&#039;&#039;&#039; is a collection of small how-to descriptions. You theme designers and Moodle users working with themes add your knowledge here to help new Moodle users with tips and tricks for their theme work. &lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Feel free to add to this list! Don&#039;t know how? Read our [[MoodleDocs:Guidelines_for_contributors|Guidelines for contributors]].&amp;quot;&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Changing things ===&lt;br /&gt;
&lt;br /&gt;
==== Colors ====&lt;br /&gt;
* [[:dev:Forcing the colour of the chat discussion pane (pop-up mode)]]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=142765 Changing background colour of a topic box]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=152357 How to change the colour of the popup event&#039;s header and background]&lt;br /&gt;
&lt;br /&gt;
==== Logo and icons ====&lt;br /&gt;
* [[:dev:Alternate Icon Set|Using an alternate icon set in Moodle]]&lt;br /&gt;
* [[Favicon|Change the favicon that shows in front of the web address]]&lt;br /&gt;
* [[Footer replacement|Replace the logo in the footer with your web address and/or or own logo]]&lt;br /&gt;
*[[:dev:Header logo|Replace the logo in the header]]&lt;br /&gt;
&lt;br /&gt;
==== Layout ====&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=136546 Overriding the $menu / $button variables] using PHP regular expressions in header.html&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=143411 Changing the view of course categories] - work in progress&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=145077 Sub categories and courses layout] - work in progress&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=151370 Tracker &#039;components&#039; list too small]&lt;br /&gt;
&lt;br /&gt;
=== Adding things ===&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=157935 How to add a different img-bullet to each category?]&lt;br /&gt;
&lt;br /&gt;
=== Hiding things ===&lt;br /&gt;
* Hiding an element with CSS is generally achieved using the [http://reference.sitepoint.com/css/display display: none;] property on the element.&lt;br /&gt;
* See [[:dev:Print style]] and [[:dev:Stylish#Print style for Database records]] for an example how to hide parts of a page not meant for printing.&lt;br /&gt;
&lt;br /&gt;
=== Moving things ===&lt;br /&gt;
* [[:dev:Center Forum Posts|Centre smaller forum posts on the page]]&lt;br /&gt;
* [[:dev:Footer positioning|Positioning the page footer]]&lt;br /&gt;
* [[:dev:Left-align quiz|Left align quiz questions and answers]]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=121847 Indentation for nested categories]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=128599 Positioning login and choose language field]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=145179 Match question type - position answers nearer to the questions]&lt;br /&gt;
* [[:dev:Stylish#Fixed admin menue with CSS]]&lt;br /&gt;
&lt;br /&gt;
=== Miscellaneous ===&lt;br /&gt;
* [[:dev:Fixed-width theme|Creating a fixed-width theme]]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=146763 Is there a way to fix oversized HTML Editor using CSS?]&lt;br /&gt;
* [[:dev:Category Design|Modifying the design of specific categories with CSS]]&lt;br /&gt;
&lt;br /&gt;
==How can I see theme changes when using the Windows Complete Installer package==&lt;br /&gt;
In the [http://download.moodle.org/windows/ Windows Complete Installer package], the eAccelerator in the XAMPP install can cause some issues with changes to your theme&#039;s CSS and HTML files from showing.&lt;br /&gt;
&lt;br /&gt;
Open the php.ini file inside of the server\php folder from your install in notepad and search for &amp;quot;eAccelerator&amp;quot; you should see a line that reads: &lt;br /&gt;
 extension=eaccelerator.dll&lt;br /&gt;
&lt;br /&gt;
Insert a semi-colon (turns the line into a comment) at the start of this line so it now reads: &lt;br /&gt;
 ;extension=eaccelerator.dll&lt;br /&gt;
&lt;br /&gt;
Restart the Moodle server using the &amp;quot;stop moodle&amp;quot; and then the &amp;quot;start moodle&amp;quot; programs in your server folder. You should now find that all of your changes to your CSS are reflected as soon as you save the file and refresh your browser cache (usually you can refresh your cache by pressing F5). This FAQ from a discussion at [http://moodle.org/mod/forum/discuss.php?d=151562#p663950 Deactivating caching with XAMPP installations]&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
&lt;br /&gt;
* Using Moodle [http://moodle.org/mod/forum/view.php?f=29 Themes forum]&lt;br /&gt;
* [[:dev:CSS FAQ]]&lt;br /&gt;
* [http://learn.open.ac.uk/mod/oublog/view.php?user=155976 &amp;quot;Understanding Moodle Themes&amp;quot;] - Blog post by [http://moodle.org/user/view.php?id=78896&amp;amp;course=5 Christopher Douce] (Open University)&lt;br /&gt;
* Using Moodle [http://moodle.org/mod/forum/discuss.php?d=149534 Testing 2.0. Use for modern vs old browsers] forum discussion&lt;br /&gt;
&lt;br /&gt;
[[Category:FAQ]]&lt;br /&gt;
[[de:Designs_FAQ]]&lt;/div&gt;</summary>
		<author><name>Rwthornton</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/2x/ca/index.php?title=Themes_FAQ&amp;diff=104465</id>
		<title>Themes FAQ</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/2x/ca/index.php?title=Themes_FAQ&amp;diff=104465"/>
		<updated>2013-05-16T18:45:49Z</updated>

		<summary type="html">&lt;p&gt;Rwthornton: /* How can I restrict the available themes to users and in courses? */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Themes}}&lt;br /&gt;
==How do I install a new theme?==&lt;br /&gt;
&lt;br /&gt;
# Unzip the .zip file to an empty local directory.&lt;br /&gt;
# Upload folder to your web server to the /moodle/theme/[Theme Name]. (Replace [Theme Name] with the name of the theme you have downloaded.) Ensure the new theme folder and its contents are readable by the webserver.  Change Read and Write permissions (CHMOD) for the files and folder to 755 - Owner read/write/execute, Group read/execute, Everyone read/execute.  Incorrect permissions may prevent display of the newly installed theme.&lt;br /&gt;
# Choose your new theme from within Moodle via &#039;&#039;Administration &amp;gt; Appearance &amp;gt; Themes &amp;gt; Theme selector&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
=== How do I install a new theme when using cPanel? ===&lt;br /&gt;
&lt;br /&gt;
# Upload your new theme .zip file to your web server via cPanel. &lt;br /&gt;
# Then using cPanel install the new theme to your Moodle theme&#039;s folder.  The new theme will be installed into its own folder at /moodle/theme/[mytheme] (where [mytheme] is the name of your new theme.&lt;br /&gt;
# Ensure the new theme folder and its contents are readable by the webserver. If necessary  change Read and Write permissions (CHMOD) for the files and folder to 755 - Owner read/write/execute, Group read/execute, Everyone read/execute.  Incorrect permissions may prevent display of the newly installed theme.&lt;br /&gt;
# Choose your new theme from within Moodle via &#039;&#039;Administration &amp;gt; Appearance &amp;gt; Themes &amp;gt; Theme selector&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=== Why is the new theme I uploaded not showing up in Theme Selector? ===&lt;br /&gt;
&lt;br /&gt;
You probably forgot to do something correctly. Here are steps to create a &amp;quot;new&amp;quot; theme from an existing theme called &amp;quot;standard&amp;quot;. Bold show places you must change for the theme to appear.&lt;br /&gt;
#Copy folder theme/standard and call it theme/new&lt;br /&gt;
#In theme/new/lang/en folder,&lt;br /&gt;
##&#039;&#039;&#039;Renamed theme_standard.php to theme_new.php&#039;&#039;&#039;&lt;br /&gt;
#Opened theme/new/lang/en/new.php,  recommend you change 2 lines to read something like:&lt;br /&gt;
##$string[&#039;pluginname&#039;] = &#039;New theme - Martin D&#039;; &lt;br /&gt;
##$string[&#039;chooseredme&#039;] = &#039;New theme came from the Standard theme and is being changed by Martin D in 2011&#039;;&lt;br /&gt;
##Saved the file&lt;br /&gt;
#In theme/new/config.php&lt;br /&gt;
##Change &#039;&#039;&#039;$THEME-&amp;gt;NAME  = &#039;new&#039;&#039;&#039;&#039;;&lt;br /&gt;
#Went to &#039;&#039;Settings &amp;gt; Site Administration &amp;gt;Appearance &amp;gt; Theme settings&#039;&#039; &amp;gt; Theme designer mode (Checked)&lt;br /&gt;
#&#039;&#039;Settings &amp;gt; Site Administration &amp;gt;Appearance &amp;gt; Theme selector&#039;&#039;&lt;br /&gt;
##Clear theme caches&lt;br /&gt;
##Select theme&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;Tip:&#039;&#039; There could be a number of problems with the theme you uploaded, but one major problem reported in the Themes Forum all point to the way in which the theme is uploaded on certain servers. Using the cPanel method, as described in  the FAQ [[Themes_FAQ#How do I install a new theme when using cPanel?|How do I install a new theme when using cPanel?]] will, in most cases, cure the problem.&lt;br /&gt;
&lt;br /&gt;
== How do I control what themes show up where? ==&lt;br /&gt;
&lt;br /&gt;
You can control which themes show up in which contexts by a series of settings in &#039;&#039;Settings&amp;gt;Site Administration&amp;gt;Appearance&amp;gt;Themes&amp;gt;Theme settings&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
===How can I restrict the available themes to users and in courses?===&lt;br /&gt;
#In&#039;&#039; Settings&amp;gt;Site Administration&amp;gt;Appearance&amp;gt;Themes&amp;gt;Theme settings&#039;&#039;, add the themes you want them to use in the Theme list. These will then restrict the theme choice lists in pull down menus the contexts (Course, Category, User) where you allow them.&lt;br /&gt;
&lt;br /&gt;
===What is the hierarchy of contexts for themes to override each other?===&lt;br /&gt;
&lt;br /&gt;
There are five contexts in which themes appear and can be set: courses, category, session, user, and site, and that is the level of priority of appearance they have as well.  &lt;br /&gt;
&lt;br /&gt;
* Course: themes set at the course level trump (override) all other theme settings&lt;br /&gt;
* Category: themes set at the category level trump all themes except course level themes&lt;br /&gt;
* Session: session level themes set with the URL parameter theme=theme_name are trumped by course and category but trump lower levels&lt;br /&gt;
* User: themes set at the user profile level are trumped by course, category and session, and only trump the site theme&lt;br /&gt;
* Site: Is trumped by any of the above themes&lt;br /&gt;
&lt;br /&gt;
==How do I create a custom theme?==&lt;br /&gt;
&lt;br /&gt;
See the developer documentation [[:dev:Theme development|Theme development]].&lt;br /&gt;
&lt;br /&gt;
==Can I assign a specific theme to a course?==&lt;br /&gt;
&lt;br /&gt;
Yes. In the course settings, use the &amp;quot;Force theme&amp;quot; dropdown box.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Is it possible to customise language strings per theme?==&lt;br /&gt;
Not by default, as when strings are customised, they are customised for the whole site. However, it is possible to make a new language  pack based on your main language and apply that pack to the course which has that theme. See this forum post for more information: https://moodle.org/mod/forum/discuss.php?d=220671&lt;br /&gt;
&lt;br /&gt;
==How can I get the links in  my custom menu to open in new windows?==&lt;br /&gt;
It is possible to create your own fly out menu via the custom menu block in Settings&amp;gt;Site administration&amp;gt;Appearance&amp;gt;Themes&amp;gt;Theme settings. Copy the examples given below the box. If you want the links to open in a new window, use the following code:&lt;br /&gt;
 Moodle|http://www.moodle.org&amp;quot; target=&amp;quot;_blank&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Where shall I put my custom CSS code? ==&lt;br /&gt;
&lt;br /&gt;
Note that the standard themes Afterburner, Arialist, Formal White, Fusion, Nonzero, Overlay, Sky High and Splash all offer the possibility to add custom CSS in their page settings via &#039;&#039;Settings&amp;gt;Appearance&amp;gt;Themes&amp;gt;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Failing this, instead of modifying the theme&#039;s CSS files you better put your own code in a separate CSS file and make your theme aware of that file by modifying its config.php file (be sure add your own CSS file as the last one in the list so that you will override all prior settings). See this posting for [http://moodle.org/mod/forum/discuss.php?d=128599#p564055 detailed instructions]. &lt;br /&gt;
&lt;br /&gt;
See also the instructions on creating your own theme mentioned above.&lt;br /&gt;
&lt;br /&gt;
==Will I lose my courses, language files, logo, etc. if I switch my theme?==&lt;br /&gt;
Switching themes only changes the appearance of your site, not the content within it. The logo is a part of the theme and will be lost when you switch.    &lt;br /&gt;
&lt;br /&gt;
Follow these instructions to [[:dev:Creating_a_custom_theme#Adding_a_Logo|add a logo]] to a theme.&lt;br /&gt;
:If you upgrade your Moodle site and tweaked an existing standard theme, you will lose your changes. Thus it is a good idea to create a custom theme which will not be changed when you upgrade.&lt;br /&gt;
&lt;br /&gt;
==I can&#039;t access theme files on the server. Can I still add a logo to a theme?==&lt;br /&gt;
Yes. You have two choices:&lt;br /&gt;
**Either upload your logo to another place publicly available online and then copy the image&#039;s URL to paste into the logo field of the theme page you are editing (such as Afterburner)&lt;br /&gt;
**Or add the main menu block to your front page; upload the logo via Main menu&amp;gt;Add a resource. Get its URL and paste it into the logo field of the theme page you are editing. You can safely then hide or delete the main menu block; the logo will still be there. (&#039;&#039;NOTE&#039;&#039; - your logo will appear in &#039;&#039;Navigation&amp;gt;Site pages&#039;&#039; as well.)&lt;br /&gt;
&lt;br /&gt;
== Are there tools which help me creating and editing themes? ==&lt;br /&gt;
&lt;br /&gt;
=== Clear Cache Button ===&lt;br /&gt;
This useful Firefox add-on let&#039;s you add a button to your tool bar for easily clearing your cache while working on your theme: https://addons.mozilla.org/de/firefox/addon/1801&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p class=&amp;quot;note&amp;quot;&amp;gt;Please note that the following tools are only for development. They only change the way &#039;&#039;you&#039;&#039; see your Moodle site, not the Moodle site itself. Any changes you make using these tools will not be visible to anyone else who uses your site. For this you will have to make those changes permanent by changing your theme&#039;s CSS files for example.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Firebug ===&lt;br /&gt;
The single most useful tool is the [[:dev:Firebug|Firebug]] add-on for the [[:dev:Firefox|Firefox]] web browser. Firebug integrates with Firefox to put a wealth of development tools at your fingertips while you browse. You can edit, debug, and monitor CSS, HTML, and JavaScript live in any web page... And there are additional add-ons for making Firebug an even more powerful tool.&lt;br /&gt;
&lt;br /&gt;
==== Firebug enhancements ====&lt;br /&gt;
You can enhance Firebug even further. See [[:dev:Firebug|Firebug]] for more information.&lt;br /&gt;
&lt;br /&gt;
=== Web Developer Toolbar ===&lt;br /&gt;
Another great tool for any web developer is the [[:dev:Web developer extension|Web developer extension]], another Firefox add-on. One very useful feature is the option to &#039;&#039;&#039;disable your browser&#039;s cache&#039;&#039;&#039; while working on your theme. That way you are sure you&#039;re always presented with your latest modifications and not with an older, cached version.&lt;br /&gt;
&lt;br /&gt;
Now also available for Google&#039;s Chrome browser: [http://www.sitepoint.com/blogs/2010/03/23/chrome-web-developer-toolbar/ &amp;quot;The Web Developer Toolbar Comes to Chrome&amp;quot;]&lt;br /&gt;
&lt;br /&gt;
=== Stylish ===&lt;br /&gt;
Modifications made with Firebug are lost when refreshing your page. If you want your CSS changes to be a bit more permanent, for example to try them with different pages of your Moodle installation, you can use another Firefox plugin: [https://addons.mozilla.org/en-US/firefox/addon/2108 Stylish]. That way you can change your site&#039;s CSS with a simple mouse click without having to change Moodle code.&lt;br /&gt;
&lt;br /&gt;
See [[:dev:Stylish|Stylish]] for detailed instructions and examples.&lt;br /&gt;
&lt;br /&gt;
==== Stylish-Custom ====&lt;br /&gt;
This is an [https://addons.mozilla.org/en-US/firefox/addon/12105/ custom additions] to the Stylish extension which brings back features from 0.5.9 and adds new features.&lt;br /&gt;
&lt;br /&gt;
== How do I check for cross-browser compatibility? ==&lt;br /&gt;
There are some tools (standalone and online) which can show you how your site looks in different browsers. See this [http://moodle.org/mod/forum/discuss.php?d=127746 forum discussion] for details.  See the new device detection settings in [[Theme settings]] which will allow you to create a theme for those &amp;quot;special&amp;quot; browsers.&lt;br /&gt;
&lt;br /&gt;
==How are the device types used in Moodle 2.4 ?==&lt;br /&gt;
If &amp;quot;Enabled device detection&amp;quot; has been turned on, Moodle 2.4 will automatically use the theme which has been set for the device in the [[Standard themes|Theme selector]] settings page.   It is also possible to add additional types to the Theme selector page by using the &amp;quot;device detection regular expressions&amp;quot; fields.   &lt;br /&gt;
&lt;br /&gt;
Site administrators can find these enable device detection settings in Site administration &amp;gt; Appearance &amp;gt;Themes &amp;gt; [[Theme settings]] .&lt;br /&gt;
&lt;br /&gt;
== Concrete examples for modifying Moodle themes ==&lt;br /&gt;
&amp;lt;p class=&amp;quot;note&amp;quot;&amp;gt;&lt;br /&gt;
The following examples were taken from the former &#039;&#039;Theme Scrapbook&#039;&#039;:&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;quot;The Moodle &#039;&#039;&#039;Theme Scrapbook&#039;&#039;&#039; is a collection of small how-to descriptions. You theme designers and Moodle users working with themes add your knowledge here to help new Moodle users with tips and tricks for their theme work. &lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Feel free to add to this list! Don&#039;t know how? Read our [[MoodleDocs:Guidelines_for_contributors|Guidelines for contributors]].&amp;quot;&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Changing things ===&lt;br /&gt;
&lt;br /&gt;
==== Colors ====&lt;br /&gt;
* [[:dev:Forcing the colour of the chat discussion pane (pop-up mode)]]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=142765 Changing background colour of a topic box]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=152357 How to change the colour of the popup event&#039;s header and background]&lt;br /&gt;
&lt;br /&gt;
==== Logo and icons ====&lt;br /&gt;
* [[:dev:Alternate Icon Set|Using an alternate icon set in Moodle]]&lt;br /&gt;
* [[Favicon|Change the favicon that shows in front of the web address]]&lt;br /&gt;
* [[Footer replacement|Replace the logo in the footer with your web address and/or or own logo]]&lt;br /&gt;
*[[:dev:Header logo|Replace the logo in the header]]&lt;br /&gt;
&lt;br /&gt;
==== Layout ====&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=136546 Overriding the $menu / $button variables] using PHP regular expressions in header.html&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=143411 Changing the view of course categories] - work in progress&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=145077 Sub categories and courses layout] - work in progress&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=151370 Tracker &#039;components&#039; list too small]&lt;br /&gt;
&lt;br /&gt;
=== Adding things ===&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=157935 How to add a different img-bullet to each category?]&lt;br /&gt;
&lt;br /&gt;
=== Hiding things ===&lt;br /&gt;
* Hiding an element with CSS is generally achieved using the [http://reference.sitepoint.com/css/display display: none;] property on the element.&lt;br /&gt;
* See [[:dev:Print style]] and [[:dev:Stylish#Print style for Database records]] for an example how to hide parts of a page not meant for printing.&lt;br /&gt;
&lt;br /&gt;
=== Moving things ===&lt;br /&gt;
* [[:dev:Center Forum Posts|Centre smaller forum posts on the page]]&lt;br /&gt;
* [[:dev:Footer positioning|Positioning the page footer]]&lt;br /&gt;
* [[:dev:Left-align quiz|Left align quiz questions and answers]]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=121847 Indentation for nested categories]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=128599 Positioning login and choose language field]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=145179 Match question type - position answers nearer to the questions]&lt;br /&gt;
* [[:dev:Stylish#Fixed admin menue with CSS]]&lt;br /&gt;
&lt;br /&gt;
=== Miscellaneous ===&lt;br /&gt;
* [[:dev:Fixed-width theme|Creating a fixed-width theme]]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=146763 Is there a way to fix oversized HTML Editor using CSS?]&lt;br /&gt;
* [[:dev:Category Design|Modifying the design of specific categories with CSS]]&lt;br /&gt;
&lt;br /&gt;
==How can I see theme changes when using the Windows Complete Installer package==&lt;br /&gt;
In the [http://download.moodle.org/windows/ Windows Complete Installer package], the eAccelerator in the XAMPP install can cause some issues with changes to your theme&#039;s CSS and HTML files from showing.&lt;br /&gt;
&lt;br /&gt;
Open the php.ini file inside of the server\php folder from your install in notepad and search for &amp;quot;eAccelerator&amp;quot; you should see a line that reads: &lt;br /&gt;
 extension=eaccelerator.dll&lt;br /&gt;
&lt;br /&gt;
Insert a semi-colon (turns the line into a comment) at the start of this line so it now reads: &lt;br /&gt;
 ;extension=eaccelerator.dll&lt;br /&gt;
&lt;br /&gt;
Restart the Moodle server using the &amp;quot;stop moodle&amp;quot; and then the &amp;quot;start moodle&amp;quot; programs in your server folder. You should now find that all of your changes to your CSS are reflected as soon as you save the file and refresh your browser cache (usually you can refresh your cache by pressing F5). This FAQ from a discussion at [http://moodle.org/mod/forum/discuss.php?d=151562#p663950 Deactivating caching with XAMPP installations]&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
&lt;br /&gt;
* Using Moodle [http://moodle.org/mod/forum/view.php?f=29 Themes forum]&lt;br /&gt;
* [[:dev:CSS FAQ]]&lt;br /&gt;
* [http://learn.open.ac.uk/mod/oublog/view.php?user=155976 &amp;quot;Understanding Moodle Themes&amp;quot;] - Blog post by [http://moodle.org/user/view.php?id=78896&amp;amp;course=5 Christopher Douce] (Open University)&lt;br /&gt;
* Using Moodle [http://moodle.org/mod/forum/discuss.php?d=149534 Testing 2.0. Use for modern vs old browsers] forum discussion&lt;br /&gt;
&lt;br /&gt;
[[Category:FAQ]]&lt;br /&gt;
[[de:Designs_FAQ]]&lt;/div&gt;</summary>
		<author><name>Rwthornton</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/2x/ca/index.php?title=Course_completion_settings&amp;diff=104350</id>
		<title>Course completion settings</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/2x/ca/index.php?title=Course_completion_settings&amp;diff=104350"/>
		<updated>2013-05-08T01:19:41Z</updated>

		<summary type="html">&lt;p&gt;Rwthornton: /* Completion dependencies */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Course completion}}&lt;br /&gt;
In order to use the course completion features, it has to be enabled in the site administration settings before the course completion link will appear in the course administration menu.  There are also settings which need to be reviewed in the course administration settings.   You should also install the [[Course completion status block]] and the [[Self completion block]] to view reports and use some of the features of course completion.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Completion tracking settings==&lt;br /&gt;
The following settings may be found in &#039;&#039;Settings &amp;gt; Course administration &amp;gt; Completion tracking&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
===Overall criteria type aggregation===&lt;br /&gt;
Choose here how you wish to mark the course complete -whether you want &#039;&#039;Any&#039;&#039; or &#039;&#039;All&#039;&#039; of the requirements that follow to count towards completion.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;All&#039;&#039;&#039; means just that, every condition that has been checked.  The most restrictive setting.&lt;br /&gt;
: &#039;&#039;&#039;Any&#039;&#039;&#039; means any one of those conditions that have been specified.&lt;br /&gt;
&lt;br /&gt;
===Completion dependencies===&lt;br /&gt;
*This setting allows you to have completion of another course as a condition for completing the course you are currently working in. This does not block the student from your current course; it simply means that the current course will not be marked complete until the first course has been marked complete. Thus, completion of the current course is dependent upon completion of an earlier course.  You need to click on the course or courses in the &amp;quot;Courses available box&amp;quot; that you wish to use in order to select them.&lt;br /&gt;
 &lt;br /&gt;
*If completion tracking has not been set for any other courses yet then a message will appear as in (1). If completion tracking has been set elsewhere then the display changes to (2):&lt;br /&gt;
&lt;br /&gt;
{|&lt;br /&gt;
|[[File:completionnotset.png|thumb|No other courses have completion tracking set]]&lt;br /&gt;
|[[File:completiondependencies.png|thumb|Available course to be completed before the current course is marked complete]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Manual self completion===&lt;br /&gt;
If you check the box in this link, then students can mark the course as complete themselves. In order to do this, the [[Self completion block]] must also be added to the course.&lt;br /&gt;
&lt;br /&gt;
===Manual completion by===&lt;br /&gt;
This setting allows users with selected roles to mark the course as complete. If used, put a check mark next to the role that can mark the course as complete. The roles listed are ones for which the capability [[Capabilities/moodle/course:markcomplete|Mark users as complete in course completion]] is allowed.&lt;br /&gt;
&lt;br /&gt;
Select the Aggregation method &amp;quot;All&amp;quot; when every role that is marked here must put a check mark in the course completion report in order for the student&#039;s course to be marked complete. &lt;br /&gt;
&lt;br /&gt;
Select the Aggregation method &amp;quot;Any&amp;quot; when one or more of the roles that are marked here have put a check mark in the course completion report in order for the student&#039;s course to be marked complete.&lt;br /&gt;
&lt;br /&gt;
===Activities completed===&lt;br /&gt;
This setting will show a list of activities which have [[Activity completion]] setting defined.  Put a check next to the ones which should count towards course completion.  &lt;br /&gt;
&lt;br /&gt;
The &amp;quot;All&amp;quot; aggregation method means that each of the checked activities must meet their Activity completion settings.&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;Any&amp;quot; aggregation method means that at least one of the checked activities must meet their Activity completion settings.&lt;br /&gt;
&lt;br /&gt;
===Date===&lt;br /&gt;
If you check the &#039;&#039;Enable&#039;&#039; box you can then set a date, after which the course will be declared complete..&lt;br /&gt;
&lt;br /&gt;
===Duration after enrolment===&lt;br /&gt;
If you check the &#039;&#039;Enable&#039;&#039; box you can then choose a  number of days after enrolment upon which the course will be marked complete.&lt;br /&gt;
&lt;br /&gt;
===Grade===&lt;br /&gt;
If you check the &#039;&#039;Enable&#039;&#039; box you can set a passing grade for the course.&lt;br /&gt;
&lt;br /&gt;
===Unenrolment===&lt;br /&gt;
If you check the box &#039;&#039;Completion on unenrolment&#039;&#039; then the student&#039;s course will be complete once they have unenrolled.&lt;br /&gt;
&lt;br /&gt;
==Course administration settings==&lt;br /&gt;
&#039;&#039;Course administration &amp;gt; Edit settings&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
*Student Progress&lt;br /&gt;
**Completion tracking must be enabled&lt;br /&gt;
**Completion tracking begins after enrollment (best practice is to check this).&lt;br /&gt;
&lt;br /&gt;
==Site administration settings==&lt;br /&gt;
&#039;&#039;Site administration &amp;gt; Advanced features &amp;gt; Enable completion tracking&#039;&#039; (check enabled).&lt;br /&gt;
&lt;br /&gt;
The above settings can be set as defaults for the site in &#039;&#039;Settings &amp;gt; Site administration &amp;gt; Courses &amp;gt; Course default settings&#039;&#039;. &lt;br /&gt;
:&#039;&#039;Tip:&#039;&#039; The [[Cron]] trigger default for course completion is every 10 minutes.  This is not usually what the Teachers and Students expect. The length of time can be impacted by the server cron schedule and by the code found in /lib/completionlib.php under &amp;quot;Cache expiry time&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
==Course completion capabilities==&lt;br /&gt;
&lt;br /&gt;
There are two capabilities, both of which are allowed for the default roles of manager, teacher and non-editing teacher:&lt;br /&gt;
&lt;br /&gt;
*[[Capabilities/report/completion:view|View course completion report]]&lt;br /&gt;
*[[Capabilities/moodle/course:markcomplete|Mark users as complete in course completion]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Site administration]]&lt;br /&gt;
&lt;br /&gt;
[[eu:Ikastaro-osaketaren_jarraipenaren_ezarpenak]]&lt;/div&gt;</summary>
		<author><name>Rwthornton</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/2x/ca/index.php?title=Standard_themes&amp;diff=104227</id>
		<title>Standard themes</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/2x/ca/index.php?title=Standard_themes&amp;diff=104227"/>
		<updated>2013-04-30T01:04:22Z</updated>

		<summary type="html">&lt;p&gt;Rwthornton: /* Themes with right hand column(s) only */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Themes}}&lt;br /&gt;
==Theme selector==&lt;br /&gt;
&lt;br /&gt;
An administrator can set a theme for the site in &#039;&#039;Settings &amp;gt; Site administration &amp;gt; Appearance &amp;gt; Themes &amp;gt; Theme selector&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Different themes may be set according to &#039;device type&#039; - default, legacy (for older browsers), mobile and tablet.&lt;br /&gt;
&lt;br /&gt;
Go to &#039;&#039;Settings &amp;gt; Site administration &amp;gt; Appearance &amp;gt; Themes &amp;gt; Theme selector&#039;&#039;&lt;br /&gt;
*Click on the &amp;quot;Select theme&amp;quot; button next to the type you wish to change&lt;br /&gt;
*Scroll down to see the previews of the available themes and click on the &amp;quot;Use theme&amp;quot; button to chose the theme&lt;br /&gt;
*The next screen will provide information about the theme. Click &amp;quot;Continue&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Note 1: Moodle caches themes so if you don&#039;t immediately see changed settings that you were expecting, click the &amp;quot;Clear theme caches&amp;quot; button at the top of the Theme selector page.&lt;br /&gt;
&lt;br /&gt;
Note 2: The selected theme may be overridden if user/course or category themes have been allowed in the [[Theme settings]].&lt;br /&gt;
&lt;br /&gt;
Tip: The [[MyMobile theme]] is especially designed for mobile devices.&lt;br /&gt;
&lt;br /&gt;
[[File:Themeselector21.png|thumb|center|theme selector showing default and none selected in other theme types]]&lt;br /&gt;
&lt;br /&gt;
==Notes on individual themes==&lt;br /&gt;
&lt;br /&gt;
Arialist: does not display the logo at course/course level.  This means it is not useful for branding at a category/course level.&lt;br /&gt;
&lt;br /&gt;
===Themes that allow you to change a logo===&lt;br /&gt;
*Arialist (only at home page level) Code to change this: http://moodle.org/mod/forum/discuss.php?d=192409&lt;br /&gt;
*Brick&lt;br /&gt;
*Formal White&lt;br /&gt;
*Magazine&lt;br /&gt;
*Sky High&lt;br /&gt;
*Splash&lt;br /&gt;
&lt;br /&gt;
===Themes that allow custom CSS===&lt;br /&gt;
*Arialist&lt;br /&gt;
*Fusion&lt;br /&gt;
*Non-zero&lt;br /&gt;
*Overlay&lt;br /&gt;
*Sky High&lt;br /&gt;
*Splash&lt;br /&gt;
&lt;br /&gt;
===Themes with right hand column(s) only===&lt;br /&gt;
*Arialist&lt;br /&gt;
*Brick&lt;br /&gt;
*Fusion&lt;br /&gt;
*Nimble &lt;br /&gt;
*Non-zero (2 columns)&lt;br /&gt;
*Overlay (2 columns)&lt;br /&gt;
*Sky High (2 columns)&lt;br /&gt;
&lt;br /&gt;
===Various forum help that may be useful===&lt;br /&gt;
#Changing logo height in Afterburner: http://moodle.org/mod/forum/discuss.php?d=197924&lt;br /&gt;
#Moving columns in Skyhigh: http://moodle.org/mod/forum/discuss.php?d=209626&lt;br /&gt;
#Tweaks to header area in Formal White: http://moodle.org/mod/forum/discuss.php?d=167544&lt;br /&gt;
&lt;br /&gt;
==Standard themes==&lt;br /&gt;
&lt;br /&gt;
In alphabetical order here are the standard themes in Moodle:&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Standard Themes - click on any to enlarge&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;113px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
Image:theme_afterburner.png|Afterburner theme&lt;br /&gt;
Image:theme_anomaly.png|Anomaly theme&lt;br /&gt;
Image:theme_arialist.png|Arialist theme&lt;br /&gt;
Image:theme_binarius.png|Binarius theme&lt;br /&gt;
Image:theme_boxxie.png|Boxxie theme&lt;br /&gt;
Image:theme_brick.png|Brick theme&lt;br /&gt;
Image:theme_formalwhite.png|Formal white theme&lt;br /&gt;
Image:theme_formfactor.png|FormFactor theme&lt;br /&gt;
Image:theme_fusion.png|Fusion theme&lt;br /&gt;
Image:theme_leatherbound.png|Leatherbound theme&lt;br /&gt;
Image:theme_magazine.png|Magazine theme&lt;br /&gt;
Image:Mymobile_theme.png|MyMobile theme&lt;br /&gt;
Image:theme_nimble.png|Nimble theme&lt;br /&gt;
Image:theme_nonzero.png|Nonzero theme&lt;br /&gt;
Image:theme_overlay.png|Overlay theme&lt;br /&gt;
Image:theme_serenity.png|Serenity theme&lt;br /&gt;
Image:theme_skyhigh.png|Sky High theme&lt;br /&gt;
Image:theme_splash.png|Splash theme&lt;br /&gt;
Image:theme_standard.png|Standard theme&lt;br /&gt;
&amp;lt;/gallery&amp;gt; &lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
&lt;br /&gt;
* [[Theme credits]]&lt;br /&gt;
* Using Moodle [http://moodle.org/mod/forum/discuss.php?d=189573 What counts as a &#039;legacy&#039; device type?] forum discussion&lt;br /&gt;
&lt;br /&gt;
[[de:Standard-Designs]]&lt;br /&gt;
[[es:Temas estándar]]&lt;/div&gt;</summary>
		<author><name>Rwthornton</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/2x/ca/index.php?title=Standard_themes&amp;diff=104226</id>
		<title>Standard themes</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/2x/ca/index.php?title=Standard_themes&amp;diff=104226"/>
		<updated>2013-04-30T01:04:05Z</updated>

		<summary type="html">&lt;p&gt;Rwthornton: /* Themes that allow custom CSS */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Themes}}&lt;br /&gt;
==Theme selector==&lt;br /&gt;
&lt;br /&gt;
An administrator can set a theme for the site in &#039;&#039;Settings &amp;gt; Site administration &amp;gt; Appearance &amp;gt; Themes &amp;gt; Theme selector&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Different themes may be set according to &#039;device type&#039; - default, legacy (for older browsers), mobile and tablet.&lt;br /&gt;
&lt;br /&gt;
Go to &#039;&#039;Settings &amp;gt; Site administration &amp;gt; Appearance &amp;gt; Themes &amp;gt; Theme selector&#039;&#039;&lt;br /&gt;
*Click on the &amp;quot;Select theme&amp;quot; button next to the type you wish to change&lt;br /&gt;
*Scroll down to see the previews of the available themes and click on the &amp;quot;Use theme&amp;quot; button to chose the theme&lt;br /&gt;
*The next screen will provide information about the theme. Click &amp;quot;Continue&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Note 1: Moodle caches themes so if you don&#039;t immediately see changed settings that you were expecting, click the &amp;quot;Clear theme caches&amp;quot; button at the top of the Theme selector page.&lt;br /&gt;
&lt;br /&gt;
Note 2: The selected theme may be overridden if user/course or category themes have been allowed in the [[Theme settings]].&lt;br /&gt;
&lt;br /&gt;
Tip: The [[MyMobile theme]] is especially designed for mobile devices.&lt;br /&gt;
&lt;br /&gt;
[[File:Themeselector21.png|thumb|center|theme selector showing default and none selected in other theme types]]&lt;br /&gt;
&lt;br /&gt;
==Notes on individual themes==&lt;br /&gt;
&lt;br /&gt;
Arialist: does not display the logo at course/course level.  This means it is not useful for branding at a category/course level.&lt;br /&gt;
&lt;br /&gt;
===Themes that allow you to change a logo===&lt;br /&gt;
*Arialist (only at home page level) Code to change this: http://moodle.org/mod/forum/discuss.php?d=192409&lt;br /&gt;
*Brick&lt;br /&gt;
*Formal White&lt;br /&gt;
*Magazine&lt;br /&gt;
*Sky High&lt;br /&gt;
*Splash&lt;br /&gt;
&lt;br /&gt;
===Themes that allow custom CSS===&lt;br /&gt;
*Arialist&lt;br /&gt;
*Fusion&lt;br /&gt;
*Non-zero&lt;br /&gt;
*Overlay&lt;br /&gt;
*Sky High&lt;br /&gt;
*Splash&lt;br /&gt;
&lt;br /&gt;
===Themes with right hand column(s) only===&lt;br /&gt;
*Arialist&lt;br /&gt;
*Brick&lt;br /&gt;
*Fusion&lt;br /&gt;
*Nimble &lt;br /&gt;
*Non-zero (2 columns)&lt;br /&gt;
*Overlay (2 columns)&lt;br /&gt;
*Skyhigh (2 columns)&lt;br /&gt;
&lt;br /&gt;
===Various forum help that may be useful===&lt;br /&gt;
#Changing logo height in Afterburner: http://moodle.org/mod/forum/discuss.php?d=197924&lt;br /&gt;
#Moving columns in Skyhigh: http://moodle.org/mod/forum/discuss.php?d=209626&lt;br /&gt;
#Tweaks to header area in Formal White: http://moodle.org/mod/forum/discuss.php?d=167544&lt;br /&gt;
&lt;br /&gt;
==Standard themes==&lt;br /&gt;
&lt;br /&gt;
In alphabetical order here are the standard themes in Moodle:&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Standard Themes - click on any to enlarge&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;113px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
Image:theme_afterburner.png|Afterburner theme&lt;br /&gt;
Image:theme_anomaly.png|Anomaly theme&lt;br /&gt;
Image:theme_arialist.png|Arialist theme&lt;br /&gt;
Image:theme_binarius.png|Binarius theme&lt;br /&gt;
Image:theme_boxxie.png|Boxxie theme&lt;br /&gt;
Image:theme_brick.png|Brick theme&lt;br /&gt;
Image:theme_formalwhite.png|Formal white theme&lt;br /&gt;
Image:theme_formfactor.png|FormFactor theme&lt;br /&gt;
Image:theme_fusion.png|Fusion theme&lt;br /&gt;
Image:theme_leatherbound.png|Leatherbound theme&lt;br /&gt;
Image:theme_magazine.png|Magazine theme&lt;br /&gt;
Image:Mymobile_theme.png|MyMobile theme&lt;br /&gt;
Image:theme_nimble.png|Nimble theme&lt;br /&gt;
Image:theme_nonzero.png|Nonzero theme&lt;br /&gt;
Image:theme_overlay.png|Overlay theme&lt;br /&gt;
Image:theme_serenity.png|Serenity theme&lt;br /&gt;
Image:theme_skyhigh.png|Sky High theme&lt;br /&gt;
Image:theme_splash.png|Splash theme&lt;br /&gt;
Image:theme_standard.png|Standard theme&lt;br /&gt;
&amp;lt;/gallery&amp;gt; &lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
&lt;br /&gt;
* [[Theme credits]]&lt;br /&gt;
* Using Moodle [http://moodle.org/mod/forum/discuss.php?d=189573 What counts as a &#039;legacy&#039; device type?] forum discussion&lt;br /&gt;
&lt;br /&gt;
[[de:Standard-Designs]]&lt;br /&gt;
[[es:Temas estándar]]&lt;/div&gt;</summary>
		<author><name>Rwthornton</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/2x/ca/index.php?title=Standard_themes&amp;diff=104225</id>
		<title>Standard themes</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/2x/ca/index.php?title=Standard_themes&amp;diff=104225"/>
		<updated>2013-04-30T01:03:49Z</updated>

		<summary type="html">&lt;p&gt;Rwthornton: /* Themes that allow you to change a logo */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Themes}}&lt;br /&gt;
==Theme selector==&lt;br /&gt;
&lt;br /&gt;
An administrator can set a theme for the site in &#039;&#039;Settings &amp;gt; Site administration &amp;gt; Appearance &amp;gt; Themes &amp;gt; Theme selector&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Different themes may be set according to &#039;device type&#039; - default, legacy (for older browsers), mobile and tablet.&lt;br /&gt;
&lt;br /&gt;
Go to &#039;&#039;Settings &amp;gt; Site administration &amp;gt; Appearance &amp;gt; Themes &amp;gt; Theme selector&#039;&#039;&lt;br /&gt;
*Click on the &amp;quot;Select theme&amp;quot; button next to the type you wish to change&lt;br /&gt;
*Scroll down to see the previews of the available themes and click on the &amp;quot;Use theme&amp;quot; button to chose the theme&lt;br /&gt;
*The next screen will provide information about the theme. Click &amp;quot;Continue&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Note 1: Moodle caches themes so if you don&#039;t immediately see changed settings that you were expecting, click the &amp;quot;Clear theme caches&amp;quot; button at the top of the Theme selector page.&lt;br /&gt;
&lt;br /&gt;
Note 2: The selected theme may be overridden if user/course or category themes have been allowed in the [[Theme settings]].&lt;br /&gt;
&lt;br /&gt;
Tip: The [[MyMobile theme]] is especially designed for mobile devices.&lt;br /&gt;
&lt;br /&gt;
[[File:Themeselector21.png|thumb|center|theme selector showing default and none selected in other theme types]]&lt;br /&gt;
&lt;br /&gt;
==Notes on individual themes==&lt;br /&gt;
&lt;br /&gt;
Arialist: does not display the logo at course/course level.  This means it is not useful for branding at a category/course level.&lt;br /&gt;
&lt;br /&gt;
===Themes that allow you to change a logo===&lt;br /&gt;
*Arialist (only at home page level) Code to change this: http://moodle.org/mod/forum/discuss.php?d=192409&lt;br /&gt;
*Brick&lt;br /&gt;
*Formal White&lt;br /&gt;
*Magazine&lt;br /&gt;
*Sky High&lt;br /&gt;
*Splash&lt;br /&gt;
&lt;br /&gt;
===Themes that allow custom CSS===&lt;br /&gt;
*Arialist&lt;br /&gt;
*Fusion&lt;br /&gt;
*Non-zero&lt;br /&gt;
*Overlay&lt;br /&gt;
*Skyhigh&lt;br /&gt;
*Splash&lt;br /&gt;
&lt;br /&gt;
===Themes with right hand column(s) only===&lt;br /&gt;
*Arialist&lt;br /&gt;
*Brick&lt;br /&gt;
*Fusion&lt;br /&gt;
*Nimble &lt;br /&gt;
*Non-zero (2 columns)&lt;br /&gt;
*Overlay (2 columns)&lt;br /&gt;
*Skyhigh (2 columns)&lt;br /&gt;
&lt;br /&gt;
===Various forum help that may be useful===&lt;br /&gt;
#Changing logo height in Afterburner: http://moodle.org/mod/forum/discuss.php?d=197924&lt;br /&gt;
#Moving columns in Skyhigh: http://moodle.org/mod/forum/discuss.php?d=209626&lt;br /&gt;
#Tweaks to header area in Formal White: http://moodle.org/mod/forum/discuss.php?d=167544&lt;br /&gt;
&lt;br /&gt;
==Standard themes==&lt;br /&gt;
&lt;br /&gt;
In alphabetical order here are the standard themes in Moodle:&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Standard Themes - click on any to enlarge&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;113px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
Image:theme_afterburner.png|Afterburner theme&lt;br /&gt;
Image:theme_anomaly.png|Anomaly theme&lt;br /&gt;
Image:theme_arialist.png|Arialist theme&lt;br /&gt;
Image:theme_binarius.png|Binarius theme&lt;br /&gt;
Image:theme_boxxie.png|Boxxie theme&lt;br /&gt;
Image:theme_brick.png|Brick theme&lt;br /&gt;
Image:theme_formalwhite.png|Formal white theme&lt;br /&gt;
Image:theme_formfactor.png|FormFactor theme&lt;br /&gt;
Image:theme_fusion.png|Fusion theme&lt;br /&gt;
Image:theme_leatherbound.png|Leatherbound theme&lt;br /&gt;
Image:theme_magazine.png|Magazine theme&lt;br /&gt;
Image:Mymobile_theme.png|MyMobile theme&lt;br /&gt;
Image:theme_nimble.png|Nimble theme&lt;br /&gt;
Image:theme_nonzero.png|Nonzero theme&lt;br /&gt;
Image:theme_overlay.png|Overlay theme&lt;br /&gt;
Image:theme_serenity.png|Serenity theme&lt;br /&gt;
Image:theme_skyhigh.png|Sky High theme&lt;br /&gt;
Image:theme_splash.png|Splash theme&lt;br /&gt;
Image:theme_standard.png|Standard theme&lt;br /&gt;
&amp;lt;/gallery&amp;gt; &lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
&lt;br /&gt;
* [[Theme credits]]&lt;br /&gt;
* Using Moodle [http://moodle.org/mod/forum/discuss.php?d=189573 What counts as a &#039;legacy&#039; device type?] forum discussion&lt;br /&gt;
&lt;br /&gt;
[[de:Standard-Designs]]&lt;br /&gt;
[[es:Temas estándar]]&lt;/div&gt;</summary>
		<author><name>Rwthornton</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/2x/ca/index.php?title=Configurable_reports&amp;diff=103933</id>
		<title>Configurable reports</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/2x/ca/index.php?title=Configurable_reports&amp;diff=103933"/>
		<updated>2013-04-11T02:06:30Z</updated>

		<summary type="html">&lt;p&gt;Rwthornton: /* Creating a SQL Report */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Infobox plugin&lt;br /&gt;
|type = Block&lt;br /&gt;
|entry = https://moodle.org/plugins/view.php?plugin=block_configurable_reports&lt;br /&gt;
|tracker = http://tracker.moodle.org/browse/CONTRIB/component/10753&lt;br /&gt;
|discussion = https://moodle.org/mod/forum/view.php?id=7979&lt;br /&gt;
|maintainer = [[User:Juan Leyva|Juan Leyva]]&lt;br /&gt;
|float = right&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
== Installation ==&lt;br /&gt;
&lt;br /&gt;
# Download the Configurable Reports installation file and unzip it to the &#039;&#039;&#039;\blocks&#039;&#039;&#039; directory in your Moodle folder.&lt;br /&gt;
# Be sure that the final name of the directory is: configurable_reports, the full path in your Moodle installation will be blocks/configurable_reports&lt;br /&gt;
# Login to Moodle as Administrator and click Notifications under Site Administration.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For more information see [[Installing contributed modules or plugins]]&lt;br /&gt;
&lt;br /&gt;
== Overview ==&lt;br /&gt;
&lt;br /&gt;
This block is a Moodle custom reports builder.&lt;br /&gt;
&lt;br /&gt;
It is designed in a modular way to allow developers to create new plugins in less than an hour.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Who can create custom reports?&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Anyone with block, managereports or manageownreports permissions at SITE level or COURSE level.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;What type of reports can I create?&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
- Courses reports, with information regarding courses.&lt;br /&gt;
&lt;br /&gt;
- Categories reports, with information regarding categories. A courses report can be embedded in this type of report.&lt;br /&gt;
&lt;br /&gt;
- Users reports, with information regarding users and their activity in a course.&lt;br /&gt;
&lt;br /&gt;
- Timeline reports, this is a special type of report that displays a timeline. A course or user report can be embedded in this timeline showing data depending on the start and end time of the current row.&lt;br /&gt;
&lt;br /&gt;
- Custom SQL Reports, custom SQL queries. This block can use the same SQL queries as [http://moodle.org/mod/data/view.php?d=13&amp;amp;rid=2884 Tim Hunt&#039;s Custom SQL queries] plugin.&lt;br /&gt;
&lt;br /&gt;
Note for developers: You can create your own type of reports.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Who can view the reports?&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
When you create a report you can select which users can view it.&lt;br /&gt;
&lt;br /&gt;
The reports are displayed in a block in the course or site frontpage.&lt;br /&gt;
&lt;br /&gt;
== Creating a report ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This is a very simple process.  &lt;br /&gt;
&lt;br /&gt;
If you are going to create a report for a course, you have to add the block in the course and click in the &amp;quot;Manage reports&amp;quot; link.&lt;br /&gt;
&lt;br /&gt;
On the other hand, for site reports, add the block in the frontpage and click in the &amp;quot;Manage reports&amp;quot; link.&lt;br /&gt;
&lt;br /&gt;
You must enter a name, an optional description, and you have to choose the type of report, pagination and exports formats.&lt;br /&gt;
&lt;br /&gt;
Depending on the report choosen, there will be more or less tabs. These are the tabs for the courses and users report:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Columns&#039;&#039;&#039;: Here you can choose the differents columns of your report depending on the type of report. (Course Name, User firstname, etc..)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Conditions&#039;&#039;&#039;: Here you can define the conditions (i.e, only courses from this category, only users from Spain, etc.)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Ordering&#039;&#039;&#039;: Here you can choose how to order the report using fields and directions.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Filters&#039;&#039;&#039;: Here you can choose which filters will be displayed.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Template&#039;&#039;&#039;: You can modify the report&#039;s layout by creating a template.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Permissions&#039;&#039;&#039;: Here you can choose who can view a report.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Calculations&#039;&#039;&#039;: Here you can add calculations for columns, i.e: average of number of users enrolled in courses&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Plots&#039;&#039;&#039;: Here you can add graphs to your report based on the report columns and values.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;View report&#039;&#039;&#039;: Self explanatory&lt;br /&gt;
&lt;br /&gt;
== Tutorial ==&lt;br /&gt;
&lt;br /&gt;
=== Creating a users&#039; report ===&lt;br /&gt;
&lt;br /&gt;
Requirements: &#039;&#039;Users from Spain, but not from Madrid, in this course. This report can be viewed only by users from Spain. A filter based on the user&#039;s city must be displayed. A pie plot showing the users&#039; cities is required. A calculation table showing the total forum post views is required. The report must be ordered by users&#039; lastname.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Let&#039;s see how easy it is!&lt;br /&gt;
&lt;br /&gt;
First of all, install the block.&lt;br /&gt;
&lt;br /&gt;
Go to the course where the report will be created.&lt;br /&gt;
&lt;br /&gt;
Add an instance of the Custom Reports block.&lt;br /&gt;
&lt;br /&gt;
Click on &amp;quot;Manage reports&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Click on &amp;quot;Add report&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Enter a name, a description and choose &amp;quot;Users report&amp;quot; as Type of Report&lt;br /&gt;
&lt;br /&gt;
The report will be saved and you will be redirected to the first Tab named &amp;quot;Columns&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Adding Columns&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Here you can define the report table properties, width, align, cell padding, cell spacing, etc.&lt;br /&gt;
&lt;br /&gt;
Add a Column called &amp;quot;User profile field&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Choose the field &amp;quot;firstname&amp;quot; and enter a name for the column in the text field. You can leave the rest of elements blank.&lt;br /&gt;
&lt;br /&gt;
Repeat the process above for the lastname and city fields.&lt;br /&gt;
&lt;br /&gt;
Add a Column called &amp;quot;User module actions&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Choose a module from the list, in this example, a forum.&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
&#039;&#039;&#039;Adding Conditions&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Click on the Conditions Tab.&lt;br /&gt;
&lt;br /&gt;
Add a Condition named &amp;quot;User field Condition&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Choose the column &amp;quot;Country&amp;quot;, the Operator &amp;quot;=&amp;quot;, and enter the value &amp;quot;ES&amp;quot; (this is the international code for Spain as Moodle stores it).&lt;br /&gt;
&lt;br /&gt;
Add a Condition named &amp;quot;User field Condition&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Choose the column &amp;quot;city&amp;quot;, the Operator &amp;quot;&amp;lt;&amp;gt;&amp;quot;, and enter the value &amp;quot;Madrid&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Add a Condition named &amp;quot;Users in current report course&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
These are the main conditions of the reports. Note that at the bottom there is a text box called condition, with this text:&lt;br /&gt;
&lt;br /&gt;
 &amp;quot;c2 and c1 and c3&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Here you can define a logic condition, in this case, we don&#039;t need to edit this condition but you can create complex expressions like:&lt;br /&gt;
&lt;br /&gt;
 (c1 and c2) or (c4 and c3)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Adding Ordering&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Click on the Ordering Tab.&lt;br /&gt;
&lt;br /&gt;
Add a ordering named &amp;quot;User field ordering&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Choose the column &amp;quot;Lastname&amp;quot; and the ordering &amp;quot;ASC&amp;quot; (Ascending).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Adding Filters&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Click on the Filters Tab.&lt;br /&gt;
&lt;br /&gt;
Add a filter named &amp;quot;User field filter&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Choose city.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Adding Permissions&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Click on the Permissions Tab.&lt;br /&gt;
&lt;br /&gt;
Choose &amp;quot;User field Value&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Choose the column &amp;quot;Country&amp;quot;, and enter the value &amp;quot;ES&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Here you can add more permissions and a logic condition to be achieved.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Adding Calculations&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Click on the Calculations tab.&lt;br /&gt;
&lt;br /&gt;
Choose Sum.&lt;br /&gt;
&lt;br /&gt;
Choose the column &amp;quot;User module actions&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Adding Plots&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Click on the Plots tab.&lt;br /&gt;
&lt;br /&gt;
Choose &amp;quot;Pie&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Choose the colum &amp;quot;City&amp;quot; as Name and Value.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Finally, add a few users in Moodle with the country Spain, and different cities, Madrid, Barcelona, Seville, etc. and test the report.&lt;br /&gt;
&lt;br /&gt;
You can download the report in different formats (ods and xls), remember to check these options in the report page.&lt;br /&gt;
&lt;br /&gt;
[[blocks/configurable_reports/#Users_report | See screenshot]]&lt;br /&gt;
&lt;br /&gt;
=== Creating a SQL Report ===&lt;br /&gt;
&lt;br /&gt;
You can find a lot of SQL Reports here: [[ad-hoc contributed reports]]&lt;br /&gt;
&lt;br /&gt;
Since this block supports Tim Hunt&#039;s CustomSQL Queries Reports, you can use any query.&lt;br /&gt;
&lt;br /&gt;
Remember to add a &amp;quot;Time filter&amp;quot; if you are going to use reports with time tokens.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
First of all, install the block.&lt;br /&gt;
&lt;br /&gt;
Go to the course where the report will be created.&lt;br /&gt;
&lt;br /&gt;
Add an instance of the Custom Reports block.&lt;br /&gt;
&lt;br /&gt;
Click on &amp;quot;Manage reports&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Click on &amp;quot;Add report&lt;br /&gt;
&lt;br /&gt;
Enter a name, description, choose &amp;quot;SQL&amp;quot; as Type of Report&lt;br /&gt;
&lt;br /&gt;
The report will be saved and you redirect to the first Tab named &amp;quot;Custom SQL&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Add this query (&#039;&#039;Courses activity&#039;&#039;):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code sql&amp;gt;&lt;br /&gt;
SELECT COUNT(l.id) hits, l.course courseId, c.fullname coursename&lt;br /&gt;
FROM prefix_log l INNER JOIN prefix_course c ON l.course = c.id&lt;br /&gt;
GROUP BY courseId&lt;br /&gt;
ORDER BY hits DESC&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;NOTE: use the generic term &amp;quot;prefix_&amp;quot; for your table names in queries, not the actual prefix in the database and config.php. E.g. prefix_course rather than mdl_course.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Go to Calculations Tab&lt;br /&gt;
&lt;br /&gt;
Add a Sum calculation, choose the hits column&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Go to Plot&lt;br /&gt;
&lt;br /&gt;
Add a Pie graph, choosing coursename as Name and hits as value&lt;br /&gt;
&lt;br /&gt;
So, here you have a report with a Graph and calculations based on a SQL Query.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You can add a Course filter, it&#039;s very easy:&lt;br /&gt;
&lt;br /&gt;
Go to filters, choose Courses&lt;br /&gt;
&lt;br /&gt;
Edit the Custom SQL query:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code sql&amp;gt;&lt;br /&gt;
SELECT COUNT(l.id) hits, l.course courseId, c.fullname coursename&lt;br /&gt;
FROM prefix_log l INNER JOIN prefix_course c ON l.course = c.id &lt;br /&gt;
%%FILTER_COURSES:l.course%% &lt;br /&gt;
GROUP BY courseId&lt;br /&gt;
ORDER BY hits DESC&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note that we are adding a token called: %%FILTER_COURSES:l.courseid%% &lt;br /&gt;
&lt;br /&gt;
Go to View report, and you will see a Courses Filter, choose a Course and click on Add, here you have a report filtered.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You can also add a Starttime and endtime filter&lt;br /&gt;
&lt;br /&gt;
Go to filters, choose Start / End date filter&lt;br /&gt;
&lt;br /&gt;
Go to Custom SQL tab, this is the new query:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code sql&amp;gt;&lt;br /&gt;
SELECT COUNT(l.id) hits, l.course courseId, c.fullname coursename&lt;br /&gt;
FROM prefix_log l INNER JOIN prefix_course c ON l.course = c.id &lt;br /&gt;
%%FILTER_COURSES:l.course%% &lt;br /&gt;
%%FILTER_STARTTIME:l.time:&amp;gt;%% %%FILTER_ENDTIME:l.time:&amp;lt;%% &lt;br /&gt;
GROUP BY courseId&lt;br /&gt;
ORDER BY hits DESC&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
One more example (for filtering a group of courses by category)&lt;br /&gt;
&amp;lt;code sql&amp;gt;&lt;br /&gt;
SELECT COUNT(l.id) hits, c.fullname as Course,c.id as CourseID&lt;br /&gt;
,(SELECT Count( ra.userid ) AS Users FROM prefix_role_assignments AS ra&lt;br /&gt;
JOIN prefix_context AS ctx ON ra.contextid = ctx.id&lt;br /&gt;
WHERE ra.roleid = 5 AND ctx.instanceid = c.id) AS Students&lt;br /&gt;
FROM prefix_log l INNER JOIN prefix_course c ON l.course = c.id&lt;br /&gt;
%%FILTER_CATEGORIES:c.category%% &lt;br /&gt;
GROUP BY l.course&lt;br /&gt;
ORDER BY hits DESC&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
Go to View report, now you can filter by time also&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;SQL variables&#039;&#039;&#039;&lt;br /&gt;
If you place this strings in your SQL queries, it will be replaced by the appropriate value (current course id, current user id, Moodle www root (url))&lt;br /&gt;
&lt;br /&gt;
* %%COURSEID%% &lt;br /&gt;
* %%USERID%%&lt;br /&gt;
* %%WWWROOT%%&lt;br /&gt;
&lt;br /&gt;
[[blocks/configurable_reports/#SQL_report | See screenshot]]&lt;br /&gt;
&lt;br /&gt;
=== Creating a timeline report ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;This report assumes that you have created at least one user or course report&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Timeline reports are a special type of reports. A timeline report displays a timeline in which a course report or user report can be embedded.&lt;br /&gt;
&lt;br /&gt;
In this example we are going to create a report showing the user logins to the site during the last month (day per day).&lt;br /&gt;
&lt;br /&gt;
Create a User report (see tutorial above) with three columns (firstname, lastname and user statistics)&lt;br /&gt;
&lt;br /&gt;
Select the statistic (User logins)&lt;br /&gt;
&lt;br /&gt;
Create a Timeline report, in the Timeline tab you can select the dates or days of the report (in this case, the last 30 days) and the interval of time for every row.&lt;br /&gt;
&lt;br /&gt;
Add three &amp;quot;Other report column&amp;quot; columns, selecting all the previous user report columns.&lt;br /&gt;
&lt;br /&gt;
And that&#039;s all, you can create a new type of plot (line graph). This graph is suitable for data depending on time.&lt;br /&gt;
&lt;br /&gt;
== Advanced options ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Templates ===&lt;br /&gt;
&lt;br /&gt;
You can customize the report output using a template.&lt;br /&gt;
&lt;br /&gt;
Just enable the Template option in the same name tab.&lt;br /&gt;
&lt;br /&gt;
This is an example html code for displaying a list of users:&lt;br /&gt;
&lt;br /&gt;
Header:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code html4strict&amp;gt;&lt;br /&gt;
&amp;lt;p align=&amp;quot;center&amp;quot;&amp;gt;&amp;lt;b&amp;gt;##reportname##&amp;lt;/b&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;table width=&amp;quot;60%&amp;quot; align=&amp;quot;center&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Record:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code html4strict&amp;gt;&lt;br /&gt;
&amp;lt;table width=&amp;quot;100%&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;img src=&amp;quot;http://yourmoodle.com/user/pix.php/[[id]]/f1.jpg&amp;quot;&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;h2&amp;gt;[[Firstname]] [[Lastname]]&amp;lt;/h2&amp;gt;&lt;br /&gt;
City: [[City]]&lt;br /&gt;
&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;/table&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Footer:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code html4strict&amp;gt;&lt;br /&gt;
&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td valign=&amp;quot;top&amp;quot;&amp;gt;&lt;br /&gt;
##graphs## &lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
##exportoptions##&lt;br /&gt;
&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/table&amp;gt;&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Embedded reports ===&lt;br /&gt;
&lt;br /&gt;
An embedded report consists in a report&#039;s set of columns that are embedded in another report.&lt;br /&gt;
&lt;br /&gt;
You can embed a user report into a course report, in this case, the resulting rows will be expanded duplicating each row for each user.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Type of report&lt;br /&gt;
! Reports that can be embedded&lt;br /&gt;
|-&lt;br /&gt;
| Courses&lt;br /&gt;
| Users&lt;br /&gt;
|-&lt;br /&gt;
| Categories&lt;br /&gt;
| Courses&lt;br /&gt;
|-&lt;br /&gt;
| Timeline&lt;br /&gt;
| Users, courses&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Imagine you have a courses report, you can embed a user report, every row of the course report will be cloned for each user.&lt;br /&gt;
&lt;br /&gt;
To embed a report just add a &amp;quot;Other report&amp;quot; column, a list of your reports will be showed.&lt;br /&gt;
&lt;br /&gt;
Inside a course report you can embed a user report and the other way.&lt;br /&gt;
&lt;br /&gt;
==== Timeline reports ====&lt;br /&gt;
&lt;br /&gt;
Timeline reports are a special type of reports. A timeline report displays a timeline in which a courses report or users report can be embedded.&lt;br /&gt;
&lt;br /&gt;
Timeline reports should be used when your user or course report includes statistics (course stats or user stats columns). I.e: you can create a report showing the number of user logins to the site during a week or month.&lt;br /&gt;
&lt;br /&gt;
== Developers documentation ==&lt;br /&gt;
&lt;br /&gt;
It&#039;s very easy to create new report types, components and plugins.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Report&#039;&#039;&#039;: A report plugin is a folder located at /report. &lt;br /&gt;
This folder contains a .class.php file with the child - class of the report_base.&lt;br /&gt;
&lt;br /&gt;
You only need to modify a few methods to add a new report type.&lt;br /&gt;
Please, take a look at any of the current reports. The SQL report is an example of a non-typical report, &lt;br /&gt;
meanwhile the users and courses reports are standard reports.&lt;br /&gt;
&lt;br /&gt;
The best way to create a report is to duplicate an existing one.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Component&#039;&#039;&#039;: A component is part of a report, a component may be used by more than one report.&lt;br /&gt;
The main Component is the component Columns, that is used to add the columns of a report.&lt;br /&gt;
&lt;br /&gt;
Others components are filters, permissions, plot, calculations..&lt;br /&gt;
&lt;br /&gt;
The best way to create a component is to duplicate an existing one.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Plugin&#039;&#039;&#039;: A plugin is a component module. The component column has a few of plugins (coursefield, userfield, etc.)&lt;br /&gt;
A plugin usually works for a unique report, but there are plugins that work for more than one report.&lt;br /&gt;
The best way to create a plugin is to duplicate an existing one.&lt;br /&gt;
&lt;br /&gt;
== How to request a new feature ==&lt;br /&gt;
&lt;br /&gt;
* Go to the Plugin Tracker http://tracker.moodle.org/browse/CONTRIB/component/10753&lt;br /&gt;
* Check in the open issues if your feature have been already requested http://tracker.moodle.org/secure/IssueNavigator.jspa?reset=true&amp;amp;jqlQuery=project+%3D+CONTRIB+AND+component+%3D+%22Block%3A+Configurable+report%22+AND+status+%3D+Open+ORDER+BY+priority+DESC&amp;amp;mode=hide&lt;br /&gt;
* If not, create a New issue (Component: Non-core contributed modules Issue type: New feature) (You have to register yourself in the tracker)&lt;br /&gt;
* Select the component Block: Configurable Reports and your Moodle version&lt;br /&gt;
* Explain in the Description field your needs&lt;br /&gt;
* If you have funding, you can contact me using the forum or the moodle internal messaging system, since I work for a Moodle Partner I can work on your request.&lt;br /&gt;
* Vote and Watch the issue you have created&lt;br /&gt;
&lt;br /&gt;
== Credits ==&lt;br /&gt;
&lt;br /&gt;
Juan Leyva [http://moodle.org/user/view.php?id=49568&amp;amp;course=1 Moodle profile]&lt;br /&gt;
&lt;br /&gt;
[http://twitter.com/jleyvadelgado Follow me in Twitter]&lt;br /&gt;
&lt;br /&gt;
== Screenshots ==&lt;br /&gt;
&lt;br /&gt;
=== Users report ===&lt;br /&gt;
[[Image:block_custom_reports_sample_user_report.png|600px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== SQL report ===&lt;br /&gt;
[[Image:block_custom_reports_sample_sql_report.png|600px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== See Also ==&lt;br /&gt;
&lt;br /&gt;
CONTRIB-2386&lt;br /&gt;
&lt;br /&gt;
[http://tracker.moodle.org/browse/CONTRIB/component/10753 Block: Configurable reports] Tracker component&lt;br /&gt;
&lt;br /&gt;
[http://moodle.org/plugins/view.php?plugin=block_configurable_reports Modules &amp;amp; Plugins] database entry&lt;br /&gt;
&lt;br /&gt;
[http://moodle.org/mod/forum/discuss.php?d=159820 Help forum]&lt;br /&gt;
&lt;br /&gt;
[[ad-hoc_contributed_reports|contributed reports]] (in plain SQL)&lt;br /&gt;
&lt;br /&gt;
[[es:blocks/configurable_reports/]]&lt;/div&gt;</summary>
		<author><name>Rwthornton</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/2x/ca/index.php?title=Configurable_reports&amp;diff=103932</id>
		<title>Configurable reports</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/2x/ca/index.php?title=Configurable_reports&amp;diff=103932"/>
		<updated>2013-04-11T01:59:47Z</updated>

		<summary type="html">&lt;p&gt;Rwthornton: /* Creating a SQL Report */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Infobox plugin&lt;br /&gt;
|type = Block&lt;br /&gt;
|entry = https://moodle.org/plugins/view.php?plugin=block_configurable_reports&lt;br /&gt;
|tracker = http://tracker.moodle.org/browse/CONTRIB/component/10753&lt;br /&gt;
|discussion = https://moodle.org/mod/forum/view.php?id=7979&lt;br /&gt;
|maintainer = [[User:Juan Leyva|Juan Leyva]]&lt;br /&gt;
|float = right&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
== Installation ==&lt;br /&gt;
&lt;br /&gt;
# Download the Configurable Reports installation file and unzip it to the &#039;&#039;&#039;\blocks&#039;&#039;&#039; directory in your Moodle folder.&lt;br /&gt;
# Be sure that the final name of the directory is: configurable_reports, the full path in your Moodle installation will be blocks/configurable_reports&lt;br /&gt;
# Login to Moodle as Administrator and click Notifications under Site Administration.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For more information see [[Installing contributed modules or plugins]]&lt;br /&gt;
&lt;br /&gt;
== Overview ==&lt;br /&gt;
&lt;br /&gt;
This block is a Moodle custom reports builder.&lt;br /&gt;
&lt;br /&gt;
It is designed in a modular way to allow developers to create new plugins in less than an hour.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Who can create custom reports?&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Anyone with block, managereports or manageownreports permissions at SITE level or COURSE level.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;What type of reports can I create?&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
- Courses reports, with information regarding courses.&lt;br /&gt;
&lt;br /&gt;
- Categories reports, with information regarding categories. A courses report can be embedded in this type of report.&lt;br /&gt;
&lt;br /&gt;
- Users reports, with information regarding users and their activity in a course.&lt;br /&gt;
&lt;br /&gt;
- Timeline reports, this is a special type of report that displays a timeline. A course or user report can be embedded in this timeline showing data depending on the start and end time of the current row.&lt;br /&gt;
&lt;br /&gt;
- Custom SQL Reports, custom SQL queries. This block can use the same SQL queries as [http://moodle.org/mod/data/view.php?d=13&amp;amp;rid=2884 Tim Hunt&#039;s Custom SQL queries] plugin.&lt;br /&gt;
&lt;br /&gt;
Note for developers: You can create your own type of reports.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Who can view the reports?&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
When you create a report you can select which users can view it.&lt;br /&gt;
&lt;br /&gt;
The reports are displayed in a block in the course or site frontpage.&lt;br /&gt;
&lt;br /&gt;
== Creating a report ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This is a very simple process.  &lt;br /&gt;
&lt;br /&gt;
If you are going to create a report for a course, you have to add the block in the course and click in the &amp;quot;Manage reports&amp;quot; link.&lt;br /&gt;
&lt;br /&gt;
On the other hand, for site reports, add the block in the frontpage and click in the &amp;quot;Manage reports&amp;quot; link.&lt;br /&gt;
&lt;br /&gt;
You must enter a name, an optional description, and you have to choose the type of report, pagination and exports formats.&lt;br /&gt;
&lt;br /&gt;
Depending on the report choosen, there will be more or less tabs. These are the tabs for the courses and users report:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Columns&#039;&#039;&#039;: Here you can choose the differents columns of your report depending on the type of report. (Course Name, User firstname, etc..)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Conditions&#039;&#039;&#039;: Here you can define the conditions (i.e, only courses from this category, only users from Spain, etc.)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Ordering&#039;&#039;&#039;: Here you can choose how to order the report using fields and directions.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Filters&#039;&#039;&#039;: Here you can choose which filters will be displayed.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Template&#039;&#039;&#039;: You can modify the report&#039;s layout by creating a template.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Permissions&#039;&#039;&#039;: Here you can choose who can view a report.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Calculations&#039;&#039;&#039;: Here you can add calculations for columns, i.e: average of number of users enrolled in courses&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Plots&#039;&#039;&#039;: Here you can add graphs to your report based on the report columns and values.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;View report&#039;&#039;&#039;: Self explanatory&lt;br /&gt;
&lt;br /&gt;
== Tutorial ==&lt;br /&gt;
&lt;br /&gt;
=== Creating a users&#039; report ===&lt;br /&gt;
&lt;br /&gt;
Requirements: &#039;&#039;Users from Spain, but not from Madrid, in this course. This report can be viewed only by users from Spain. A filter based on the user&#039;s city must be displayed. A pie plot showing the users&#039; cities is required. A calculation table showing the total forum post views is required. The report must be ordered by users&#039; lastname.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Let&#039;s see how easy it is!&lt;br /&gt;
&lt;br /&gt;
First of all, install the block.&lt;br /&gt;
&lt;br /&gt;
Go to the course where the report will be created.&lt;br /&gt;
&lt;br /&gt;
Add an instance of the Custom Reports block.&lt;br /&gt;
&lt;br /&gt;
Click on &amp;quot;Manage reports&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Click on &amp;quot;Add report&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Enter a name, a description and choose &amp;quot;Users report&amp;quot; as Type of Report&lt;br /&gt;
&lt;br /&gt;
The report will be saved and you will be redirected to the first Tab named &amp;quot;Columns&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Adding Columns&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Here you can define the report table properties, width, align, cell padding, cell spacing, etc.&lt;br /&gt;
&lt;br /&gt;
Add a Column called &amp;quot;User profile field&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Choose the field &amp;quot;firstname&amp;quot; and enter a name for the column in the text field. You can leave the rest of elements blank.&lt;br /&gt;
&lt;br /&gt;
Repeat the process above for the lastname and city fields.&lt;br /&gt;
&lt;br /&gt;
Add a Column called &amp;quot;User module actions&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Choose a module from the list, in this example, a forum.&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
&#039;&#039;&#039;Adding Conditions&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Click on the Conditions Tab.&lt;br /&gt;
&lt;br /&gt;
Add a Condition named &amp;quot;User field Condition&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Choose the column &amp;quot;Country&amp;quot;, the Operator &amp;quot;=&amp;quot;, and enter the value &amp;quot;ES&amp;quot; (this is the international code for Spain as Moodle stores it).&lt;br /&gt;
&lt;br /&gt;
Add a Condition named &amp;quot;User field Condition&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Choose the column &amp;quot;city&amp;quot;, the Operator &amp;quot;&amp;lt;&amp;gt;&amp;quot;, and enter the value &amp;quot;Madrid&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Add a Condition named &amp;quot;Users in current report course&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
These are the main conditions of the reports. Note that at the bottom there is a text box called condition, with this text:&lt;br /&gt;
&lt;br /&gt;
 &amp;quot;c2 and c1 and c3&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Here you can define a logic condition, in this case, we don&#039;t need to edit this condition but you can create complex expressions like:&lt;br /&gt;
&lt;br /&gt;
 (c1 and c2) or (c4 and c3)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Adding Ordering&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Click on the Ordering Tab.&lt;br /&gt;
&lt;br /&gt;
Add a ordering named &amp;quot;User field ordering&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Choose the column &amp;quot;Lastname&amp;quot; and the ordering &amp;quot;ASC&amp;quot; (Ascending).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Adding Filters&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Click on the Filters Tab.&lt;br /&gt;
&lt;br /&gt;
Add a filter named &amp;quot;User field filter&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Choose city.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Adding Permissions&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Click on the Permissions Tab.&lt;br /&gt;
&lt;br /&gt;
Choose &amp;quot;User field Value&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Choose the column &amp;quot;Country&amp;quot;, and enter the value &amp;quot;ES&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Here you can add more permissions and a logic condition to be achieved.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Adding Calculations&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Click on the Calculations tab.&lt;br /&gt;
&lt;br /&gt;
Choose Sum.&lt;br /&gt;
&lt;br /&gt;
Choose the column &amp;quot;User module actions&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Adding Plots&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Click on the Plots tab.&lt;br /&gt;
&lt;br /&gt;
Choose &amp;quot;Pie&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Choose the colum &amp;quot;City&amp;quot; as Name and Value.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Finally, add a few users in Moodle with the country Spain, and different cities, Madrid, Barcelona, Seville, etc. and test the report.&lt;br /&gt;
&lt;br /&gt;
You can download the report in different formats (ods and xls), remember to check these options in the report page.&lt;br /&gt;
&lt;br /&gt;
[[blocks/configurable_reports/#Users_report | See screenshot]]&lt;br /&gt;
&lt;br /&gt;
=== Creating a SQL Report ===&lt;br /&gt;
&lt;br /&gt;
You can find a lot of SQL Reports here: [[ad-hoc contributed reports]]&lt;br /&gt;
&lt;br /&gt;
Since this block supports Tim Hunt&#039;s CustomSQL Queries Reports, you can use any query.&lt;br /&gt;
&lt;br /&gt;
Remember to add a &amp;quot;Time filter&amp;quot; if you are going to use reports with time tokens.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
First of all, install the block.&lt;br /&gt;
&lt;br /&gt;
Go to the course where the report will be created.&lt;br /&gt;
&lt;br /&gt;
Add an instance of the Custom Reports block.&lt;br /&gt;
&lt;br /&gt;
Click on &amp;quot;Manage reports&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Click on &amp;quot;Add report&lt;br /&gt;
&lt;br /&gt;
Enter a name, description, choose &amp;quot;SQL&amp;quot; as Type of Report&lt;br /&gt;
&lt;br /&gt;
The report will be saved and you redirect to the first Tab named &amp;quot;Custom SQL&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Add this query (&#039;&#039;Courses activity&#039;&#039;):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code sql&amp;gt;&lt;br /&gt;
SELECT COUNT(l.id) hits, l.course courseId, c.fullname coursename&lt;br /&gt;
FROM prefix_log l INNER JOIN prefix_course c ON l.course = c.id&lt;br /&gt;
GROUP BY courseId&lt;br /&gt;
ORDER BY hits DESC&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;NOTE: use the generic term &amp;quot;prefix_&amp;quot; for your queries, not the actual prefix in the database and config.php. E.g. prefix_course rather than mdl_course.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Go to Calculations Tab&lt;br /&gt;
&lt;br /&gt;
Add a Sum calculation, choose the hits column&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Go to Plot&lt;br /&gt;
&lt;br /&gt;
Add a Pie graph, choosing coursename as Name and hits as value&lt;br /&gt;
&lt;br /&gt;
So, here you have a report with a Graph and calculations based on a SQL Query.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You can add a Course filter, it&#039;s very easy:&lt;br /&gt;
&lt;br /&gt;
Go to filters, choose Courses&lt;br /&gt;
&lt;br /&gt;
Edit the Custom SQL query:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code sql&amp;gt;&lt;br /&gt;
SELECT COUNT(l.id) hits, l.course courseId, c.fullname coursename&lt;br /&gt;
FROM prefix_log l INNER JOIN prefix_course c ON l.course = c.id &lt;br /&gt;
%%FILTER_COURSES:l.course%% &lt;br /&gt;
GROUP BY courseId&lt;br /&gt;
ORDER BY hits DESC&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note that we are adding a token called: %%FILTER_COURSES:l.courseid%% &lt;br /&gt;
&lt;br /&gt;
Go to View report, and you will see a Courses Filter, choose a Course and click on Add, here you have a report filtered.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You can also add a Starttime and endtime filter&lt;br /&gt;
&lt;br /&gt;
Go to filters, choose Start / End date filter&lt;br /&gt;
&lt;br /&gt;
Go to Custom SQL tab, this is the new query:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code sql&amp;gt;&lt;br /&gt;
SELECT COUNT(l.id) hits, l.course courseId, c.fullname coursename&lt;br /&gt;
FROM prefix_log l INNER JOIN prefix_course c ON l.course = c.id &lt;br /&gt;
%%FILTER_COURSES:l.course%% &lt;br /&gt;
%%FILTER_STARTTIME:l.time:&amp;gt;%% %%FILTER_ENDTIME:l.time:&amp;lt;%% &lt;br /&gt;
GROUP BY courseId&lt;br /&gt;
ORDER BY hits DESC&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
One more example (for filtering a group of courses by category)&lt;br /&gt;
&amp;lt;code sql&amp;gt;&lt;br /&gt;
SELECT COUNT(l.id) hits, c.fullname as Course,c.id as CourseID&lt;br /&gt;
,(SELECT Count( ra.userid ) AS Users FROM prefix_role_assignments AS ra&lt;br /&gt;
JOIN prefix_context AS ctx ON ra.contextid = ctx.id&lt;br /&gt;
WHERE ra.roleid = 5 AND ctx.instanceid = c.id) AS Students&lt;br /&gt;
FROM prefix_log l INNER JOIN prefix_course c ON l.course = c.id&lt;br /&gt;
%%FILTER_CATEGORIES:c.category%% &lt;br /&gt;
GROUP BY l.course&lt;br /&gt;
ORDER BY hits DESC&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
Go to View report, now you can filter by time also&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;SQL variables&#039;&#039;&#039;&lt;br /&gt;
If you place this strings in your SQL queries, it will be replaced by the appropriate value (current course id, current user id, Moodle www root (url))&lt;br /&gt;
&lt;br /&gt;
* %%COURSEID%% &lt;br /&gt;
* %%USERID%%&lt;br /&gt;
* %%WWWROOT%%&lt;br /&gt;
&lt;br /&gt;
[[blocks/configurable_reports/#SQL_report | See screenshot]]&lt;br /&gt;
&lt;br /&gt;
=== Creating a timeline report ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;This report assumes that you have created at least one user or course report&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Timeline reports are a special type of reports. A timeline report displays a timeline in which a course report or user report can be embedded.&lt;br /&gt;
&lt;br /&gt;
In this example we are going to create a report showing the user logins to the site during the last month (day per day).&lt;br /&gt;
&lt;br /&gt;
Create a User report (see tutorial above) with three columns (firstname, lastname and user statistics)&lt;br /&gt;
&lt;br /&gt;
Select the statistic (User logins)&lt;br /&gt;
&lt;br /&gt;
Create a Timeline report, in the Timeline tab you can select the dates or days of the report (in this case, the last 30 days) and the interval of time for every row.&lt;br /&gt;
&lt;br /&gt;
Add three &amp;quot;Other report column&amp;quot; columns, selecting all the previous user report columns.&lt;br /&gt;
&lt;br /&gt;
And that&#039;s all, you can create a new type of plot (line graph). This graph is suitable for data depending on time.&lt;br /&gt;
&lt;br /&gt;
== Advanced options ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Templates ===&lt;br /&gt;
&lt;br /&gt;
You can customize the report output using a template.&lt;br /&gt;
&lt;br /&gt;
Just enable the Template option in the same name tab.&lt;br /&gt;
&lt;br /&gt;
This is an example html code for displaying a list of users:&lt;br /&gt;
&lt;br /&gt;
Header:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code html4strict&amp;gt;&lt;br /&gt;
&amp;lt;p align=&amp;quot;center&amp;quot;&amp;gt;&amp;lt;b&amp;gt;##reportname##&amp;lt;/b&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;table width=&amp;quot;60%&amp;quot; align=&amp;quot;center&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Record:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code html4strict&amp;gt;&lt;br /&gt;
&amp;lt;table width=&amp;quot;100%&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;img src=&amp;quot;http://yourmoodle.com/user/pix.php/[[id]]/f1.jpg&amp;quot;&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;h2&amp;gt;[[Firstname]] [[Lastname]]&amp;lt;/h2&amp;gt;&lt;br /&gt;
City: [[City]]&lt;br /&gt;
&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;/table&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Footer:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code html4strict&amp;gt;&lt;br /&gt;
&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td valign=&amp;quot;top&amp;quot;&amp;gt;&lt;br /&gt;
##graphs## &lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
##exportoptions##&lt;br /&gt;
&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/table&amp;gt;&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Embedded reports ===&lt;br /&gt;
&lt;br /&gt;
An embedded report consists in a report&#039;s set of columns that are embedded in another report.&lt;br /&gt;
&lt;br /&gt;
You can embed a user report into a course report, in this case, the resulting rows will be expanded duplicating each row for each user.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Type of report&lt;br /&gt;
! Reports that can be embedded&lt;br /&gt;
|-&lt;br /&gt;
| Courses&lt;br /&gt;
| Users&lt;br /&gt;
|-&lt;br /&gt;
| Categories&lt;br /&gt;
| Courses&lt;br /&gt;
|-&lt;br /&gt;
| Timeline&lt;br /&gt;
| Users, courses&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Imagine you have a courses report, you can embed a user report, every row of the course report will be cloned for each user.&lt;br /&gt;
&lt;br /&gt;
To embed a report just add a &amp;quot;Other report&amp;quot; column, a list of your reports will be showed.&lt;br /&gt;
&lt;br /&gt;
Inside a course report you can embed a user report and the other way.&lt;br /&gt;
&lt;br /&gt;
==== Timeline reports ====&lt;br /&gt;
&lt;br /&gt;
Timeline reports are a special type of reports. A timeline report displays a timeline in which a courses report or users report can be embedded.&lt;br /&gt;
&lt;br /&gt;
Timeline reports should be used when your user or course report includes statistics (course stats or user stats columns). I.e: you can create a report showing the number of user logins to the site during a week or month.&lt;br /&gt;
&lt;br /&gt;
== Developers documentation ==&lt;br /&gt;
&lt;br /&gt;
It&#039;s very easy to create new report types, components and plugins.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Report&#039;&#039;&#039;: A report plugin is a folder located at /report. &lt;br /&gt;
This folder contains a .class.php file with the child - class of the report_base.&lt;br /&gt;
&lt;br /&gt;
You only need to modify a few methods to add a new report type.&lt;br /&gt;
Please, take a look at any of the current reports. The SQL report is an example of a non-typical report, &lt;br /&gt;
meanwhile the users and courses reports are standard reports.&lt;br /&gt;
&lt;br /&gt;
The best way to create a report is to duplicate an existing one.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Component&#039;&#039;&#039;: A component is part of a report, a component may be used by more than one report.&lt;br /&gt;
The main Component is the component Columns, that is used to add the columns of a report.&lt;br /&gt;
&lt;br /&gt;
Others components are filters, permissions, plot, calculations..&lt;br /&gt;
&lt;br /&gt;
The best way to create a component is to duplicate an existing one.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Plugin&#039;&#039;&#039;: A plugin is a component module. The component column has a few of plugins (coursefield, userfield, etc.)&lt;br /&gt;
A plugin usually works for a unique report, but there are plugins that work for more than one report.&lt;br /&gt;
The best way to create a plugin is to duplicate an existing one.&lt;br /&gt;
&lt;br /&gt;
== How to request a new feature ==&lt;br /&gt;
&lt;br /&gt;
* Go to the Plugin Tracker http://tracker.moodle.org/browse/CONTRIB/component/10753&lt;br /&gt;
* Check in the open issues if your feature have been already requested http://tracker.moodle.org/secure/IssueNavigator.jspa?reset=true&amp;amp;jqlQuery=project+%3D+CONTRIB+AND+component+%3D+%22Block%3A+Configurable+report%22+AND+status+%3D+Open+ORDER+BY+priority+DESC&amp;amp;mode=hide&lt;br /&gt;
* If not, create a New issue (Component: Non-core contributed modules Issue type: New feature) (You have to register yourself in the tracker)&lt;br /&gt;
* Select the component Block: Configurable Reports and your Moodle version&lt;br /&gt;
* Explain in the Description field your needs&lt;br /&gt;
* If you have funding, you can contact me using the forum or the moodle internal messaging system, since I work for a Moodle Partner I can work on your request.&lt;br /&gt;
* Vote and Watch the issue you have created&lt;br /&gt;
&lt;br /&gt;
== Credits ==&lt;br /&gt;
&lt;br /&gt;
Juan Leyva [http://moodle.org/user/view.php?id=49568&amp;amp;course=1 Moodle profile]&lt;br /&gt;
&lt;br /&gt;
[http://twitter.com/jleyvadelgado Follow me in Twitter]&lt;br /&gt;
&lt;br /&gt;
== Screenshots ==&lt;br /&gt;
&lt;br /&gt;
=== Users report ===&lt;br /&gt;
[[Image:block_custom_reports_sample_user_report.png|600px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== SQL report ===&lt;br /&gt;
[[Image:block_custom_reports_sample_sql_report.png|600px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== See Also ==&lt;br /&gt;
&lt;br /&gt;
CONTRIB-2386&lt;br /&gt;
&lt;br /&gt;
[http://tracker.moodle.org/browse/CONTRIB/component/10753 Block: Configurable reports] Tracker component&lt;br /&gt;
&lt;br /&gt;
[http://moodle.org/plugins/view.php?plugin=block_configurable_reports Modules &amp;amp; Plugins] database entry&lt;br /&gt;
&lt;br /&gt;
[http://moodle.org/mod/forum/discuss.php?d=159820 Help forum]&lt;br /&gt;
&lt;br /&gt;
[[ad-hoc_contributed_reports|contributed reports]] (in plain SQL)&lt;br /&gt;
&lt;br /&gt;
[[es:blocks/configurable_reports/]]&lt;/div&gt;</summary>
		<author><name>Rwthornton</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/2x/ca/index.php?title=Feedback_templates&amp;diff=103497</id>
		<title>Feedback templates</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/2x/ca/index.php?title=Feedback_templates&amp;diff=103497"/>
		<updated>2013-03-07T22:25:45Z</updated>

		<summary type="html">&lt;p&gt;Rwthornton: /* Import Questions */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Feedback}}&lt;br /&gt;
Within the Feedback Module you can create and re-use sets of Feedback questions using the Template tool.&lt;br /&gt;
&lt;br /&gt;
The Templates tab provides the following template features:&lt;br /&gt;
&lt;br /&gt;
==Use a template==&lt;br /&gt;
&lt;br /&gt;
Previously saved Templates will be listed in this area and can be selected using the dropdown menu.&lt;br /&gt;
&lt;br /&gt;
After selecting a Template, Moodle will display a preview of the Feedback questions contained within the Template and confirm Are you sure you want to use this template?&lt;br /&gt;
&lt;br /&gt;
You will also be required to select one of two options:&lt;br /&gt;
&lt;br /&gt;
;Delete old items&lt;br /&gt;
:Remove any questions/text types previously added to the Feedback Activity you are viewing before importing items from the selected Template&lt;br /&gt;
&lt;br /&gt;
;Append new items&lt;br /&gt;
:Add items stored within the selected template to the current Feedback activity, to any existing questions/text types.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Once you have made your selection click Save changes to copy across the Feedback items or press Cancel to exit from the template copy process.&lt;br /&gt;
&lt;br /&gt;
== Save these questions as a new template ==&lt;br /&gt;
&lt;br /&gt;
After creating a new Feedback activity and populating it with questions, you can save it as a Template for re-use by yourself or others.&lt;br /&gt;
&lt;br /&gt;
When saving a new Template enter a descriptive title in the Name field and choose whether you wish to make this Template available for use by others via the Public tickbox . A Public template may be viewed and re-used by users with appropriate access rights such as administrators and teacher/trainers. When a Public template is used as a basis for a new Feedback, the activity settings and questions within it may be edited by the teacher/trainer, however the original Template remains unchanged.&lt;br /&gt;
&lt;br /&gt;
== Delete Template... ==&lt;br /&gt;
&lt;br /&gt;
To remove a Template you have created or have appropriate permissions to edit, from your Moodle site, use the Delete template... link and click the delete icon next to the corresponding template name.&lt;br /&gt;
&lt;br /&gt;
==Export Questions==&lt;br /&gt;
&lt;br /&gt;
The Export Questions tool allows you to save the questions/text types within your Feedback Activity in .xml format. Clicking the Export questions link will prompt you to Save or Open this file.&lt;br /&gt;
&lt;br /&gt;
==Import Questions==&lt;br /&gt;
&lt;br /&gt;
Where you have previously exported and saved questions from a Feedback activity in .xml format, you can reimport them into a new Feedback activity. &lt;br /&gt;
&lt;br /&gt;
The Import questions tool is particularly useful where you need to import questions from a different instance of Moodle and the Template tool is not applicable. &lt;br /&gt;
&lt;br /&gt;
Tip: You can also use the Import/Export ability to combine multiple Imports from multiple templates; also it can be used to avoid creating duplicates when using Append.&lt;br /&gt;
&lt;br /&gt;
After clicking on the Import questions link you will be prompted to select one of the following options:&lt;br /&gt;
&lt;br /&gt;
;Delete old items&lt;br /&gt;
:The current questions and all your user&#039;s responses will be deleted within the current Feedback activity&lt;br /&gt;
&lt;br /&gt;
;Append new items&lt;br /&gt;
:All old questions and the assigned values will be preserved within the current Feedback activity and the imported questions will be added to the existing questions.&lt;br /&gt;
&lt;br /&gt;
Use the Choose a file button to navigate to the course Files area and upload and/or select the relevant .xml file. Once selected use the Import from this file button to import the questions or use Cancel to return to the Templates general tab.&lt;br /&gt;
&lt;br /&gt;
[[de:Feedback-Vorlagen]]&lt;/div&gt;</summary>
		<author><name>Rwthornton</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/2x/ca/index.php?title=Question_bank&amp;diff=100229</id>
		<title>Question bank</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/2x/ca/index.php?title=Question_bank&amp;diff=100229"/>
		<updated>2012-08-24T17:50:52Z</updated>

		<summary type="html">&lt;p&gt;Rwthornton: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Managing questions}}&lt;br /&gt;
This feature allows a teacher to create, preview, and edit questions in a database of question categories. The categories can be limited to being used on the site, course or quiz level.  The questions in a category can be added to a [[Quiz module|Quiz]] or to a [[Lesson module|lesson activity]] via an export process. The teacher enters the question bank by creating or editing a quiz activity or via &#039;&#039;Settings &amp;gt; Course administration &amp;gt; Question bank&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
==Select a category==&lt;br /&gt;
Questions are organised into categories. Initially each course has only one category called &amp;quot;Default&amp;quot;. It is good practice to create more categories to organize your questions. This not only makes it easier to find questions, but makes the use of random questions and matching question easier. You can create a hierarchy of categories because you can create subcategories inside parent categories. To add or edit categories click on the &amp;quot;[[Question categories|Categories]]&amp;quot; tab.&lt;br /&gt;
&lt;br /&gt;
The question editing screen shows the questions from the currently selected category. You choose this category from the &#039;&#039;&#039;Category:&#039;&#039;&#039; drop-down menu. Using the tick box below that menu you determine whether to also show the questions from all subcategories.&lt;br /&gt;
&lt;br /&gt;
===Categories are shared in contexts===&lt;br /&gt;
&lt;br /&gt;
There are separate question category trees in each different &#039;context&#039; in which questions are shared. The contexts available to you depend on whether you access the question bank from an activity or from a course and depend on the permissions assigned you for access to questions. See [[Question contexts]] for more information on these contexts.&lt;br /&gt;
&lt;br /&gt;
==Add a new question==&lt;br /&gt;
# Click the &#039;&#039;Questions&#039;&#039; tab to access the Question Bank page, if not there already.&lt;br /&gt;
# From the &#039;&#039;&#039;Category&#039;&#039;&#039; drop-down menu, select a category you want to add a question to.&lt;br /&gt;
# The page will change to show the questions already in that category&lt;br /&gt;
# Select the question type you want to create from the &#039;&#039;&#039;Create new question&#039;&#039;&#039; drop-down menu.&lt;br /&gt;
# Fill in the form for the question type you are creating. Each [[Question types|question type]] has its own form and has its own options.&lt;br /&gt;
# Click &#039;&#039;Save Changes&#039;&#039; at the bottom of the form.&lt;br /&gt;
&lt;br /&gt;
==Preview, Edit, Delete, and Move==&lt;br /&gt;
The first column in the list of questions contains a number of icons and a selection box.&lt;br /&gt;
&lt;br /&gt;
Clicking on the &#039;&#039;&#039;Preview&#039;&#039;&#039; icon will open a preview window in which you can test the question. The &#039;&#039;&#039;Edit&#039;&#039;&#039; icon allows you to edit the question via the same form that you used to create it. The &#039;&#039;&#039;Delete&#039;&#039;&#039; icon deletes the question, provided it is not already in use in some activity. The selection box allows you to select a subset of questions that you can then move to another category using the controls below the list of questions. The &#039;&#039;&#039;move&#039;&#039;&#039; icon allows you to move one question at a time.&lt;br /&gt;
&lt;br /&gt;
==Tips and tricks==&lt;br /&gt;
*Put the answer into the question name so you can quickly see the answers when students are asking for answers. This is especially useful if you&#039;re dealing with large sets of questions! (No option yet for viewing category or answer of question in the list of questions.)&lt;br /&gt;
*Export questions in GIFT or Moodle XML formats, then import them into a Lesson. (Future versions of Moodle will make Question bank available to both Lesson and Quiz activities.)&lt;br /&gt;
*Remember that while some of the same question types can be found in both the Quiz and Lesson modules, they can be very different.  Scoring and grading each student&#039;s choice is more robust in a Quiz.  On the other hand, each Lesson question answer also has a [[Jumps|jump]] associated it.&lt;br /&gt;
*Use GIFT or other export modes to print questions and answers in a category.  Hint, clever use of word processor macros, using search and replace, can tidy up a GIFT file for printing.&lt;br /&gt;
*The question title is useful in sorting and making notes. For example, &amp;quot;ZZ remove 2010-3 Why did the Moodler cross&amp;quot;, will put this question at the bottom of the list.  Or where you want a &#039;the&#039; questions in a category to appear in a specific order, use letters or numbers, knowing that AA will come first, AB will be second in the list.&lt;br /&gt;
*Do a copy and paste from a PDF file into the question content area.  Reduces &amp;quot;other&amp;quot; hidden code which Word, Open Office and other programs can insert.&lt;br /&gt;
&lt;br /&gt;
==Sharing and Managing Question banks==&lt;br /&gt;
&lt;br /&gt;
Be default, teachers can manage only the questions in the context of the courses they are in. You can set up a role to allow teachers to share and manager questions on a larger scale. &lt;br /&gt;
&lt;br /&gt;
You can also use this role to create a special system-wide &amp;quot;Question bank Manager&amp;quot; instead of giving admin level or site-wide Manager access to a person managing the Questions.&lt;br /&gt;
&lt;br /&gt;
See:&lt;br /&gt;
&lt;br /&gt;
*[[How to let teachers share questions between courses]]&lt;br /&gt;
&lt;br /&gt;
[[de:Fragensammlung]]&lt;br /&gt;
[[es:Banco de Preguntas]]&lt;br /&gt;
[[eu:Galdera-bankua]]&lt;br /&gt;
[[fr:Questions]]&lt;br /&gt;
[[ja:問題バンク]]&lt;/div&gt;</summary>
		<author><name>Rwthornton</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/2x/ca/index.php?title=Question_bank&amp;diff=100228</id>
		<title>Question bank</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/2x/ca/index.php?title=Question_bank&amp;diff=100228"/>
		<updated>2012-08-24T17:49:54Z</updated>

		<summary type="html">&lt;p&gt;Rwthornton: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Managing questions}}&lt;br /&gt;
This feature allows a teacher to create, preview, and edit questions in a database of question categories. The categories can be limited to being used on the site, course or quiz level.  The questions in a category can be added to a [[Quiz module|Quiz]] or to a [[Lesson module|lesson activity]] via an export process. The teacher enters the question bank by creating or editing a quiz activity or via &#039;&#039;Settings &amp;gt; Course administration &amp;gt; Question bank&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
==Select a category==&lt;br /&gt;
Questions are organised into categories. Initially each course has only one category called &amp;quot;Default&amp;quot;. It is good practice to create more categories to organize your questions. This not only makes it easier to find questions, but makes the use of random questions and matching question easier. You can create a hierarchy of categories because you can create subcategories inside parent categories. To add or edit categories click on the &amp;quot;[[Question categories|Categories]]&amp;quot; tab.&lt;br /&gt;
&lt;br /&gt;
The question editing screen shows the questions from the currently selected category. You choose this category from the &#039;&#039;&#039;Category:&#039;&#039;&#039; drop-down menu. Using the tick box below that menu you determine whether to also show the questions from all subcategories.&lt;br /&gt;
&lt;br /&gt;
===Categories are shared in contexts===&lt;br /&gt;
&lt;br /&gt;
There are separate question category trees in each different &#039;context&#039; in which questions are shared. The contexts available to you depend on whether you access the question bank from an activity or from a course and depend on the permissions assigned you for access to questions. See [[Question contexts]] for more information on these contexts.&lt;br /&gt;
&lt;br /&gt;
==Add a new question==&lt;br /&gt;
# Click the &#039;&#039;Questions&#039;&#039; tab to access the Question Bank page, if not there already.&lt;br /&gt;
# From the &#039;&#039;&#039;Category&#039;&#039;&#039; drop-down menu, select a category you want to add a question to.&lt;br /&gt;
# The page will change to show the questions already in that category&lt;br /&gt;
# Select the question type you want to create from the &#039;&#039;&#039;Create new question&#039;&#039;&#039; drop-down menu.&lt;br /&gt;
# Fill in the form for the question type you are creating. Each [[Question types|question type]] has its own form and has its own options.&lt;br /&gt;
# Click &#039;&#039;Save Changes&#039;&#039; at the bottom of the form.&lt;br /&gt;
&lt;br /&gt;
==Preview, Edit, Delete, and Move==&lt;br /&gt;
The first column in the list of questions contains a number of icons and a selection box.&lt;br /&gt;
&lt;br /&gt;
Clicking on the &#039;&#039;&#039;Preview&#039;&#039;&#039; icon will open a preview window in which you can test the question. The &#039;&#039;&#039;Edit&#039;&#039;&#039; icon allows you to edit the question via the same form that you used to create it. The &#039;&#039;&#039;Delete&#039;&#039;&#039; icon deletes the question, provided it is not already in use in some activity. The selection box allows you to select a subset of questions that you can then move to another category using the controls below the list of questions. The &#039;&#039;&#039;move&#039;&#039;&#039; icon allows you to move one question at a time.&lt;br /&gt;
&lt;br /&gt;
==Tips and tricks==&lt;br /&gt;
*Put the answer into the question name so you can quickly see the answers when students are asking for answers. This is especially useful if you&#039;re dealing with large sets of questions! (No option yet for viewing category or answer of question in the list of questions.)&lt;br /&gt;
*Export questions in GIFT or Moodle XML formats, then import them into a Lesson. (Future versions of Moodle will make Question bank available to both Lesson and Quiz activities.)&lt;br /&gt;
*Remember that while some of the same question types can be found in both the Quiz and Lesson modules, they can be very different.  Scoring and grading each student&#039;s choice is more robust in a Quiz.  On the other hand, each Lesson question answer also has a [[Jumps|jump]] associated it.&lt;br /&gt;
*Use GIFT or other export modes to print questions and answers in a category.  Hint, clever use of word processor macros, using search and replace, can tidy up a GIFT file for printing.&lt;br /&gt;
*The question title is useful in sorting and making notes. For example, &amp;quot;ZZ remove 2010-3 Why did the Moodler cross&amp;quot;, will put this question at the bottom of the list.  Or where you want a &#039;the&#039; questions in a category to appear in a specific order, use letters or numbers, knowing that AA will come first, AB will be second in the list.&lt;br /&gt;
*Do a copy and paste from a PDF file into the question content area.  Reduces &amp;quot;other&amp;quot; hidden code which Word, Open Office and other programs can insert.&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
&lt;br /&gt;
Be default, teachers can manage only the questions in the context of the courses they are in. You can set up a role to allow teachers to share and manager questions on a larger scale. &lt;br /&gt;
&lt;br /&gt;
You can also use this role to create a special system-wide &amp;quot;Question bank Manager&amp;quot; instead of giving admin level or site-wide Manager access to a person managing the Questions.&lt;br /&gt;
&lt;br /&gt;
See:&lt;br /&gt;
&lt;br /&gt;
*[[How to let teachers share questions between courses]]&lt;br /&gt;
&lt;br /&gt;
[[de:Fragensammlung]]&lt;br /&gt;
[[es:Banco de Preguntas]]&lt;br /&gt;
[[eu:Galdera-bankua]]&lt;br /&gt;
[[fr:Questions]]&lt;br /&gt;
[[ja:問題バンク]]&lt;/div&gt;</summary>
		<author><name>Rwthornton</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/2x/ca/index.php?title=Usuari:Randy_Thornton&amp;diff=99774</id>
		<title>Usuari:Randy Thornton</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/2x/ca/index.php?title=Usuari:Randy_Thornton&amp;diff=99774"/>
		<updated>2012-08-02T20:56:06Z</updated>

		<summary type="html">&lt;p&gt;Rwthornton: Created page with &amp;quot;I am an independent Moodle consultant in the U.S., working in Moodle since 2006 (version 1.6).   I consult on Moodle set up, configuration, administration, integrations, and cour...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;I am an independent Moodle consultant in the U.S., working in Moodle since 2006 (version 1.6). &lt;br /&gt;
&lt;br /&gt;
I consult on Moodle set up, configuration, administration, integrations, and course design and delivery, knowledge transfer and documentation, mostly in higher edu, non-profits and small companies.&lt;br /&gt;
&lt;br /&gt;
I am a former Moodlerooms employee, where I worked as a configuration consultant, and also was a Moodle administrator at a University for four years. I also have experience in Blackboard and Sakai administration and support, and college teaching experience.&lt;/div&gt;</summary>
		<author><name>Rwthornton</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/2x/ca/index.php?title=Messaging_settings&amp;diff=99598</id>
		<title>Messaging settings</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/2x/ca/index.php?title=Messaging_settings&amp;diff=99598"/>
		<updated>2012-07-27T22:38:47Z</updated>

		<summary type="html">&lt;p&gt;Rwthornton: /* List of message outputs */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Messaging}}&lt;br /&gt;
==Enabling / disabling instant messaging sitewide==&lt;br /&gt;
&lt;br /&gt;
The instant messaging system in Moodle is enabled by default. It may be disabled by a site administrator in &#039;&#039;Settings &amp;gt; Site administration &amp;gt; Advanced features &amp;gt; Enable messaging system&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
==Site administration settings==&lt;br /&gt;
&lt;br /&gt;
=== Manage Message outputs===&lt;br /&gt;
&lt;br /&gt;
There are three default types of output methods for messaging: popup notices, Jabber IM type messages, and messages sent as email.&lt;br /&gt;
&lt;br /&gt;
Each of these can be enabled or disabled independently by a site administrator in &#039;&#039;Settings &amp;gt; Site administration &amp;gt; Plugins &amp;gt; Message outputs &amp;gt; Manage message outputs&#039;&#039;. &lt;br /&gt;
&lt;br /&gt;
By default Popup and Email are both enabled, though email will only work of course if the site has been properly configured to deliver email. Jabber is off by default and needs to be configured first.&lt;br /&gt;
&lt;br /&gt;
[[File:moodle23-manage-message-outputs.png]]&lt;br /&gt;
&lt;br /&gt;
===Default message outputs===&lt;br /&gt;
&lt;br /&gt;
The user defaults for these are set in &#039;&#039;Settings &amp;gt; Site administration &amp;gt; Plugins &amp;gt; Message outputs &amp;gt; Default message outputs&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
====Permittedness====&lt;br /&gt;
&lt;br /&gt;
You can also set to what degree each type of message is enabled, and whether users are able to change these default settings in their profiles:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;Disallowed&#039;&#039; - the message of chosen type will never be delivered through the chosen output, user is not allowed to change the personal preference for this combination of message type and output.&lt;br /&gt;
* &#039;&#039;Permitted&#039;&#039; - the message of chosen type is allowed to be delivered through the chosen output, default preferences can be set by administrator using the checkboxes below, user can control this preference on the messaging preferences page (and change the suggested defaults the most preferable way).&lt;br /&gt;
* &#039;&#039;Forced&#039;&#039; - the message of chosen type will be delivered through the chosen output, user is not allowed to change the personal preference for this combination of message type and output. &lt;br /&gt;
&lt;br /&gt;
====Online/Not online====&lt;br /&gt;
&lt;br /&gt;
You can set whether each of these will be sent when the user is online through the messaging system interface available to users in their profiles, and/or whether each output is sent via email. &lt;br /&gt;
&lt;br /&gt;
==== List of message outputs====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Output Name !! Description !! Recipients&lt;br /&gt;
|-&lt;br /&gt;
| Assignment (2.2) notifications  || Student has submitted an assignment (in older 2.2 Assignment module) || Teacher&lt;br /&gt;
|-&lt;br /&gt;
| Assignment notifications || Student has submitted an assignment (in [https://docs.moodle.org/24/en/Assignment_FAQ 2.3+ version] of Assignment module)|| Teacher&lt;br /&gt;
|-&lt;br /&gt;
| Warning when your quiz attempt becomes overdue ||  || &lt;br /&gt;
|-&lt;br /&gt;
| Available update notifications || New in 2.3 - See [https://docs.moodle.org/dev/Available_update_notifications dev page] || Site admins&lt;br /&gt;
|-&lt;br /&gt;
| Backup notifications || Automated backup schedule run completed || Site admins &lt;br /&gt;
|-&lt;br /&gt;
| Confirmation of your own quiz submissions || Notice your quiz was successfully submitted || Student&lt;br /&gt;
|-&lt;br /&gt;
| Course creation request approval notification || Notice a requested course has been approved || Defined in &#039;&#039;Site admin &amp;gt; Courses &amp;gt; Course request &amp;gt; Course request notification&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
| Course creation request notification || Notice a course has been requested - See [https://docs.moodle.org/24/en/Course_request#Course_requests course requests] || Defined in &#039;&#039;Site admin &amp;gt; Courses &amp;gt; Course request &amp;gt; Course request notification&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
| Course creation request rejection notification || Notice a requested course has been rejected || Defined in &#039;&#039;Site admin &amp;gt; Courses &amp;gt; Course request &amp;gt; Course request notification&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
| Important errors with the site || || Site admins&lt;br /&gt;
|-&lt;br /&gt;
| Essay graded notification || Notify students a teacher has graded an essay question || Student &lt;br /&gt;
|-&lt;br /&gt;
| Personal messages between users || Using the Messaging interface in a user&#039;s Profile || Authenticated Users&lt;br /&gt;
|-&lt;br /&gt;
| Feedback reminder ||  || &lt;br /&gt;
|-&lt;br /&gt;
| Notices about minor problems || || Site admins&lt;br /&gt;
|-&lt;br /&gt;
| Subscribed forum posts || Master switch for forum subscription handling || Anyone subscribed to a forum&lt;br /&gt;
|-&lt;br /&gt;
| Feedback notifications ||  || &lt;br /&gt;
|-&lt;br /&gt;
| Notification of quiz submissions || Message that student has submitted a quiz || Teacher&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Except for &#039;&#039;&#039;Personal messages between users&#039;&#039;&#039; which refers to the interaction messaging tool on a user profile, the other messages are generated by events in Moodle.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Screenshot of all settings and their default settings:&lt;br /&gt;
&lt;br /&gt;
[[File:m32-messageoutputs-defaults.png|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
=== Jabber message===&lt;br /&gt;
&lt;br /&gt;
Jabber must be configured before use. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;(Could someone with working settings fill this out with example?)&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
*Host - The server to connect to to send jabber message notifications - full hostname (e.g. jabber.org)&lt;br /&gt;
*Server - XMPP host ID (can be left empty if the same as Jabber host)&lt;br /&gt;
*Username - The user name to use when connecting to the Jabber server&lt;br /&gt;
*Password - The password to use when connecting to the Jabber server&lt;br /&gt;
*Port - defaults to 5222&lt;br /&gt;
&lt;br /&gt;
===Email settings===&lt;br /&gt;
&lt;br /&gt;
====SMTP hosts====&lt;br /&gt;
&lt;br /&gt;
SMTP stands for Simple Mail Transfer Protocol. The SMTP host is an email relay that will take the email from Moodle and send it to users. You will need to set this only if your server does not allow mail relay. Otherwise, PHP will send out the mail using its built-in mail server. All the email sent by forums and other modules will be sent through this host.&lt;br /&gt;
&lt;br /&gt;
Most SMTP hosts make use of the default port 25 to for listening email traffic. However, occasionally a non-default port is used. In such cases, entering an SMTP host followed by a colon (i.e. :) and the port number should work. For example, if my SMTP host is myemailserver.com and it listens on port 587 or 465 (most common) instead of port 25 I would enter the SMTP host as myemailserver.com:587. Currently, the parameter check is too strict to allow this via the Moodle UI; however, MDL-15923 has been created and resolved to address this.  Until then, it can be set via phpMyAdmin using a query statement like:&lt;br /&gt;
&amp;lt;code mysql&amp;gt; UPDATE mdl_config SET value=&#039;myemailserver.com:587&#039; WHERE name=&#039;smtphosts&#039;;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====SMTP security====&lt;br /&gt;
&lt;br /&gt;
{{New features}}If the SMTP server requires a secure connection, the correct protocol type, SSL or TSL, may be set.&lt;br /&gt;
&lt;br /&gt;
====Configure HTTPD/SELinux on CentOS/Red Hat (RHEL) 6.2/6.1/6====&lt;br /&gt;
&lt;br /&gt;
Most new installations of Centos/Red Hat have SELinux activated and is configured by default, rather strictly. In this state SELinux does not allow Apache (httpd,phpmailer) to use the sendmail function and make any sort of network connection.&lt;br /&gt;
&lt;br /&gt;
If you continue to have problems with sending/authenticating use the &#039;&#039;&#039;getsebool&#039;&#039;&#039; command to find out if SELinux is one of the culprits. When the &#039;&#039;&#039;getsebool&#039;&#039;&#039; command is issued it returns &#039;&#039;on&#039;&#039; or &#039;&#039;off&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Type to check if your Apache is allowed to send mail and make a connection over the network&lt;br /&gt;
*&#039;&#039;getsebool httpd_can_sendmail&#039;&#039;&lt;br /&gt;
*&#039;&#039;getsebool httpd_can_network_connect&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
You will receive the values of &#039;&#039;httpd_can_sendmail&#039;&#039; and &#039;&#039;httpd_can_network_connect&#039;&#039;. Let&#039;s assume both options are off:&lt;br /&gt;
*&#039;&#039;httpd_can_sendmail --&amp;gt;off&#039;&#039;&lt;br /&gt;
*&#039;&#039;httpd_can_network_connect --&amp;gt;off&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
We need to change the values from &#039;&#039;off&#039;&#039; to &#039;&#039;on&#039;&#039; by using &#039;&#039;&#039;setsebool&#039;&#039;&#039;. Number 1 = on and 0 = off. Type the following:&lt;br /&gt;
*&#039;&#039;setsebool -P httpd_can_sendmail 1&#039;&#039;&lt;br /&gt;
*&#039;&#039;setsebool -P httpd_can_network_connect 1&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
You will not receive a response. You can double check if the &#039;&#039;&#039;setsebool&#039;&#039;&#039; command worked by using &#039;&#039;&#039;getsebool&#039;&#039;&#039; and see if the values changed from &#039;&#039;--&amp;gt;off&#039;&#039; to &#039;&#039;--&amp;gt;on&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
==Messaging capabilities==&lt;br /&gt;
&lt;br /&gt;
The following capabilities can be applied as permissions to make custom changes to roles affecting messaging.&lt;br /&gt;
&lt;br /&gt;
* [[Capabilities/moodle/course:bulkmessaging|course:bulkmessaging - Send a message to many people]]&lt;br /&gt;
* [[Capabilities/moodle/site:readallmessages|site:readallmessages - Read all messages on site]]&lt;br /&gt;
* [[Capabilities/moodle/site:sendmessage|site:sendmessage - Send messages to any user]]&lt;br /&gt;
* [[Capabilities/moodle/user:editownmessageprofile|user:editownmessageprofile - Edit own user messaging profile]]&lt;br /&gt;
* [[Capabilities/moodle/user:editmessageprofile|user:editmessageprofile - Edit user messaging profile]]&lt;br /&gt;
&lt;br /&gt;
=User profile settings=&lt;br /&gt;
&lt;br /&gt;
Users can receive message alerts for a number of different reasons and can also send and receive instant messages. How a user receives notification of incoming messages can be set in &#039;&#039;Settings &amp;gt; My profile &amp;gt; Messaging&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
This brings up a screen with check boxes where users can choose how they wish to be notified both when logged in and logged out. They can choose between a pop up,Jabber message or an email.&lt;br /&gt;
&lt;br /&gt;
[[File:Messagingnotifications.png]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; The choices a user has on this screen depends on their role and permissions within Moodle. For example, an administrator would see options for notifications about backups or important errors with the site. &lt;br /&gt;
&lt;br /&gt;
{{New features}}An administrator can receive update notifications for both Moodle core code and any contributed plugins installed on the site if the automatic check for available updates is enabled in &#039;&#039;Settings &amp;gt; Site Administration &amp;gt; Server &amp;gt; [[Notifications|Update notifications]]&#039;&#039;. &lt;br /&gt;
&lt;br /&gt;
===Pop up===&lt;br /&gt;
When a user is logged into Moodle, the message will pop up from the bottom right corner of the page. The user can choose to read the message immediately or to ignore it. If they choose to ignore it, the message returns until it is read.&lt;br /&gt;
&lt;br /&gt;
===Jabber===&lt;br /&gt;
If the Jabber server has been configured, Jabber messages can be sent.The Jabber ID can be set at the bottom of the screen.&lt;br /&gt;
&lt;br /&gt;
===Email===&lt;br /&gt;
{{New features}}Users cannot by default automatically choose to have notifications sent to a different email address from their official Moodle email. However, the administrator has the option to override this so that users can have an alternative email. This is done from &#039;&#039;Settings&amp;gt;Site administration&amp;gt;Advanced features&#039;&#039; and when activated, a box will appear for users to enter another email address.&lt;br /&gt;
&lt;br /&gt;
===Prevent non-contacts from messaging me===&lt;br /&gt;
Non-contacts can be prevented from sending messages by ticking this box in General Settings at the bottom of the screen.&lt;br /&gt;
&lt;br /&gt;
=See also=&lt;br /&gt;
&lt;br /&gt;
*[[:dev:Messaging 2.0|Messaging developer documentation]]&lt;br /&gt;
&lt;br /&gt;
[[de:Mitteilungen konfigurieren]]&lt;/div&gt;</summary>
		<author><name>Rwthornton</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/2x/ca/index.php?title=Messaging_settings&amp;diff=99597</id>
		<title>Messaging settings</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/2x/ca/index.php?title=Messaging_settings&amp;diff=99597"/>
		<updated>2012-07-27T22:36:28Z</updated>

		<summary type="html">&lt;p&gt;Rwthornton: /* List of message outputs */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Messaging}}&lt;br /&gt;
==Enabling / disabling instant messaging sitewide==&lt;br /&gt;
&lt;br /&gt;
The instant messaging system in Moodle is enabled by default. It may be disabled by a site administrator in &#039;&#039;Settings &amp;gt; Site administration &amp;gt; Advanced features &amp;gt; Enable messaging system&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
==Site administration settings==&lt;br /&gt;
&lt;br /&gt;
=== Manage Message outputs===&lt;br /&gt;
&lt;br /&gt;
There are three default types of output methods for messaging: popup notices, Jabber IM type messages, and messages sent as email.&lt;br /&gt;
&lt;br /&gt;
Each of these can be enabled or disabled independently by a site administrator in &#039;&#039;Settings &amp;gt; Site administration &amp;gt; Plugins &amp;gt; Message outputs &amp;gt; Manage message outputs&#039;&#039;. &lt;br /&gt;
&lt;br /&gt;
By default Popup and Email are both enabled, though email will only work of course if the site has been properly configured to deliver email. Jabber is off by default and needs to be configured first.&lt;br /&gt;
&lt;br /&gt;
[[File:moodle23-manage-message-outputs.png]]&lt;br /&gt;
&lt;br /&gt;
===Default message outputs===&lt;br /&gt;
&lt;br /&gt;
The user defaults for these are set in &#039;&#039;Settings &amp;gt; Site administration &amp;gt; Plugins &amp;gt; Message outputs &amp;gt; Default message outputs&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
====Permittedness====&lt;br /&gt;
&lt;br /&gt;
You can also set to what degree each type of message is enabled, and whether users are able to change these default settings in their profiles:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;Disallowed&#039;&#039; - the message of chosen type will never be delivered through the chosen output, user is not allowed to change the personal preference for this combination of message type and output.&lt;br /&gt;
* &#039;&#039;Permitted&#039;&#039; - the message of chosen type is allowed to be delivered through the chosen output, default preferences can be set by administrator using the checkboxes below, user can control this preference on the messaging preferences page (and change the suggested defaults the most preferable way).&lt;br /&gt;
* &#039;&#039;Forced&#039;&#039; - the message of chosen type will be delivered through the chosen output, user is not allowed to change the personal preference for this combination of message type and output. &lt;br /&gt;
&lt;br /&gt;
====Online/Not online====&lt;br /&gt;
&lt;br /&gt;
You can set whether each of these will be sent when the user is online through the messaging system interface available to users in their profiles, and/or whether each output is sent via email. &lt;br /&gt;
&lt;br /&gt;
==== List of message outputs====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Output Name !! Description !! Recipients&lt;br /&gt;
|-&lt;br /&gt;
| Assignment (2.2) notifications  || Student has submitted an assignment (in older 2.2 Assignment module) || Teacher&lt;br /&gt;
|-&lt;br /&gt;
| Assignment notifications || Student has submitted an assignment (in [https://docs.moodle.org/24/en/Assignment_FAQ 2.3+ version] of Assignment module)|| Teacher&lt;br /&gt;
|-&lt;br /&gt;
| Warning when your quiz attempt becomes overdue ||  || &lt;br /&gt;
|-&lt;br /&gt;
| Available update notifications || New in 2.3 - See [https://docs.moodle.org/dev/Available_update_notifications dev page] || Site admins&lt;br /&gt;
|-&lt;br /&gt;
| Backup notifications || Automated backup schedule run completed || Site admins &lt;br /&gt;
|-&lt;br /&gt;
| Confirmation of your own quiz submissions || Notice your quiz was successfully submitted || Student&lt;br /&gt;
|-&lt;br /&gt;
| Course creation request approval notification || Notice a requested course has been approved || Defined in &#039;&#039;Site admin &amp;gt; Courses &amp;gt; Course request &amp;gt; Course request notification&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
| Course creation request notification ||  See [https://docs.moodle.org/24/en/Course_request#Course_requests on course request] setup || Defined in &#039;&#039;Site admin &amp;gt; Courses &amp;gt; Course request &amp;gt; Course request notification&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
| Course creation request rejection notification || Notice a requested course has been rejected || Defined in &#039;&#039;Site admin &amp;gt; Courses &amp;gt; Course request &amp;gt; Course request notification&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
| Important errors with the site || || Site admins&lt;br /&gt;
|-&lt;br /&gt;
| Essay graded notification || Notify students a teacher has graded an essay question || Student &lt;br /&gt;
|-&lt;br /&gt;
| Personal messages between users || Using the Messaging interface in a user&#039;s Profile || Authenticated Users&lt;br /&gt;
|-&lt;br /&gt;
| Feedback reminder ||  || &lt;br /&gt;
|-&lt;br /&gt;
| Notices about minor problems || || Site admins&lt;br /&gt;
|-&lt;br /&gt;
| Subscribed forum posts || Master switch for forum subscription handling || Anyone subscribed to a forum&lt;br /&gt;
|-&lt;br /&gt;
| Feedback notifications ||  || &lt;br /&gt;
|-&lt;br /&gt;
| Notification of quiz submissions || Message that student has submitted a quiz || Teacher&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Except for &#039;&#039;&#039;Personal messages between users&#039;&#039;&#039; which refers to the interaction messaging tool on a user profile, the other messages are generated by events in Moodle.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Screenshot of all settings and their default settings:&lt;br /&gt;
&lt;br /&gt;
[[File:m32-messageoutputs-defaults.png|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
=== Jabber message===&lt;br /&gt;
&lt;br /&gt;
Jabber must be configured before use. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;(Could someone with working settings fill this out with example?)&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
*Host - The server to connect to to send jabber message notifications - full hostname (e.g. jabber.org)&lt;br /&gt;
*Server - XMPP host ID (can be left empty if the same as Jabber host)&lt;br /&gt;
*Username - The user name to use when connecting to the Jabber server&lt;br /&gt;
*Password - The password to use when connecting to the Jabber server&lt;br /&gt;
*Port - defaults to 5222&lt;br /&gt;
&lt;br /&gt;
===Email settings===&lt;br /&gt;
&lt;br /&gt;
====SMTP hosts====&lt;br /&gt;
&lt;br /&gt;
SMTP stands for Simple Mail Transfer Protocol. The SMTP host is an email relay that will take the email from Moodle and send it to users. You will need to set this only if your server does not allow mail relay. Otherwise, PHP will send out the mail using its built-in mail server. All the email sent by forums and other modules will be sent through this host.&lt;br /&gt;
&lt;br /&gt;
Most SMTP hosts make use of the default port 25 to for listening email traffic. However, occasionally a non-default port is used. In such cases, entering an SMTP host followed by a colon (i.e. :) and the port number should work. For example, if my SMTP host is myemailserver.com and it listens on port 587 or 465 (most common) instead of port 25 I would enter the SMTP host as myemailserver.com:587. Currently, the parameter check is too strict to allow this via the Moodle UI; however, MDL-15923 has been created and resolved to address this.  Until then, it can be set via phpMyAdmin using a query statement like:&lt;br /&gt;
&amp;lt;code mysql&amp;gt; UPDATE mdl_config SET value=&#039;myemailserver.com:587&#039; WHERE name=&#039;smtphosts&#039;;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====SMTP security====&lt;br /&gt;
&lt;br /&gt;
{{New features}}If the SMTP server requires a secure connection, the correct protocol type, SSL or TSL, may be set.&lt;br /&gt;
&lt;br /&gt;
====Configure HTTPD/SELinux on CentOS/Red Hat (RHEL) 6.2/6.1/6====&lt;br /&gt;
&lt;br /&gt;
Most new installations of Centos/Red Hat have SELinux activated and is configured by default, rather strictly. In this state SELinux does not allow Apache (httpd,phpmailer) to use the sendmail function and make any sort of network connection.&lt;br /&gt;
&lt;br /&gt;
If you continue to have problems with sending/authenticating use the &#039;&#039;&#039;getsebool&#039;&#039;&#039; command to find out if SELinux is one of the culprits. When the &#039;&#039;&#039;getsebool&#039;&#039;&#039; command is issued it returns &#039;&#039;on&#039;&#039; or &#039;&#039;off&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Type to check if your Apache is allowed to send mail and make a connection over the network&lt;br /&gt;
*&#039;&#039;getsebool httpd_can_sendmail&#039;&#039;&lt;br /&gt;
*&#039;&#039;getsebool httpd_can_network_connect&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
You will receive the values of &#039;&#039;httpd_can_sendmail&#039;&#039; and &#039;&#039;httpd_can_network_connect&#039;&#039;. Let&#039;s assume both options are off:&lt;br /&gt;
*&#039;&#039;httpd_can_sendmail --&amp;gt;off&#039;&#039;&lt;br /&gt;
*&#039;&#039;httpd_can_network_connect --&amp;gt;off&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
We need to change the values from &#039;&#039;off&#039;&#039; to &#039;&#039;on&#039;&#039; by using &#039;&#039;&#039;setsebool&#039;&#039;&#039;. Number 1 = on and 0 = off. Type the following:&lt;br /&gt;
*&#039;&#039;setsebool -P httpd_can_sendmail 1&#039;&#039;&lt;br /&gt;
*&#039;&#039;setsebool -P httpd_can_network_connect 1&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
You will not receive a response. You can double check if the &#039;&#039;&#039;setsebool&#039;&#039;&#039; command worked by using &#039;&#039;&#039;getsebool&#039;&#039;&#039; and see if the values changed from &#039;&#039;--&amp;gt;off&#039;&#039; to &#039;&#039;--&amp;gt;on&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
==Messaging capabilities==&lt;br /&gt;
&lt;br /&gt;
The following capabilities can be applied as permissions to make custom changes to roles affecting messaging.&lt;br /&gt;
&lt;br /&gt;
* [[Capabilities/moodle/course:bulkmessaging|course:bulkmessaging - Send a message to many people]]&lt;br /&gt;
* [[Capabilities/moodle/site:readallmessages|site:readallmessages - Read all messages on site]]&lt;br /&gt;
* [[Capabilities/moodle/site:sendmessage|site:sendmessage - Send messages to any user]]&lt;br /&gt;
* [[Capabilities/moodle/user:editownmessageprofile|user:editownmessageprofile - Edit own user messaging profile]]&lt;br /&gt;
* [[Capabilities/moodle/user:editmessageprofile|user:editmessageprofile - Edit user messaging profile]]&lt;br /&gt;
&lt;br /&gt;
=User profile settings=&lt;br /&gt;
&lt;br /&gt;
Users can receive message alerts for a number of different reasons and can also send and receive instant messages. How a user receives notification of incoming messages can be set in &#039;&#039;Settings &amp;gt; My profile &amp;gt; Messaging&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
This brings up a screen with check boxes where users can choose how they wish to be notified both when logged in and logged out. They can choose between a pop up,Jabber message or an email.&lt;br /&gt;
&lt;br /&gt;
[[File:Messagingnotifications.png]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; The choices a user has on this screen depends on their role and permissions within Moodle. For example, an administrator would see options for notifications about backups or important errors with the site. &lt;br /&gt;
&lt;br /&gt;
{{New features}}An administrator can receive update notifications for both Moodle core code and any contributed plugins installed on the site if the automatic check for available updates is enabled in &#039;&#039;Settings &amp;gt; Site Administration &amp;gt; Server &amp;gt; [[Notifications|Update notifications]]&#039;&#039;. &lt;br /&gt;
&lt;br /&gt;
===Pop up===&lt;br /&gt;
When a user is logged into Moodle, the message will pop up from the bottom right corner of the page. The user can choose to read the message immediately or to ignore it. If they choose to ignore it, the message returns until it is read.&lt;br /&gt;
&lt;br /&gt;
===Jabber===&lt;br /&gt;
If the Jabber server has been configured, Jabber messages can be sent.The Jabber ID can be set at the bottom of the screen.&lt;br /&gt;
&lt;br /&gt;
===Email===&lt;br /&gt;
{{New features}}Users cannot by default automatically choose to have notifications sent to a different email address from their official Moodle email. However, the administrator has the option to override this so that users can have an alternative email. This is done from &#039;&#039;Settings&amp;gt;Site administration&amp;gt;Advanced features&#039;&#039; and when activated, a box will appear for users to enter another email address.&lt;br /&gt;
&lt;br /&gt;
===Prevent non-contacts from messaging me===&lt;br /&gt;
Non-contacts can be prevented from sending messages by ticking this box in General Settings at the bottom of the screen.&lt;br /&gt;
&lt;br /&gt;
=See also=&lt;br /&gt;
&lt;br /&gt;
*[[:dev:Messaging 2.0|Messaging developer documentation]]&lt;br /&gt;
&lt;br /&gt;
[[de:Mitteilungen konfigurieren]]&lt;/div&gt;</summary>
		<author><name>Rwthornton</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/2x/ca/index.php?title=Messaging_settings&amp;diff=99596</id>
		<title>Messaging settings</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/2x/ca/index.php?title=Messaging_settings&amp;diff=99596"/>
		<updated>2012-07-27T22:29:40Z</updated>

		<summary type="html">&lt;p&gt;Rwthornton: /* List of message outputs */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Messaging}}&lt;br /&gt;
==Enabling / disabling instant messaging sitewide==&lt;br /&gt;
&lt;br /&gt;
The instant messaging system in Moodle is enabled by default. It may be disabled by a site administrator in &#039;&#039;Settings &amp;gt; Site administration &amp;gt; Advanced features &amp;gt; Enable messaging system&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
==Site administration settings==&lt;br /&gt;
&lt;br /&gt;
=== Manage Message outputs===&lt;br /&gt;
&lt;br /&gt;
There are three default types of output methods for messaging: popup notices, Jabber IM type messages, and messages sent as email.&lt;br /&gt;
&lt;br /&gt;
Each of these can be enabled or disabled independently by a site administrator in &#039;&#039;Settings &amp;gt; Site administration &amp;gt; Plugins &amp;gt; Message outputs &amp;gt; Manage message outputs&#039;&#039;. &lt;br /&gt;
&lt;br /&gt;
By default Popup and Email are both enabled, though email will only work of course if the site has been properly configured to deliver email. Jabber is off by default and needs to be configured first.&lt;br /&gt;
&lt;br /&gt;
[[File:moodle23-manage-message-outputs.png]]&lt;br /&gt;
&lt;br /&gt;
===Default message outputs===&lt;br /&gt;
&lt;br /&gt;
The user defaults for these are set in &#039;&#039;Settings &amp;gt; Site administration &amp;gt; Plugins &amp;gt; Message outputs &amp;gt; Default message outputs&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
====Permittedness====&lt;br /&gt;
&lt;br /&gt;
You can also set to what degree each type of message is enabled, and whether users are able to change these default settings in their profiles:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;Disallowed&#039;&#039; - the message of chosen type will never be delivered through the chosen output, user is not allowed to change the personal preference for this combination of message type and output.&lt;br /&gt;
* &#039;&#039;Permitted&#039;&#039; - the message of chosen type is allowed to be delivered through the chosen output, default preferences can be set by administrator using the checkboxes below, user can control this preference on the messaging preferences page (and change the suggested defaults the most preferable way).&lt;br /&gt;
* &#039;&#039;Forced&#039;&#039; - the message of chosen type will be delivered through the chosen output, user is not allowed to change the personal preference for this combination of message type and output. &lt;br /&gt;
&lt;br /&gt;
====Online/Not online====&lt;br /&gt;
&lt;br /&gt;
You can set whether each of these will be sent when the user is online through the messaging system interface available to users in their profiles, and/or whether each output is sent via email. &lt;br /&gt;
&lt;br /&gt;
==== List of message outputs====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Output Name !! Description !! Recipients&lt;br /&gt;
|-&lt;br /&gt;
| Assignment (2.2) notifications  || Student has submitted an assignment (in older 2.2 Assignment module) || Teacher&lt;br /&gt;
|-&lt;br /&gt;
| Assignment notifications || Student has submitted an assignment (in [https://docs.moodle.org/24/en/Assignment_FAQ 2.3+ version] of Assignment module)|| Teacher&lt;br /&gt;
|-&lt;br /&gt;
| Warning when your quiz attempt becomes overdue ||  || &lt;br /&gt;
|-&lt;br /&gt;
| Available update notifications || New in 2.3 - See [https://docs.moodle.org/dev/Available_update_notifications dev page] || Site admins&lt;br /&gt;
|-&lt;br /&gt;
| Backup notifications || Automated backup schedule run completed || Site admins &lt;br /&gt;
|-&lt;br /&gt;
| Confirmation of your own quiz submissions || Notice your quiz was successfully submitted || Student&lt;br /&gt;
|-&lt;br /&gt;
| Course creation request approval notification || See [https://docs.moodle.org/24/en/Course_request#Course_requests] || &lt;br /&gt;
|-&lt;br /&gt;
| Course creation request notification || If enabled, to whom course requests go || Those defined in &#039;&#039;Site admin &amp;gt; Courses &amp;gt; Course request &amp;gt; Course request notification&#039;&#039; (??)&lt;br /&gt;
|-&lt;br /&gt;
| Course creation request rejection notification || Notice a requested course has been rejected || &lt;br /&gt;
|-&lt;br /&gt;
| Important errors with the site || || Site admins&lt;br /&gt;
|-&lt;br /&gt;
| Essay graded notification || Notify students a teacher has graded an essay question || Student &lt;br /&gt;
|-&lt;br /&gt;
| Personal messages between users || Using the Messaging interface in a user&#039;s Profile || Authenticated Users&lt;br /&gt;
|-&lt;br /&gt;
| Feedback reminder ||  || &lt;br /&gt;
|-&lt;br /&gt;
| Notices about minor problems || || Site admins&lt;br /&gt;
|-&lt;br /&gt;
| Subscribed forum posts || Master switch for forum subscription handling || Anyone subscribed to a forum&lt;br /&gt;
|-&lt;br /&gt;
| Feedback notifications ||  || &lt;br /&gt;
|-&lt;br /&gt;
| Notification of quiz submissions || Message that student has submitted a quiz || Teacher&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Except for &#039;&#039;&#039;Personal messages between users&#039;&#039;&#039; which refers to the interaction messaging tool on a user profile, the other messages are generated by events in Moodle.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Screenshot of all settings and their default settings:&lt;br /&gt;
&lt;br /&gt;
[[File:m32-messageoutputs-defaults.png|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
=== Jabber message===&lt;br /&gt;
&lt;br /&gt;
Jabber must be configured before use. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;(Could someone with working settings fill this out with example?)&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
*Host - The server to connect to to send jabber message notifications - full hostname (e.g. jabber.org)&lt;br /&gt;
*Server - XMPP host ID (can be left empty if the same as Jabber host)&lt;br /&gt;
*Username - The user name to use when connecting to the Jabber server&lt;br /&gt;
*Password - The password to use when connecting to the Jabber server&lt;br /&gt;
*Port - defaults to 5222&lt;br /&gt;
&lt;br /&gt;
===Email settings===&lt;br /&gt;
&lt;br /&gt;
====SMTP hosts====&lt;br /&gt;
&lt;br /&gt;
SMTP stands for Simple Mail Transfer Protocol. The SMTP host is an email relay that will take the email from Moodle and send it to users. You will need to set this only if your server does not allow mail relay. Otherwise, PHP will send out the mail using its built-in mail server. All the email sent by forums and other modules will be sent through this host.&lt;br /&gt;
&lt;br /&gt;
Most SMTP hosts make use of the default port 25 to for listening email traffic. However, occasionally a non-default port is used. In such cases, entering an SMTP host followed by a colon (i.e. :) and the port number should work. For example, if my SMTP host is myemailserver.com and it listens on port 587 or 465 (most common) instead of port 25 I would enter the SMTP host as myemailserver.com:587. Currently, the parameter check is too strict to allow this via the Moodle UI; however, MDL-15923 has been created and resolved to address this.  Until then, it can be set via phpMyAdmin using a query statement like:&lt;br /&gt;
&amp;lt;code mysql&amp;gt; UPDATE mdl_config SET value=&#039;myemailserver.com:587&#039; WHERE name=&#039;smtphosts&#039;;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====SMTP security====&lt;br /&gt;
&lt;br /&gt;
{{New features}}If the SMTP server requires a secure connection, the correct protocol type, SSL or TSL, may be set.&lt;br /&gt;
&lt;br /&gt;
====Configure HTTPD/SELinux on CentOS/Red Hat (RHEL) 6.2/6.1/6====&lt;br /&gt;
&lt;br /&gt;
Most new installations of Centos/Red Hat have SELinux activated and is configured by default, rather strictly. In this state SELinux does not allow Apache (httpd,phpmailer) to use the sendmail function and make any sort of network connection.&lt;br /&gt;
&lt;br /&gt;
If you continue to have problems with sending/authenticating use the &#039;&#039;&#039;getsebool&#039;&#039;&#039; command to find out if SELinux is one of the culprits. When the &#039;&#039;&#039;getsebool&#039;&#039;&#039; command is issued it returns &#039;&#039;on&#039;&#039; or &#039;&#039;off&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Type to check if your Apache is allowed to send mail and make a connection over the network&lt;br /&gt;
*&#039;&#039;getsebool httpd_can_sendmail&#039;&#039;&lt;br /&gt;
*&#039;&#039;getsebool httpd_can_network_connect&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
You will receive the values of &#039;&#039;httpd_can_sendmail&#039;&#039; and &#039;&#039;httpd_can_network_connect&#039;&#039;. Let&#039;s assume both options are off:&lt;br /&gt;
*&#039;&#039;httpd_can_sendmail --&amp;gt;off&#039;&#039;&lt;br /&gt;
*&#039;&#039;httpd_can_network_connect --&amp;gt;off&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
We need to change the values from &#039;&#039;off&#039;&#039; to &#039;&#039;on&#039;&#039; by using &#039;&#039;&#039;setsebool&#039;&#039;&#039;. Number 1 = on and 0 = off. Type the following:&lt;br /&gt;
*&#039;&#039;setsebool -P httpd_can_sendmail 1&#039;&#039;&lt;br /&gt;
*&#039;&#039;setsebool -P httpd_can_network_connect 1&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
You will not receive a response. You can double check if the &#039;&#039;&#039;setsebool&#039;&#039;&#039; command worked by using &#039;&#039;&#039;getsebool&#039;&#039;&#039; and see if the values changed from &#039;&#039;--&amp;gt;off&#039;&#039; to &#039;&#039;--&amp;gt;on&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
==Messaging capabilities==&lt;br /&gt;
&lt;br /&gt;
The following capabilities can be applied as permissions to make custom changes to roles affecting messaging.&lt;br /&gt;
&lt;br /&gt;
* [[Capabilities/moodle/course:bulkmessaging|course:bulkmessaging - Send a message to many people]]&lt;br /&gt;
* [[Capabilities/moodle/site:readallmessages|site:readallmessages - Read all messages on site]]&lt;br /&gt;
* [[Capabilities/moodle/site:sendmessage|site:sendmessage - Send messages to any user]]&lt;br /&gt;
* [[Capabilities/moodle/user:editownmessageprofile|user:editownmessageprofile - Edit own user messaging profile]]&lt;br /&gt;
* [[Capabilities/moodle/user:editmessageprofile|user:editmessageprofile - Edit user messaging profile]]&lt;br /&gt;
&lt;br /&gt;
=User profile settings=&lt;br /&gt;
&lt;br /&gt;
Users can receive message alerts for a number of different reasons and can also send and receive instant messages. How a user receives notification of incoming messages can be set in &#039;&#039;Settings &amp;gt; My profile &amp;gt; Messaging&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
This brings up a screen with check boxes where users can choose how they wish to be notified both when logged in and logged out. They can choose between a pop up,Jabber message or an email.&lt;br /&gt;
&lt;br /&gt;
[[File:Messagingnotifications.png]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; The choices a user has on this screen depends on their role and permissions within Moodle. For example, an administrator would see options for notifications about backups or important errors with the site. &lt;br /&gt;
&lt;br /&gt;
{{New features}}An administrator can receive update notifications for both Moodle core code and any contributed plugins installed on the site if the automatic check for available updates is enabled in &#039;&#039;Settings &amp;gt; Site Administration &amp;gt; Server &amp;gt; [[Notifications|Update notifications]]&#039;&#039;. &lt;br /&gt;
&lt;br /&gt;
===Pop up===&lt;br /&gt;
When a user is logged into Moodle, the message will pop up from the bottom right corner of the page. The user can choose to read the message immediately or to ignore it. If they choose to ignore it, the message returns until it is read.&lt;br /&gt;
&lt;br /&gt;
===Jabber===&lt;br /&gt;
If the Jabber server has been configured, Jabber messages can be sent.The Jabber ID can be set at the bottom of the screen.&lt;br /&gt;
&lt;br /&gt;
===Email===&lt;br /&gt;
{{New features}}Users cannot by default automatically choose to have notifications sent to a different email address from their official Moodle email. However, the administrator has the option to override this so that users can have an alternative email. This is done from &#039;&#039;Settings&amp;gt;Site administration&amp;gt;Advanced features&#039;&#039; and when activated, a box will appear for users to enter another email address.&lt;br /&gt;
&lt;br /&gt;
===Prevent non-contacts from messaging me===&lt;br /&gt;
Non-contacts can be prevented from sending messages by ticking this box in General Settings at the bottom of the screen.&lt;br /&gt;
&lt;br /&gt;
=See also=&lt;br /&gt;
&lt;br /&gt;
*[[:dev:Messaging 2.0|Messaging developer documentation]]&lt;br /&gt;
&lt;br /&gt;
[[de:Mitteilungen konfigurieren]]&lt;/div&gt;</summary>
		<author><name>Rwthornton</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/2x/ca/index.php?title=Messaging_settings&amp;diff=99595</id>
		<title>Messaging settings</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/2x/ca/index.php?title=Messaging_settings&amp;diff=99595"/>
		<updated>2012-07-27T22:28:11Z</updated>

		<summary type="html">&lt;p&gt;Rwthornton: /* List of message outputs */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Messaging}}&lt;br /&gt;
==Enabling / disabling instant messaging sitewide==&lt;br /&gt;
&lt;br /&gt;
The instant messaging system in Moodle is enabled by default. It may be disabled by a site administrator in &#039;&#039;Settings &amp;gt; Site administration &amp;gt; Advanced features &amp;gt; Enable messaging system&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
==Site administration settings==&lt;br /&gt;
&lt;br /&gt;
=== Manage Message outputs===&lt;br /&gt;
&lt;br /&gt;
There are three default types of output methods for messaging: popup notices, Jabber IM type messages, and messages sent as email.&lt;br /&gt;
&lt;br /&gt;
Each of these can be enabled or disabled independently by a site administrator in &#039;&#039;Settings &amp;gt; Site administration &amp;gt; Plugins &amp;gt; Message outputs &amp;gt; Manage message outputs&#039;&#039;. &lt;br /&gt;
&lt;br /&gt;
By default Popup and Email are both enabled, though email will only work of course if the site has been properly configured to deliver email. Jabber is off by default and needs to be configured first.&lt;br /&gt;
&lt;br /&gt;
[[File:moodle23-manage-message-outputs.png]]&lt;br /&gt;
&lt;br /&gt;
===Default message outputs===&lt;br /&gt;
&lt;br /&gt;
The user defaults for these are set in &#039;&#039;Settings &amp;gt; Site administration &amp;gt; Plugins &amp;gt; Message outputs &amp;gt; Default message outputs&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
====Permittedness====&lt;br /&gt;
&lt;br /&gt;
You can also set to what degree each type of message is enabled, and whether users are able to change these default settings in their profiles:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;Disallowed&#039;&#039; - the message of chosen type will never be delivered through the chosen output, user is not allowed to change the personal preference for this combination of message type and output.&lt;br /&gt;
* &#039;&#039;Permitted&#039;&#039; - the message of chosen type is allowed to be delivered through the chosen output, default preferences can be set by administrator using the checkboxes below, user can control this preference on the messaging preferences page (and change the suggested defaults the most preferable way).&lt;br /&gt;
* &#039;&#039;Forced&#039;&#039; - the message of chosen type will be delivered through the chosen output, user is not allowed to change the personal preference for this combination of message type and output. &lt;br /&gt;
&lt;br /&gt;
====Online/Not online====&lt;br /&gt;
&lt;br /&gt;
You can set whether each of these will be sent when the user is online through the messaging system interface available to users in their profiles, and/or whether each output is sent via email. &lt;br /&gt;
&lt;br /&gt;
==== List of message outputs====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Output Name !! Description !! Recipients&lt;br /&gt;
|-&lt;br /&gt;
| Assignment (2.2) notifications  || Student has submitted an assignment (in older 2.2 Assignment module) || Teacher&lt;br /&gt;
|-&lt;br /&gt;
| Assignment notifications || Student has submitted an assignment (in [https://docs.moodle.org/24/en/Assignment_FAQ 2.3+ version] of Assignment module)|| Teacher&lt;br /&gt;
|-&lt;br /&gt;
| Warning when your quiz attempt becomes overdue ||  || &lt;br /&gt;
|-&lt;br /&gt;
| Available update notifications || New in 2.3 - See [https://docs.moodle.org/dev/Available_update_notifications dev page] || Site admins&lt;br /&gt;
|-&lt;br /&gt;
| Backup notifications || Automated backup scheduled run || Site admins &lt;br /&gt;
|-&lt;br /&gt;
| Confirmation of your own quiz submissions || Notice your quiz was successfully submitted || Student&lt;br /&gt;
|-&lt;br /&gt;
| Course creation request approval notification || See [https://docs.moodle.org/24/en/Course_request#Course_requests] || &lt;br /&gt;
|-&lt;br /&gt;
| Course creation request notification || If enabled, to whom course requests go || Those defined in &#039;&#039;Site admin &amp;gt; Courses &amp;gt; Course request &amp;gt; Course request notification&#039;&#039; (??)&lt;br /&gt;
|-&lt;br /&gt;
| Course creation request rejection notification || Notice a requested course has been rejected || &lt;br /&gt;
|-&lt;br /&gt;
| Important errors with the site || || Site admins&lt;br /&gt;
|-&lt;br /&gt;
| Essay graded notification || Notify students a teacher has graded an essay question || Student &lt;br /&gt;
|-&lt;br /&gt;
| Personal messages between users || Using the Messaging interface in a user&#039;s Profile || Authenticated Users&lt;br /&gt;
|-&lt;br /&gt;
| Feedback reminder ||  || &lt;br /&gt;
|-&lt;br /&gt;
| Notices about minor problems || || Site admins&lt;br /&gt;
|-&lt;br /&gt;
| Subscribed forum posts || Master switch for forum subscription handling || Anyone subscribed to a forum&lt;br /&gt;
|-&lt;br /&gt;
| Feedback notifications ||  || &lt;br /&gt;
|-&lt;br /&gt;
| Notification of quiz submissions || Message that student has submitted a quiz || Teacher&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Except for &#039;&#039;&#039;Personal messages between users&#039;&#039;&#039; which refers to the interaction messaging tool on a user profile, the other messages are generated by events in Moodle.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Screenshot of all settings and their default settings:&lt;br /&gt;
&lt;br /&gt;
[[File:m32-messageoutputs-defaults.png|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
=== Jabber message===&lt;br /&gt;
&lt;br /&gt;
Jabber must be configured before use. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;(Could someone with working settings fill this out with example?)&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
*Host - The server to connect to to send jabber message notifications - full hostname (e.g. jabber.org)&lt;br /&gt;
*Server - XMPP host ID (can be left empty if the same as Jabber host)&lt;br /&gt;
*Username - The user name to use when connecting to the Jabber server&lt;br /&gt;
*Password - The password to use when connecting to the Jabber server&lt;br /&gt;
*Port - defaults to 5222&lt;br /&gt;
&lt;br /&gt;
===Email settings===&lt;br /&gt;
&lt;br /&gt;
====SMTP hosts====&lt;br /&gt;
&lt;br /&gt;
SMTP stands for Simple Mail Transfer Protocol. The SMTP host is an email relay that will take the email from Moodle and send it to users. You will need to set this only if your server does not allow mail relay. Otherwise, PHP will send out the mail using its built-in mail server. All the email sent by forums and other modules will be sent through this host.&lt;br /&gt;
&lt;br /&gt;
Most SMTP hosts make use of the default port 25 to for listening email traffic. However, occasionally a non-default port is used. In such cases, entering an SMTP host followed by a colon (i.e. :) and the port number should work. For example, if my SMTP host is myemailserver.com and it listens on port 587 or 465 (most common) instead of port 25 I would enter the SMTP host as myemailserver.com:587. Currently, the parameter check is too strict to allow this via the Moodle UI; however, MDL-15923 has been created and resolved to address this.  Until then, it can be set via phpMyAdmin using a query statement like:&lt;br /&gt;
&amp;lt;code mysql&amp;gt; UPDATE mdl_config SET value=&#039;myemailserver.com:587&#039; WHERE name=&#039;smtphosts&#039;;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====SMTP security====&lt;br /&gt;
&lt;br /&gt;
{{New features}}If the SMTP server requires a secure connection, the correct protocol type, SSL or TSL, may be set.&lt;br /&gt;
&lt;br /&gt;
====Configure HTTPD/SELinux on CentOS/Red Hat (RHEL) 6.2/6.1/6====&lt;br /&gt;
&lt;br /&gt;
Most new installations of Centos/Red Hat have SELinux activated and is configured by default, rather strictly. In this state SELinux does not allow Apache (httpd,phpmailer) to use the sendmail function and make any sort of network connection.&lt;br /&gt;
&lt;br /&gt;
If you continue to have problems with sending/authenticating use the &#039;&#039;&#039;getsebool&#039;&#039;&#039; command to find out if SELinux is one of the culprits. When the &#039;&#039;&#039;getsebool&#039;&#039;&#039; command is issued it returns &#039;&#039;on&#039;&#039; or &#039;&#039;off&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Type to check if your Apache is allowed to send mail and make a connection over the network&lt;br /&gt;
*&#039;&#039;getsebool httpd_can_sendmail&#039;&#039;&lt;br /&gt;
*&#039;&#039;getsebool httpd_can_network_connect&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
You will receive the values of &#039;&#039;httpd_can_sendmail&#039;&#039; and &#039;&#039;httpd_can_network_connect&#039;&#039;. Let&#039;s assume both options are off:&lt;br /&gt;
*&#039;&#039;httpd_can_sendmail --&amp;gt;off&#039;&#039;&lt;br /&gt;
*&#039;&#039;httpd_can_network_connect --&amp;gt;off&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
We need to change the values from &#039;&#039;off&#039;&#039; to &#039;&#039;on&#039;&#039; by using &#039;&#039;&#039;setsebool&#039;&#039;&#039;. Number 1 = on and 0 = off. Type the following:&lt;br /&gt;
*&#039;&#039;setsebool -P httpd_can_sendmail 1&#039;&#039;&lt;br /&gt;
*&#039;&#039;setsebool -P httpd_can_network_connect 1&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
You will not receive a response. You can double check if the &#039;&#039;&#039;setsebool&#039;&#039;&#039; command worked by using &#039;&#039;&#039;getsebool&#039;&#039;&#039; and see if the values changed from &#039;&#039;--&amp;gt;off&#039;&#039; to &#039;&#039;--&amp;gt;on&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
==Messaging capabilities==&lt;br /&gt;
&lt;br /&gt;
The following capabilities can be applied as permissions to make custom changes to roles affecting messaging.&lt;br /&gt;
&lt;br /&gt;
* [[Capabilities/moodle/course:bulkmessaging|course:bulkmessaging - Send a message to many people]]&lt;br /&gt;
* [[Capabilities/moodle/site:readallmessages|site:readallmessages - Read all messages on site]]&lt;br /&gt;
* [[Capabilities/moodle/site:sendmessage|site:sendmessage - Send messages to any user]]&lt;br /&gt;
* [[Capabilities/moodle/user:editownmessageprofile|user:editownmessageprofile - Edit own user messaging profile]]&lt;br /&gt;
* [[Capabilities/moodle/user:editmessageprofile|user:editmessageprofile - Edit user messaging profile]]&lt;br /&gt;
&lt;br /&gt;
=User profile settings=&lt;br /&gt;
&lt;br /&gt;
Users can receive message alerts for a number of different reasons and can also send and receive instant messages. How a user receives notification of incoming messages can be set in &#039;&#039;Settings &amp;gt; My profile &amp;gt; Messaging&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
This brings up a screen with check boxes where users can choose how they wish to be notified both when logged in and logged out. They can choose between a pop up,Jabber message or an email.&lt;br /&gt;
&lt;br /&gt;
[[File:Messagingnotifications.png]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; The choices a user has on this screen depends on their role and permissions within Moodle. For example, an administrator would see options for notifications about backups or important errors with the site. &lt;br /&gt;
&lt;br /&gt;
{{New features}}An administrator can receive update notifications for both Moodle core code and any contributed plugins installed on the site if the automatic check for available updates is enabled in &#039;&#039;Settings &amp;gt; Site Administration &amp;gt; Server &amp;gt; [[Notifications|Update notifications]]&#039;&#039;. &lt;br /&gt;
&lt;br /&gt;
===Pop up===&lt;br /&gt;
When a user is logged into Moodle, the message will pop up from the bottom right corner of the page. The user can choose to read the message immediately or to ignore it. If they choose to ignore it, the message returns until it is read.&lt;br /&gt;
&lt;br /&gt;
===Jabber===&lt;br /&gt;
If the Jabber server has been configured, Jabber messages can be sent.The Jabber ID can be set at the bottom of the screen.&lt;br /&gt;
&lt;br /&gt;
===Email===&lt;br /&gt;
{{New features}}Users cannot by default automatically choose to have notifications sent to a different email address from their official Moodle email. However, the administrator has the option to override this so that users can have an alternative email. This is done from &#039;&#039;Settings&amp;gt;Site administration&amp;gt;Advanced features&#039;&#039; and when activated, a box will appear for users to enter another email address.&lt;br /&gt;
&lt;br /&gt;
===Prevent non-contacts from messaging me===&lt;br /&gt;
Non-contacts can be prevented from sending messages by ticking this box in General Settings at the bottom of the screen.&lt;br /&gt;
&lt;br /&gt;
=See also=&lt;br /&gt;
&lt;br /&gt;
*[[:dev:Messaging 2.0|Messaging developer documentation]]&lt;br /&gt;
&lt;br /&gt;
[[de:Mitteilungen konfigurieren]]&lt;/div&gt;</summary>
		<author><name>Rwthornton</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/2x/ca/index.php?title=Messaging_settings&amp;diff=99594</id>
		<title>Messaging settings</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/2x/ca/index.php?title=Messaging_settings&amp;diff=99594"/>
		<updated>2012-07-27T22:27:40Z</updated>

		<summary type="html">&lt;p&gt;Rwthornton: /* List of message outputs */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Messaging}}&lt;br /&gt;
==Enabling / disabling instant messaging sitewide==&lt;br /&gt;
&lt;br /&gt;
The instant messaging system in Moodle is enabled by default. It may be disabled by a site administrator in &#039;&#039;Settings &amp;gt; Site administration &amp;gt; Advanced features &amp;gt; Enable messaging system&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
==Site administration settings==&lt;br /&gt;
&lt;br /&gt;
=== Manage Message outputs===&lt;br /&gt;
&lt;br /&gt;
There are three default types of output methods for messaging: popup notices, Jabber IM type messages, and messages sent as email.&lt;br /&gt;
&lt;br /&gt;
Each of these can be enabled or disabled independently by a site administrator in &#039;&#039;Settings &amp;gt; Site administration &amp;gt; Plugins &amp;gt; Message outputs &amp;gt; Manage message outputs&#039;&#039;. &lt;br /&gt;
&lt;br /&gt;
By default Popup and Email are both enabled, though email will only work of course if the site has been properly configured to deliver email. Jabber is off by default and needs to be configured first.&lt;br /&gt;
&lt;br /&gt;
[[File:moodle23-manage-message-outputs.png]]&lt;br /&gt;
&lt;br /&gt;
===Default message outputs===&lt;br /&gt;
&lt;br /&gt;
The user defaults for these are set in &#039;&#039;Settings &amp;gt; Site administration &amp;gt; Plugins &amp;gt; Message outputs &amp;gt; Default message outputs&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
====Permittedness====&lt;br /&gt;
&lt;br /&gt;
You can also set to what degree each type of message is enabled, and whether users are able to change these default settings in their profiles:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;Disallowed&#039;&#039; - the message of chosen type will never be delivered through the chosen output, user is not allowed to change the personal preference for this combination of message type and output.&lt;br /&gt;
* &#039;&#039;Permitted&#039;&#039; - the message of chosen type is allowed to be delivered through the chosen output, default preferences can be set by administrator using the checkboxes below, user can control this preference on the messaging preferences page (and change the suggested defaults the most preferable way).&lt;br /&gt;
* &#039;&#039;Forced&#039;&#039; - the message of chosen type will be delivered through the chosen output, user is not allowed to change the personal preference for this combination of message type and output. &lt;br /&gt;
&lt;br /&gt;
====Online/Not online====&lt;br /&gt;
&lt;br /&gt;
You can set whether each of these will be sent when the user is online through the messaging system interface available to users in their profiles, and/or whether each output is sent via email. &lt;br /&gt;
&lt;br /&gt;
==== List of message outputs====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Output Name !! Description !! Recipients&lt;br /&gt;
|-&lt;br /&gt;
| Assignment (2.2) notifications  || Student has submitted an assignment (in older 2.2 Assignment module) || Teacher&lt;br /&gt;
|-&lt;br /&gt;
| Assignment notifications || Student has submitted an assignment (in [https://docs.moodle.org/24/en/Assignment_FAQ 2.3+ version] of Assignment module)|| Teacher&lt;br /&gt;
|-&lt;br /&gt;
| Warning when your quiz attempt becomes overdue ||  || &lt;br /&gt;
|-&lt;br /&gt;
| Available update notifications || See [https://docs.moodle.org/dev/Available_update_notifications dev page] || Site admins&lt;br /&gt;
|-&lt;br /&gt;
| Backup notifications || Automated backup scheduled run || Site admins &lt;br /&gt;
|-&lt;br /&gt;
| Confirmation of your own quiz submissions || Notice your quiz was successfully submitted || Student&lt;br /&gt;
|-&lt;br /&gt;
| Course creation request approval notification || See [https://docs.moodle.org/24/en/Course_request#Course_requests] || &lt;br /&gt;
|-&lt;br /&gt;
| Course creation request notification || If enabled, to whom course requests go || Those defined in &#039;&#039;Site admin &amp;gt; Courses &amp;gt; Course request &amp;gt; Course request notification&#039;&#039; (??)&lt;br /&gt;
|-&lt;br /&gt;
| Course creation request rejection notification || Notice a requested course has been rejected || &lt;br /&gt;
|-&lt;br /&gt;
| Important errors with the site || || Site admins&lt;br /&gt;
|-&lt;br /&gt;
| Essay graded notification || Notify students a teacher has graded an essay question || Student &lt;br /&gt;
|-&lt;br /&gt;
| Personal messages between users || Using the Messaging interface in a user&#039;s Profile || Authenticated Users&lt;br /&gt;
|-&lt;br /&gt;
| Feedback reminder ||  || &lt;br /&gt;
|-&lt;br /&gt;
| Notices about minor problems || || Site admins&lt;br /&gt;
|-&lt;br /&gt;
| Subscribed forum posts || Master switch for forum subscription handling || Anyone subscribed to a forum&lt;br /&gt;
|-&lt;br /&gt;
| Feedback notifications ||  || &lt;br /&gt;
|-&lt;br /&gt;
| Notification of quiz submissions || Message that student has submitted a quiz || Teacher&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Except for &#039;&#039;&#039;Personal messages between users&#039;&#039;&#039; which refers to the interaction messaging tool on a user profile, the other messages are generated by events in Moodle.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Screenshot of all settings and their default settings:&lt;br /&gt;
&lt;br /&gt;
[[File:m32-messageoutputs-defaults.png|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
=== Jabber message===&lt;br /&gt;
&lt;br /&gt;
Jabber must be configured before use. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;(Could someone with working settings fill this out with example?)&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
*Host - The server to connect to to send jabber message notifications - full hostname (e.g. jabber.org)&lt;br /&gt;
*Server - XMPP host ID (can be left empty if the same as Jabber host)&lt;br /&gt;
*Username - The user name to use when connecting to the Jabber server&lt;br /&gt;
*Password - The password to use when connecting to the Jabber server&lt;br /&gt;
*Port - defaults to 5222&lt;br /&gt;
&lt;br /&gt;
===Email settings===&lt;br /&gt;
&lt;br /&gt;
====SMTP hosts====&lt;br /&gt;
&lt;br /&gt;
SMTP stands for Simple Mail Transfer Protocol. The SMTP host is an email relay that will take the email from Moodle and send it to users. You will need to set this only if your server does not allow mail relay. Otherwise, PHP will send out the mail using its built-in mail server. All the email sent by forums and other modules will be sent through this host.&lt;br /&gt;
&lt;br /&gt;
Most SMTP hosts make use of the default port 25 to for listening email traffic. However, occasionally a non-default port is used. In such cases, entering an SMTP host followed by a colon (i.e. :) and the port number should work. For example, if my SMTP host is myemailserver.com and it listens on port 587 or 465 (most common) instead of port 25 I would enter the SMTP host as myemailserver.com:587. Currently, the parameter check is too strict to allow this via the Moodle UI; however, MDL-15923 has been created and resolved to address this.  Until then, it can be set via phpMyAdmin using a query statement like:&lt;br /&gt;
&amp;lt;code mysql&amp;gt; UPDATE mdl_config SET value=&#039;myemailserver.com:587&#039; WHERE name=&#039;smtphosts&#039;;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====SMTP security====&lt;br /&gt;
&lt;br /&gt;
{{New features}}If the SMTP server requires a secure connection, the correct protocol type, SSL or TSL, may be set.&lt;br /&gt;
&lt;br /&gt;
====Configure HTTPD/SELinux on CentOS/Red Hat (RHEL) 6.2/6.1/6====&lt;br /&gt;
&lt;br /&gt;
Most new installations of Centos/Red Hat have SELinux activated and is configured by default, rather strictly. In this state SELinux does not allow Apache (httpd,phpmailer) to use the sendmail function and make any sort of network connection.&lt;br /&gt;
&lt;br /&gt;
If you continue to have problems with sending/authenticating use the &#039;&#039;&#039;getsebool&#039;&#039;&#039; command to find out if SELinux is one of the culprits. When the &#039;&#039;&#039;getsebool&#039;&#039;&#039; command is issued it returns &#039;&#039;on&#039;&#039; or &#039;&#039;off&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Type to check if your Apache is allowed to send mail and make a connection over the network&lt;br /&gt;
*&#039;&#039;getsebool httpd_can_sendmail&#039;&#039;&lt;br /&gt;
*&#039;&#039;getsebool httpd_can_network_connect&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
You will receive the values of &#039;&#039;httpd_can_sendmail&#039;&#039; and &#039;&#039;httpd_can_network_connect&#039;&#039;. Let&#039;s assume both options are off:&lt;br /&gt;
*&#039;&#039;httpd_can_sendmail --&amp;gt;off&#039;&#039;&lt;br /&gt;
*&#039;&#039;httpd_can_network_connect --&amp;gt;off&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
We need to change the values from &#039;&#039;off&#039;&#039; to &#039;&#039;on&#039;&#039; by using &#039;&#039;&#039;setsebool&#039;&#039;&#039;. Number 1 = on and 0 = off. Type the following:&lt;br /&gt;
*&#039;&#039;setsebool -P httpd_can_sendmail 1&#039;&#039;&lt;br /&gt;
*&#039;&#039;setsebool -P httpd_can_network_connect 1&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
You will not receive a response. You can double check if the &#039;&#039;&#039;setsebool&#039;&#039;&#039; command worked by using &#039;&#039;&#039;getsebool&#039;&#039;&#039; and see if the values changed from &#039;&#039;--&amp;gt;off&#039;&#039; to &#039;&#039;--&amp;gt;on&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
==Messaging capabilities==&lt;br /&gt;
&lt;br /&gt;
The following capabilities can be applied as permissions to make custom changes to roles affecting messaging.&lt;br /&gt;
&lt;br /&gt;
* [[Capabilities/moodle/course:bulkmessaging|course:bulkmessaging - Send a message to many people]]&lt;br /&gt;
* [[Capabilities/moodle/site:readallmessages|site:readallmessages - Read all messages on site]]&lt;br /&gt;
* [[Capabilities/moodle/site:sendmessage|site:sendmessage - Send messages to any user]]&lt;br /&gt;
* [[Capabilities/moodle/user:editownmessageprofile|user:editownmessageprofile - Edit own user messaging profile]]&lt;br /&gt;
* [[Capabilities/moodle/user:editmessageprofile|user:editmessageprofile - Edit user messaging profile]]&lt;br /&gt;
&lt;br /&gt;
=User profile settings=&lt;br /&gt;
&lt;br /&gt;
Users can receive message alerts for a number of different reasons and can also send and receive instant messages. How a user receives notification of incoming messages can be set in &#039;&#039;Settings &amp;gt; My profile &amp;gt; Messaging&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
This brings up a screen with check boxes where users can choose how they wish to be notified both when logged in and logged out. They can choose between a pop up,Jabber message or an email.&lt;br /&gt;
&lt;br /&gt;
[[File:Messagingnotifications.png]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; The choices a user has on this screen depends on their role and permissions within Moodle. For example, an administrator would see options for notifications about backups or important errors with the site. &lt;br /&gt;
&lt;br /&gt;
{{New features}}An administrator can receive update notifications for both Moodle core code and any contributed plugins installed on the site if the automatic check for available updates is enabled in &#039;&#039;Settings &amp;gt; Site Administration &amp;gt; Server &amp;gt; [[Notifications|Update notifications]]&#039;&#039;. &lt;br /&gt;
&lt;br /&gt;
===Pop up===&lt;br /&gt;
When a user is logged into Moodle, the message will pop up from the bottom right corner of the page. The user can choose to read the message immediately or to ignore it. If they choose to ignore it, the message returns until it is read.&lt;br /&gt;
&lt;br /&gt;
===Jabber===&lt;br /&gt;
If the Jabber server has been configured, Jabber messages can be sent.The Jabber ID can be set at the bottom of the screen.&lt;br /&gt;
&lt;br /&gt;
===Email===&lt;br /&gt;
{{New features}}Users cannot by default automatically choose to have notifications sent to a different email address from their official Moodle email. However, the administrator has the option to override this so that users can have an alternative email. This is done from &#039;&#039;Settings&amp;gt;Site administration&amp;gt;Advanced features&#039;&#039; and when activated, a box will appear for users to enter another email address.&lt;br /&gt;
&lt;br /&gt;
===Prevent non-contacts from messaging me===&lt;br /&gt;
Non-contacts can be prevented from sending messages by ticking this box in General Settings at the bottom of the screen.&lt;br /&gt;
&lt;br /&gt;
=See also=&lt;br /&gt;
&lt;br /&gt;
*[[:dev:Messaging 2.0|Messaging developer documentation]]&lt;br /&gt;
&lt;br /&gt;
[[de:Mitteilungen konfigurieren]]&lt;/div&gt;</summary>
		<author><name>Rwthornton</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/2x/ca/index.php?title=Messaging_settings&amp;diff=99593</id>
		<title>Messaging settings</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/2x/ca/index.php?title=Messaging_settings&amp;diff=99593"/>
		<updated>2012-07-27T22:22:57Z</updated>

		<summary type="html">&lt;p&gt;Rwthornton: /* List of message outputs */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Messaging}}&lt;br /&gt;
==Enabling / disabling instant messaging sitewide==&lt;br /&gt;
&lt;br /&gt;
The instant messaging system in Moodle is enabled by default. It may be disabled by a site administrator in &#039;&#039;Settings &amp;gt; Site administration &amp;gt; Advanced features &amp;gt; Enable messaging system&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
==Site administration settings==&lt;br /&gt;
&lt;br /&gt;
=== Manage Message outputs===&lt;br /&gt;
&lt;br /&gt;
There are three default types of output methods for messaging: popup notices, Jabber IM type messages, and messages sent as email.&lt;br /&gt;
&lt;br /&gt;
Each of these can be enabled or disabled independently by a site administrator in &#039;&#039;Settings &amp;gt; Site administration &amp;gt; Plugins &amp;gt; Message outputs &amp;gt; Manage message outputs&#039;&#039;. &lt;br /&gt;
&lt;br /&gt;
By default Popup and Email are both enabled, though email will only work of course if the site has been properly configured to deliver email. Jabber is off by default and needs to be configured first.&lt;br /&gt;
&lt;br /&gt;
[[File:moodle23-manage-message-outputs.png]]&lt;br /&gt;
&lt;br /&gt;
===Default message outputs===&lt;br /&gt;
&lt;br /&gt;
The user defaults for these are set in &#039;&#039;Settings &amp;gt; Site administration &amp;gt; Plugins &amp;gt; Message outputs &amp;gt; Default message outputs&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
====Permittedness====&lt;br /&gt;
&lt;br /&gt;
You can also set to what degree each type of message is enabled, and whether users are able to change these default settings in their profiles:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;Disallowed&#039;&#039; - the message of chosen type will never be delivered through the chosen output, user is not allowed to change the personal preference for this combination of message type and output.&lt;br /&gt;
* &#039;&#039;Permitted&#039;&#039; - the message of chosen type is allowed to be delivered through the chosen output, default preferences can be set by administrator using the checkboxes below, user can control this preference on the messaging preferences page (and change the suggested defaults the most preferable way).&lt;br /&gt;
* &#039;&#039;Forced&#039;&#039; - the message of chosen type will be delivered through the chosen output, user is not allowed to change the personal preference for this combination of message type and output. &lt;br /&gt;
&lt;br /&gt;
====Online/Not online====&lt;br /&gt;
&lt;br /&gt;
You can set whether each of these will be sent when the user is online through the messaging system interface available to users in their profiles, and/or whether each output is sent via email. &lt;br /&gt;
&lt;br /&gt;
==== List of message outputs====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Output Name !! Description !! Recipients&lt;br /&gt;
|-&lt;br /&gt;
| Assignment (2.2) notifications  || Student has submitted an assignment (in older 2.2 Assignment module) || Teacher&lt;br /&gt;
|-&lt;br /&gt;
| Assignment notifications || Student has submitted an assignment (in [https://docs.moodle.org/24/en/Assignment_FAQ 2.3+ version] of Assignment module)|| Teacher&lt;br /&gt;
|-&lt;br /&gt;
| Warning when your quiz attempt becomes overdue ||  || &lt;br /&gt;
|-&lt;br /&gt;
| Available update notifications || See [https://docs.moodle.org/dev/Available_update_notifications dev page] || Site admins&lt;br /&gt;
|-&lt;br /&gt;
| Backup notifications || Automated backup scheduled run || Site admins &lt;br /&gt;
|-&lt;br /&gt;
| Confirmation of your own quiz submissions || Notice your quiz was successfully submitted || Student&lt;br /&gt;
|-&lt;br /&gt;
| Course creation request approval notification || See [https://docs.moodle.org/24/en/Course_request#Course_requests|here] || &lt;br /&gt;
|-&lt;br /&gt;
| Course creation request notification || If enabled, to whom course requests go || Those defined in &#039;&#039;Site admin &amp;gt; Courses &amp;gt; Course request &amp;gt; Course request notification&#039;&#039; (??)&lt;br /&gt;
|-&lt;br /&gt;
| Course creation request rejection notification || Notice a requested course has been rejected || &lt;br /&gt;
|-&lt;br /&gt;
| Important errors with the site || || Site admins&lt;br /&gt;
|-&lt;br /&gt;
| Essay graded notification || Notify students a teacher has graded an essay question || Student &lt;br /&gt;
|-&lt;br /&gt;
| Personal messages between users || Using the Messaging interface in a user&#039;s Profile || Authenticated Users&lt;br /&gt;
|-&lt;br /&gt;
| Feedback reminder ||  || &lt;br /&gt;
|-&lt;br /&gt;
| Notices about minor problems || || Site admins&lt;br /&gt;
|-&lt;br /&gt;
| Subscribed forum posts || Master switch for forum subscription handling || Anyone subscribed to a forum&lt;br /&gt;
|-&lt;br /&gt;
| Feedback notifications ||  || &lt;br /&gt;
|-&lt;br /&gt;
| Notification of quiz submissions || Message that student has submitted a quiz || Teacher&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Except for &#039;&#039;&#039;Personal messages between users&#039;&#039;&#039; which refers to the interaction messaging tool on a user profile, the other messages are generated by events in Moodle.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Screenshot of all settings and their default settings:&lt;br /&gt;
&lt;br /&gt;
[[File:m32-messageoutputs-defaults.png|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
=== Jabber message===&lt;br /&gt;
&lt;br /&gt;
Jabber must be configured before use. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;(Could someone with working settings fill this out with example?)&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
*Host - The server to connect to to send jabber message notifications - full hostname (e.g. jabber.org)&lt;br /&gt;
*Server - XMPP host ID (can be left empty if the same as Jabber host)&lt;br /&gt;
*Username - The user name to use when connecting to the Jabber server&lt;br /&gt;
*Password - The password to use when connecting to the Jabber server&lt;br /&gt;
*Port - defaults to 5222&lt;br /&gt;
&lt;br /&gt;
===Email settings===&lt;br /&gt;
&lt;br /&gt;
====SMTP hosts====&lt;br /&gt;
&lt;br /&gt;
SMTP stands for Simple Mail Transfer Protocol. The SMTP host is an email relay that will take the email from Moodle and send it to users. You will need to set this only if your server does not allow mail relay. Otherwise, PHP will send out the mail using its built-in mail server. All the email sent by forums and other modules will be sent through this host.&lt;br /&gt;
&lt;br /&gt;
Most SMTP hosts make use of the default port 25 to for listening email traffic. However, occasionally a non-default port is used. In such cases, entering an SMTP host followed by a colon (i.e. :) and the port number should work. For example, if my SMTP host is myemailserver.com and it listens on port 587 or 465 (most common) instead of port 25 I would enter the SMTP host as myemailserver.com:587. Currently, the parameter check is too strict to allow this via the Moodle UI; however, MDL-15923 has been created and resolved to address this.  Until then, it can be set via phpMyAdmin using a query statement like:&lt;br /&gt;
&amp;lt;code mysql&amp;gt; UPDATE mdl_config SET value=&#039;myemailserver.com:587&#039; WHERE name=&#039;smtphosts&#039;;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====SMTP security====&lt;br /&gt;
&lt;br /&gt;
{{New features}}If the SMTP server requires a secure connection, the correct protocol type, SSL or TSL, may be set.&lt;br /&gt;
&lt;br /&gt;
====Configure HTTPD/SELinux on CentOS/Red Hat (RHEL) 6.2/6.1/6====&lt;br /&gt;
&lt;br /&gt;
Most new installations of Centos/Red Hat have SELinux activated and is configured by default, rather strictly. In this state SELinux does not allow Apache (httpd,phpmailer) to use the sendmail function and make any sort of network connection.&lt;br /&gt;
&lt;br /&gt;
If you continue to have problems with sending/authenticating use the &#039;&#039;&#039;getsebool&#039;&#039;&#039; command to find out if SELinux is one of the culprits. When the &#039;&#039;&#039;getsebool&#039;&#039;&#039; command is issued it returns &#039;&#039;on&#039;&#039; or &#039;&#039;off&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Type to check if your Apache is allowed to send mail and make a connection over the network&lt;br /&gt;
*&#039;&#039;getsebool httpd_can_sendmail&#039;&#039;&lt;br /&gt;
*&#039;&#039;getsebool httpd_can_network_connect&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
You will receive the values of &#039;&#039;httpd_can_sendmail&#039;&#039; and &#039;&#039;httpd_can_network_connect&#039;&#039;. Let&#039;s assume both options are off:&lt;br /&gt;
*&#039;&#039;httpd_can_sendmail --&amp;gt;off&#039;&#039;&lt;br /&gt;
*&#039;&#039;httpd_can_network_connect --&amp;gt;off&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
We need to change the values from &#039;&#039;off&#039;&#039; to &#039;&#039;on&#039;&#039; by using &#039;&#039;&#039;setsebool&#039;&#039;&#039;. Number 1 = on and 0 = off. Type the following:&lt;br /&gt;
*&#039;&#039;setsebool -P httpd_can_sendmail 1&#039;&#039;&lt;br /&gt;
*&#039;&#039;setsebool -P httpd_can_network_connect 1&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
You will not receive a response. You can double check if the &#039;&#039;&#039;setsebool&#039;&#039;&#039; command worked by using &#039;&#039;&#039;getsebool&#039;&#039;&#039; and see if the values changed from &#039;&#039;--&amp;gt;off&#039;&#039; to &#039;&#039;--&amp;gt;on&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
==Messaging capabilities==&lt;br /&gt;
&lt;br /&gt;
The following capabilities can be applied as permissions to make custom changes to roles affecting messaging.&lt;br /&gt;
&lt;br /&gt;
* [[Capabilities/moodle/course:bulkmessaging|course:bulkmessaging - Send a message to many people]]&lt;br /&gt;
* [[Capabilities/moodle/site:readallmessages|site:readallmessages - Read all messages on site]]&lt;br /&gt;
* [[Capabilities/moodle/site:sendmessage|site:sendmessage - Send messages to any user]]&lt;br /&gt;
* [[Capabilities/moodle/user:editownmessageprofile|user:editownmessageprofile - Edit own user messaging profile]]&lt;br /&gt;
* [[Capabilities/moodle/user:editmessageprofile|user:editmessageprofile - Edit user messaging profile]]&lt;br /&gt;
&lt;br /&gt;
=User profile settings=&lt;br /&gt;
&lt;br /&gt;
Users can receive message alerts for a number of different reasons and can also send and receive instant messages. How a user receives notification of incoming messages can be set in &#039;&#039;Settings &amp;gt; My profile &amp;gt; Messaging&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
This brings up a screen with check boxes where users can choose how they wish to be notified both when logged in and logged out. They can choose between a pop up,Jabber message or an email.&lt;br /&gt;
&lt;br /&gt;
[[File:Messagingnotifications.png]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; The choices a user has on this screen depends on their role and permissions within Moodle. For example, an administrator would see options for notifications about backups or important errors with the site. &lt;br /&gt;
&lt;br /&gt;
{{New features}}An administrator can receive update notifications for both Moodle core code and any contributed plugins installed on the site if the automatic check for available updates is enabled in &#039;&#039;Settings &amp;gt; Site Administration &amp;gt; Server &amp;gt; [[Notifications|Update notifications]]&#039;&#039;. &lt;br /&gt;
&lt;br /&gt;
===Pop up===&lt;br /&gt;
When a user is logged into Moodle, the message will pop up from the bottom right corner of the page. The user can choose to read the message immediately or to ignore it. If they choose to ignore it, the message returns until it is read.&lt;br /&gt;
&lt;br /&gt;
===Jabber===&lt;br /&gt;
If the Jabber server has been configured, Jabber messages can be sent.The Jabber ID can be set at the bottom of the screen.&lt;br /&gt;
&lt;br /&gt;
===Email===&lt;br /&gt;
{{New features}}Users cannot by default automatically choose to have notifications sent to a different email address from their official Moodle email. However, the administrator has the option to override this so that users can have an alternative email. This is done from &#039;&#039;Settings&amp;gt;Site administration&amp;gt;Advanced features&#039;&#039; and when activated, a box will appear for users to enter another email address.&lt;br /&gt;
&lt;br /&gt;
===Prevent non-contacts from messaging me===&lt;br /&gt;
Non-contacts can be prevented from sending messages by ticking this box in General Settings at the bottom of the screen.&lt;br /&gt;
&lt;br /&gt;
=See also=&lt;br /&gt;
&lt;br /&gt;
*[[:dev:Messaging 2.0|Messaging developer documentation]]&lt;br /&gt;
&lt;br /&gt;
[[de:Mitteilungen konfigurieren]]&lt;/div&gt;</summary>
		<author><name>Rwthornton</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/2x/ca/index.php?title=Messaging_settings&amp;diff=99592</id>
		<title>Messaging settings</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/2x/ca/index.php?title=Messaging_settings&amp;diff=99592"/>
		<updated>2012-07-27T22:21:23Z</updated>

		<summary type="html">&lt;p&gt;Rwthornton: /* List of message outputs */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Messaging}}&lt;br /&gt;
==Enabling / disabling instant messaging sitewide==&lt;br /&gt;
&lt;br /&gt;
The instant messaging system in Moodle is enabled by default. It may be disabled by a site administrator in &#039;&#039;Settings &amp;gt; Site administration &amp;gt; Advanced features &amp;gt; Enable messaging system&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
==Site administration settings==&lt;br /&gt;
&lt;br /&gt;
=== Manage Message outputs===&lt;br /&gt;
&lt;br /&gt;
There are three default types of output methods for messaging: popup notices, Jabber IM type messages, and messages sent as email.&lt;br /&gt;
&lt;br /&gt;
Each of these can be enabled or disabled independently by a site administrator in &#039;&#039;Settings &amp;gt; Site administration &amp;gt; Plugins &amp;gt; Message outputs &amp;gt; Manage message outputs&#039;&#039;. &lt;br /&gt;
&lt;br /&gt;
By default Popup and Email are both enabled, though email will only work of course if the site has been properly configured to deliver email. Jabber is off by default and needs to be configured first.&lt;br /&gt;
&lt;br /&gt;
[[File:moodle23-manage-message-outputs.png]]&lt;br /&gt;
&lt;br /&gt;
===Default message outputs===&lt;br /&gt;
&lt;br /&gt;
The user defaults for these are set in &#039;&#039;Settings &amp;gt; Site administration &amp;gt; Plugins &amp;gt; Message outputs &amp;gt; Default message outputs&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
====Permittedness====&lt;br /&gt;
&lt;br /&gt;
You can also set to what degree each type of message is enabled, and whether users are able to change these default settings in their profiles:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;Disallowed&#039;&#039; - the message of chosen type will never be delivered through the chosen output, user is not allowed to change the personal preference for this combination of message type and output.&lt;br /&gt;
* &#039;&#039;Permitted&#039;&#039; - the message of chosen type is allowed to be delivered through the chosen output, default preferences can be set by administrator using the checkboxes below, user can control this preference on the messaging preferences page (and change the suggested defaults the most preferable way).&lt;br /&gt;
* &#039;&#039;Forced&#039;&#039; - the message of chosen type will be delivered through the chosen output, user is not allowed to change the personal preference for this combination of message type and output. &lt;br /&gt;
&lt;br /&gt;
====Online/Not online====&lt;br /&gt;
&lt;br /&gt;
You can set whether each of these will be sent when the user is online through the messaging system interface available to users in their profiles, and/or whether each output is sent via email. &lt;br /&gt;
&lt;br /&gt;
==== List of message outputs====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Output Name !! Description !! Recipients&lt;br /&gt;
|-&lt;br /&gt;
| Assignment (2.2) notifications  || Student has submitted an assignment (in older 2.2 Assignment module) || Teacher&lt;br /&gt;
|-&lt;br /&gt;
| Assignment notifications || Student has submitted an assignment (in [https://docs.moodle.org/24/en/Assignment_FAQ 2.3+ version] of Assignment module)|| Teacher&lt;br /&gt;
|-&lt;br /&gt;
| Warning when your quiz attempt becomes overdue ||  || &lt;br /&gt;
|-&lt;br /&gt;
| Available update notifications || See [https://docs.moodle.org/dev/Available_update_notifications dev page] || Site admins&lt;br /&gt;
|-&lt;br /&gt;
| Backup notifications || Automated backup scheduled run || Site admins &lt;br /&gt;
|-&lt;br /&gt;
| Confirmation of your own quiz submissions || Notice your quiz was successfully submitted || Student&lt;br /&gt;
|-&lt;br /&gt;
| Course creation request approval notification || See [https://docs.moodle.org/24/en/Course_request#Course_requests|here] || &lt;br /&gt;
| Course creation request notification || If enabled, to whom course requests go || Those defined in &#039;&#039;Site admin &amp;gt; Courses &amp;gt; Course request &amp;gt; Course request notification&#039;&#039; (??)&lt;br /&gt;
|-&lt;br /&gt;
| Course creation request rejection notification || Notice a requested course has been rejected || &lt;br /&gt;
|-&lt;br /&gt;
| Important errors with the site || || Site admins&lt;br /&gt;
|-&lt;br /&gt;
| Essay graded notification || Notify students a teacher has graded an essay question || Student &lt;br /&gt;
|-&lt;br /&gt;
| Personal messages between users || Using the Messaging interface in a user&#039;s Profile || Authenticated Users&lt;br /&gt;
|-&lt;br /&gt;
| Feedback reminder ||  || &lt;br /&gt;
|-&lt;br /&gt;
| Notices about minor problems || || Site admins&lt;br /&gt;
|-&lt;br /&gt;
| Subscribed forum posts || Master switch for forum subscription handling || Anyone subscribed to a forum&lt;br /&gt;
|-&lt;br /&gt;
| Feedback notifications ||  || &lt;br /&gt;
|-&lt;br /&gt;
| Notification of quiz submissions || Message that student has submitted a quiz || Teacher&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Except for &#039;&#039;&#039;Personal messages between users&#039;&#039;&#039; which refers to the interaction messaging tool on a user profile, the other messages are generated by events in Moodle.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Screenshot of all settings and their default settings:&lt;br /&gt;
&lt;br /&gt;
[[File:m32-messageoutputs-defaults.png|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
=== Jabber message===&lt;br /&gt;
&lt;br /&gt;
Jabber must be configured before use. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;(Could someone with working settings fill this out with example?)&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
*Host - The server to connect to to send jabber message notifications - full hostname (e.g. jabber.org)&lt;br /&gt;
*Server - XMPP host ID (can be left empty if the same as Jabber host)&lt;br /&gt;
*Username - The user name to use when connecting to the Jabber server&lt;br /&gt;
*Password - The password to use when connecting to the Jabber server&lt;br /&gt;
*Port - defaults to 5222&lt;br /&gt;
&lt;br /&gt;
===Email settings===&lt;br /&gt;
&lt;br /&gt;
====SMTP hosts====&lt;br /&gt;
&lt;br /&gt;
SMTP stands for Simple Mail Transfer Protocol. The SMTP host is an email relay that will take the email from Moodle and send it to users. You will need to set this only if your server does not allow mail relay. Otherwise, PHP will send out the mail using its built-in mail server. All the email sent by forums and other modules will be sent through this host.&lt;br /&gt;
&lt;br /&gt;
Most SMTP hosts make use of the default port 25 to for listening email traffic. However, occasionally a non-default port is used. In such cases, entering an SMTP host followed by a colon (i.e. :) and the port number should work. For example, if my SMTP host is myemailserver.com and it listens on port 587 or 465 (most common) instead of port 25 I would enter the SMTP host as myemailserver.com:587. Currently, the parameter check is too strict to allow this via the Moodle UI; however, MDL-15923 has been created and resolved to address this.  Until then, it can be set via phpMyAdmin using a query statement like:&lt;br /&gt;
&amp;lt;code mysql&amp;gt; UPDATE mdl_config SET value=&#039;myemailserver.com:587&#039; WHERE name=&#039;smtphosts&#039;;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====SMTP security====&lt;br /&gt;
&lt;br /&gt;
{{New features}}If the SMTP server requires a secure connection, the correct protocol type, SSL or TSL, may be set.&lt;br /&gt;
&lt;br /&gt;
====Configure HTTPD/SELinux on CentOS/Red Hat (RHEL) 6.2/6.1/6====&lt;br /&gt;
&lt;br /&gt;
Most new installations of Centos/Red Hat have SELinux activated and is configured by default, rather strictly. In this state SELinux does not allow Apache (httpd,phpmailer) to use the sendmail function and make any sort of network connection.&lt;br /&gt;
&lt;br /&gt;
If you continue to have problems with sending/authenticating use the &#039;&#039;&#039;getsebool&#039;&#039;&#039; command to find out if SELinux is one of the culprits. When the &#039;&#039;&#039;getsebool&#039;&#039;&#039; command is issued it returns &#039;&#039;on&#039;&#039; or &#039;&#039;off&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Type to check if your Apache is allowed to send mail and make a connection over the network&lt;br /&gt;
*&#039;&#039;getsebool httpd_can_sendmail&#039;&#039;&lt;br /&gt;
*&#039;&#039;getsebool httpd_can_network_connect&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
You will receive the values of &#039;&#039;httpd_can_sendmail&#039;&#039; and &#039;&#039;httpd_can_network_connect&#039;&#039;. Let&#039;s assume both options are off:&lt;br /&gt;
*&#039;&#039;httpd_can_sendmail --&amp;gt;off&#039;&#039;&lt;br /&gt;
*&#039;&#039;httpd_can_network_connect --&amp;gt;off&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
We need to change the values from &#039;&#039;off&#039;&#039; to &#039;&#039;on&#039;&#039; by using &#039;&#039;&#039;setsebool&#039;&#039;&#039;. Number 1 = on and 0 = off. Type the following:&lt;br /&gt;
*&#039;&#039;setsebool -P httpd_can_sendmail 1&#039;&#039;&lt;br /&gt;
*&#039;&#039;setsebool -P httpd_can_network_connect 1&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
You will not receive a response. You can double check if the &#039;&#039;&#039;setsebool&#039;&#039;&#039; command worked by using &#039;&#039;&#039;getsebool&#039;&#039;&#039; and see if the values changed from &#039;&#039;--&amp;gt;off&#039;&#039; to &#039;&#039;--&amp;gt;on&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
==Messaging capabilities==&lt;br /&gt;
&lt;br /&gt;
The following capabilities can be applied as permissions to make custom changes to roles affecting messaging.&lt;br /&gt;
&lt;br /&gt;
* [[Capabilities/moodle/course:bulkmessaging|course:bulkmessaging - Send a message to many people]]&lt;br /&gt;
* [[Capabilities/moodle/site:readallmessages|site:readallmessages - Read all messages on site]]&lt;br /&gt;
* [[Capabilities/moodle/site:sendmessage|site:sendmessage - Send messages to any user]]&lt;br /&gt;
* [[Capabilities/moodle/user:editownmessageprofile|user:editownmessageprofile - Edit own user messaging profile]]&lt;br /&gt;
* [[Capabilities/moodle/user:editmessageprofile|user:editmessageprofile - Edit user messaging profile]]&lt;br /&gt;
&lt;br /&gt;
=User profile settings=&lt;br /&gt;
&lt;br /&gt;
Users can receive message alerts for a number of different reasons and can also send and receive instant messages. How a user receives notification of incoming messages can be set in &#039;&#039;Settings &amp;gt; My profile &amp;gt; Messaging&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
This brings up a screen with check boxes where users can choose how they wish to be notified both when logged in and logged out. They can choose between a pop up,Jabber message or an email.&lt;br /&gt;
&lt;br /&gt;
[[File:Messagingnotifications.png]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; The choices a user has on this screen depends on their role and permissions within Moodle. For example, an administrator would see options for notifications about backups or important errors with the site. &lt;br /&gt;
&lt;br /&gt;
{{New features}}An administrator can receive update notifications for both Moodle core code and any contributed plugins installed on the site if the automatic check for available updates is enabled in &#039;&#039;Settings &amp;gt; Site Administration &amp;gt; Server &amp;gt; [[Notifications|Update notifications]]&#039;&#039;. &lt;br /&gt;
&lt;br /&gt;
===Pop up===&lt;br /&gt;
When a user is logged into Moodle, the message will pop up from the bottom right corner of the page. The user can choose to read the message immediately or to ignore it. If they choose to ignore it, the message returns until it is read.&lt;br /&gt;
&lt;br /&gt;
===Jabber===&lt;br /&gt;
If the Jabber server has been configured, Jabber messages can be sent.The Jabber ID can be set at the bottom of the screen.&lt;br /&gt;
&lt;br /&gt;
===Email===&lt;br /&gt;
{{New features}}Users cannot by default automatically choose to have notifications sent to a different email address from their official Moodle email. However, the administrator has the option to override this so that users can have an alternative email. This is done from &#039;&#039;Settings&amp;gt;Site administration&amp;gt;Advanced features&#039;&#039; and when activated, a box will appear for users to enter another email address.&lt;br /&gt;
&lt;br /&gt;
===Prevent non-contacts from messaging me===&lt;br /&gt;
Non-contacts can be prevented from sending messages by ticking this box in General Settings at the bottom of the screen.&lt;br /&gt;
&lt;br /&gt;
=See also=&lt;br /&gt;
&lt;br /&gt;
*[[:dev:Messaging 2.0|Messaging developer documentation]]&lt;br /&gt;
&lt;br /&gt;
[[de:Mitteilungen konfigurieren]]&lt;/div&gt;</summary>
		<author><name>Rwthornton</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/2x/ca/index.php?title=Messaging_settings&amp;diff=99591</id>
		<title>Messaging settings</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/2x/ca/index.php?title=Messaging_settings&amp;diff=99591"/>
		<updated>2012-07-27T22:08:21Z</updated>

		<summary type="html">&lt;p&gt;Rwthornton: /* Messaging capabilities */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Messaging}}&lt;br /&gt;
==Enabling / disabling instant messaging sitewide==&lt;br /&gt;
&lt;br /&gt;
The instant messaging system in Moodle is enabled by default. It may be disabled by a site administrator in &#039;&#039;Settings &amp;gt; Site administration &amp;gt; Advanced features &amp;gt; Enable messaging system&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
==Site administration settings==&lt;br /&gt;
&lt;br /&gt;
=== Manage Message outputs===&lt;br /&gt;
&lt;br /&gt;
There are three default types of output methods for messaging: popup notices, Jabber IM type messages, and messages sent as email.&lt;br /&gt;
&lt;br /&gt;
Each of these can be enabled or disabled independently by a site administrator in &#039;&#039;Settings &amp;gt; Site administration &amp;gt; Plugins &amp;gt; Message outputs &amp;gt; Manage message outputs&#039;&#039;. &lt;br /&gt;
&lt;br /&gt;
By default Popup and Email are both enabled, though email will only work of course if the site has been properly configured to deliver email. Jabber is off by default and needs to be configured first.&lt;br /&gt;
&lt;br /&gt;
[[File:moodle23-manage-message-outputs.png]]&lt;br /&gt;
&lt;br /&gt;
===Default message outputs===&lt;br /&gt;
&lt;br /&gt;
The user defaults for these are set in &#039;&#039;Settings &amp;gt; Site administration &amp;gt; Plugins &amp;gt; Message outputs &amp;gt; Default message outputs&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
====Permittedness====&lt;br /&gt;
&lt;br /&gt;
You can also set to what degree each type of message is enabled, and whether users are able to change these default settings in their profiles:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;Disallowed&#039;&#039; - the message of chosen type will never be delivered through the chosen output, user is not allowed to change the personal preference for this combination of message type and output.&lt;br /&gt;
* &#039;&#039;Permitted&#039;&#039; - the message of chosen type is allowed to be delivered through the chosen output, default preferences can be set by administrator using the checkboxes below, user can control this preference on the messaging preferences page (and change the suggested defaults the most preferable way).&lt;br /&gt;
* &#039;&#039;Forced&#039;&#039; - the message of chosen type will be delivered through the chosen output, user is not allowed to change the personal preference for this combination of message type and output. &lt;br /&gt;
&lt;br /&gt;
====Online/Not online====&lt;br /&gt;
&lt;br /&gt;
You can set whether each of these will be sent when the user is online through the messaging system interface available to users in their profiles, and/or whether each output is sent via email. &lt;br /&gt;
&lt;br /&gt;
==== List of message outputs====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Output Name !! Description !! Recipients&lt;br /&gt;
|-&lt;br /&gt;
| Assignment (2.2) notifications  || Student has submitted an assignment (in older 2.2 Assignment module) || Teacher&lt;br /&gt;
|-&lt;br /&gt;
| Assignment notifications || Student has submitted an assignment (in [https://docs.moodle.org/24/en/Assignment_FAQ 2.3+ version] of Assignment module)|| Teacher&lt;br /&gt;
|-&lt;br /&gt;
| Warning when your quiz attempt becomes overdue ||  || &lt;br /&gt;
|-&lt;br /&gt;
| Available update notifications || See [https://docs.moodle.org/dev/Available_update_notifications dev page] || Site admins&lt;br /&gt;
|-&lt;br /&gt;
| Backup notifications || || &lt;br /&gt;
|-&lt;br /&gt;
| Confirmation of your own quiz submissions || Extra notice your quiz was successfully submitted || Student&lt;br /&gt;
|-&lt;br /&gt;
| Course creation request approval notification || Notice a requested course has been approved - See [https://docs.moodle.org/24/en/Course_request#Course_requests|here] || user who request course&lt;br /&gt;
|-&lt;br /&gt;
| Course creation request notification || If enabled, to whom course requests go || Those defined in &#039;&#039;Site admin &amp;gt; Courses &amp;gt; Course request &amp;gt; Course request notification&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
| Course creation request rejection notification || Notice a requested course has been rejected || User who request course&lt;br /&gt;
|-&lt;br /&gt;
| Important errors with the site || || &lt;br /&gt;
|-&lt;br /&gt;
| Essay graded notification ||  || &lt;br /&gt;
|-&lt;br /&gt;
| Personal messages between users || Using the Messaging interface in a user&#039;s Profile || Authenticated Users&lt;br /&gt;
|-&lt;br /&gt;
| Feedback reminder ||  || &lt;br /&gt;
|-&lt;br /&gt;
| Notices about minor problems ||  || &lt;br /&gt;
|-&lt;br /&gt;
| Subscribed forum posts ||  || Anyone subscribe to a forum&lt;br /&gt;
|-&lt;br /&gt;
| Feedback notifications ||  || &lt;br /&gt;
|-&lt;br /&gt;
| Notification of quiz submissions || Message that student has finished and submitted a quiz || Teacher&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Except for &#039;&#039;&#039;Personal messages between users&#039;&#039;&#039; which refers to the interaction messaging tool on a user profile, the other messages are generated by events in Moodle.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Screenshot of all settings and their default settings:&lt;br /&gt;
&lt;br /&gt;
[[File:m32-messageoutputs-defaults.png|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
=== Jabber message===&lt;br /&gt;
&lt;br /&gt;
Jabber must be configured before use. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;(Could someone with working settings fill this out with example?)&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
*Host - The server to connect to to send jabber message notifications - full hostname (e.g. jabber.org)&lt;br /&gt;
*Server - XMPP host ID (can be left empty if the same as Jabber host)&lt;br /&gt;
*Username - The user name to use when connecting to the Jabber server&lt;br /&gt;
*Password - The password to use when connecting to the Jabber server&lt;br /&gt;
*Port - defaults to 5222&lt;br /&gt;
&lt;br /&gt;
===Email settings===&lt;br /&gt;
&lt;br /&gt;
====SMTP hosts====&lt;br /&gt;
&lt;br /&gt;
SMTP stands for Simple Mail Transfer Protocol. The SMTP host is an email relay that will take the email from Moodle and send it to users. You will need to set this only if your server does not allow mail relay. Otherwise, PHP will send out the mail using its built-in mail server. All the email sent by forums and other modules will be sent through this host.&lt;br /&gt;
&lt;br /&gt;
Most SMTP hosts make use of the default port 25 to for listening email traffic. However, occasionally a non-default port is used. In such cases, entering an SMTP host followed by a colon (i.e. :) and the port number should work. For example, if my SMTP host is myemailserver.com and it listens on port 587 or 465 (most common) instead of port 25 I would enter the SMTP host as myemailserver.com:587. Currently, the parameter check is too strict to allow this via the Moodle UI; however, MDL-15923 has been created and resolved to address this.  Until then, it can be set via phpMyAdmin using a query statement like:&lt;br /&gt;
&amp;lt;code mysql&amp;gt; UPDATE mdl_config SET value=&#039;myemailserver.com:587&#039; WHERE name=&#039;smtphosts&#039;;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====SMTP security====&lt;br /&gt;
&lt;br /&gt;
{{New features}}If the SMTP server requires a secure connection, the correct protocol type, SSL or TSL, may be set.&lt;br /&gt;
&lt;br /&gt;
====Configure HTTPD/SELinux on CentOS/Red Hat (RHEL) 6.2/6.1/6====&lt;br /&gt;
&lt;br /&gt;
Most new installations of Centos/Red Hat have SELinux activated and is configured by default, rather strictly. In this state SELinux does not allow Apache (httpd,phpmailer) to use the sendmail function and make any sort of network connection.&lt;br /&gt;
&lt;br /&gt;
If you continue to have problems with sending/authenticating use the &#039;&#039;&#039;getsebool&#039;&#039;&#039; command to find out if SELinux is one of the culprits. When the &#039;&#039;&#039;getsebool&#039;&#039;&#039; command is issued it returns &#039;&#039;on&#039;&#039; or &#039;&#039;off&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Type to check if your Apache is allowed to send mail and make a connection over the network&lt;br /&gt;
*&#039;&#039;getsebool httpd_can_sendmail&#039;&#039;&lt;br /&gt;
*&#039;&#039;getsebool httpd_can_network_connect&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
You will receive the values of &#039;&#039;httpd_can_sendmail&#039;&#039; and &#039;&#039;httpd_can_network_connect&#039;&#039;. Let&#039;s assume both options are off:&lt;br /&gt;
*&#039;&#039;httpd_can_sendmail --&amp;gt;off&#039;&#039;&lt;br /&gt;
*&#039;&#039;httpd_can_network_connect --&amp;gt;off&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
We need to change the values from &#039;&#039;off&#039;&#039; to &#039;&#039;on&#039;&#039; by using &#039;&#039;&#039;setsebool&#039;&#039;&#039;. Number 1 = on and 0 = off. Type the following:&lt;br /&gt;
*&#039;&#039;setsebool -P httpd_can_sendmail 1&#039;&#039;&lt;br /&gt;
*&#039;&#039;setsebool -P httpd_can_network_connect 1&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
You will not receive a response. You can double check if the &#039;&#039;&#039;setsebool&#039;&#039;&#039; command worked by using &#039;&#039;&#039;getsebool&#039;&#039;&#039; and see if the values changed from &#039;&#039;--&amp;gt;off&#039;&#039; to &#039;&#039;--&amp;gt;on&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
==Messaging capabilities==&lt;br /&gt;
&lt;br /&gt;
The following capabilities can be applied as permissions to make custom changes to roles affecting messaging.&lt;br /&gt;
&lt;br /&gt;
* [[Capabilities/moodle/course:bulkmessaging|course:bulkmessaging - Send a message to many people]]&lt;br /&gt;
* [[Capabilities/moodle/site:readallmessages|site:readallmessages - Read all messages on site]]&lt;br /&gt;
* [[Capabilities/moodle/site:sendmessage|site:sendmessage - Send messages to any user]]&lt;br /&gt;
* [[Capabilities/moodle/user:editownmessageprofile|user:editownmessageprofile - Edit own user messaging profile]]&lt;br /&gt;
* [[Capabilities/moodle/user:editmessageprofile|user:editmessageprofile - Edit user messaging profile]]&lt;br /&gt;
&lt;br /&gt;
=User profile settings=&lt;br /&gt;
&lt;br /&gt;
Users can receive message alerts for a number of different reasons and can also send and receive instant messages. How a user receives notification of incoming messages can be set in &#039;&#039;Settings &amp;gt; My profile &amp;gt; Messaging&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
This brings up a screen with check boxes where users can choose how they wish to be notified both when logged in and logged out. They can choose between a pop up,Jabber message or an email.&lt;br /&gt;
&lt;br /&gt;
[[File:Messagingnotifications.png]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; The choices a user has on this screen depends on their role and permissions within Moodle. For example, an administrator would see options for notifications about backups or important errors with the site. &lt;br /&gt;
&lt;br /&gt;
{{New features}}An administrator can receive update notifications for both Moodle core code and any contributed plugins installed on the site if the automatic check for available updates is enabled in &#039;&#039;Settings &amp;gt; Site Administration &amp;gt; Server &amp;gt; [[Notifications|Update notifications]]&#039;&#039;. &lt;br /&gt;
&lt;br /&gt;
===Pop up===&lt;br /&gt;
When a user is logged into Moodle, the message will pop up from the bottom right corner of the page. The user can choose to read the message immediately or to ignore it. If they choose to ignore it, the message returns until it is read.&lt;br /&gt;
&lt;br /&gt;
===Jabber===&lt;br /&gt;
If the Jabber server has been configured, Jabber messages can be sent.The Jabber ID can be set at the bottom of the screen.&lt;br /&gt;
&lt;br /&gt;
===Email===&lt;br /&gt;
{{New features}}Users cannot by default automatically choose to have notifications sent to a different email address from their official Moodle email. However, the administrator has the option to override this so that users can have an alternative email. This is done from &#039;&#039;Settings&amp;gt;Site administration&amp;gt;Advanced features&#039;&#039; and when activated, a box will appear for users to enter another email address.&lt;br /&gt;
&lt;br /&gt;
===Prevent non-contacts from messaging me===&lt;br /&gt;
Non-contacts can be prevented from sending messages by ticking this box in General Settings at the bottom of the screen.&lt;br /&gt;
&lt;br /&gt;
=See also=&lt;br /&gt;
&lt;br /&gt;
*[[:dev:Messaging 2.0|Messaging developer documentation]]&lt;br /&gt;
&lt;br /&gt;
[[de:Mitteilungen konfigurieren]]&lt;/div&gt;</summary>
		<author><name>Rwthornton</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/2x/ca/index.php?title=Messaging_settings&amp;diff=99590</id>
		<title>Messaging settings</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/2x/ca/index.php?title=Messaging_settings&amp;diff=99590"/>
		<updated>2012-07-27T22:07:05Z</updated>

		<summary type="html">&lt;p&gt;Rwthornton: /* List of message outputs */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Messaging}}&lt;br /&gt;
==Enabling / disabling instant messaging sitewide==&lt;br /&gt;
&lt;br /&gt;
The instant messaging system in Moodle is enabled by default. It may be disabled by a site administrator in &#039;&#039;Settings &amp;gt; Site administration &amp;gt; Advanced features &amp;gt; Enable messaging system&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
==Site administration settings==&lt;br /&gt;
&lt;br /&gt;
=== Manage Message outputs===&lt;br /&gt;
&lt;br /&gt;
There are three default types of output methods for messaging: popup notices, Jabber IM type messages, and messages sent as email.&lt;br /&gt;
&lt;br /&gt;
Each of these can be enabled or disabled independently by a site administrator in &#039;&#039;Settings &amp;gt; Site administration &amp;gt; Plugins &amp;gt; Message outputs &amp;gt; Manage message outputs&#039;&#039;. &lt;br /&gt;
&lt;br /&gt;
By default Popup and Email are both enabled, though email will only work of course if the site has been properly configured to deliver email. Jabber is off by default and needs to be configured first.&lt;br /&gt;
&lt;br /&gt;
[[File:moodle23-manage-message-outputs.png]]&lt;br /&gt;
&lt;br /&gt;
===Default message outputs===&lt;br /&gt;
&lt;br /&gt;
The user defaults for these are set in &#039;&#039;Settings &amp;gt; Site administration &amp;gt; Plugins &amp;gt; Message outputs &amp;gt; Default message outputs&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
====Permittedness====&lt;br /&gt;
&lt;br /&gt;
You can also set to what degree each type of message is enabled, and whether users are able to change these default settings in their profiles:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;Disallowed&#039;&#039; - the message of chosen type will never be delivered through the chosen output, user is not allowed to change the personal preference for this combination of message type and output.&lt;br /&gt;
* &#039;&#039;Permitted&#039;&#039; - the message of chosen type is allowed to be delivered through the chosen output, default preferences can be set by administrator using the checkboxes below, user can control this preference on the messaging preferences page (and change the suggested defaults the most preferable way).&lt;br /&gt;
* &#039;&#039;Forced&#039;&#039; - the message of chosen type will be delivered through the chosen output, user is not allowed to change the personal preference for this combination of message type and output. &lt;br /&gt;
&lt;br /&gt;
====Online/Not online====&lt;br /&gt;
&lt;br /&gt;
You can set whether each of these will be sent when the user is online through the messaging system interface available to users in their profiles, and/or whether each output is sent via email. &lt;br /&gt;
&lt;br /&gt;
==== List of message outputs====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Output Name !! Description !! Recipients&lt;br /&gt;
|-&lt;br /&gt;
| Assignment (2.2) notifications  || Student has submitted an assignment (in older 2.2 Assignment module) || Teacher&lt;br /&gt;
|-&lt;br /&gt;
| Assignment notifications || Student has submitted an assignment (in [https://docs.moodle.org/24/en/Assignment_FAQ 2.3+ version] of Assignment module)|| Teacher&lt;br /&gt;
|-&lt;br /&gt;
| Warning when your quiz attempt becomes overdue ||  || &lt;br /&gt;
|-&lt;br /&gt;
| Available update notifications || See [https://docs.moodle.org/dev/Available_update_notifications dev page] || Site admins&lt;br /&gt;
|-&lt;br /&gt;
| Backup notifications || || &lt;br /&gt;
|-&lt;br /&gt;
| Confirmation of your own quiz submissions || Extra notice your quiz was successfully submitted || Student&lt;br /&gt;
|-&lt;br /&gt;
| Course creation request approval notification || Notice a requested course has been approved - See [https://docs.moodle.org/24/en/Course_request#Course_requests|here] || user who request course&lt;br /&gt;
|-&lt;br /&gt;
| Course creation request notification || If enabled, to whom course requests go || Those defined in &#039;&#039;Site admin &amp;gt; Courses &amp;gt; Course request &amp;gt; Course request notification&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
| Course creation request rejection notification || Notice a requested course has been rejected || User who request course&lt;br /&gt;
|-&lt;br /&gt;
| Important errors with the site || || &lt;br /&gt;
|-&lt;br /&gt;
| Essay graded notification ||  || &lt;br /&gt;
|-&lt;br /&gt;
| Personal messages between users || Using the Messaging interface in a user&#039;s Profile || Authenticated Users&lt;br /&gt;
|-&lt;br /&gt;
| Feedback reminder ||  || &lt;br /&gt;
|-&lt;br /&gt;
| Notices about minor problems ||  || &lt;br /&gt;
|-&lt;br /&gt;
| Subscribed forum posts ||  || Anyone subscribe to a forum&lt;br /&gt;
|-&lt;br /&gt;
| Feedback notifications ||  || &lt;br /&gt;
|-&lt;br /&gt;
| Notification of quiz submissions || Message that student has finished and submitted a quiz || Teacher&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Except for &#039;&#039;&#039;Personal messages between users&#039;&#039;&#039; which refers to the interaction messaging tool on a user profile, the other messages are generated by events in Moodle.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Screenshot of all settings and their default settings:&lt;br /&gt;
&lt;br /&gt;
[[File:m32-messageoutputs-defaults.png|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
=== Jabber message===&lt;br /&gt;
&lt;br /&gt;
Jabber must be configured before use. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;(Could someone with working settings fill this out with example?)&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
*Host - The server to connect to to send jabber message notifications - full hostname (e.g. jabber.org)&lt;br /&gt;
*Server - XMPP host ID (can be left empty if the same as Jabber host)&lt;br /&gt;
*Username - The user name to use when connecting to the Jabber server&lt;br /&gt;
*Password - The password to use when connecting to the Jabber server&lt;br /&gt;
*Port - defaults to 5222&lt;br /&gt;
&lt;br /&gt;
===Email settings===&lt;br /&gt;
&lt;br /&gt;
====SMTP hosts====&lt;br /&gt;
&lt;br /&gt;
SMTP stands for Simple Mail Transfer Protocol. The SMTP host is an email relay that will take the email from Moodle and send it to users. You will need to set this only if your server does not allow mail relay. Otherwise, PHP will send out the mail using its built-in mail server. All the email sent by forums and other modules will be sent through this host.&lt;br /&gt;
&lt;br /&gt;
Most SMTP hosts make use of the default port 25 to for listening email traffic. However, occasionally a non-default port is used. In such cases, entering an SMTP host followed by a colon (i.e. :) and the port number should work. For example, if my SMTP host is myemailserver.com and it listens on port 587 or 465 (most common) instead of port 25 I would enter the SMTP host as myemailserver.com:587. Currently, the parameter check is too strict to allow this via the Moodle UI; however, MDL-15923 has been created and resolved to address this.  Until then, it can be set via phpMyAdmin using a query statement like:&lt;br /&gt;
&amp;lt;code mysql&amp;gt; UPDATE mdl_config SET value=&#039;myemailserver.com:587&#039; WHERE name=&#039;smtphosts&#039;;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====SMTP security====&lt;br /&gt;
&lt;br /&gt;
{{New features}}If the SMTP server requires a secure connection, the correct protocol type, SSL or TSL, may be set.&lt;br /&gt;
&lt;br /&gt;
====Configure HTTPD/SELinux on CentOS/Red Hat (RHEL) 6.2/6.1/6====&lt;br /&gt;
&lt;br /&gt;
Most new installations of Centos/Red Hat have SELinux activated and is configured by default, rather strictly. In this state SELinux does not allow Apache (httpd,phpmailer) to use the sendmail function and make any sort of network connection.&lt;br /&gt;
&lt;br /&gt;
If you continue to have problems with sending/authenticating use the &#039;&#039;&#039;getsebool&#039;&#039;&#039; command to find out if SELinux is one of the culprits. When the &#039;&#039;&#039;getsebool&#039;&#039;&#039; command is issued it returns &#039;&#039;on&#039;&#039; or &#039;&#039;off&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Type to check if your Apache is allowed to send mail and make a connection over the network&lt;br /&gt;
*&#039;&#039;getsebool httpd_can_sendmail&#039;&#039;&lt;br /&gt;
*&#039;&#039;getsebool httpd_can_network_connect&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
You will receive the values of &#039;&#039;httpd_can_sendmail&#039;&#039; and &#039;&#039;httpd_can_network_connect&#039;&#039;. Let&#039;s assume both options are off:&lt;br /&gt;
*&#039;&#039;httpd_can_sendmail --&amp;gt;off&#039;&#039;&lt;br /&gt;
*&#039;&#039;httpd_can_network_connect --&amp;gt;off&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
We need to change the values from &#039;&#039;off&#039;&#039; to &#039;&#039;on&#039;&#039; by using &#039;&#039;&#039;setsebool&#039;&#039;&#039;. Number 1 = on and 0 = off. Type the following:&lt;br /&gt;
*&#039;&#039;setsebool -P httpd_can_sendmail 1&#039;&#039;&lt;br /&gt;
*&#039;&#039;setsebool -P httpd_can_network_connect 1&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
You will not receive a response. You can double check if the &#039;&#039;&#039;setsebool&#039;&#039;&#039; command worked by using &#039;&#039;&#039;getsebool&#039;&#039;&#039; and see if the values changed from &#039;&#039;--&amp;gt;off&#039;&#039; to &#039;&#039;--&amp;gt;on&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
==Messaging capabilities==&lt;br /&gt;
&lt;br /&gt;
The following capabilities can be applied as permissions to make custom changes to roles.&lt;br /&gt;
&lt;br /&gt;
* [[Capabilities/moodle/course:bulkmessaging|course:bulkmessaging - Send a message to many people]]&lt;br /&gt;
* [[Capabilities/moodle/site:readallmessages|site:readallmessages - Read all messages on site]]&lt;br /&gt;
* [[Capabilities/moodle/site:sendmessage|site:sendmessage - Send messages to any user]]&lt;br /&gt;
* [[Capabilities/moodle/user:editownmessageprofile|user:editownmessageprofile - Edit own user messaging profile]]&lt;br /&gt;
* [[Capabilities/moodle/user:editmessageprofile|user:editmessageprofile - Edit user messaging profile]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=User profile settings=&lt;br /&gt;
&lt;br /&gt;
Users can receive message alerts for a number of different reasons and can also send and receive instant messages. How a user receives notification of incoming messages can be set in &#039;&#039;Settings &amp;gt; My profile &amp;gt; Messaging&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
This brings up a screen with check boxes where users can choose how they wish to be notified both when logged in and logged out. They can choose between a pop up,Jabber message or an email.&lt;br /&gt;
&lt;br /&gt;
[[File:Messagingnotifications.png]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; The choices a user has on this screen depends on their role and permissions within Moodle. For example, an administrator would see options for notifications about backups or important errors with the site. &lt;br /&gt;
&lt;br /&gt;
{{New features}}An administrator can receive update notifications for both Moodle core code and any contributed plugins installed on the site if the automatic check for available updates is enabled in &#039;&#039;Settings &amp;gt; Site Administration &amp;gt; Server &amp;gt; [[Notifications|Update notifications]]&#039;&#039;. &lt;br /&gt;
&lt;br /&gt;
===Pop up===&lt;br /&gt;
When a user is logged into Moodle, the message will pop up from the bottom right corner of the page. The user can choose to read the message immediately or to ignore it. If they choose to ignore it, the message returns until it is read.&lt;br /&gt;
&lt;br /&gt;
===Jabber===&lt;br /&gt;
If the Jabber server has been configured, Jabber messages can be sent.The Jabber ID can be set at the bottom of the screen.&lt;br /&gt;
&lt;br /&gt;
===Email===&lt;br /&gt;
{{New features}}Users cannot by default automatically choose to have notifications sent to a different email address from their official Moodle email. However, the administrator has the option to override this so that users can have an alternative email. This is done from &#039;&#039;Settings&amp;gt;Site administration&amp;gt;Advanced features&#039;&#039; and when activated, a box will appear for users to enter another email address.&lt;br /&gt;
&lt;br /&gt;
===Prevent non-contacts from messaging me===&lt;br /&gt;
Non-contacts can be prevented from sending messages by ticking this box in General Settings at the bottom of the screen.&lt;br /&gt;
&lt;br /&gt;
=See also=&lt;br /&gt;
&lt;br /&gt;
*[[:dev:Messaging 2.0|Messaging developer documentation]]&lt;br /&gt;
&lt;br /&gt;
[[de:Mitteilungen konfigurieren]]&lt;/div&gt;</summary>
		<author><name>Rwthornton</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/2x/ca/index.php?title=Messaging_settings&amp;diff=99589</id>
		<title>Messaging settings</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/2x/ca/index.php?title=Messaging_settings&amp;diff=99589"/>
		<updated>2012-07-27T22:06:03Z</updated>

		<summary type="html">&lt;p&gt;Rwthornton: /* List of message outputs */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Messaging}}&lt;br /&gt;
==Enabling / disabling instant messaging sitewide==&lt;br /&gt;
&lt;br /&gt;
The instant messaging system in Moodle is enabled by default. It may be disabled by a site administrator in &#039;&#039;Settings &amp;gt; Site administration &amp;gt; Advanced features &amp;gt; Enable messaging system&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
==Site administration settings==&lt;br /&gt;
&lt;br /&gt;
=== Manage Message outputs===&lt;br /&gt;
&lt;br /&gt;
There are three default types of output methods for messaging: popup notices, Jabber IM type messages, and messages sent as email.&lt;br /&gt;
&lt;br /&gt;
Each of these can be enabled or disabled independently by a site administrator in &#039;&#039;Settings &amp;gt; Site administration &amp;gt; Plugins &amp;gt; Message outputs &amp;gt; Manage message outputs&#039;&#039;. &lt;br /&gt;
&lt;br /&gt;
By default Popup and Email are both enabled, though email will only work of course if the site has been properly configured to deliver email. Jabber is off by default and needs to be configured first.&lt;br /&gt;
&lt;br /&gt;
[[File:moodle23-manage-message-outputs.png]]&lt;br /&gt;
&lt;br /&gt;
===Default message outputs===&lt;br /&gt;
&lt;br /&gt;
The user defaults for these are set in &#039;&#039;Settings &amp;gt; Site administration &amp;gt; Plugins &amp;gt; Message outputs &amp;gt; Default message outputs&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
====Permittedness====&lt;br /&gt;
&lt;br /&gt;
You can also set to what degree each type of message is enabled, and whether users are able to change these default settings in their profiles:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;Disallowed&#039;&#039; - the message of chosen type will never be delivered through the chosen output, user is not allowed to change the personal preference for this combination of message type and output.&lt;br /&gt;
* &#039;&#039;Permitted&#039;&#039; - the message of chosen type is allowed to be delivered through the chosen output, default preferences can be set by administrator using the checkboxes below, user can control this preference on the messaging preferences page (and change the suggested defaults the most preferable way).&lt;br /&gt;
* &#039;&#039;Forced&#039;&#039; - the message of chosen type will be delivered through the chosen output, user is not allowed to change the personal preference for this combination of message type and output. &lt;br /&gt;
&lt;br /&gt;
====Online/Not online====&lt;br /&gt;
&lt;br /&gt;
You can set whether each of these will be sent when the user is online through the messaging system interface available to users in their profiles, and/or whether each output is sent via email. &lt;br /&gt;
&lt;br /&gt;
==== List of message outputs====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Output Name !! Description !! Recipients&lt;br /&gt;
|-&lt;br /&gt;
| Assignment (2.2) notifications  || Student has submitted an assignment (in older 2.2 Assignment module) || Teacher&lt;br /&gt;
|-&lt;br /&gt;
| Assignment notifications || Student has submitted an assignment (in [[Assignment_FAQ 2.3+ version] of Assignment module)|| Teacher&lt;br /&gt;
|-&lt;br /&gt;
| Warning when your quiz attempt becomes overdue ||  || &lt;br /&gt;
|-&lt;br /&gt;
| Available update notifications || See [https://docs.moodle.org/dev/Available_update_notifications|dev page] || Site admins&lt;br /&gt;
|-&lt;br /&gt;
| Backup notifications || || &lt;br /&gt;
|-&lt;br /&gt;
| Confirmation of your own quiz submissions || Extra notice your quiz was successfully submitted || Student&lt;br /&gt;
|-&lt;br /&gt;
| Course creation request approval notification || Notice a requested course has been approved - See [[https://docs.moodle.org/24/en/Course_request#Course_requests|here]] || user who request course&lt;br /&gt;
|-&lt;br /&gt;
| Course creation request notification || If enabled, to whom course requests go || Those defined in &#039;&#039;Site admin &amp;gt; Courses &amp;gt; Course request &amp;gt; Course request notification&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
| Course creation request rejection notification || Notice a requested course has been rejected || User who request course&lt;br /&gt;
|-&lt;br /&gt;
| Important errors with the site || || &lt;br /&gt;
|-&lt;br /&gt;
| Essay graded notification ||  || &lt;br /&gt;
|-&lt;br /&gt;
| Personal messages between users || Using the Messaging interface in a user&#039;s Profile || Authenticated Users&lt;br /&gt;
|-&lt;br /&gt;
| Feedback reminder ||  || &lt;br /&gt;
|-&lt;br /&gt;
| Notices about minor problems ||  || &lt;br /&gt;
|-&lt;br /&gt;
| Subscribed forum posts ||  || Anyone subscribe to a forum&lt;br /&gt;
|-&lt;br /&gt;
| Feedback notifications ||  || &lt;br /&gt;
|-&lt;br /&gt;
| Notification of quiz submissions || Message that student has finished and submitted a quiz || Teacher&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Except for &#039;&#039;&#039;Personal messages between users&#039;&#039;&#039; which refers to the interaction messaging tool on a user profile, the other messages are generated by events in Moodle.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Screenshot of all settings and their default settings:&lt;br /&gt;
&lt;br /&gt;
[[File:m32-messageoutputs-defaults.png|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
=== Jabber message===&lt;br /&gt;
&lt;br /&gt;
Jabber must be configured before use. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;(Could someone with working settings fill this out with example?)&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
*Host - The server to connect to to send jabber message notifications - full hostname (e.g. jabber.org)&lt;br /&gt;
*Server - XMPP host ID (can be left empty if the same as Jabber host)&lt;br /&gt;
*Username - The user name to use when connecting to the Jabber server&lt;br /&gt;
*Password - The password to use when connecting to the Jabber server&lt;br /&gt;
*Port - defaults to 5222&lt;br /&gt;
&lt;br /&gt;
===Email settings===&lt;br /&gt;
&lt;br /&gt;
====SMTP hosts====&lt;br /&gt;
&lt;br /&gt;
SMTP stands for Simple Mail Transfer Protocol. The SMTP host is an email relay that will take the email from Moodle and send it to users. You will need to set this only if your server does not allow mail relay. Otherwise, PHP will send out the mail using its built-in mail server. All the email sent by forums and other modules will be sent through this host.&lt;br /&gt;
&lt;br /&gt;
Most SMTP hosts make use of the default port 25 to for listening email traffic. However, occasionally a non-default port is used. In such cases, entering an SMTP host followed by a colon (i.e. :) and the port number should work. For example, if my SMTP host is myemailserver.com and it listens on port 587 or 465 (most common) instead of port 25 I would enter the SMTP host as myemailserver.com:587. Currently, the parameter check is too strict to allow this via the Moodle UI; however, MDL-15923 has been created and resolved to address this.  Until then, it can be set via phpMyAdmin using a query statement like:&lt;br /&gt;
&amp;lt;code mysql&amp;gt; UPDATE mdl_config SET value=&#039;myemailserver.com:587&#039; WHERE name=&#039;smtphosts&#039;;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====SMTP security====&lt;br /&gt;
&lt;br /&gt;
{{New features}}If the SMTP server requires a secure connection, the correct protocol type, SSL or TSL, may be set.&lt;br /&gt;
&lt;br /&gt;
====Configure HTTPD/SELinux on CentOS/Red Hat (RHEL) 6.2/6.1/6====&lt;br /&gt;
&lt;br /&gt;
Most new installations of Centos/Red Hat have SELinux activated and is configured by default, rather strictly. In this state SELinux does not allow Apache (httpd,phpmailer) to use the sendmail function and make any sort of network connection.&lt;br /&gt;
&lt;br /&gt;
If you continue to have problems with sending/authenticating use the &#039;&#039;&#039;getsebool&#039;&#039;&#039; command to find out if SELinux is one of the culprits. When the &#039;&#039;&#039;getsebool&#039;&#039;&#039; command is issued it returns &#039;&#039;on&#039;&#039; or &#039;&#039;off&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Type to check if your Apache is allowed to send mail and make a connection over the network&lt;br /&gt;
*&#039;&#039;getsebool httpd_can_sendmail&#039;&#039;&lt;br /&gt;
*&#039;&#039;getsebool httpd_can_network_connect&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
You will receive the values of &#039;&#039;httpd_can_sendmail&#039;&#039; and &#039;&#039;httpd_can_network_connect&#039;&#039;. Let&#039;s assume both options are off:&lt;br /&gt;
*&#039;&#039;httpd_can_sendmail --&amp;gt;off&#039;&#039;&lt;br /&gt;
*&#039;&#039;httpd_can_network_connect --&amp;gt;off&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
We need to change the values from &#039;&#039;off&#039;&#039; to &#039;&#039;on&#039;&#039; by using &#039;&#039;&#039;setsebool&#039;&#039;&#039;. Number 1 = on and 0 = off. Type the following:&lt;br /&gt;
*&#039;&#039;setsebool -P httpd_can_sendmail 1&#039;&#039;&lt;br /&gt;
*&#039;&#039;setsebool -P httpd_can_network_connect 1&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
You will not receive a response. You can double check if the &#039;&#039;&#039;setsebool&#039;&#039;&#039; command worked by using &#039;&#039;&#039;getsebool&#039;&#039;&#039; and see if the values changed from &#039;&#039;--&amp;gt;off&#039;&#039; to &#039;&#039;--&amp;gt;on&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
==Messaging capabilities==&lt;br /&gt;
&lt;br /&gt;
The following capabilities can be applied as permissions to make custom changes to roles.&lt;br /&gt;
&lt;br /&gt;
* [[Capabilities/moodle/course:bulkmessaging|course:bulkmessaging - Send a message to many people]]&lt;br /&gt;
* [[Capabilities/moodle/site:readallmessages|site:readallmessages - Read all messages on site]]&lt;br /&gt;
* [[Capabilities/moodle/site:sendmessage|site:sendmessage - Send messages to any user]]&lt;br /&gt;
* [[Capabilities/moodle/user:editownmessageprofile|user:editownmessageprofile - Edit own user messaging profile]]&lt;br /&gt;
* [[Capabilities/moodle/user:editmessageprofile|user:editmessageprofile - Edit user messaging profile]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=User profile settings=&lt;br /&gt;
&lt;br /&gt;
Users can receive message alerts for a number of different reasons and can also send and receive instant messages. How a user receives notification of incoming messages can be set in &#039;&#039;Settings &amp;gt; My profile &amp;gt; Messaging&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
This brings up a screen with check boxes where users can choose how they wish to be notified both when logged in and logged out. They can choose between a pop up,Jabber message or an email.&lt;br /&gt;
&lt;br /&gt;
[[File:Messagingnotifications.png]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; The choices a user has on this screen depends on their role and permissions within Moodle. For example, an administrator would see options for notifications about backups or important errors with the site. &lt;br /&gt;
&lt;br /&gt;
{{New features}}An administrator can receive update notifications for both Moodle core code and any contributed plugins installed on the site if the automatic check for available updates is enabled in &#039;&#039;Settings &amp;gt; Site Administration &amp;gt; Server &amp;gt; [[Notifications|Update notifications]]&#039;&#039;. &lt;br /&gt;
&lt;br /&gt;
===Pop up===&lt;br /&gt;
When a user is logged into Moodle, the message will pop up from the bottom right corner of the page. The user can choose to read the message immediately or to ignore it. If they choose to ignore it, the message returns until it is read.&lt;br /&gt;
&lt;br /&gt;
===Jabber===&lt;br /&gt;
If the Jabber server has been configured, Jabber messages can be sent.The Jabber ID can be set at the bottom of the screen.&lt;br /&gt;
&lt;br /&gt;
===Email===&lt;br /&gt;
{{New features}}Users cannot by default automatically choose to have notifications sent to a different email address from their official Moodle email. However, the administrator has the option to override this so that users can have an alternative email. This is done from &#039;&#039;Settings&amp;gt;Site administration&amp;gt;Advanced features&#039;&#039; and when activated, a box will appear for users to enter another email address.&lt;br /&gt;
&lt;br /&gt;
===Prevent non-contacts from messaging me===&lt;br /&gt;
Non-contacts can be prevented from sending messages by ticking this box in General Settings at the bottom of the screen.&lt;br /&gt;
&lt;br /&gt;
=See also=&lt;br /&gt;
&lt;br /&gt;
*[[:dev:Messaging 2.0|Messaging developer documentation]]&lt;br /&gt;
&lt;br /&gt;
[[de:Mitteilungen konfigurieren]]&lt;/div&gt;</summary>
		<author><name>Rwthornton</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/2x/ca/index.php?title=Messaging_settings&amp;diff=99588</id>
		<title>Messaging settings</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/2x/ca/index.php?title=Messaging_settings&amp;diff=99588"/>
		<updated>2012-07-27T22:02:42Z</updated>

		<summary type="html">&lt;p&gt;Rwthornton: /* List of message outputs */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Messaging}}&lt;br /&gt;
==Enabling / disabling instant messaging sitewide==&lt;br /&gt;
&lt;br /&gt;
The instant messaging system in Moodle is enabled by default. It may be disabled by a site administrator in &#039;&#039;Settings &amp;gt; Site administration &amp;gt; Advanced features &amp;gt; Enable messaging system&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
==Site administration settings==&lt;br /&gt;
&lt;br /&gt;
=== Manage Message outputs===&lt;br /&gt;
&lt;br /&gt;
There are three default types of output methods for messaging: popup notices, Jabber IM type messages, and messages sent as email.&lt;br /&gt;
&lt;br /&gt;
Each of these can be enabled or disabled independently by a site administrator in &#039;&#039;Settings &amp;gt; Site administration &amp;gt; Plugins &amp;gt; Message outputs &amp;gt; Manage message outputs&#039;&#039;. &lt;br /&gt;
&lt;br /&gt;
By default Popup and Email are both enabled, though email will only work of course if the site has been properly configured to deliver email. Jabber is off by default and needs to be configured first.&lt;br /&gt;
&lt;br /&gt;
[[File:moodle23-manage-message-outputs.png]]&lt;br /&gt;
&lt;br /&gt;
===Default message outputs===&lt;br /&gt;
&lt;br /&gt;
The user defaults for these are set in &#039;&#039;Settings &amp;gt; Site administration &amp;gt; Plugins &amp;gt; Message outputs &amp;gt; Default message outputs&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
====Permittedness====&lt;br /&gt;
&lt;br /&gt;
You can also set to what degree each type of message is enabled, and whether users are able to change these default settings in their profiles:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;Disallowed&#039;&#039; - the message of chosen type will never be delivered through the chosen output, user is not allowed to change the personal preference for this combination of message type and output.&lt;br /&gt;
* &#039;&#039;Permitted&#039;&#039; - the message of chosen type is allowed to be delivered through the chosen output, default preferences can be set by administrator using the checkboxes below, user can control this preference on the messaging preferences page (and change the suggested defaults the most preferable way).&lt;br /&gt;
* &#039;&#039;Forced&#039;&#039; - the message of chosen type will be delivered through the chosen output, user is not allowed to change the personal preference for this combination of message type and output. &lt;br /&gt;
&lt;br /&gt;
====Online/Not online====&lt;br /&gt;
&lt;br /&gt;
You can set whether each of these will be sent when the user is online through the messaging system interface available to users in their profiles, and/or whether each output is sent via email. &lt;br /&gt;
&lt;br /&gt;
==== List of message outputs====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Output Name !! Description !! Recipients&lt;br /&gt;
|-&lt;br /&gt;
| Assignment (2.2) notifications  || Student has submitted an assignment (in older 2.2 Assignment module) || Teacher&lt;br /&gt;
|-&lt;br /&gt;
| Assignment notifications || Student has submitted an assignment (in [https://docs.moodle.org/24/en/Assignment_FAQ 2.3+ version] of Assignment module)|| Teacher&lt;br /&gt;
|-&lt;br /&gt;
| Warning when your quiz attempt becomes overdue ||  || &lt;br /&gt;
|-&lt;br /&gt;
| Available update notifications || See [[Available update notifications]] || Site admins&lt;br /&gt;
|-&lt;br /&gt;
| Backup notifications || || &lt;br /&gt;
|-&lt;br /&gt;
| Confirmation of your own quiz submissions || Extra notice your quiz was successfully submitted || Student&lt;br /&gt;
|-&lt;br /&gt;
| Course creation request approval notification || Notice a requested course has been approved - See [[https://docs.moodle.org/24/en/Course_request#Course_requests|here]] || user who request course&lt;br /&gt;
|-&lt;br /&gt;
| Course creation request notification || If enabled, to whom course requests go || Those defined in &#039;&#039;Site admin &amp;gt; Courses &amp;gt; Course request &amp;gt; Course request notification&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
| Course creation request rejection notification || Notice a requested course has been rejected || User who request course&lt;br /&gt;
|-&lt;br /&gt;
| Important errors with the site || || &lt;br /&gt;
|-&lt;br /&gt;
| Essay graded notification ||  || &lt;br /&gt;
|-&lt;br /&gt;
| Personal messages between users || Using the Messaging interface in a user&#039;s Profile || Authenticated Users&lt;br /&gt;
|-&lt;br /&gt;
| Feedback reminder ||  || &lt;br /&gt;
|-&lt;br /&gt;
| Notices about minor problems ||  || &lt;br /&gt;
|-&lt;br /&gt;
| Subscribed forum posts ||  || Anyone subscribe to a forum&lt;br /&gt;
|-&lt;br /&gt;
| Feedback notifications ||  || &lt;br /&gt;
|-&lt;br /&gt;
| Notification of quiz submissions || Message that student has finished and submitted a quiz || Teacher&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Except for &#039;&#039;&#039;Personal messages between users&#039;&#039;&#039; which refers to the interaction messaging tool on a user profile, the other messages are generated by events in Moodle.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Screenshot of all settings and their default settings:&lt;br /&gt;
&lt;br /&gt;
[[File:m32-messageoutputs-defaults.png|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
=== Jabber message===&lt;br /&gt;
&lt;br /&gt;
Jabber must be configured before use. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;(Could someone with working settings fill this out with example?)&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
*Host - The server to connect to to send jabber message notifications - full hostname (e.g. jabber.org)&lt;br /&gt;
*Server - XMPP host ID (can be left empty if the same as Jabber host)&lt;br /&gt;
*Username - The user name to use when connecting to the Jabber server&lt;br /&gt;
*Password - The password to use when connecting to the Jabber server&lt;br /&gt;
*Port - defaults to 5222&lt;br /&gt;
&lt;br /&gt;
===Email settings===&lt;br /&gt;
&lt;br /&gt;
====SMTP hosts====&lt;br /&gt;
&lt;br /&gt;
SMTP stands for Simple Mail Transfer Protocol. The SMTP host is an email relay that will take the email from Moodle and send it to users. You will need to set this only if your server does not allow mail relay. Otherwise, PHP will send out the mail using its built-in mail server. All the email sent by forums and other modules will be sent through this host.&lt;br /&gt;
&lt;br /&gt;
Most SMTP hosts make use of the default port 25 to for listening email traffic. However, occasionally a non-default port is used. In such cases, entering an SMTP host followed by a colon (i.e. :) and the port number should work. For example, if my SMTP host is myemailserver.com and it listens on port 587 or 465 (most common) instead of port 25 I would enter the SMTP host as myemailserver.com:587. Currently, the parameter check is too strict to allow this via the Moodle UI; however, MDL-15923 has been created and resolved to address this.  Until then, it can be set via phpMyAdmin using a query statement like:&lt;br /&gt;
&amp;lt;code mysql&amp;gt; UPDATE mdl_config SET value=&#039;myemailserver.com:587&#039; WHERE name=&#039;smtphosts&#039;;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====SMTP security====&lt;br /&gt;
&lt;br /&gt;
{{New features}}If the SMTP server requires a secure connection, the correct protocol type, SSL or TSL, may be set.&lt;br /&gt;
&lt;br /&gt;
====Configure HTTPD/SELinux on CentOS/Red Hat (RHEL) 6.2/6.1/6====&lt;br /&gt;
&lt;br /&gt;
Most new installations of Centos/Red Hat have SELinux activated and is configured by default, rather strictly. In this state SELinux does not allow Apache (httpd,phpmailer) to use the sendmail function and make any sort of network connection.&lt;br /&gt;
&lt;br /&gt;
If you continue to have problems with sending/authenticating use the &#039;&#039;&#039;getsebool&#039;&#039;&#039; command to find out if SELinux is one of the culprits. When the &#039;&#039;&#039;getsebool&#039;&#039;&#039; command is issued it returns &#039;&#039;on&#039;&#039; or &#039;&#039;off&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Type to check if your Apache is allowed to send mail and make a connection over the network&lt;br /&gt;
*&#039;&#039;getsebool httpd_can_sendmail&#039;&#039;&lt;br /&gt;
*&#039;&#039;getsebool httpd_can_network_connect&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
You will receive the values of &#039;&#039;httpd_can_sendmail&#039;&#039; and &#039;&#039;httpd_can_network_connect&#039;&#039;. Let&#039;s assume both options are off:&lt;br /&gt;
*&#039;&#039;httpd_can_sendmail --&amp;gt;off&#039;&#039;&lt;br /&gt;
*&#039;&#039;httpd_can_network_connect --&amp;gt;off&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
We need to change the values from &#039;&#039;off&#039;&#039; to &#039;&#039;on&#039;&#039; by using &#039;&#039;&#039;setsebool&#039;&#039;&#039;. Number 1 = on and 0 = off. Type the following:&lt;br /&gt;
*&#039;&#039;setsebool -P httpd_can_sendmail 1&#039;&#039;&lt;br /&gt;
*&#039;&#039;setsebool -P httpd_can_network_connect 1&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
You will not receive a response. You can double check if the &#039;&#039;&#039;setsebool&#039;&#039;&#039; command worked by using &#039;&#039;&#039;getsebool&#039;&#039;&#039; and see if the values changed from &#039;&#039;--&amp;gt;off&#039;&#039; to &#039;&#039;--&amp;gt;on&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
==Messaging capabilities==&lt;br /&gt;
&lt;br /&gt;
The following capabilities can be applied as permissions to make custom changes to roles.&lt;br /&gt;
&lt;br /&gt;
* [[Capabilities/moodle/course:bulkmessaging|course:bulkmessaging - Send a message to many people]]&lt;br /&gt;
* [[Capabilities/moodle/site:readallmessages|site:readallmessages - Read all messages on site]]&lt;br /&gt;
* [[Capabilities/moodle/site:sendmessage|site:sendmessage - Send messages to any user]]&lt;br /&gt;
* [[Capabilities/moodle/user:editownmessageprofile|user:editownmessageprofile - Edit own user messaging profile]]&lt;br /&gt;
* [[Capabilities/moodle/user:editmessageprofile|user:editmessageprofile - Edit user messaging profile]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=User profile settings=&lt;br /&gt;
&lt;br /&gt;
Users can receive message alerts for a number of different reasons and can also send and receive instant messages. How a user receives notification of incoming messages can be set in &#039;&#039;Settings &amp;gt; My profile &amp;gt; Messaging&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
This brings up a screen with check boxes where users can choose how they wish to be notified both when logged in and logged out. They can choose between a pop up,Jabber message or an email.&lt;br /&gt;
&lt;br /&gt;
[[File:Messagingnotifications.png]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; The choices a user has on this screen depends on their role and permissions within Moodle. For example, an administrator would see options for notifications about backups or important errors with the site. &lt;br /&gt;
&lt;br /&gt;
{{New features}}An administrator can receive update notifications for both Moodle core code and any contributed plugins installed on the site if the automatic check for available updates is enabled in &#039;&#039;Settings &amp;gt; Site Administration &amp;gt; Server &amp;gt; [[Notifications|Update notifications]]&#039;&#039;. &lt;br /&gt;
&lt;br /&gt;
===Pop up===&lt;br /&gt;
When a user is logged into Moodle, the message will pop up from the bottom right corner of the page. The user can choose to read the message immediately or to ignore it. If they choose to ignore it, the message returns until it is read.&lt;br /&gt;
&lt;br /&gt;
===Jabber===&lt;br /&gt;
If the Jabber server has been configured, Jabber messages can be sent.The Jabber ID can be set at the bottom of the screen.&lt;br /&gt;
&lt;br /&gt;
===Email===&lt;br /&gt;
{{New features}}Users cannot by default automatically choose to have notifications sent to a different email address from their official Moodle email. However, the administrator has the option to override this so that users can have an alternative email. This is done from &#039;&#039;Settings&amp;gt;Site administration&amp;gt;Advanced features&#039;&#039; and when activated, a box will appear for users to enter another email address.&lt;br /&gt;
&lt;br /&gt;
===Prevent non-contacts from messaging me===&lt;br /&gt;
Non-contacts can be prevented from sending messages by ticking this box in General Settings at the bottom of the screen.&lt;br /&gt;
&lt;br /&gt;
=See also=&lt;br /&gt;
&lt;br /&gt;
*[[:dev:Messaging 2.0|Messaging developer documentation]]&lt;br /&gt;
&lt;br /&gt;
[[de:Mitteilungen konfigurieren]]&lt;/div&gt;</summary>
		<author><name>Rwthornton</name></author>
	</entry>
</feed>