News:

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

Main Menu

Sticky/Locked Topics background color

Started by Aaron10, July 27, 2014, 12:51:22 AM

Previous topic - Next topic

Aaron10

How do I make the sticky/locked topics show as regular topics on message.template? Keeping the sticky and locked gifs, just changing the background colors to default like the rest of the topics. I'm using dilber2.0 so I've attached my message.template.php in case anyone wants to check it out.

br360

If you are just trying to change the background color of the sticky/lock topics to be the same color as regular topics, that change will be in the theme's index.css, not message.template.php

Aaron10

dilber uses gradient images, but I did try to change the css which half worked, the background of the topic title was plain white.

Here's the test forum I'm working on as you can see:
http://www.final7fantasy.com/testforum/index.php/board,3.0.html

whereas regular ones look like this:
http://www.final7fantasy.com/testforum/index.php/board,1.0.html

For dilber on 1.1.X it has this:

// Do we want to seperate the sticky and lock status out?
if (!empty($settings['seperate_sticky_lock']) && strpos($topic['class'], 'sticky') !== false)
$topic['class'] = substr($topic['class'], 0, strrpos($topic['class'], '_sticky'));
if (!empty($settings['seperate_sticky_lock']) && strpos($topic['class'], 'locked') !== false)
$topic['class'] = substr($topic['class'], 0, strrpos($topic['class'], '_locked'));


But it's not in the 2.0.X version of the theme. I tried adding it but nothing.

br360

Yeah, I tried to play with it changing it on both the index.css as well as the index_blue.css, and got the same result you did. Your best bet would probably be to ask in his theme thread. The author is usually very good about supporting his themes.

Link to the support thread for that theme- http://www.simplemachines.org/community/index.php?topic=91902.0

Aaron10

I've asked in there. I've done something a bit cheap in css by just copying and pasting windowbg into stickybg and lockedbg, which has half worked as you can see:

http://www.final7fantasy.com/testforum/index.php/board,3.0.html
vs
http://www.final7fantasy.com/testforum/index.php/board,1.0.html

As you can see the background is just white where the topic titles are, because the sticky.gif and locked.gif are background images in those fields. Is there a way to have the background gradient and those gifs as background images? Or would I need to have the gifs as actual images instead?

Illori

try changing .stickybg2 to

background: linear-gradient(to bottom, #E0E8F8 0px, #FFFFFF 100%) transparent;
color: #000000;


as well as .stickybg and .lockedbg2

the images have a transparent background so the color of those should not matter.

Aaron10

Still the same. Is there no way to have the two gifs in the topic title field in a div with the same CSS?

.topic_table td.stickybg2
{
background-image: url(../images/icons/quick_sticky.gif);
background-repeat: no-repeat;
background-position: 98% 4px;
}
.topic_table td.lockedbg2
{
background-image: url(../images/icons/quick_lock.gif);
background-repeat: no-repeat;
background-position: 98% 4px;
}
.topic_table td.locked_sticky2
{
background-image: url(../images/icons/quick_sticky_lock.gif);
background-repeat: no-repeat;
background-position: 98% 4px;
}


Then I can just apply .windowbg to the topic title and have the two gifs appear in a div. No idea otherwise.

Aaron10

Bump

No way to just simply promote them to images in the same 98% 4px positions?

Advertisement: