vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=192)
-   -   Different Cell Color for Stickies (https://vborg.vbsupport.ru/showthread.php?t=123939)

NeoAntrax 10-05-2007 07:56 AM

Quote:

Originally Posted by frostyIntrepid (Post 1342168)
I did edit the css file and changed to #hex color but it doesn't seem to be reflecting on my forum.

Any idea guys?

I'm too :confused:

puregraf 10-26-2007 05:51 PM

here you go all, or you simply copy all from the notepad and open word pad and past and it will be perfect:

Quote:

Different Cell Color for Stickies
by Andrew111888

In ACP -> Styles & Templates -> Style Manager -> [desired style] -> Edit Templates -> threadbit

Find the following line:

<td class="alt1" id="td_threadtitle_$thread[realthreadid]" title="$thread[preview]">

and replace it with the following:

<if condition="$thread['sticky'] == 1">
<td class="alt2" id="td_threadtitle_$thread[realthreadid]" title="$thread[preview]">
<else />
<td class="alt1" id="td_threadtitle_$thread[realthreadid]" title="$thread[preview]">
</if>

####################################
####################################
####################################

If that is not enough of an offset, you could also do what I did.

========== STEP 1 ==========

In ACP -> Styles & Templates -> Style Manager -> [desired style] -> Edit Templates -> threadbit

Find the following line:

<td class="alt1" id="td_title_$thread[realthreadid]" title="$thread[preview]">

and replace it with the following:

<if condition="$thread['sticky'] == 1">
<td class="stickybg" id="td_threadtitle_$thread[realthreadid]" title="$thread[preview]">
<else />
<td class="alt1" id="td_threadtitle_$thread[realthreadid]" title="$thread[preview]">
</if>

========== STEP 2 ==========

In ACP -> Styles & Templates -> Style Manager -> [desired style] -> Main CSS -> Additional CSS Definitions

Add the following declaration:

.stickybg
{
background-color: #hex;
color: #000000;
}

and simply replace hex with the desired hexcode.

RedGTiVR6 02-27-2008 06:10 PM

Anyone know if this will work with 3.7?

DieselMinded 05-09-2008 02:38 AM

Working Great on 3.7.0 Gold

KAWIE1 07-21-2008 01:27 AM

Thanks man! My second mod...:D

kpmedia 01-28-2010 03:26 AM

Works in vB 3.8.2


All times are GMT. The time now is 02:12 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01165 seconds
  • Memory Usage 1,730KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete