vForums Support Banner


Visit Base Classics - Gaming Chairs

 

Welcome Guest! Please Login or Register
vForums Support :: Programming & Coding :: Database of Codes/Hacks/Mods :: Remove Link From Category Name - View Topic
Topic Rating: *****
Printable View
Danny
Full Member
***

[Avatar]

Posts: 180
Status: Offline
Gender: Male
Location: Durham
Age: 33
Joined:  
Reputation: 1%  


pmmsnxfire
Remove Link From Category Name (3rd Jan 08 at 8:15pm UTC)
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)

Myspace | deviantART

"Suffer For Your Art"
Alex Bailey
Senior Member
****

Posts: 503
Status: Offline
Gender: Male
Location: Uk
Age: 33
Joined:  
Reputation: 8%  


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

ting-tong2k6@hotmail.com
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: Remove Link From Category Name (31st Mar 08 at 8:46pm UTC)
 
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}

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: Remove Link From Category Name (31st Mar 08 at 8:48pm UTC)
The code was fine. He just said to put it in main headers. It should go in Main footers! ^_^
Alex Bailey
Senior Member
****

Posts: 503
Status: Offline
Gender: Male
Location: Uk
Age: 33
Joined:  
Reputation: 8%  


pmmsnaim
Re: Remove Link From Category Name (31st Mar 08 at 10:23pm UTC)
It says global there

ting-tong2k6@hotmail.com
Michael
Moderator
*****

[Avatar]
Recoding the future

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

Additional Groups:
Coding Team
***


Reputation: 58%  


pmtwittervForum
Re: Remove Link From Category Name (31st Mar 08 at 10:26pm UTC)
Psh either. Doesn't really matter! {Tongue Out}
Alex Bailey
Senior Member
****

Posts: 503
Status: Offline
Gender: Male
Location: Uk
Age: 33
Joined:  
Reputation: 8%  


pmmsnaim
Re: Remove Link From Category Name (31st Mar 08 at 10:56pm UTC)
I tried in global footers and it didn't work

ting-tong2k6@hotmail.com
Michael
Moderator
*****

[Avatar]
Recoding the future

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

Additional Groups:
Coding Team
***


Reputation: 58%  


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

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