vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=246)
-   -   Forum Display Enhancements - Coloring Title Sticky Threads (https://vborg.vbsupport.ru/showthread.php?t=242597)

Dr.osamA 05-15-2010 10:00 PM

Coloring Title Sticky Threads
 
1 Attachment(s)
Coloring Title Sticky Threads

hi guys

sorry for bad English

description:

With this modification you can make title of sticky threads in color font what you like

see pic in attachment

who to do that ?

in template THREADBIT find :

PHP Code:

                                        <class="title<vb:if condition="$show['gotonewpost']"> threadtitle_unread</vb:if>" href="{vb:link thread, {vb:raw thread}, {vb:raw pageinfo}, 'threadid', 'threadtitle'}" id="thread_title_{vb:raw thread.realthreadid}">{vb:raw thread.threadtitle}</a

replace it with :

PHP Code:

                                        <class="title<vb:if condition="$show['gotonewpost']"> threadtitle_unread</vb:if>" href="{vb:link thread, {vb:raw thread}, {vb:raw pageinfo}, 'threadid', 'threadtitle'}" id="thread_title_{vb:raw thread.realthreadid}"><vb:if condition="$thread['sticky']"><font color="#FF0000">{vb:raw thread.threadtitle}</font><vb:else />{vb:raw thread.threadtitle}</vb:if></a

Save

Demo : alra7ba.info


Note : if you wont other color then RED you can find in the code above
PHP Code:

<font color="#FF0000"

and change color to what you like

that is all

:D

don't click Mark as Installed i don't ask for that

----------

للاخوة العرب تجدون الشرح بالعربي في المرفقات

borbole 05-15-2010 10:29 PM

Nice tip. However you should avoid using font color as it is depricated. Use the span style tag instead :)

Dr.osamA 05-15-2010 10:41 PM

Thanks for the note

I will try my best

fluidswork 05-16-2010 01:06 AM

nice idea ................

Martinoo 05-16-2010 01:17 AM

Great!!!

Dr.osamA 05-16-2010 10:50 PM

welcome guys

elwachiman 05-17-2010 02:44 AM

installed tnks

Kaleem 05-17-2010 08:00 PM

Easier way will be this >> https://vborg.vbsupport.ru/showthread.php?t=238890

Dr.osamA 05-17-2010 08:30 PM

Maybe it is easier

anyways thank for notice

tafreeh 05-18-2010 09:08 PM

hey Dr. Osama can you please add something for Unread thread title like change color or giving background color for unread thread title ... Thannks

Dr.osamA 05-18-2010 11:45 PM

Quote:

Originally Posted by tafreeh (Post 2039488)
hey Dr. Osama can you please add something for Unread thread title like change color or giving background color for unread thread title ... Thannks

i will try to do this for you .... but for unread thread there is bold font !!!
if i understand you wont color too

Right ?
If yes
just give me sometime plzz .... i am lose between my clinic my forum and VB.Org :eek:

tafreeh 05-19-2010 02:44 AM

yes exactly i want different color, but i m most interested in different backgroun color... :) just like skitcky topic have different background color ... If you can do that for me I will be really thankful to you habibi.

COL NIL SATIS 05-19-2010 06:31 PM

Quote:

Originally Posted by tafreeh (Post 2039592)
yes exactly i want different color, but i m most interested in different backgroun color... :) just like skitcky topic have different background color ... If you can do that for me I will be really thankful to you habibi.

https://vborg.vbsupport.ru/showthrea...=238890&page=3

^^^^^^^^^^^^^^^^^ that works brill mate :up:

Dr.osamA 05-19-2010 10:49 PM

Quote:

yes exactly i want different color, but i m most interested in different backgroun color... just like skitcky topic have different background color ... If you can do that for me I will be really thankful to you habibi.

Quote:

Originally Posted by COL NIL SATIS (Post 2040035)
https://vborg.vbsupport.ru/showthrea...=238890&page=3

^^^^^^^^^^^^^^^^^ that works brill mate :up:

right

exactly her

https://vborg.vbsupport.ru/showpost....8&postcount=31

and you are welcome habibi ;)

tafreeh 05-20-2010 12:25 AM

thanks both of you.. but this is for Hot, sticky and lock thread title... and I want normal unread thread title... that includes.. normal hot unread thread plus regular unread thread title... I hope you got me now....

pdfbooks 05-20-2010 06:55 AM

الف شكر وتقدير

Dr.osamA 05-22-2010 01:36 AM

1 Attachment(s)
Quote:

Originally Posted by tafreeh (Post 2040245)
thanks both of you.. but this is for Hot, sticky and lock thread title... and I want normal unread thread title... that includes.. normal hot unread thread plus regular unread thread title... I hope you got me now....

for coloring unread threads look attachment

to do that follow me:

in Template threadlist.css find:

PHP Code:

.threadbit .threadtitle_unread {
    
font-weightbold;


and replace with:

PHP Code:

.threadbit .threadtitle_unread {
    
font-weightbold;
        
colorBlue;


you can change color to what you wish , as default in code i have Blue replace it with....

DarkGreen
Blue
Red
Yellow
Indigo

Demo alra7ba

i hop i help you

Dr.osamA 05-22-2010 01:40 AM

Quote:

Originally Posted by pdfbooks (Post 2040377)
الف شكر وتقدير

حيااك الله حبيبي منوور


Quote:

Originally Posted by funmasti (Post 2041115)
nice info sharing

thank you you are welcome

tafreeh 05-24-2010 04:40 AM

Quote:

Originally Posted by Dr.osamA (Post 2041704)
for coloring unread threads look attachment

to do that follow me:

in Template threadlist.css find:

PHP Code:

.threadbit .threadtitle_unread {
    
font-weightbold;


and replace with:

PHP Code:

.threadbit .threadtitle_unread {
    
font-weightbold;
        
colorBlue;


you can change color to what you wish , as default in code i have Blue replace it with....

DarkGreen
Blue
Red
Yellow
Indigo

Demo alra7ba

i hop i help you

Thank you soo much Habibi... This exactly what i wanted.. but I still have a lil problem... I actually wanted to give unread thread title a different background.. so I tried this code...

Code:

.threadbit .threadtitle_unread {   
font-weight: bold;
background-color:#b0c4de;
}

But it doesnt seems to be working.... Can you please help me out with the background color too.. Thanks man.. I really appreciate your help.
Ma-Salama

Dr.osamA 05-25-2010 10:56 AM

Quote:

I actually wanted to give unread thread title a different background
let me see habibi what can i do

BRB

tafreeh 05-29-2010 12:09 AM

sure Habibi take ur time...

UKCE_Hitman 06-11-2011 09:06 AM

thx for this

my123world 06-11-2011 12:22 PM

Superb Work...!

bikoy888 06-17-2011 02:31 AM

thanks
works perfectly

guru1221 06-27-2011 04:11 PM

nice mod...

whitey92lx 06-27-2011 04:46 PM

Thanks! Looks great and will help out alot!


All times are GMT. The time now is 06:38 AM.

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.01350 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
  • (1)bbcode_code_printable
  • (7)bbcode_php_printable
  • (9)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (26)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete