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)

Andrew111888 08-14-2005 10:00 PM

Different Cell Color for Stickies
 
What this modification does is change the td cell background color for a sticky thread when viewing a thread listing.

Please note the screenshots are from my 3.0.x release as there's no reason to make new ones.

Versions:
3.6.0
3.5.0
3.0.0

RoryF 08-15-2005 08:08 AM

Installs, thanks :)

turksengel 08-15-2005 08:28 AM

thanks good idea ;)

jugo 08-15-2005 12:27 PM

Great idea.

/me installs.

Andrew111888 08-15-2005 04:35 PM

Thanks ;).

Floris 08-16-2005 05:35 PM

Cool, I like this! Tnx for sharing.

alwafi 08-16-2005 11:58 PM

thanks it's nice

ehjay 08-18-2005 03:24 AM

Mm, is it possible to have the color appear when announcements are unread -- and then have it revert to standard cell coloring once the user has read that announcement?

might be interesting to look into.

quasel 08-18-2005 04:59 AM

nice one

Gizmo5h1t3 08-19-2005 04:24 PM

nice addition, installed

Kirk Y 08-20-2005 03:10 PM

Cool. How could we do this for Announcements?

Edit: Nevermind, I figured it out.

Andrew111888 08-20-2005 04:26 PM

Yeah, that would just be editing the announcement template :).

dbembibre 10-05-2005 01:13 PM

If you want make the same with anouncement make de following
Edit forumdisplay_announcement

Search this
Code:

<td class="alt2" colspan="<if condition="$show['threadicons'] AND $show['inlinemod']">6<else /><if condition="!$show['threadicons'] AND !$show['inlinemod']">4<else />5</if></if>">
                <div>

Replace with this:
Code:

<td class="stickybg" colspan="<if condition="$show['threadicons'] AND $show['inlinemod']">6<else /><if condition="!$show['threadicons'] AND !$show['inlinemod']">4<else />5</if></if>">
                <div>


MichaelJM13k 10-06-2005 05:53 AM

How would i go about making the word 'sticky' <i> and <b> like yours?

dbembibre 10-06-2005 12:52 PM

Quote:

Originally Posted by MichaelJM13k
How would i go about making the word 'sticky' <i> and <b> like yours?

Edit the sticky_thread_prefix phrase with your HTML codes

<b><font color="red">Sticky: </font></b>

RaceJunkie 10-06-2005 05:20 PM

Installed

ggiersdorf 10-07-2005 09:56 AM

dosent work in my 3.5 Gold nothing changes..

Kaliyoda 10-07-2005 12:01 PM

Works great here in my 3.5 Gold - Installed - many thanks :D

PennylessZ28 10-08-2005 01:00 AM

No work on gold, background is a just white, but not the color I programed.

PennylessZ28 10-08-2005 01:04 AM

Works

ggiersdorf 10-08-2005 10:44 AM

care to explain what you changed? I cant get it to work on my theme never changes colors..

Quillz 10-08-2005 05:10 PM

Just installed it to my 3.5.0 test board! Great hack!

nUCLEArcENTURy 10-08-2005 10:54 PM

Quote:

Originally Posted by dbembibre
Edit the sticky_thread_prefix phrase with your HTML codes

<b><font color="red">Sticky: </font></b>

Hi, where can i find sticky_thread_prefix?

Andrew111888 10-08-2005 11:33 PM

Quote:

Originally Posted by nUCLEArcENTURy
Hi, where can i find sticky_thread_prefix?

It's a phrase as stated.

TygerTyger 10-09-2005 10:33 AM

This works fine on Gold (not tried assigning a specific colour). Thanks! Installed.

Aeolian_X 10-09-2005 02:57 PM

How do you assign a specific color? Mine color that was chosen is too dark for the font color.

Aeolian_X 10-09-2005 03:19 PM

The color seems to come from your table border setting. Only problem is, I can't change the link font color without changing it for everything.

italks 10-10-2005 10:48 AM

Installed thanks.

ggiersdorf 10-11-2005 09:46 PM

wow the support for this is great, Id love to use it but no one seems to respond.. As stated by Aeolian_X I cannot get it to change either..

Andrew111888 10-11-2005 11:35 PM

As I don't have a 3.5.0 Gold board and the admin demo is still only 3.0.7 I cannot test this hack to provide support.

But when half of the people say it works and the other half says it doesn't, I don't know how I'd provide support anyway.

LJR 10-15-2005 04:47 PM

Okay, and taking into consideration that I am thicker than a whale omlette, where can I find the sticky_thread_prefix bit?

Cheers

Andrew111888 10-15-2005 06:35 PM

....

Quote:

Originally Posted by Andrew111888
It's a phrase as stated.


LJR 10-15-2005 11:25 PM

Okay, so we've established it's a phrase.

Now...where is it?

I can't find any reference to it in the templates or style sheets. So I am somewhat bemused. Mind you, this is only my first day with vBulletin.

Andrew111888 10-16-2005 02:18 AM

As it's a phrase, Admin CP -> Languages & Phrases -> Phrases would probably be a good place to look ;).

LJR 10-16-2005 10:19 AM

Doh!

Thank you so much. I found it. I'm sorry but I just didn't realise the meaning of "it's a phrase". So I have learned two things here.

Great mod/hack/whatever they call them here.

Thanks!!!!

Andrew111888 10-16-2005 12:14 PM

No problem :).

TOZ 11-22-2005 10:30 PM

quick question.



This code:

PHP Code:

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


Will only change the Sticky font color, but not the background. I need to change the background.

By the way everything works on 3.5.1 exept this.

I wanted to do something like this:
http://www.ls1tech.com/forums//forumdisplay.php?f=80

Andrew111888 11-23-2005 02:53 AM

Are you changing #hex to a numerical hexcode value? Like #000000.

manguish 11-26-2005 08:51 AM

3.5.1 - same here - background goes white, and text goes to the colour defined in the css.

da420 11-26-2005 06:31 PM

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!


All times are GMT. The time now is 04:49 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.01302 seconds
  • Memory Usage 1,790KB
  • 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
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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