vForums Support Banner



 

Welcome Guest! Please Login or Register
vForums Support :: Programming & Coding :: Code Requests & Support :: New Thread Title Colour Code Please - View Topic
Topic Rating: *****
Printable View
CåñåÐå™
Full Member
***

[Avatar]

Posts: 427
Status: Offline
Gender: Male
Location: Toronto Ontario
Joined:  
Reputation: 7%  


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 ?

Image
click here We have 15 Different Skins/Templates for your vForum
Michael
Moderator
*****

[Avatar]
Recoding the future

Posts: 4,043
Status: Offline
Gender: Male
Location: UK
Joined:  

Additional Groups:
Coding Team
***


Reputation: 58%  


pmtwittervForum
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]

Posts: 427
Status: Offline
Gender: Male
Location: Toronto Ontario
Joined:  
Reputation: 7%  


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.

Image
click here We have 15 Different Skins/Templates for your vForum
Michael
Moderator
*****

[Avatar]
Recoding the future

Posts: 4,043
Status: Offline
Gender: Male
Location: UK
Joined:  

Additional Groups:
Coding Team
***


Reputation: 58%  


pmtwittervForum
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! {Smile}
CåñåÐå™
Full Member
***

[Avatar]

Posts: 427
Status: Offline
Gender: Male
Location: Toronto Ontario
Joined:  
Reputation: 7%  


pmwww
Re: New Thread Title Colour Code Please (30th Jul 08 at 6:25pm UTC)
Where am i putting this ??

Image
click here We have 15 Different Skins/Templates for your vForum
Michael
Moderator
*****

[Avatar]
Recoding the future

Posts: 4,043
Status: Offline
Gender: Male
Location: UK
Joined:  

Additional Groups:
Coding Team
***


Reputation: 58%  


pmtwittervForum
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 {Smile}
CåñåÐå™
Full Member
***

[Avatar]

Posts: 427
Status: Offline
Gender: Male
Location: Toronto Ontario
Joined:  
Reputation: 7%  


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 {Confused}

Image
click here We have 15 Different Skins/Templates for your vForum
CåñåÐå™
Full Member
***

[Avatar]

Posts: 427
Status: Offline
Gender: Male
Location: Toronto Ontario
Joined:  
Reputation: 7%  


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! {Smile}
This isn't working Wrighty {Confused} .

Image
click here We have 15 Different Skins/Templates for your vForum
Ross
Administrator
*****

[Avatar]

Posts: 3,709
Status: Offline
Gender: Male
Age: 9 14
Joined:  

Additional Groups:
Support Team
***


Reputation: 45%  


pmwwwtwittergtalkvForum
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.

Image
CåñåÐå™
Full Member
***

[Avatar]

Posts: 427
Status: Offline
Gender: Male
Location: Toronto Ontario
Joined:  
Reputation: 7%  


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 {Grin} .

Image
click here We have 15 Different Skins/Templates for your vForum
 Printable View

All times are GMT+0 :: The current time is 6:38pm
Page generated in 0.3445 seconds
This Forum is Powered By vForums (v2.4)
Create a Forum for Free | Find Forums