-
AuthorPosts
-
September 19, 2006 at 4:21 pm #117222
I would like to add extra images to the color picker at top of template.
Also, want to add formatted text directly to the right of the color picker images that can instruct users to use the color picker.Wherehow can this be done?
Thanks
BHOKhanh Le ModeratorKhanh Le
- Join date:
- November 2013
- Posts:
- 1884
- Downloads:
- 41
- Uploads:
- 31
- Thanks:
- 44
- Thanked:
- 203 times in 131 posts
September 20, 2006 at 2:10 am #2105651. Add new colors to the array $ja_color_themes (line 17):
[PHP]$ja_color_themes = array(‘brown’, ‘green’, ‘red’, ‘blue’, ‘black’, ‘gold’, ‘white’); // You can add more color array if needed[/PHP]2. Upload color picker images to folder /templates/ja_polaris/images. The image name must match the format: .gif. Eg: black.gif, gold.gif, white.gif…
3. Now add appropriate color css file to folder: /templates/ja_polaris/css/colors (eg: black.css, gold.css, white.css…)
That’s all you need to add a new color style for this template.
September 20, 2006 at 5:52 am #210568Great work on the color picker!
Can you help with second part of my question?
ThxAlso, want to add formatted text directly to the right of the color picker images that can instruct users to use the color picker.
Wherehow can this be done?
</blockquote>Hieu Nguyen AdminHieu Nguyen
- Join date:
- November 2005
- Posts:
- 678
- Downloads:
- 36
- Uploads:
- 0
- Thanks:
- 69
- Thanked:
- 61 times in 1 posts
September 21, 2006 at 3:21 am #210580Hi brunoho,
What do you like the formatted text to be? 😉
I guest you like to put the “Choose your color here” 😉 string into the color picker. If so, please open the “ja_templatetools.php” in the template folder, find these lines:
if ($jatool & 2){//show color tools
?>
<span class="ja-color-theme" style="font-size:11px">
<img style="cursor: pointer;" src="<?php echo $ja_template_path;?>/images/default_color<?php echo ( ($ja_color=="") ? "-hilite" : "" ) ?>.gif" title="Default color" alt="Default color" id="ja-tool-defaultcolor" onclick="changeToolHilite(curcolor, this);curcolor=this;setActiveStyleSheet('');" />Replace with this code:
if ($jatool & 2){//show color tools
?>
<span class="ja-color-theme" style="font-size:11px">
<strong>Choose your color here:</strong>
<img style="cursor: pointer;" src="<?php echo $ja_template_path;?>/images/default_color<?php echo ( ($ja_color=="") ? "-hilite" : "" ) ?>.gif" title="Default color" alt="Default color" id="ja-tool-defaultcolor" onclick="changeToolHilite(curcolor, this);curcolor=this;setActiveStyleSheet('');" />Hope this help 😀 !
September 21, 2006 at 7:21 am #210581That did it. Thanks!!
April 17, 2007 at 2:00 pm #218194<em>@Khanh Le 2211 wrote:</em><blockquote>2. Upload color picker images to folder /templates/ja_polaris/images. The image name must match the format: .gif. Eg: black.gif, gold.gif, white.gif…</blockquote>
There’s a bit missing. You need two images for the colour picker. The first as described above, and the second for when the colour has been selected and is active. The image name for this one must match the format: -hilite.gif. Eg: black-hilite.gif, gold-hilite.gif, white-hilite.gif…
If you’re using the suckerfish menu you also need new menu background images in the /templates/ja_polaris/ja_cssmenu folder called navbg-.gif and navbg-on-.gif. The URL to these needs to be updated in the css/colors/.css if you’ve copied and modified an existing colour’s css file.
Mike
-
AuthorPosts
This topic contains 6 replies, has 4 voices, and was last updated by mpetrie 17 years, 7 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum