News:

Wondering if this will always be free?  See why free is better.

Main Menu

ColorizePost

Started by Bulakbol, January 15, 2008, 09:45:48 PM

Previous topic - Next topic

Bulakbol

@flamechica
You can manually remove the theme checking from posts. In Display.template.php, find
if (isset($message['member']['theme']) && $message['member']['theme'] == $context['user']['theme_id'])
$color = !empty($message['member']['post_color']) ? $message['member']['post_color'] : (!empty($message['member']['group_color']) ? $message['member']['group_color'] : (!empty($message['member']['post_group_color']) ? $message['member']['post_group_color'] : ''));
else
$color = '';

replace with
$color = !empty($message['member']['post_color']) ? $message['member']['post_color'] : (!empty($message['member']['group_color']) ? $message['member']['group_color'] : (!empty($message['member']['post_group_color']) ? $message['member']['post_group_color'] : ''));

If that works, you can also remove the same code from PersonalMessage.template.php. It is a temporary until I update the mod.
Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

flamechica

Sorry it took me a few days to see this. It worked! THANK YOU SO MUCH!!!!

Bulakbol

flamechica
My pleasure. If you have other issues or request, let me know.  ;)
Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

flamechica

Sorry to be a pain, but I recently noticed that this mod must be having issues the with Member Color Link mod. So, the default color for every member is the color of the membergroup color instead of black. Could you help me fix this?

Bulakbol

@flamechica
If no color is specified in their profile, primary group or post group online color will be used instead. Would you like to use the default color if they don't choose any color for their post/message?

Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

flamechica

Yes, I think the default color would work better. The way it is now is confusing my members. lol.

gbsothere

Bulakbol, I went ahead on my RC1.2 test forum and set the emulator for RC1 and installed this, since I'll be moving my posters up from 1.1.10 soon and they will be angry with me if we don't still have this mod.   :)

It works beautifully, but, if you have time, could I PM you a test login so that you can set up your profile defaults and try posting in order to take a look at a strange behavior that occurs in the reply box as a poster is actually typing?   The words in the reply box become invisible as you're typing and you must drag your mouse back over them to see them.  It's not a big issue and I can live with it, but I wondered, since I installed the RC1 on a RC1.2 forum, if some file will eventually have to be modified when this is made available for RC1.2?

My apologies, but I am taking a break from accepting PM requests for support.  If I am not currently assisting you, please do not ask as long as this notice is posted.  Thank you.

I Don't Want To Grow Old Alone


It has been proven that Steely Dan reduces the occurrence of road rage, according to an independent study.



A reminder about admin / ftp passwords etc.

mycousinvinny

Bulakbol, I applied this mod and it works great. Thanks for a very cool addition!!

Vinny

flamechica

Quote from: flamechica on August 26, 2009, 03:27:11 PM
Sorry to be a pain, but I recently noticed that this mod must be having issues the with Member Color Link mod. So, the default color for every member is the color of the membergroup color instead of black. Could you help me fix this?

So, is there a way to change the default color to black?

linette97

Great Mod!! Works perfect with 2.0RC 1.2!!
I wanted more color options to the drop down menu, Was disappointed because the earlier version I was able to type in the color I wanted BUT that didn't stop me  :P

So I went into ./Themes/default/Profile.template.php OR if you have a custom theme
./Themes/your custom theme/Profile.template.php

I looked for this

<option value="black"

Copied this
<option value="black" style="color: black;">', $txt['black'], '</option>

Pasted it anywhere within the color selections

                    <option value="red" style="color: red;">', $txt['red'], '</option>
<option value="yellow" style="color: yellow;">', $txt['yellow'], '</option>
<option value="pink" style="color: pink;">', $txt['pink'], '</option>
<option value="green" style="color: green;">', $txt['green'], '</option>
<option value="orange" style="color: orange;">', $txt['orange'], '</option>
<option value="purple" style="color: purple;">', $txt['purple'], '</option>
<option value="blue" style="color: blue;">', $txt['blue'], '</option>
<option value="beige" style="color: beige;">', $txt['beige'], '</option>
<option value="brown" style="color: brown;">', $txt['brown'], '</option>
<option value="teal" style="color: teal;">', $txt['teal'], '</option>
                                         
<option value="navy" style="color: navy;">', $txt['navy'], '</option>
<option value="maroon" style="color: maroon;">', $txt['maroon'], '</option>
<option value="limegreen" style="color: limegreen;">', $txt['limegreen'], '</option>


Renamed to the color I wanted
                                        <option value="black" style="color: black;">', $txt['black'], '</option>
               <option value="red" style="color: red;">', $txt['red'], '</option>
               <option value="yellow" style="color: yellow;">', $txt['yellow'], '</option>
               <option value="pink" style="color: pink;">', $txt['pink'], '</option>
               <option value="green" style="color: green;">', $txt['green'], '</option>
               <option value="orange" style="color: orange;">', $txt['orange'], '</option>
               <option value="purple" style="color: purple;">', $txt['purple'], '</option>
               <option value="blue" style="color: blue;">', $txt['blue'], '</option>
               <option value="beige" style="color: beige;">', $txt['beige'], '</option>
               <option value="brown" style="color: brown;">', $txt['brown'], '</option>
               <option value="teal" style="color: teal;">', $txt['teal'], '</option>
               <option value="navy" style="color: navy;">', $txt['navy'], '</option>
            <option value="indianred" style="color: indianred;">', $txt['indianred'], '</option>
               <option value="maroon" style="color: maroon;">', $txt['maroon'], '</option>
               <option value="limegreen" style="color: limegreen;">', $txt['limegreen'], '</option>


THEN I went to ./Themes/default/languages/Profile.english.php OR if your custom them has it
./Themes/yourcustomtheme/languages/Profile.english.php

I found this

$txt['personal_color']

I copied this
$txt['black'] = 'Black';

Then Pasted it within the color list
$txt['red'] = 'Red';

$txt['yellow'] = 'Yellow';
$txt['pink'] = 'Pink';
$txt['green'] = 'Green';
$txt['orange'] = 'Orange';
$txt['purple'] = 'Purple';
$txt['blue'] = 'Blue';
$txt['beige'] = 'Beige';
$txt['brown'] = 'Brown';
$txt['teal'] = 'Teal';
$txt['navy'] = 'Navy';


Should look like this
$txt['red'] = 'Red';
$txt['indianred'] = 'indianRed';
$txt['yellow'] = 'Yellow';
$txt['pink'] = 'Pink';
$txt['green'] = 'Green';
$txt['orange'] = 'Orange';
$txt['purple'] = 'Purple';
$txt['blue'] = 'Blue';
$txt['beige'] = 'Beige';
$txt['brown'] = 'Brown';
$txt['teal'] = 'Teal';
$txt['navy'] = 'Navy';

And your Done!!


But I still would like this option to add your own color without going through this.. Is there a way to do this??? Thanks for your help!!
Watch Documentaries Online!


Yesterday is history,
Tomorrow is a mystery,
Today is a gift,
That's why it's called the Present.

HELLSXD

I have a problem, I uninstalled the mod, then I tried to install it again and I got:

Duplicate entry 'board_post_color' for key 1

any help?

linette97

#191
Can anyone help with the question above that I posted a month ago?
http://www.simplemachines.org/community/index.php?topic=217033.msg2349408#msg2349408

Thanks!

EDIT: 1/19/2010 (Yet ANOTHER MONTH HAS PASSED :-[)
I had to un-install the mod since I upgraded to 2.0 RC2. Many of my members are asking for this feature back.. Will this be updated to work with RC2? & if so why not have it like it was before with choosing your own color text to type in like I mentioned above
Watch Documentaries Online!


Yesterday is history,
Tomorrow is a mystery,
Today is a gift,
That's why it's called the Present.

XtcruleZ

Will this work for SMF 2.0 RC2?

XtcruleZ

Anyone care to update this thread or maybe even the MOD itself to work with RC2 ?

XtcruleZ

Anyone? Bueller............?

DilSe

Quote from: XtcruleZ on January 18, 2010, 05:47:02 PM
Will this work for SMF 2.0 RC2?

hello to all please any help for 2.0 RC2 thanks

distante

Looks like I'm not the only one who wants this excellent mod for RC2 :(

XtcruleZ

You are not the only one, but it seems no one wants to do it for us.

!RFAN

and for smf 2 rc3 ?? :(

Shades.

I too would like this mod to be updated for RC3! 8)
ShadesWeb.com - Custom Logos - My Themes on SMF | My Themes on ShadesWeb
https://shadesweb.com

BikerHound.com - Sniffing out the road ahead
https://bikerhound.com

Dream as if you'll live forever; Live as if you'll die today. - James Dean

Advertisement: