Moodle Twitter integrationMoodle Twitter integration
I wanted a way to dynamically integrate the users Twitter accounts with Moodle. In order to do this we needed to know the users Twitter ID, so we set up a User Profile Field called Twitter ID where Moodle Users can enter their ID on their Moodle Profile Page Next we looked at the Twitter Widgets (http://twitter.com/goodies/widgets) and found one that would work well with our Moodle. We then modified the code of the widget to include the users twitter id within PHP making the Widget show the last tweet of that user. once we had the widget working we included that file into the top of the students profile page which looks like this :-
you will also notice that we added an icon of the Twitter logo to show people that it's a tweet from that user. For the icing on the cake, we've also added Social Icons next to the users name in Moodle, we did this with an if else statement which checks to see if the user has entered a Twitter ID and that is a link to their Twitter Page, if the user hasn't entered a Twitter id it shows nothing.