vForums Support > Programming & Coding :: Database of Codes/Hacks/Mods :: > Remove Link From Category Name

Remove Link From Category Name - Posted By Danny (schnooble) on 3rd Jan 08 at 8:15pm
Global Footer

Makes the category names just text, instead of a link.

Code:
 
  1. <script type="text/javascript">
  2. <!--
  3. /*Remove Link From Category Name by Danny*/
  4.  
  5. var cat = document.getElementsByTagName('tr');
  6. for(e=0; e<cat.length; e++){
  7. if(cat[e].firstChild.className=='title2 categorytitle' && cat[e].firstChild.colSpan=='3'){
  8. cat[e].getElementsByTagName("a")[1].removeAttribute("href");
  9. cat[e].getElementsByTagName("font")[0].removeAttribute("size");
  10. }
  11. }
  12.  
  13. // -->
  14. </script>
 


edit: dreggie told me to {Tongue Out}

Updated:
Michael - Fix ClassName Match & Placement (31st March 2008)

Re: Remove Link From Category Name - Posted By Alex Bailey (system) on 31st Mar 08 at 8:36pm
Doesn't even work. I tried on a test forum and nope doesnt work

Re: Remove Link From Category Name - Posted By Marc (cr0w) on 31st Mar 08 at 8:46pm
 
Doesn't even work. I tried on a test forum and nope doesnt work


If you're having a problem with a code in the database, head on over to Code Support and we'll help you out. {Smile}

Re: Remove Link From Category Name - Posted By Michael (wrighty) on 31st Mar 08 at 8:48pm
The code was fine. He just said to put it in main headers. It should go in Main footers! ^_^

Re: Remove Link From Category Name - Posted By Alex Bailey (system) on 31st Mar 08 at 10:23pm
It says global there

Re: Remove Link From Category Name - Posted By Michael (wrighty) on 31st Mar 08 at 10:26pm
Psh either. Doesn't really matter! {Tongue Out}

Re: Remove Link From Category Name - Posted By Alex Bailey (system) on 31st Mar 08 at 10:56pm
I tried in global footers and it didn't work

Re: Remove Link From Category Name - Posted By Michael (wrighty) on 31st Mar 08 at 11:12pm
If it doesn't work, go and post a forum link in the support board with a link to the code! {Smile}