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 ?
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?
Oh ok , don't worry about it on the main page then. Just on the thread page is fine if its possible, thanks Wrighty.It's not really possible to know whether it's 'new' or not when on the main page.
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!![]()
Where am i putting this ??
This code replaces {topic_subject} in the 'Topic Listing Template'.
In the 'Manage Templates' section![]()
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![]()
This isn't working WrightyYey 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!![]()
.
What browser are you using?
When viewing this page as "admin" the "Hi Test Thread" title appears in red.
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.