MyBB Community Forums

Full Version: Sticky background only on threads / author area
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Curently how it looks:
[Image: 7461c752d21228ac78a32ad01547d3fd.png]

I want it to look like:
[Image: 77acba0cefae2ea1d5439ebe8484830e.png]

see the difference? How?

This is the code for the bg:

.forumdisplay_sticky{
	background: #324857 url(images/bgg.png) repeat-x !important;
}

Live site: http://justxp.plutohost.net/genx/forumdisplay.php?fid=2

Thanks.
You can try using Template Conditionals plugin. Here something similar: http://mybbhacks.zingaburga.com/showthread.php?tid=885
In your global.css paste following (replace red color with your desired)

td.forumdisplay_sticky:nth-child(3) {
  background-color: red;
}

As for sticky icon in forumdisplay_thread template find


			<span>{$prefix} {$gotounread}{$thread['threadprefix']}<a href="{$thread['threadlink']}" class="{$inline_edit_class} {$new_class}" id="tid_{$inline_edit_tid}">{$thread['subject']}</a>{$thread['multipage']}</span>
			

and add
<img class="float_right sticky_icon" src="http://imglink" alt="sticky" />

In global.css add


.sticky_icon {
  display:none;
}

.forumdisplay_sticky .sticky_icon {
  display:inline-block;
}
Thanks A lot it works!