vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=236)
-   -   Forum Display Enhancements - Change new posts link color (https://vborg.vbsupport.ru/showthread.php?t=206370)

pein87 02-22-2009 10:00 PM

Change new posts link color
 
1 Attachment(s)
Yet again another simple mod that you can use to change the links of your new posts color. You can also change the individual color of the thread on index.php.

This time no bothersome alexD on this one lol.

#########################################
# changing a new threads color on index and forumdisplay #
# copy right blue phoenix 2008-2009 edit by: pein87 #
# edit covers 3.8.x versions and is untested on 3.7.x #
#########################################
This template edit allows you to change the color of your threads when they have a new post or the thread has is new
I've gotten it to work on both the forumdisplay.php and on
index.php.

-------------------------------

Open the "threadbit" template to the style you wish to do this edit on.

Find:

PHP Code:

            <a href="showthread.php?$session[sessionurl]t=$thread[threadid]$thread[highlight]id="thread_title_$thread[realthreadid]"<if condition="$show['gotonewpost']"style="font-weight:bold "</if>>$thread[threadtitle]</a

Find in:

PHP Code:

style="font-weight:bold" 

Replace with:

PHP Code:

style="font-weight:bold; color:#000000;" 

SPECAIL NOTE * swicth the color to your own color I choose black because its a dark color and easy to see on white.


Example with a html color name (linkchange2.jpg)

PHP Code:

            <a href="showthread.php?$session[sessionurl]t=$thread[threadid]$thread[highlight]id="thread_title_$thread[realthreadid]"<if condition="$show['gotonewpost']"style="font-weight:bold; color:red;"</if>>$thread[threadtitle]</a

-------------------------------

Adding this to index.php is another simple edit

open the template "forumhome_lastpostby"

find:


PHP Code:

        <a href="showthread.php?$session[sessionurl]goto=newpost&amp;t=$lastpostinfo[lastthreadid]style="white-space:nowrap" title="<phrase 1="$lastpostinfo[lastthread]">$vbphrase[go_first_unread_in_thread_x]</phrase>"><strong>$lastpostinfo[trimthread]</strong></a

Find in:

PHP Code:

style="white-space:nowrap" 

Replace with:

PHP Code:

style="white-space:nowrap; color:#000000;" 

and your done now your links color will change color if theres a new unread thread on both forumdisplay.php and index.php

adhmwagde 02-24-2009 11:07 AM

installed .. thanks man :)

pein87 02-24-2009 04:51 PM

Welcome thanks for installing if you need some help post and I`ll get right on it for you.

baghdad4ever 02-25-2009 07:00 AM

thanks

reserved

Sp32 03-10-2009 02:23 AM

installed, great idea, fairly easy, well done :)

marshal_ramdev 03-14-2009 03:47 PM

thank you :)

Jasem 03-19-2009 08:22 PM

Good work, thank you......

Installed

Alisa Lindsay 08-06-2009 05:52 PM

This mod looks good. Quick question before I try it...does it only change the color if the thread/post is New or does it also change the color if a post has been edited?

Log on 09-03-2009 08:37 AM

Great

a9eel 01-18-2010 01:21 PM

thnx


All times are GMT. The time now is 06:45 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.03387 seconds
  • Memory Usage 1,742KB
  • 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
  • (7)bbcode_php_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
  • (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