vForums Support > Programming & Coding :: Code Requests & Support :: > [F] Support On This Code Please

[F] Support On This Code Please - Posted By CåñåÐå™ (canada) on 18th Feb 08 at 3:37pm
As of 5mins ago this code was working fine .
Code:
 
  1. <script type="text/javascript">
  2. for(i=0; i<get('td','tag').length; i++){
  3.     if(get('td','tag')[i].className=='title2' && get('td','tag')[i].colSpan=='3'){
  4.         get('td','tag')[i].getElementsByTagName("a")[1].removeAttribute("href");
  5.         get('td','tag')[i].getElementsByTagName("font")[0].innerHTML = "[" + get('td','tag')[i].getElementsByTagName("font")[0].innerHTML + "]";
  6.     }
  7. }
  8. </script>
 

and now it doesn't work at all, all i did was to make an new Category (with one main board and 5 sub-boards), I have no idea why it stop working,
Forum http://tropolis.virtualforums.co.uk/

Edit : It seems to work when i logout (which means it works for guest) but once i login its on the default Category title setting ??

Re: Support On This Code Please - Posted By Michael (wrighty) on 18th Feb 08 at 4:04pm
Can you try removing your shoutbox code to see if that is conflicting? {Smile}

Or the Adv. PM Area.

Re: Support On This Code Please - Posted By CåñåÐå™ (canada) on 18th Feb 08 at 5:41pm
Yeah it was the shoutbox code that was conflicting Wrighty i removed it and or code is fine {Grin} .


But can you work it so i can use the shoutbox please .



Re: Support On This Code Please - Posted By Michael (wrighty) on 18th Feb 08 at 5:56pm
try:

Code:
 
  1. <script type="text/javascript">
  2. for(i=0; i<get('td','tag').length; i++){
  3.     if(get('td','tag')[i].className=='title2' && get('td','tag')[i].innerHTML.match(/\/category\//) && get('td','tag')[i].colSpan=='3'){
  4.         get('td','tag')[i].getElementsByTagName("a")[1].removeAttribute("href");
  5.         get('td','tag')[i].getElementsByTagName("font")[0].innerHTML = "[" + get('td','tag')[i].getElementsByTagName("font")[0].innerHTML + "]";
  6.     }
  7. }
  8. </script>
 

Re: Support On This Code Please - Posted By CåñåÐå™ (canada) on 18th Feb 08 at 6:00pm
Yes sir {Grin} that did it thank you very much Wrighty {Smile} .

Re: Support On This Code Please - Posted By Michael (wrighty) on 18th Feb 08 at 6:01pm
Welcome! {Smile}