News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Mood Mod Colours?

Started by Ironside82, November 26, 2003, 02:52:40 PM

Previous topic - Next topic

Ironside82

How can I change the colour of the text for the moods... I have a dark background on my forum and I cant read what it says... See what I mean go here: www.blackberrystudios.co.uk/forum

Amacythe

I tried highlighting posts and still don't see the mood text, are you sure the mod is activated?

Ironside82

Oh sorry. you need to be logged in to view the moods here is a pic of what they look like atm:

Oldiesmann

#3
Hmmm... Not sure why that text isn't showing up. I don't have it set to use any particular color for the moods text, so I would assume it would use the default forum text color. However, there is a way to fix this...

in Display.php
Search for:
            $usermood = $moodtxt[2] . ': <img src="' . $imagesdir . '/' . $mood[1] . '" alt="' . $mood[0] . '" /><br />';

Replace with:
            $usermood = '<font color="#FFFFFF">' . $moodtxt[2] . ':</font> <img src="' . $imagesdir . '/' . $mood[1] . '" alt="' . $mood[0] . '" /><br />';

In Profile.php
Search for:
                        echo $moodtxt[2] . ': <img src="' . $imagesdir . '/' . $mood[mood_filename] . '" alt=' . $mood[mood] . '><br /><br />';

Replace with:
                        echo '<font color="#FFFFFF">' . $moodtxt[2] . ':</font> <img src="' . $imagesdir . '/' . $mood[mood_filename] . '" alt=' . $mood[mood] . '><br /><br />';

This will tell it to make the text white instead of black.

Now, at some point I will release an updated version of this, assuming I can ever get it to allow you to update the moods. I will add something to let you specify what color you want the mood text to be.
Michael Eshom
Christian Metal Fans

Ironside82

I've made the changed and it still doesn't appear to work :s

SparkieGeek

Quote from: Ironside82 on November 29, 2003, 07:06:06 AM
I've made the changed and it still doesn't appear to work :s
I'm not familiar with the Mood Mod and how it works, but looking at the HTML code for your front page clearly demonstrates why you can't see it:


*snip*
<font size="1" color="#000000">
        Moods:<a href="http://www.blackberrystudios.co.uk/forum/index.php?board=;action=changemood;mood_id=1"/>
*snip*


Ironside82

Thats after its been generated though... in the template all there is, is: <yabb mood>.
BTW that code that Oldiesmann gave me worked but only on the posts not the one to set which mood your currently in... In redoing my board any way do I wouldn't worry about it yet.
Thanks anyway

Advertisement: