October-3-2011
Filed Under (Linux, Linux Enthousiasm) by martensson

So, I wanted an complete secure Moodle E-learning environment.. After completing the installation fully non-secure (HTTP) , I fiddled with al the configuration settings.. Seems there is no immediate logical / direct way for getting this done..

For reference, getting Moodle  on Nginx working completely secure (full SLL)

1) config.php –> change $CFG->wwwroot   = ‘https://yourmoodleurl’;
2) Disable HTTPS login under Administration –> Security –> HTTP
3) config.php –> add  $CFG->sslproxy=true;

And ofcourse change your nginx server/site configuration



September-6-2011
Filed Under (Mailservices with Debian Linux) by martensson

Yes, you can restrict the elements (input, styles, formats) to the users who are using the (F) CKEditor. In my case I used CKEditor for SharePoint 2010. Here’s some quick tips / howto’s regarding restriction with CKEditor:

#Delete those nasty plugins, especially the one defining the current context
config.removePlugins = ‘elementspath’;

#Force the Language
config.defaultLanguage = ‘nl’;

#Disable the option to collapse the editor, users only get lost
config.toolbarCanCollapse = false ;

#Dis or enable the resizing of the editor
config.resize_enabled = true;

#Auto Start SCAYT Spellchecker
config.scayt_autoStartup = true;

#Force spellcheck language
config.scayt_sLang = ‘nl_NL’;

#Only allow the tags P and H2 to be used
config.format_tags = ‘p;h2′;

# Remove any other Format
config.removeFormatTags = ‘b,big,code,del,dfn,em,font,i,ins,kbd’;

#Remove advanced dialogs
config.removeDialogTabs = ‘link:advanced’;

#Restrict special characters
config.specialChars =['!','"','%','&',"'",'(',')','*','+','-','.','/',':',';','','=','','?','@','^','_','`','{','|','}','~',"€", "‘", "’", "“", "”", "–", "—","©","®","À", "Á", "Â", "Ä", "È", "É", "Ê", "Ë", "Ì", "Í", "Ï","Ò", "Ó", "Ô", "Õ", "Ö",  "Ù", "Ú", "Û", "Ü","à", "á", "â", "ä", "è", "é", "ê", "ë", "ì", "í", "ï", "ò", "ó", "ô", "õ", "ö", "÷", "ù", "ú", "û", "ü", "‚", "‛", "„", "™"];



September-6-2011
Filed Under (Mailservices with Debian Linux) by martensson

If you want (F) CKeditor , I used in this case CKEditor for SharePoint 2010,  to make the (hyper) links automatically open in a new window (_blank), then you can achieve this by following the next steps:

1. Open, serverside, the location where CK Editor is installed
For CKeditor for SharePoint 2010 this is <<DRIVE>>:\<<PROGRAM FILES FOLDER>>\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\LAYOUTS\ckeditor\plugins\
2. Open the plugins/link/dialogs folder and edit the links.js file.
3. Find the default setting for the field ‘Target’ , a.k.a.
{type:’select’,id:’linkTargetType’,label:D.target,’default’:'notset’,style:’width : ……
4. Change the code to the desired targettype , in this case _blank
{type:’select’,id:’linkTargetType’,label:D.target,’default’:'_blank’,style:’width : ……
5. Save and Done!

And there you have it, all links will now be opened automatically in a new window.

Ofcourse, this doesn’t work for al links (pasted links for example). An plugin handling links in general could resolve your issue there, if this is the case.

    1. Aanpassing t.b.v. Automatisch openen van links in nieuw venster

      1. Ga naar de locatie waar CK editor is geinstalleerd

      2. Open in de plugins/link/dialogs map het bestand links.js

      3. Zoek de code waarin de standaard instelling voor het veld ‘Target’ wordt gedefinieerd..

        {type:’select’,id:’linkTargetType’,label:D.target,’default’:'notset’,style:’width : ……

      4. Verander de code naar de gewenste standaard, a.k.a. _blank

        {type:’select’,id:’linkTargetType’,label:D.target,’default’:'_blank’,style:’width : ……

      5. Done!