vForums Support Banner



 

Welcome Guest! Please Login or Register
vForums Support :: Programming & Coding :: Database of Codes/Hacks/Mods :: Moved Topic Icon - View Topic
Topic Rating: *****
Printable View
Marc
vChat Developer
*****
I <3 Rossy

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

Additional Groups:
Coding Team
***


Reputation: 40%  


pmwww
Moved Topic Icon (10th Feb 08 at 3:55pm UTC)
This code lets you choose an icon for moved topics, instead of the locked topic icon.

Default Icon: Image

Code:
 
  1. <script type="text/javascript">
  2. <!--
  3. //Moved Topic Icon by Cr0w
  4. //Do not repost
  5.  
  6. var MoveImg = "http://img73.imageshack.us/img73/4863/movedjh2.gif" //Moved Topic Icon URL
  7. var showMoved = 0; // 0 = Hide "Moved:" from topic link, 1 = Show "Moved:" in topic link
  8.  
  9. var td=document.getElementsByTagName('td');
  10. for(t=0;t<td.length;t++){
  11. if(td[t].innerHTML.match(/Moved:/) && td[t].className.match(/window2/) && location.href.match(/board/) && td[t].width=="54%"){
  12. td[t-1].getElementsByTagName('img')[0].src = MoveImg;
  13. if(showMoved==0) td[t].innerHTML = td[t].innerHTML.replace('Moved: ','')
  14. }
  15. }
  16. //-->
  17. </script>
 


Global Footer.

rroll.to— Shorten a link, rickroll your friends.
Michael
Moderator
*****

[Avatar]
Recoding the future

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

Additional Groups:
Coding Team
***


Reputation: 58%  


pmtwittervForum
Re: Moved Topic Icon (10th Feb 08 at 4:14pm UTC)
You stoled it... I Was going to make this...

Mine would have been better! {Tongue Out}
Marc
vChat Developer
*****
I <3 Rossy

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

Additional Groups:
Coding Team
***


Reputation: 40%  


pmwww
Re: Moved Topic Icon (10th Feb 08 at 4:16pm UTC)
 
You stoled it... I Was going to make this...

Mine would have been better! {Tongue Out}


I made this code in August 2006. {Tongue Out}

rroll.to— Shorten a link, rickroll your friends.
Michael
Moderator
*****

[Avatar]
Recoding the future

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

Additional Groups:
Coding Team
***


Reputation: 58%  


pmtwittervForum
Re: Moved Topic Icon (10th Feb 08 at 4:23pm UTC)
oh dear... slight problem I just realised, if there's multi topic moderation, it'll remove the checkbox...

you're better off using something like:

td[t-1].getElementByTagName('img')[0].src = MoveImg

{Smile}
Marc
vChat Developer
*****
I <3 Rossy

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

Additional Groups:
Coding Team
***


Reputation: 40%  


pmwww
Re: Moved Topic Icon (10th Feb 08 at 6:01pm UTC)
Fixed. {Smile}

rroll.to— Shorten a link, rickroll your friends.
 Printable View

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