Results 1 to 4 of 4

Changing new post thread colour

This is a discussion on Changing new post thread colour within the Off-Topic & Chit Chat forums, part of the Focus on Members category; I have found the code related to new posts showing up in the forums. Now I'm stuck. Tried several variations ...

  1. #1
    Senior Member Lee G's Avatar
    Real Name
    Lee
    Join Date
    Sep 2006
    Location
    Costa Blanca
    Posts
    683
    Liked
    40 times
    Blog Entries
    4

    Changing new post thread colour

    I have found the code related to new posts showing up in the forums.

    Now I'm stuck. Tried several variations of HTML code and just can not change the colour.

    This is the code I'm trying to alter, located in threadbit

    <if condition="$show['gotonewpost']"><a href="showthread.php?$session[sessionurl]goto=newpost&amp;t=$thread[threadid]" id="thread_gotonew_$thread[realthreadid]"><img class="inlineimg" src="$stylevar[imgdir_button]/firstnew.gif" alt="$vbphrase[go_to_first_new_post]" border="0" /></a></if>
    $thread[movedprefix]
    $thread[typeprefix]
    $thread[moderatedprefix]
    $thread[prefix_rich]
    <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>
    No doubt I will kick myself its pointed out how to change it

    Thanks in advance for any help
    Lee

  2. #2
    Senior Member Lee G's Avatar
    Real Name
    Lee
    Join Date
    Sep 2006
    Location
    Costa Blanca
    Posts
    683
    Liked
    40 times
    Blog Entries
    4
    Sussed it. Found some code that seemed to work

    <if condition="$show['gotonewpost']"><a href="showthread.php?$session[sessionurl]goto=newpost&amp;t=$thread[threadid]" id="thread_gotonew_$thread[realthreadid]"><img class="inlineimg" src="$stylevar[imgdir_button]/firstnew.gif" alt="$vbphrase[go_to_first_new_post]" border="0" /></a></if>
    $thread[movedprefix]
    $thread[typeprefix]
    $thread[moderatedprefix]
    $thread[prefix_rich]
    <a href="showthread.php?$session[sessionurl]t=$thread[threadid]$thread[highlight]" id="thread_title_$thread[realthreadid]"<if condition="$show['gotonewpost']"> span style="color: red;" style="font-weight:bold" </if>>$thread[threadtitle]</a>

  3. #3
    Senior Member briansol's Avatar
    Real Name
    Brian
    Join Date
    Apr 2006
    Location
    Central CT, USA
    Posts
    6,981
    Liked
    8 times
    you can't have two style attributes on one tag. that's highly invalid.

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

  4. #4
    Senior Member Lee G's Avatar
    Real Name
    Lee
    Join Date
    Sep 2006
    Location
    Costa Blanca
    Posts
    683
    Liked
    40 times
    Blog Entries
    4
    Thanks for the help Brian. As per normal your an absolute god send when it comes advice and trouble shooting.

    Very much appreciated

Similar Threads

  1. Changing Thread Title & URL
    By MaxS in forum General Discussion
    Replies: 3
    Last Post: 10-08-2007, 04:07 PM
  2. Change Admin Highlight Thread Colour?
    By Martyn in forum General Discussion
    Replies: 1
    Last Post: 09-09-2007, 08:02 AM
  3. Replies: 13
    Last Post: 01-17-2007, 07:16 AM
  4. What happens after changing a thread title?
    By theChronic in forum Pre-Sales Questions
    Replies: 2
    Last Post: 05-13-2006, 09:40 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •