Darkest Before Dawn

Darkest Before Dawn header image 2

myMooMus version 1.23

August 28th, 2005 by Kev

This page is now out of date please go here

myMooMus version 1.23, please note that version 1.0b is no longer supported, this version is easier to use and has more features.

New Features

  • Mood, Music & Tv now set on post page without the need to add Keys in the Advanced section.
  • Mood can now be selected from a user definable menu.
  • The Mood, Music & Tv can be displayed above or below the comment
  • Configurable through the Wordpress Options page

Instructions

If you have not used WordPress plugins before please read the documentation here on how to install and activate plugins.

The latest version of the plugin can be downloaded from here

Unzip the file and put the plugin file myMooMus.php into your wp-content/plugins directory.

Activate the plugin in the Plugins section of Wordpress admin.

myMooMus can be used without configuration but you will only be able to enter text for Mood, Music and TV and they will appear below the post.

The Configuration Page

To install the configuration page click Options menu item (1), click myMooMus menu item (2) then click the Install button (3)

Instructions Pic 1

By default the Mood, Music or Tv tags will appear below your post, to have them appear above your post select ‘Above’ from the menu (4).

You can enter your mood as free text or select it from a drop down menu. You can choose to have each of these options on your post page or both together. Select from the menu (5) for your prefered style.

If you are using the menu option for Mood selection then you can add your own Moods in the text box (6). Separate each Mood with a return.

When you have made your changes use the Save button (7).
Instruction Picture 2

If you want to remove any configuration you have set up then click the Remove button (8) This will delete any additions you have made to the Mood list

Instructions Picture 3

Using myMooMus

To add a Mood tag to your post select from the Menu, if you have chosen to use this in the configuration page, or type text in to the Mood box. (9)

To add a Music and or Tv tags type in their text boxes. (10)

To save your tags use the Save or Publish buttons (11)

Empty tags will not appear on the post and text entered on the Mood text box will always be used in preference to the Menu selection.

Instructions Picture 4

Tags: 29 Comments

