vForums Support Banner



 

Welcome Guest! Please Login or Register
vForums Support :: Programming & Coding :: Code Requests & Support :: [F] Requesting A Code Please - View Topic (Page 1 of 2)Page: 1 2
Topic Rating: *****
Printable View
CåñåÐå™
Full Member
***

[Avatar]

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


pmwww
[F] Requesting A Code Please (17th Feb 08 at 8:23pm UTC)
Would this "Change color of "Today" & "Yesterday" be possible please.

Image
click here We have 15 Different Skins/Templates for your vForum
Marc
vChat Developer
*****
I <3 Rossy

Posts: 3,388
Status: Offline
Gender: Male
Location: Ontario, Canada
Age: 33
Joined:  

Additional Groups:
Coding Team
***


Reputation: 40%  


pmwww
Re: Requesting A Code Please (17th Feb 08 at 8:24pm UTC)
 
Would this "Change color of "Today" & "Yesterday" be possible please.


Would this be for any specific place[s], or everywhere? {Smile}

rroll.to— Shorten a link, rickroll your friends.
CåñåÐå™
Full Member
***

[Avatar]

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


pmwww
Re: Requesting A Code Please (18th Feb 08 at 1:06am UTC)
Just for the main page will be fine please {Smile} and thanks Marc .

Image
click here We have 15 Different Skins/Templates for your vForum
Marc
vChat Developer
*****
I <3 Rossy

Posts: 3,388
Status: Offline
Gender: Male
Location: Ontario, Canada
Age: 33
Joined:  

Additional Groups:
Coding Team
***


Reputation: 40%  


pmwww
Re: Requesting A Code Please (18th Feb 08 at 1:35am UTC)
 
Just for the main page will be fine please {Smile} and thanks Marc .


Just for the "Last Post" column, or in the info center, as well?

rroll.to— Shorten a link, rickroll your friends.
dog199200
Guest
Re: Requesting A Code Please (18th Feb 08 at 3:20am UTC)
you couold always use the switch it code and put in the Yesterday and today text, like this:

Code:
 
  1. <script type="text/javascript">
  2. <!--
  3. /* Switch-It by Cr0w */
  4. function switchIt(word,word2){
  5.     var f = document.getElementsByTagName("font");
  6.     for(i=0;i<f.length;i++){
  7.         f[i].innerHTML = f[i].innerHTML.replace(word,word2);
  8.     }
  9. }
  10.  
  11. switchIt("Yesterday","<Font Color=green>Yesterday<font>");
  12. switchIt("Today","<Font Color=red>Today<font>");
  13. //-->
  14. </script>
 


you would just have to change the color names to what you want them to be or add a # and put in a color hex {Smile}
Marc
vChat Developer
*****
I <3 Rossy

Posts: 3,388
Status: Offline
Gender: Male
Location: Ontario, Canada
Age: 33
Joined:  

Additional Groups:
Coding Team
***


Reputation: 40%  


pmwww
Re: Requesting A Code Please (18th Feb 08 at 3:32am UTC)
Posted By dog199200 on 18th Feb 08 at 3:20am
 
you couold always use the switch it code and put in the Yesterday and today text, like this:

Code:
 
  1. <script type="text/javascript">
  2. <!--
  3. /* Switch-It by Cr0w */
  4. function switchIt(word,word2){
  5.     var f = document.getElementsByTagName("font");
  6.     for(i=0;i<f.length;i++){
  7.         f[i].innerHTML = f[i].innerHTML.replace(word,word2);
  8.     }
  9. }
  10.  
  11. switchIt("Yesterday","<Font Color=green>Yesterday<font>");
  12. switchIt("Today","<Font Color=red>Today<font>");
  13. //-->
  14. </script>
 


you would just have to change the color names to what you want them to be or add a # and put in a color hex {Smile}


Yes, but that would replace it everywhere; in posts, too. That's why I'm asking him exactly where he wants it to be replaced, so that I can check the specific cells only. {Wink}

rroll.to— Shorten a link, rickroll your friends.
dog199200
Guest
Re: Requesting A Code Please (18th Feb 08 at 3:58am UTC)
lol ya i see, that makes sence.
CåñåÐå™
Full Member
***

[Avatar]

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


pmwww
Re: Requesting A Code Please (18th Feb 08 at 4:07am UTC)
 

