This is an addition for the Smileys module that adds an ajax form to the user profile page where each user can select a word describing their current mood and a Smiley face - can be used to display user emotions or users current mood.

Extract and add to your sites/all/modules/smileys directory. So the path will be sites/all/modules/smileys/smileys_mood. Enable the module. That's it. (Unless your domain points to a subdirectory! See below.)

TODO:

  • Clean up module code a bit
  • Add support for more... Smileys list
  • Add support for subdirectory? (in external script)
  • Add to admin section + editable array for word list
  • Could use some tpl work

Potential problems: The external script has to be updated manually if your domain points to a subdirectory. Update smileys_mood/scripts/updateusermood.php - no problems if your Drupal install is in the root directory.

Code:

// Go to drupal path.. 
   $drupal_path = $_SERVER['DOCUMENT_ROOT'];  // <---- change this one to fit yours i.e. $_SERVER['DOCUMENT_ROOT'].'/subfolder';
CommentFileSizeAuthor
smileys_mood.tar_.gz4.32 KBnathaniel

Comments

nathaniel’s picture

Priority: Normal » Minor
Status: Needs work » Closed (fixed)

technical difficulties...

see http://drupal.org/node/504266