vb.org Archive

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

manguish 11-27-2005 07:45 AM

I did this :

PHP Code:

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

Code:

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

Worked well with my scheme too :D

manguish 11-27-2005 07:45 AM

Quote:

Originally Posted by da420
Its not working for me for some reason in my v3.5.1...

I replace this line in threadbit:

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

With this line:

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

and then I go to the CSS definitions, and add this to the code at the bottom:

.stickybg
{
background-color: #00FF00;
color: #000000;
}


I would much appreciate some help, Thanks!

Change the red bit to say :

stickybg

Andrew111888 11-27-2005 07:06 PM

Quote:

Originally Posted by da420
Its not working for me for some reason in my v3.5.1...

I replace this line in threadbit:

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

With this line:

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

and then I go to the CSS definitions, and add this to the code at the bottom:

.stickybg
{
background-color: #00FF00;
color: #000000;
}


I would much appreciate some help, Thanks!

The following will fix your issue:

Code:

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

You defined stickybg but you weren't utilizing it.

AWI 12-08-2005 08:50 AM

Works on 3.5.2, I was looking for something like this thanks

dieselpowered 12-11-2005 04:10 PM

Woks just fine on 3.5.2 :)

Thanks!

LBSources 12-17-2005 12:41 AM

great thanks..

ReZ 12-27-2005 03:56 PM

I followed the instructions correctly, but i can't get this to work.
Even when i define my hex code, the cell background keeps showing up as black.
Has anyone else got this to work with 3.5.2.?

Andrew111888 01-02-2006 11:39 PM

Numerous people have said it works with 3.5.2.

You have some incorrect code somewhere.

Club3G 01-15-2006 04:14 PM

I removed the hex line altogether to make it work, and just changed the color code to my background.

Edit: And threw up my own spin on it here:

https://vborg.vbsupport.ru/showthread.php?p=874196

QueenBee 01-15-2006 05:56 PM

when the regular one it it was fine. but it was too broght for me, so i tried the color one. it froze up my board.:(

::clicks uninstall::


All times are GMT. The time now is 11:23 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.01153 seconds
  • Memory Usage 1,744KB
  • 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_code_printable
  • (1)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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