Pages

Monday, June 3, 2013

Tweak for Danny Wahl's Autohide for Moodle 2.x when using the Topics Format

If you're using Danny Wahl's Autohide creation with the Topics Format course format in Moodle 2.x, here's a tweak for the autohide.css file that allows the Settings icon to appear on mouse hover. Before this, I was using the Weekly Format and all was fine. Then I switched over to the Topics Format and suddenly I realised that there was no way to change a topic's description as the Settings icon refused to appear on mouseover!


What a strange phenomena. Upon further investigation, thanks to Sakshi Goel and Mary Cooch in this forum, I was finally able to solve this puzzle by changing this section of the code:

.section_add_menus, /* Add Resource/Activity dropdowns (2.2) */
.addresourcemodchooser, /* Add Resource/Activity Link (2.3) */
.editing .block .title .commands .icon, /* Block Title Controls */
.editing .block .content li .commands a, /* Command in block content (add resources/activities in Main menu) */
.editing .block .editbutton a, /* Edit button in custom HTML blocks */
.editing .section .side > *:not(br), /* Section controls (can't use 'a' b/c ajax uses 'span') */
.topics .section .content .summary ,
.editing .section .summary a:first-child, 
.editing .section .activity .commands > *, /* Individual activity and resource controls (can't use 'a' b/c ajax uses 'span') */
.editing .sitetopic > a {
    filter: alpha(opacity=0);
    opacity: 0;
    -webkit-transition: opacity 0.5s linear 0s;
    -moz-transition: opacity 0.5s linear 0s;
    -ms-transition: opacity 0.5s linear 0s;
    -o-transition: opacity 0.5s linear 0s;
    transition: opacity 0.5s linear 0s; /* half-second fade in */
}

to

.section_add_menus, /* Add Resource/Activity dropdowns (2.2) */
.addresourcemodchooser, /* Add Resource/Activity Link (2.3) */
.editing .block .title .commands .icon, /* Block Title Controls */
.editing .block .content li .commands a, /* Command in block content (add resources/activities in Main menu) */
.editing .block .editbutton a, /* Edit button in custom HTML blocks */
.editing .section .side > *:not(br), /* Section controls (can't use 'a' b/c ajax uses 'span') */
.editing .section .activity .commands > *, /* Individual activity and resource controls (can't use 'a' b/c ajax uses 'span') */
.editing .section .summary a:first-child, 
.editing .sitetopic > a {
    filter: alpha(opacity=0);
    opacity: 0;
    -webkit-transition: opacity 0.5s linear 0s;
    -moz-transition: opacity 0.5s linear 0s;
    -ms-transition: opacity 0.5s linear 0s;
    -o-transition: opacity 0.5s linear 0s;
    transition: opacity 0.5s linear 0s; /* half-second fade in */
}

.topics .section .content .summary {
   filter: alpha(opacity=0.5);
    opacity: 0.8;
    -webkit-transition: opacity 0.5s linear 0s;
    -moz-transition: opacity 0.5s linear 0s;
    -ms-transition: opacity 0.5s linear 0s;
    -o-transition: opacity 0.5s linear 0s;
    transition: opacity 0.5s linear 0s; /* half-second fade in */
}

Now the Settings (gear icon) symbol appears on mouseover as it should.


Yippee!!
You can download the tweaked autohide.css file from here.

Regards
Frankie Kam



Friday, May 31, 2013

The Youtube Anywhere Plugin - thanks to Justin Hunt, Joseph Thibault and the Community!

This is one cool Moodle plugin for Moodle 2.4 and above



Today's post is on the ultra-cool tinyMCE Youtube Anywhere plugin. It allows you record a webcam video from within the TinyMCE HTML editor, and upload the resulting video direct into YouTube. Many thanks to Justin Hunt, Joseph Thibault, this Moodlenews post that got the ball rolling and the Moodle (and non-Moodle) community of contributors!

I installed in on my Moodle 2.5 site, and I would like to share some screenshots for those of you who wish to do the same. Hopefully I will succeed in whetting your appetite to have this marvelous plugin working on your site as!



Today's post is not a complete step-by-step installation guide. Here are some screenshots of the process involved to setup the plugin on your Moodle 2.4 or 2.5 site.

Main Moodle.org Youtube Anywhere plugin webpage - maintained by Justin Hunt
https://moodle.org/plugins/view.php?plugin=tinymce_youtube

The installation process consists mainly of these getting the below data (keys, ids and google codes).

YouTube Developers Key
Get a YouTube Developers Key from the instructions found here:
https://code.google.com/apis/youtube/dashboard



Google OAUTH client id and OAUTH secret
Get the Google OAUTH client id and OAUTH secret from the instructions from here:
From http://docs.moodle.org/24/en/Google_OAuth_2.0_setup

For more detailed information on how to create the client id and OAUTH secret codes, you can refer to this installation PDF file by Justin.




YouTube Anywhere settings



Possible alert  notification from Google



I received this message because the Moodle plugin was trying to access my Goodle account. Hence I had to allow Google to recognise the server's IP address from which the request came from. I merely clicked on the http://support.google.com/mail?p=client_login link to resolve this.


The Plugin in action

1. Once you have the plugin installed on your Moodle site, click on the YT icon in your tinyMCE editor




2.  A three-tabbed display appears. Click on the "Record a Video" tab.



 3. Click on the "Record from webcam" button.



 4. Click the "Start Recording" button.


 5. Confirm the action - click the "OK" button.



6. Record away!




7. Click the "Insert" button.



8. The link is inserted. Click the Submit button to embed your video into your webpage.


8. Checking out the Playlist tab.



9. Email notification from Youtube/Google




10. Final result on my Moodle site




Very nice. I hope that this series of screenshots will motivate you to
(1) Start using Moodle 2.4 and above
(2) Install YoutTube Anywhere on your own site
(3) Start making videos and embed them directly from within Moodle

Enjoy!

This plugin was a community effort and was funded by contributions. Power to the people! Incentive for the developers!

A list of the contributors:
Tetsuo Kimura
StraighterLine
Waleed Jameel
Richard Oelmann
Classroom Revolution, LLC

Other Contributors
Don Hinkelman
Rex Lorenzo
Jason Palmer
Daran Price
Ben Reynolds
flizotte
bessette
lindstromfredg
Julian Ridden
Roland Sherwood
Philippe Petitqueux
alfieismydog
kdc_teach1

For more information on this Crowdfunded project, click here.

Happy recording!
Frankie Kam
1st June 2013


Postscript (dated 17th October 2013)

If you have enabled Google's 2-step verification for your Gmail account's password, please beware that Moodle will not be able to authenticate your account, and this is what you will see:


A dreaded message appears: "Exception - Authentication with Google failed. Reason: BadAuthentication". Clicking on the "More information about this error" leads nowhere useful.

The solution? My story is this: some months after my original post above, I enabled the 2-step verification of my Google account. Just in case it got hacked. The result? Unbeknownst to me, the Youtube Anywhere plugin could no longer be authenticated!

I was fortunate enough to discover the solution, but only after spending close to three hours(!) re-installing the plugin countless times. Initially I thought that I had broken the Youtube Anywhere code by installing too many other Moodle plugins. Then a breakthrough! In one of my Google web searches, I stumbled upon this StackOverflow post which suggested going here. Thank you Matias Molinas, whoever you are! You saved my bacon.



So I followed the cue and landed here:


The text reads,

"If any of your customers are having trouble with ClientLogin, their account may not be compatible with it for a variety of possible reasons.  For example, accounts that use 2-step verification, SAML, or Open ID are not compatible with ClientLogin. 
Aha! So, Google's 2-step verification has a side-effect!
One workaround is to tell users to generate a single-use password, provided by access codes, which allows them to log in to their account in a web browser and generate a long password that they can type into the password field of any application using ClientLogin...."
What's this "single-use password"? Never mind. No time for that. Let's just get rid of the 2-step verification then, shall we? I want to get the plugin working again on my site. I thought that I should turn off the 2-step verification of my Google account, and I surfed here:


Clicking on the "Using 2-step verification" link, I landed here:



When I clicked the "Turn Off" button, I was greeted by the next screen:


Basically, Google was suggesting that I should attempt to use an "application-specific password" instead of turning off the 2-step verification method. Since I thought that Google's 2-step verification was crucial to ensuring a decent level of security for my Google and Youtube accounts, I went ahead and clicked on the "application-specific password" link. Even though I had no idea what that meant. Fortune favours the brave! After logging into my Google account, this screen appeared:




I clicked the "Generate password" button and Google generated a password for me.


What did I do with the password? Well I went back to the Youtube Anywhere plugin's settings and entered it in the "Youtube master account password" field. Like so:



Finally, I tested the plugin one more time. It worked fine!



At last it worked.

Phew! To think that I spent 3 hours trying to figure out the problem, when all the while, the solution was out there. In the end, nothing is really 'wasted' since after countless installs of the plugin, I am now, unofficially, an 'expert' in the installation process of Youtube Anywhere. Hehe. I hope this helps someone out there ... maybe you!

regards
Frankie Kam


Monday, April 22, 2013

How to store the entire Wikipedia (well almost) inside your Smartphone or Tablet

How would you like to have the entire Wikipedia text inside your android smartphone? What do you say to that? I'd say "Information is POWER!".

Never mind that it's fully text-only with not a single image in sight. Imagine reading two million articles on famous persons, history, technology, etc. on Wikipedia, but totally, get this, OFFLINE. Access the articles, anytime, anywhere, without WiFi.

Welcome to BitMagic Technologies LLP's Wiki Encyclopedia Offline-Free app!

We're talking here about a whopping 3.58 Gigabytes of download data for your cherished smartphone or tablet. Zounds! A long wait indeed, depending on your Internet speed, but it's well worth the wait.



In fact, I can't wait for the day when a smartphone or tablet has the storage capacity exceeding 250 Gigabytes - which is how much storage space a full version of an offline Wikipedia, containing text and images, will take up.

Einstein would have been proud of you!

2 million articles at your fingertips.

My one gripe is that the app doesn't allow text-to-speech capability. So my Ivona Amy or Nicole TTS Engine can't read the text while I'm driving or ironing my shirt. Maybe in the next update then.

A smartphone is too smart and expensive a device to use it just to play games. Life is too precious to while the time away with all kinds of distractions on your smartphone. Want to be a winner at Jeopardy? Why not enlargen your world and knowledge by browsing 20 Wikipedia offline articles a day? It'll only take you 273 years to finish the two million articles of 2013 Wikipedia! So why not Wikipedia-fy your smartphone and tablet today? You won't regret it.

Happy Wikipedia-ing
Frankie Kam

P.S.,
Incidentally, my first blog post on Moodurian.blogspot.com was entitled "How to fit the entire Wikipedia inside your laptop" was in May 2010. How times have changed. Amazing.


Moodle 1.9 Custom Corners Theme for mobile devices by Yedidia Klein

Here's a quick question. How many Moodle 1.9.x themes do you know of that are specially designed for mobile devices? Forgive my ignorance, but I only know of one - Isreali Yedidia Klein's theme named "custom_corners_mobile". You can read about it here.



It is a modified JQuery version of the "custom_corners" theme for Moodle 1.9. You can download Yedidia's theme from here. After you have downloaded, extracted and ftp'ed the theme to your Moodle site, you can then add these lines to your config.php:

//Mobile Detection and theming
include("theme/custom_corners_mobile/mobile_functions.php");
if (ismobile())
  $CFG->theme="custom_corners_mobile";

After this, you can then browse your Moodle site via your mobile device.

Do you know of any other themes for Moodle 1.9 that cater for mobile devices? Please share in the comments section below.

Happy Moodling
Frankie Kam

Ratings and Recommendations by outbrain