May 20, 2013, 12:31:44 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Prowlie Welcome back! The site migration is complete and normal service resumed.
Advanced search
Pages: [1]   Go Down
Print
Author Topic: Post colours that work with this forum  (Read 2495 times)
0 Members and 1 Guest are viewing this topic.
chluaid
Bitey's Daddy
Administrator
Heroic
*****
Offline Offline

Gender: Male
Posts: 5379


ldf l srff r drlt sdtr


WWW
« on: June 24, 2008, 01:52:04 PM »

I just mixed a bunch of colours that you might like to use for posting.
Some of the standard defaults like this and this just don't work on these pages. So here are a few hex values you might like to use.

Pastel-type subtlety:
#92FC92
#FFA6AD
#C1E5FF
#FAC4FF
#FFD485
#FBFFA8

Garish and bold:
#DBFF00
#FFE700
#52FFE3
#EA6BFF
#FF2929

FYI, if you want to make avatar or sigs that blend nicely with the forum, here are some forum colours:

#000808
#1B2633 (member name & avatar strip)
#364D66
#4C5F78
#D2DEED

« Last Edit: June 25, 2008, 03:07:09 PM by chluaid » Logged

<a href="http://bitey.com/images/dashkin/728_animated1.swf" target="_blank">http://bitey.com/images/dashkin/728_animated1.swf</a>
Markham
This text is customised.
MotM
Heroic
**
Offline Offline

Gender: Male
Posts: 3215


Ninjas make awesome sandwiches.


WWW
« Reply #1 on: June 24, 2008, 03:02:31 PM »

I think there's something you can edit to change the settings on the color selector.  I don't know where it is at the moment, but I can tell you how to make all the "New" images appear to the left of the topic titles so that they are all lined up and easy to read:

open Themes\template name (default if file is missing)\MessageIndex.template.php
Go to lines 221-227
They should appear like so:
Code:
echo '
', $topic['is_sticky'] ? '<b>' : '' , '<span id="msg_' . $topic['first_post']['id'] . '">', $topic['first_post']['link'], '</span>', $topic['is_sticky'] ? '</b>' : '';

// Is this topic new? (assuming they are logged in!)
if ($topic['new'] && $context['user']['is_logged'])
echo '
<a href="', $topic['new_href'], '" id="newicon' . $topic['first_post']['id'] . '"><img src="', $settings['images_url'], '/', $context['user']['language'], '/new.gif" alt="', $txt[302], '" /></a>';

Make it like this:
Code:
// Is this topic new? (assuming they are logged in!)
if ($topic['new'] && $context['user']['is_logged'])
echo '
<a href="', $topic['new_href'], '" id="newicon' . $topic['first_post']['id'] . '"><img src="', $settings['images_url'], '/', $context['user']['language'], '/new.gif" alt="', $txt[302], '" /></a>';

echo '
', $topic['is_sticky'] ? '<b>' : '' , '<span id="msg_' . $topic['first_post']['id'] . '">', $topic['first_post']['link'], '</span>', $topic['is_sticky'] ? '</b>' : '';

It's nothing real complex, your just moving a few lines of code around.




[EDIT]
Okay, I found out how to fix the colors.

Open Themes\template name (default if file is missing)\Post.template.php
Go to line 828
Code:
// Print a drop down list for all the colors we allow!
if (!isset($context['disabled_tags']['color']))
echo ' <select onchange="surroundText(\'[color=\' + this.options[this.selectedIndex].value.toLowerCase() + \']\', \'[/color]\', document.forms.', $context['post_form'], '.', $context['post_box_name'], '); this.selectedIndex = 0; document.forms.', $context['post_form'], '.', $context['post_box_name'], '.focus(document.forms.', $context['post_form'], '.', $context['post_box_name'], '.caretPos);" style="margin-bottom: 1ex;">
<option value="" selected="selected">', $txt['change_color'], '</option>
<option value="Black">', $txt[262], '</option>
<option value="Red">', $txt[263], '</option>
<option value="Yellow">', $txt[264], '</option>
<option value="Pink">', $txt[265], '</option>
<option value="Green">', $txt[266], '</option>
<option value="Orange">', $txt[267], '</option>
<option value="Purple">', $txt[268], '</option>
<option value="Blue">', $txt[269], '</option>
<option value="Beige">', $txt[270], '</option>
<option value="Brown">', $txt[271], '</option>
<option value="Teal">', $txt[272], '</option>
<option value="Navy">', $txt[273], '</option>
<option value="Maroon">', $txt[274], '</option>
<option value="LimeGreen">', $txt[275], '</option>
</select>';
echo '<br />';

Just change the values from the color name to a color code, ex: <option value='"#000000">
You can copy existing option tags and paste them for more color options.  You can rename them by removing ', $txt[###], ' and type in the color in its place, or you can add more variables to the $txt array located in Languages/Post.english.php
« Last Edit: June 24, 2008, 03:12:09 PM by Markham » Logged

chluaid
Bitey's Daddy
Administrator
Heroic
*****
Offline Offline

Gender: Male
Posts: 5379


ldf l srff r drlt sdtr


WWW
« Reply #2 on: June 24, 2008, 03:32:41 PM »

dude, that is awesome! Thanks so much.. I'm off to change em Cheesy
While you're flinging gold dust around, can you tell me where I should paste my Adsense code (I want the ad banner to go directly above the News Fader)?
Logged

<a href="http://bitey.com/images/dashkin/728_animated1.swf" target="_blank">http://bitey.com/images/dashkin/728_animated1.swf</a>
Markham
This text is customised.
MotM
Heroic
**
Offline Offline

Gender: Male
Posts: 3215


Ninjas make awesome sandwiches.


WWW
« Reply #3 on: June 24, 2008, 04:13:39 PM »

If you open up the BoardIndex.template.php file, you should be able to stick the AdSense code right before the <?php on the first line.
Logged

chluaid
Bitey's Daddy
Administrator
Heroic
*****
Offline Offline

Gender: Male
Posts: 5379


ldf l srff r drlt sdtr


WWW
« Reply #4 on: June 24, 2008, 04:14:50 PM »

trying it now.. thanks man. How do you like the new list of colours?
Cheesy
Logged

<a href="http://bitey.com/images/dashkin/728_animated1.swf" target="_blank">http://bitey.com/images/dashkin/728_animated1.swf</a>
Markham
This text is customised.
MotM
Heroic
**
Offline Offline

Gender: Male
Posts: 3215


Ninjas make awesome sandwiches.


WWW
« Reply #5 on: June 24, 2008, 05:23:15 PM »

Awesome!

 .,Lips Sealed,.
~Bleaureargh!~
Logged

chluaid
Bitey's Daddy
Administrator
Heroic
*****
Offline Offline

Gender: Male
Posts: 5379


ldf l srff r drlt sdtr


WWW
« Reply #6 on: June 24, 2008, 05:51:01 PM »

mmmm
* chluaid slurps
Logged

<a href="http://bitey.com/images/dashkin/728_animated1.swf" target="_blank">http://bitey.com/images/dashkin/728_animated1.swf</a>
crumb
Rufum Ru Sudily
Animator
Heroic
******
Offline Offline

Gender: Male
Posts: 4172


Previously MUNCH


WWW
« Reply #7 on: June 28, 2008, 04:55:36 AM »

mmm very
babyspit?  gah!what da:O
Logged


www.nathanviney.com
for the latest news and new live action/animated films

\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"Sometimes i like to quote myself *Chuckle*\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\" from Puffinpants by Marshall Hens
Brackenwood
   

 Logged
Pages: [1]   Go Up
Print
Jump to:  

Theme by Pieter, based on Black Rain by Crip Powered by SMF 1.1.16 | SMF © 2011, Simple Machines XHTML | CSS

Page created in 0.068 seconds with 24 queries.