29 responses so far ↓

  • 1 The MnM Incident » myMooMus v. 1.23 Aug 28, 2005 at 9:26 pm

    [...] Another update to the spiffy mood and music plugin I’ve been beta-testing. There’s a TV field now, too. WordPressers can grab it here. [...]

  • 2 Random Words » Plugins Aug 29, 2005 at 8:29 pm

    [...] It’s called myMooMus by a fellow Brit, so thanks Kev, if you ever read this. [...]

  • 3 Deviant Discourse » Plugins Aug 30, 2005 at 7:33 pm

    [...] It’s called myMooMus by a fellow Brit, so thanks Kev, if you ever read this. [...]

  • [...] Hmmm. I had a quick play with MyMooMus a while ago, and I even used it recently to show what music I’m listening to. And now I see it’s been updated and improved. [...]

  • 5 That should do it : Losing it[1] Aug 30, 2005 at 10:45 pm

    [...] Well, I ended up giving MyMooMus a moderate tweaking to make it fit into my design. I think I’ll just use it for music, and use Cricket Moods when I want to mention what mood I’m in. [...]

  • 6 Kev Aug 30, 2005 at 11:27 pm

    Thanks to Losing It for spotting that the closing div tag for metadata was being output in the wrong place.

    Version 1.24 is now online at the link above.

    Kev

  • 7 Cornell Finch Sep 23, 2005 at 9:12 am

    Hi Kevin

    Many thanks for this, it’s a great plugin.

    A problem and a question:

    Problem: When I save the updated options for the plugin it all works a treat, but there appears to be a floating “\n” just after where it says “saving were saved”.

    Question: How can I change the text style for the plugin? I would like to make the titles (Mood and Music) bold and the actual mood italic.

    I’m using a (slightly) modified Connections theme

    Thanks again!

    Collin

  • 8 Kev Sep 23, 2005 at 12:02 pm

    Hi Cornell,

    well spotted, I hadn’t noticed the floating “\n”. I have sorted it and a new version is available at the link above. If you would like a “bughunter” credit and your blog listed in the plugin then drop another comment here.

    At the moment the plugin does nothing to the style so if you want to change the style the you can either change or create the .meta class in the theme .css file or change the plugin code from this

    $output.= ‘Mood: ‘;
    $output.= $myMood;

    replace { and } below with < and > Sorry had to do this or WP just thinks they are display tags and they don’t show in the post :smile:

    $output.= ‘{em}Mood:{/em}’;
    $output.= ‘{strong}’.$myMood.’{/strong}’;

    I will have a look at a way to change the styling using the admin page in future version of the plugin.

    Many thanks for your feedback.

    Kev

  • 9 Cornell Finch Sep 23, 2005 at 2:17 pm

    Yay! Bughunter credit! Yes please :)

    Glad to help mate.

    Thanks for the info for the CSS I’ll try and get that implemented over the weekend and let you know how I get on :)

    Collin

  • 10 lu Sep 25, 2005 at 2:40 am

    yay! i love the new input fields in the “write” page! i’d actually hacked my write page so i had something similar (but more ugly) for the old plugin!

    However i do have a couple of questions that i can’t seem to figure out on my own - the old plugin was easy to understand but this one is a way more confusing .php!

    1. i keep my moods at the top of my entry, they used to sit right under my meta info perfectly, but with the new plugin they have a blank line in between, and i can’t seem to make it go away, there’s nothing in my css that would create it, i suspect it’s because in the old plugin the moods were above the storycontent, but now they’re within storycontent… yet no playing with the padding of .storycontent or .meta has reduced that space to nothing! very frustrating. Also, an old nicety from the other plugin was that it kept it’s meta style when sent off in RSS-land so it was nice and small - for example in people’s LJ friends lists. now it’s just normal text it doesn’t keep the formatting (which is what i would have expected originally, but i prefer the old way!)

    2. this is an extra, because i’m super nitpicky… feel free to get annoyed at me! …what code to i use to get rid of the mytv and mymood fields from the Write Post layout? - i only need the mymusic one :)

  • 11 Kev Sep 25, 2005 at 11:44 am

    Hi lu,

    I am not sure what can be happening as the output method has not changed. I take it that you have the latest version, there was a version where I had the closing metadata div tag in the wrong place and this did cause display problems.

    If you change the code from this

    $formOutput=”.__(’myMooMus’, ‘mymoomusmetakeys’).” ;
    $formOutput.=’Mood : ‘;
    if($setting['moodinput']==0) { $formOutput.=$this->mymoomus_mood_input_text($myMood,40);}
    elseif ($setting['moodinput']==1) { $formOutput.=$this->mymoomus_mood_menu($myMood,$setting['moodlist']);}
    elseif ($setting['moodinput']==2) { $formOutput.=$this->mymoomus_mood_menu($myMood,$setting['moodlist']).’&nbsp&nbsp’.$this->mymoomus_mood_input_text(”,24);}
    $formOutput.=”.__(”, ‘mymood’).”;
    $formOutput.=’Music : ‘.__(”, ‘mymusic’) ;
    $formOutput.=’ Tv : ‘.__(”, ‘mytv’).”;

    to this is

    $formOutput=”.__(’myMooMus’, ‘mymoomusmetakeys’).” ;
    $formOutput.=’Mood : ‘;
    if($setting['moodinput']==0) { $formOutput.=$this->mymoomus_mood_input_text($myMood,40);}
    elseif ($setting['moodinput']==1) { $formOutput.=$this->mymoomus_mood_menu($myMood,$setting['moodlist']);}
    elseif ($setting['moodinput']==2) { $formOutput.=$this->mymoomus_mood_menu($myMood,$setting['moodlist']).’&nbsp&nbsp’.$this->mymoomus_mood_input_text(”,24);}
    $formOutput.=”.__(”, ‘mymood’);
    $formOutput.=”;

    Then it should do what you want.

    Kev

  • 12 lu Sep 27, 2005 at 7:27 am

    hmmm well thanks for the clean code there, i did have a play myself but once i tweaked one thing i wanted to tweak another! and yeah i’ve only used the 1.24 and 1.25 versions, so i never had the div tag problem…

    thanks for the code, i’ll got clean up my file now!

    i did think of one other thing that is SO nitpicky, but i’ll tell you anyway, i keep forgetting to fill it out because it’s below the submit buttons… i don’t know how i did it before, but when i hacked all my files to use the original mymoodmus, i managed to have it right under the textarea field. it’s obviously not an important thing, but perhaps in future versions.

    and a question - if i go back to the original plugin. will i lose all my newer mymus entries?

  • 13 Kev Sep 27, 2005 at 7:42 am

    Hi Lu,

    sorry if the code is not clear I am working to improve it.

    yeah I would like the fields to be above the submit button but I don’t want to start directing people to change the template files, if I find away to do this through the filters then I will be changed.

    Version 1.0b will display the Mood and Music fields okay but you will have to change it if you want Tv. If you work out why it is displaying differently the can you let me know as I have not been able to work out why it should be different.

    Kev

  • 14 lu Sep 27, 2005 at 11:17 am

    kev, sorry i meant the mess *I* made needed to be cleaned up! not your code :) i was commenting out stuff here there and everywhere… hence making a mess…

    considering i know nothing, take my idea with a grain of salt, but i was thinking it might be the WAY it’s put into the page… err.. the old plugin used “add_content” the new plugin uses “add_post_meta” but hell. for all i know they’re just terms you made up yourself! anyway your making such an interesting and useful plugin has really taught me alot of the inner workings of wordprress, which as a non-coder i really appreciate, so thankyou! and sorry for spamming this here entry!

  • 15 lu Sep 27, 2005 at 11:18 am

    uh.. i mean “add_filter” not “add_content” sorry again… feel free to delete all this crap.

    i love this plugin!

  • 16 Nick Oct 16, 2005 at 3:03 am

    Hey. I am having a little problem with this. After installing it to the plugins directory and activating this in the admin page…When I go to options I get an error:
    Warning: main(/home/nick/public_html/blog/wp-content/plugins/myMooMus.php): failed to open stream: Success in /home/nick/public_html/blog/wp-admin/admin.php on line 63

    Warning: main(): Failed opening ‘/home/nick/public_html/blog/wp-content/plugins/myMooMus.php’ for inclusion (include_path=’.:/usr/lib/php:/usr/local/lib/php’) in /home/nick/public_html/blog/wp-admin/admin.php on line 63

    What am I doing wrong? Thanks…Nick

  • 17 Kev Oct 16, 2005 at 4:27 pm

    Hi Nick,

    from the error message it looks as if the plugin is not being read, can you check the permissions on a linux/unix host they should be chmod 644. All users should have read access and only the owner should have write access.

    Get back to me if you still have problems.

    Kev

  • 18 MissLadyhawke Oct 21, 2005 at 3:12 am

    One of the easiest plugins that I have installed. Thank you for this plugin, I will enjoy it :smile:

  • 19 Luke Nov 15, 2005 at 9:03 am

    Very useful little plugin. :grin:

  • 20 Cathie Dec 19, 2005 at 3:18 pm

    Hi There, Where do I go to get this plugin, I don’t see a download link.
    Thanks,
    Cathie

  • 21 Cathie Dec 19, 2005 at 3:26 pm

    Ok, never mind. I read a little bit slower this time and found the link.
    Thanks

  • 22 Chaz Dec 26, 2005 at 10:20 pm

    Hi Kev!

    Plugin is great! Thanks so much!

    I played around with the output, and although I finally got what I wanted it to display like (check out my blog), on my plugin page it is completely garbled - ie, showing the entire plugin php contents etc.

    “myMooMus’s settings were removed. You are now using the built in defaults.”

    Can you help? All I did was change the div class as well as the output settings.

    Thanx,
    Chaz

    Plus, do you think your plugin will be 2.0 compatible?

  • 23 Chaz Dec 26, 2005 at 10:21 pm

    shit… my page is here:
    http://savemefromtears.chazcurry.com/

  • 24 Kev Dec 27, 2005 at 11:15 am

    Hi Chaz,

    I only found out about version 2.0 yesterday and the servers were down at the time .
    I will check it out as soon as I can.

    I can’t really help you with your code problem without seeing the changes you have made.

    Kev

  • 25 Kev Dec 27, 2005 at 2:03 pm

    I am working on the compatibility between myMooMus and Wordpress 2.0 more information can be found here

    Kev

  • 26 Marshall Dec 29, 2005 at 2:08 am

    Great plug-in. Love being able to input the mood,music,tv from the write screen, However The Mood,Music,Tv all apear below the post.. how would i get them to appear below me post tile

  • 27 Kev Dec 29, 2005 at 9:41 am

    Hi Marshal,

    to get them to appear above the comment and below title follow the instructions above from The Configuration Page onwards. If you have aready done this and it is not working then please comment again with details such as version of Wordpress and Theme being used.

    Kev

  • 28 Mona Dec 30, 2005 at 9:13 pm

    I was wondering if you could help me make the mood be one line, then enter and have tv be on the next line, and then enter and have music on the next line. For example:

    Mood: Accomplished
    Listening to: Usher
    TV: Charmed

    Please let me know if you can help! Thanks!

  • 29 Kev Dec 30, 2005 at 11:05 pm

    Hi Mona,

    I will be adding this feature to version 1.4, version 1.3 is being tested and will be made public soon, hopefully 1.4 will follow later in January.

    In the mean time if you change the lines $output.= $myMood; & $output.= $myMusic; to be $output.= $myMood.’{br /}’; & $output.= $myMusic.’{br /}’;
    Replace { and } with < and > then it will display the way you want.

    Kev