News:

Join the Facebook Fan Page.

Main Menu

Color Picker

Started by Windy, December 30, 2008, 11:07:23 PM

Previous topic - Next topic

Windy

Link to Mod

Color Picker
Replaces the color drop down box on the posting page with a button, that when clicked pops up a small box that allows the user to select their color based on rgb values.
All unsolicited PM's will be ignored.  Any support requests should go in their topics.

My Mods


Image Zoom Tag
Image Quote Removal
Color Picker
Additional Polls
Simple Awards System

Mods are only updated to the latest same major version of smf on request.

[unplugged]

Cool mod!
However, when I go to install it, I get a File Not Found error because it is looking for Post.Template.php when it should be looking for Post.template.php. ;)
« Next Edit: Tomorrow at 08:34:45 PM by SunKing »   <---- « someone stole my sig... :o »



Windy

ah, after all the trouble I went through to get it approved D:

Anyways, I've fixed that now, as I've just uploaded a new copy with that particular change.
All unsolicited PM's will be ignored.  Any support requests should go in their topics.

My Mods


Image Zoom Tag
Image Quote Removal
Color Picker
Additional Polls
Simple Awards System

Mods are only updated to the latest same major version of smf on request.

netco

I hope to see it works with smf2 beta4 :)
There is no need to think or choose . just smf

dimdom

Template errors in all three browsers

[unplugged]

It looks fine on my site.


What other mods do you have installed? What theme are you using? Did you install this mod using the package manager?
« Next Edit: Tomorrow at 08:34:45 PM by SunKing »   <---- « someone stole my sig... :o »



dimdom

Thanks for answering.

I use overview dark for TP 0.9.8 as my main theme.

I also use a lot of mods, but none can interfere with the css of this mod.

brandonroy

Works good for me! Thanks :)

Windy

Quote from: dimdom on January 01, 2009, 12:09:26 PM
Thanks for answering.

I use overview dark for TP 0.9.8 as my main theme.

I also use a lot of mods, but none can interfere with the css of this mod.
At a guess, assuming that you didn't manually install it on that theme and you're using the default post.template.php, I'd say it's related the the amount of padding the theme has added to the table, the box that the color picker is in is has a fixed width, what you're essentially seeing is that not everything can fit on the line it's supposed to because there isn't enough space (because of additional padding), so it's being pushed down to the next.

Probably the easiest solution, and one that won't muck up that theme would be to edit the post.template.php and to increase the size of the box itself, there are I believe 5 widths you would need to change in order to make it longer, you'll find them in the div with the id, "colorBox".

What you may want to consider doing is replacing the fixed widths that I have in place with css that's been defined in a style sheet, it would probably go along the lines of something like this, although I haven't tested it.

div#colorBox
{
    width: 248px;
}

div#colorBox div
{
    width: 247px;
}

div#colorBox div table.bordercolor
{
    width: 242px;
}

div#colorBox div table.bordercolor table.windowbg
{
    width: 240px;
}

div#colorBox div table.bordercolor div table
{
    width: 240px;
}

div#colorBox div + div + div
{
    width: 232px;
}
All unsolicited PM's will be ignored.  Any support requests should go in their topics.

My Mods


Image Zoom Tag
Image Quote Removal
Color Picker
Additional Polls
Simple Awards System

Mods are only updated to the latest same major version of smf on request.

MultiformeIngegno

Really good idea! :)

Quote from: netco on December 31, 2008, 04:54:37 AM
I hope to see it works with smf2 beta4 :)
Me too!! I can't use it.. :(
RockCiclopedia (wiki - forum), Tutta la storia del rock, scritta da voi ...
Rimanere aggiornati sul mondo della musica grazie al nuovo feed "RockCiclopedia Music News"!

JoeB

Mode installed with ease ....BUT I am getting this line at the top of forums

// Color Picker $txt['color_picker'] = 'Color Picker';

I tried to unisstall the mode but it failed

Please help

Joe

dimdom

Windy, thank you for your answer. :)

LinK187

It works fine for me, but this error keeps appearing in my error log:

Quote****   Today at 09:39:54 AM 
*.*.*.*     4a8b468c25a74ee90cf8f94dcc45b991 
http://****/forum/index.php?action=post2;start=0;board=7 
8: Undefined index: color_picker
File: /home/****/public_html/****/forum/Themes/default/languages/Post.english-utf8.php (eval?)
Line: 983

Windy

It is because you are using utf8.  You should be able to insert$txt['color_picker'] = 'Color Picker'; into your Modifications.english-utf8.php file.
All unsolicited PM's will be ignored.  Any support requests should go in their topics.

My Mods


Image Zoom Tag
Image Quote Removal
Color Picker
Additional Polls
Simple Awards System

Mods are only updated to the latest same major version of smf on request.

LinK187

Quote from: Windy on January 25, 2009, 08:49:23 AM
It is because you are using utf8.  You should be able to insert$txt['color_picker'] = 'Color Picker'; into your Modifications.english-utf8.php file.

Where in the file? anywhere?

Windy

Quote from: LinK187 on January 25, 2009, 09:02:26 AM
Quote from: Windy on January 25, 2009, 08:49:23 AM
It is because you are using utf8.  You should be able to insert$txt['color_picker'] = 'Color Picker'; into your Modifications.english-utf8.php file.

Where in the file? anywhere?
Just about anywhere, just as long as its between the php tags.
All unsolicited PM's will be ignored.  Any support requests should go in their topics.

My Mods


Image Zoom Tag
Image Quote Removal
Color Picker
Additional Polls
Simple Awards System

Mods are only updated to the latest same major version of smf on request.

LinK187

Quote from: Windy on January 25, 2009, 07:23:46 PM
Quote from: LinK187 on January 25, 2009, 09:02:26 AM
Quote from: Windy on January 25, 2009, 08:49:23 AM
It is because you are using utf8.  You should be able to insert$txt['color_picker'] = 'Color Picker'; into your Modifications.english-utf8.php file.

Where in the file? anywhere?
Just about anywhere, just as long as its between the php tags.

Thx, I've also just switched the forum over to normal english. Every damn mod gives me utf-8 errors. Really annoying. Wonder why smf defaults to it when none of the mod makers support it. :\

Marcus Forsberg

Swedish translation:


// Color Picker
$txt['color_picker'] = Färgväljare';     

Apllicmz

when Update dont forget
Update portuguese

<file name="$languagedir/Modifications.portuguese_pt.php" error="skip">
            <operation>
                <search position="end"></search>
                <add><![CDATA[
// Color Picker Translate by Candidosa2
$txt['color_picker'] = 'Selecionador de cores';     
    ]]></add>
            </operation>
        </file>
        <file name="$languagedir/Modifications.portuguese_pt-utf8.php" error="skip">
            <operation>
                <search position="end"></search>
                <add><![CDATA[
// Color Picker Translate by Candidosa2
$txt['color_picker'] = 'Selecionador de cores';     
    ]]></add>
            </operation>
        </file>
        <file name="$languagedir/Modifications.portuguese_brazilian.php" error="skip">
            <operation>
                <search position="end"></search>
                <add><![CDATA[
// Color Picker Translate by Candidosa2
$txt['color_picker'] = 'Selecionador de cores';     
    ]]></add>
            </operation>
        </file>
        <file name="$languagedir/Modifications.portuguese_brazilian-utf8.php" error="skip">
            <operation>
                <search position="end"></search>
                <add><![CDATA[
// Color Picker Translate by Candidosa2
$txt['color_picker'] = 'Selecionador de cores';     
    ]]></add>
            </operation>
        </file>




Advertisement: