CåñåÐå™ Full Member
  
![[Avatar]](http://uploads.virtualforums.co.uk/forums/support/images-hrn.jpeg) Posts: 427 Status: Offline Gender: Male Location: Toronto Ontario Joined:
pmwww | New Thread Title Colour Code Please (30th Jul 08 at 3:36am UTC) | | Would it be possible for when you make an new thread that you can make an code for that thread title so it can be in an different color. On the thread page and on the main page last post ? | |
 click here We have 15 Different Skins/Templates for your vForum |
|
Michael Moderator
    
![[Avatar]](http://av.wservices.co.uk/av.png) Recoding the future Posts: 4,043 Status: Offline Gender: Male Location: UK Joined:
Additional Groups: Coding Team
  
pmvForum | Re: New Thread Title Colour Code Please (30th Jul 08 at 7:59am UTC) | | It's not really possible to know whether it's 'new' or not when on the main page.
Or do you mean instead of the on/off icon? | |
|
CåñåÐå™ Full Member
  
![[Avatar]](http://uploads.virtualforums.co.uk/forums/support/images-hrn.jpeg) Posts: 427 Status: Offline Gender: Male Location: Toronto Ontario Joined:
pmwww | Re: New Thread Title Colour Code Please (30th Jul 08 at 12:23pm UTC) | | It's not really possible to know whether it's 'new' or not when on the main page.
Oh ok , don't worry about it on the main page then. Just on the thread page is fine if its possible, thanks Wrighty. | |
 click here We have 15 Different Skins/Templates for your vForum |
|
Michael Moderator
    
![[Avatar]](http://av.wservices.co.uk/av.png) Recoding the future Posts: 4,043 Status: Offline Gender: Male Location: UK Joined:
Additional Groups: Coding Team
  
pmvForum | Re: New Thread Title Colour Code Please (30th Jul 08 at 4:23pm UTC) | | Yey for Cheating! ^_^
<script> var a = '{topic_subject}'; if('{new}' != ''){ a = a.replace(/<a/, '<a style="color:#FF0000"'); } document.write(a); </script>
Edit the part in red to the colour that you want.
This code replaces {topic_subject} in the 'Topic Listing Template'. So it will then change the colour of the threads. It's quicker and easier than writing a code! ^ _^
Any problems, post back! | |
|
CåñåÐå™ Full Member
  
![[Avatar]](http://uploads.virtualforums.co.uk/forums/support/images-hrn.jpeg) Posts: 427 Status: Offline Gender: Male Location: Toronto Ontario Joined:
pmwww | Re: New Thread Title Colour Code Please (30th Jul 08 at 6:25pm UTC) | | Where am i putting this ?? | |
 click here We have 15 Different Skins/Templates for your vForum |
|
Michael Moderator
    
![[Avatar]](http://av.wservices.co.uk/av.png) Recoding the future Posts: 4,043 Status: Offline Gender: Male Location: UK Joined:
Additional Groups: Coding Team
  
pmvForum | Re: New Thread Title Colour Code Please (30th Jul 08 at 6:27pm UTC) | | Quote: This code replaces {topic_subject} in the 'Topic Listing Template'.
In the 'Manage Templates' section | |
|
CåñåÐå™ Full Member
  
![[Avatar]](http://uploads.virtualforums.co.uk/forums/support/images-hrn.jpeg) Posts: 427 Status: Offline Gender: Male Location: Toronto Ontario Joined:
pmwww | Re: New Thread Title Colour Code Please (30th Jul 08 at 9:10pm UTC) | | http://testforum.virtualforums.co.uk/
I went to Manage Templates and i click on 'Topic Listing Template' and i place the code where {topic_subject} was and nothing changed
| |
 click here We have 15 Different Skins/Templates for your vForum |
|
CåñåÐå™ Full Member
  
![[Avatar]](http://uploads.virtualforums.co.uk/forums/support/images-hrn.jpeg) Posts: 427 Status: Offline Gender: Male Location: Toronto Ontario Joined:
pmwww | Re: New Thread Title Colour Code Please (1st Aug 08 at 6:36pm UTC) | | Yey for Cheating! ^_^ <script> var a = '{topic_subject}'; if('{new}' != ''){ a = a.replace(/<a/, '<a style="color:#FF0000"'); } document.write(a); </script>Edit the part in red to the colour that you want. This code replaces {topic_subject} in the 'Topic Listing Template'. So it will then change the colour of the threads. It's quicker and easier than writing a code! ^ _^ Any problems, post back! This isn't working Wrighty . | |
 click here We have 15 Different Skins/Templates for your vForum |
|
Ross Administrator
    
![[Avatar]](http://uploads.virtualforums.co.uk/forums/pokemon/vforums-qr1.png) Posts: 3,709 Status: Offline Gender: Male Age: 9 1⁄4 Joined:
Additional Groups: Support Team
  
pmwwwgtalkvForum | Re: New Thread Title Colour Code Please (1st Aug 08 at 7:21pm UTC) | | What browser are you using?
When viewing this page as "admin" the "Hi Test Thread" title appears in red. | |
|
|
CåñåÐå™ Full Member
  
![[Avatar]](http://uploads.virtualforums.co.uk/forums/support/images-hrn.jpeg) Posts: 427 Status: Offline Gender: Male Location: Toronto Ontario Joined:
pmwww | Re: New Thread Title Colour Code Please (1st Aug 08 at 9:13pm UTC) | | Its working , and i'm useing FF3.1 .
But i just got why it didn't work for me, its because i made the thread lol .
Thank you Ross and Wrighty for making the code . | |
 click here We have 15 Different Skins/Templates for your vForum |
|