Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Template Modifications

Reply
 
Thread Tools
Change new posts link color Details »»
Change new posts link color
Version: 1.00, by pein87 pein87 is offline
Developer Last Online: Dec 2013 Show Printable Version Email this Page

Category: Forum Display Enhancements - Version: 3.8.1 Rating:
Released: 02-22-2009 Last Update: Never Installs: 28
Template Edits
Re-useable Code  
No support by the author.

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

Download Now

File Type: txt linkcolorchange.txt (2.2 KB, 114 views)

Screenshots

File Type: jpg linkchange.jpg (38.6 KB, 0 views)
File Type: jpg linkchange2.jpg (40.2 KB, 0 views)
File Type: jpg linkchange3.jpg (19.3 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 03-28-2010, 07:24 AM
hayaldunya hayaldunya is offline
 
Join Date: Mar 2008
Posts: 43
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks
Reply With Quote
  #13  
Old 05-14-2020, 08:00 PM
hotlovercool4 hotlovercool4 is offline
 
Join Date: Jul 2008
Posts: 34
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i have install in frist its show red color perfect after i was try to put back icon in admincp thread display option > Show Default Post Icon > i put back > images/icons/icon1.gif

after i removed again still not showing color now what to do please tell me

im haveing 3.8.11 version
why it happen i did anything

revert and again did still same

one thing more in index.php its showing black color it mean index working only
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 08:20 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04128 seconds
  • Memory Usage 2,256KB
  • Queries Executed 20 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (7)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (3)post_thanks_box
  • (3)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (3)post_thanks_postbit_info
  • (2)postbit
  • (4)postbit_attachment
  • (3)postbit_onlinestatus
  • (3)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete