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


All times are GMT. The time now is 09:25 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.01087 seconds
  • Memory Usage 1,737KB
  • 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
  • (3)bbcode_php_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
  • (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