Just for the "Last Post" column, or in the info center, as well?
If it will be easier for you to do like this that will be cool thanks.

Image
click here We have 15 Different Skins/Templates for your vForum
Marc
vChat Developer
*****
I <3 Rossy

Posts: 3,388
Status: Offline
Gender: Male
Location: Ontario, Canada
Age: 33
Joined:  

Additional Groups:
Coding Team
***


Reputation: 40%  


pmwww
Re: Requesting A Code Please (18th Feb 08 at 4:08am UTC)
 
 

Just for the "Last Post" column, or in the info center, as well?
If it will be easier for you to do like this that will be cool thanks.


What colours would you like them to change to? {Smile}

rroll.to— Shorten a link, rickroll your friends.
CåñåÐå™
Full Member
***

[Avatar]

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


pmwww
Re: Requesting A Code Please (18th Feb 08 at 4:13am UTC)
For "Today" 336600 and for "Yesterday" FFCC66 please {Smile} .

Image
click here We have 15 Different Skins/Templates for your vForum
Marc
vChat Developer
*****
I <3 Rossy

Posts: 3,388
Status: Offline
Gender: Male
Location: Ontario, Canada
Age: 33
Joined:  

Additional Groups:
Coding Team
***


Reputation: 40%  


pmwww
Re: Requesting A Code Please (18th Feb 08 at 4:14am UTC)
 
For "Today" 336600 and for "Yesterday" FFCC66 please {Smile} .


Give me a minute. {Smile}

rroll.to— Shorten a link, rickroll your friends.
CåñåÐå™
Full Member
***

[Avatar]

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


pmwww
Re: Requesting A Code Please (18th Feb 08 at 4:24am UTC)
Ok no worries {Grin} .

Image
click here We have 15 Different Skins/Templates for your vForum
Marc
vChat Developer
*****
I <3 Rossy

Posts: 3,388
Status: Offline
Gender: Male
Location: Ontario, Canada
Age: 33
Joined:  

Additional Groups:
Coding Team
***


Reputation: 40%  


pmwww
Re: Requesting A Code Please (18th Feb 08 at 4:44am UTC)
Code:
 
  1. <script type="text/javascript">
  2. <!--
  3. /* Change "Today" and "Yesterday" Colours
  4. By Cr0w */
  5.  
  6. if(location.href.match(/\.co\.uk(\/$|\/action\/home$|\/action\/home\/$|$)/i)){
  7.  
  8.     var td = document.getElementsByTagName("td");
  9.     var lpc = document.getElementById("info_center_last_post");
  10.  
  11.     lpc.innerHTML = lpc.innerHTML.replace(/Today<\/b> at/i, '<font color="#336600">Today</font></b> at');
  12.     lpc.innerHTML = lpc.innerHTML.replace(/Yesterday<\/b> at/i, '<font color="#FFCC66">Yesterday</font></b> at');
  13.  
  14.     for(t=0;t<td.length;t++){
  15.         if(td[t].className.match(/(window2|lastpost)/) && td[t].width == "25%" && td[t-1].width == "69%"){
  16.             td[t].innerHTML = td[t].innerHTML.replace(/Today<\/b> at/i, '<font color="#336600">Today</font></b> at');
  17.             td[t].innerHTML = td[t].innerHTML.replace(/Yesterday<\/b> at/i, '<font color="#FFCC66">Yesterday</font></b> at');
  18.         }
  19.     }
  20.  
  21. }
  22. //-->
  23. </script>
 


Main Footer. {Smile}

rroll.to— Shorten a link, rickroll your friends.
CåñåÐå™
Full Member
***

[Avatar]

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


pmwww
Re: Requesting A Code Please (18th Feb 08 at 4:53am UTC)
Thank you Marc its working fine my friend , nice code {Grin} .

Image
click here We have 15 Different Skins/Templates for your vForum
Marc
vChat Developer
*****
I <3 Rossy

Posts: 3,388
Status: Offline
Gender: Male
Location: Ontario, Canada
Age: 33
Joined:  

Additional Groups:
Coding Team
***


Reputation: 40%  


pmwww
Re: Requesting A Code Please (18th Feb 08 at 4:54am UTC)
No problem. {Smile}

rroll.to— Shorten a link, rickroll your friends.
 Printable View
Page: 1 2

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