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 | [F] Requesting A Code Please (17th Feb 08 at 8:23pm UTC) | | Would this "Change color of "Today" & "Yesterday" be possible please. | |
 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
  
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? | |
rroll.to— Shorten a link, rickroll your friends. |
|
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: Requesting A Code Please (18th Feb 08 at 1:06am UTC) | | Just for the main page will be fine please and thanks Marc . | |
 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
  
pmwww | Re: Requesting A Code Please (18th Feb 08 at 1:35am UTC) | | Just for the main page will be fine please  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: - <script type="text/javascript">
- <!--
- /* Switch-It by Cr0w */
- function switchIt(word,word2){
- var f = document.getElementsByTagName("font");
- for(i=0;i<f.length;i++){
- f[i].innerHTML = f[i].innerHTML.replace(word,word2);
- }
- }
-
- switchIt("Yesterday","<Font Color=green>Yesterday<font>");
- switchIt("Today","<Font Color=red>Today<font>");
- //-->
- </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 | |
|
Marc vChat Developer
     I <3 Rossy
Posts: 3,388 Status: Offline Gender: Male Location: Ontario, Canada Age: 33 Joined:
Additional Groups: Coding Team
  
pmwww | Re: Requesting A Code Please (18th Feb 08 at 3:32am UTC) | | you couold always use the switch it code and put in the Yesterday and today text, like this:  Code: - <script type="text/javascript">
- <!--
- /* Switch-It by Cr0w */
- function switchIt(word,word2){
- var f = document.getElementsByTagName("font");
- for(i=0;i<f.length;i++){
- f[i].innerHTML = f[i].innerHTML.replace(word,word2);
- }
- }
-
- switchIt("Yesterday","<Font Color=green>Yesterday<font>");
- switchIt("Today","<Font Color=red>Today<font>");
- //-->
- </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
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. | |
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]](http://uploads.virtualforums.co.uk/forums/support/images-hrn.jpeg) Posts: 427 Status: Offline Gender: Male Location: Toronto Ontario Joined:
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. | |
 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
  
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? | |
rroll.to— Shorten a link, rickroll your friends. |
|
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: Requesting A Code Please (18th Feb 08 at 4:13am UTC) | | For "Today" 336600 and for "Yesterday" FFCC66 please . | |
 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
  
pmwww | Re: Requesting A Code Please (18th Feb 08 at 4:14am UTC) | | For "Today" 336600 and for "Yesterday" FFCC66 please  .
Give me a minute. | |
rroll.to— Shorten a link, rickroll your friends. |
|
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: Requesting A Code Please (18th Feb 08 at 4:24am UTC) | | Ok no worries . | |
 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
  
pmwww | Re: Requesting A Code Please (18th Feb 08 at 4:44am UTC) | |  Code: - <script type="text/javascript">
- <!--
- /* Change "Today" and "Yesterday" Colours
- By Cr0w */
-
- if(location.href.match(/\.co\.uk(\/$|\/action\/home$|\/action\/home\/$|$)/i)){
-
- var td = document.getElementsByTagName("td");
- var lpc = document.getElementById("info_center_last_post");
-
- lpc.innerHTML = lpc.innerHTML.replace(/Today<\/b> at/i, '<font color="#336600">Today</font></b> at');
- lpc.innerHTML = lpc.innerHTML.replace(/Yesterday<\/b> at/i, '<font color="#FFCC66">Yesterday</font></b> at');
-
- for(t=0;t<td.length;t++){
- if(td[t].className.match(/(window2|lastpost)/) && td[t].width == "25%" && td[t-1].width == "69%"){
- td[t].innerHTML = td[t].innerHTML.replace(/Today<\/b> at/i, '<font color="#336600">Today</font></b> at');
- td[t].innerHTML = td[t].innerHTML.replace(/Yesterday<\/b> at/i, '<font color="#FFCC66">Yesterday</font></b> at');
- }
- }
-
- }
- //-->
- </script>
Main Footer. | |
rroll.to— Shorten a link, rickroll your friends. |
|
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: Requesting A Code Please (18th Feb 08 at 4:53am UTC) | | Thank you Marc its working fine my friend , nice code . | |
 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
  
pmwww | Re: Requesting A Code Please (18th Feb 08 at 4:54am UTC) | | No problem. | |
rroll.to— Shorten a link, rickroll your friends. |
|