View Full Version : Forum Display Enhancements - Coloring Title Sticky Threads
Dr.osamA
05-15-2010, 10:00 PM
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 :
<a 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 :
<a 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 (http://www.alra7ba.info/vb/forumdisplay.php/102-%D9%85%D9%86%D8%AA%D8%AF%D9%89-%D8%A7%D9%84%D9%87%D8%A7%D9%83%D8%A7%D8%AA-%D9%84%D9%84%D8%AC%D9%8A%D9%84-%D8%A7%D9%84%D8%B1%D8%A7%D8%A8%D8%B9-4.0.0?langid=1)
Note : if you wont other color then RED you can find in the code above
<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
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
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/showthread.php?t=238890&page=3
^^^^^^^^^^^^^^^^^ that works brill mate :up:
Dr.osamA
05-19-2010, 10:49 PM
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/showthread.php?t=238890&page=3
^^^^^^^^^^^^^^^^^ that works brill mate :up:
right
exactly her
https://vborg.vbsupport.ru/showpost.php?p=2019288&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
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:
.threadbit .threadtitle_unread {
font-weight: bold;
}
and replace with:
.threadbit .threadtitle_unread {
font-weight: bold;
color: Blue;
}
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 (http://www.alra7ba.info/vb/forumdisplay.php/102-%D9%85%D9%86%D8%AA%D8%AF%D9%89-%D8%A7%D9%84%D9%87%D8%A7%D9%83%D8%A7%D8%AA-%D9%84%D9%84%D8%AC%D9%8A%D9%84-%D8%A7%D9%84%D8%B1%D8%A7%D8%A8%D8%B9-4.0.0)
i hop i help you
Dr.osamA
05-22-2010, 01:40 AM
الف شكر وتقدير
حيااك الله حبيبي منوور
nice info sharing
thank you you are welcome
tafreeh
05-24-2010, 04:40 AM
for coloring unread threads look attachment
to do that follow me:
in Template threadlist.css find:
.threadbit .threadtitle_unread {
font-weight: bold;
}and replace with:
.threadbit .threadtitle_unread {
font-weight: bold;
color: Blue;
} 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 (http://www.alra7ba.info/vb/forumdisplay.php/102-%D9%85%D9%86%D8%AA%D8%AF%D9%89-%D8%A7%D9%84%D9%87%D8%A7%D9%83%D8%A7%D8%AA-%D9%84%D9%84%D8%AC%D9%8A%D9%84-%D8%A7%D9%84%D8%B1%D8%A7%D8%A8%D8%B9-4.0.0)
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...
.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
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!
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.