Thread: Forum Display Enhancements - Separate Sticky and Normal Threads
View Single Post
  #259  
Old 07 Dec 2011, 16:31
squidsk's Avatar
squidsk squidsk is offline
 
Join Date: Nov 2010
To fix the in-line mod selection problem and have valid xhtml you need to make three changes to your vbulletin-core.js file. No changes are actually required to the plugin itself.

The problem is that the JavaScript that's checking and un-checking the checkboxes from the inline mod menu does not check if there actually is a checkbox before trying to work with the checkbox.

I'll put the changes for those using both the compressed and uncompressed JavaScript.

Uncompressed javascript make the following changes in order otherwise the line numbers will not match up with what I have listed here:
  1. On line 2761 change:

    Block Disabled:      (Update License Status)  
    Suspended or Unlicensed Members Cannot View Code.

    to

    Block Disabled:      (Update License Status)  
    Suspended or Unlicensed Members Cannot View Code.

  2. On line 2889, nest the switch statement in an if statement as follows:

    Block Disabled:      (Update License Status)  
    Suspended or Unlicensed Members Cannot View Code.

    to

    Block Disabled:      (Update License Status)  
    Suspended or Unlicensed Members Cannot View Code.

  3. On line 2941 wrap the content of three lines of code in an if statement as follows:


    Block Disabled:      (Update License Status)  
    Suspended or Unlicensed Members Cannot View Code.

    to

    Block Disabled:      (Update License Status)  
    Suspended or Unlicensed Members Cannot View Code.

If you're using the compressed javascript then you'll need to make the following equivalent adjustments in the order listed for the column numbers to point to the correct location in the file:
  1. At column 32267 add:

    Block Disabled:      (Update License Status)  
    Suspended or Unlicensed Members Cannot View Code.

  2. At column 34118 add:

    Block Disabled:      (Update License Status)  
    Suspended or Unlicensed Members Cannot View Code.

  3. At column 34531 add a close swiggly bracket:

    Block Disabled:      (Update License Status)  
    Suspended or Unlicensed Members Cannot View Code.

  4. At column 34780 add:

    Block Disabled:      (Update License Status)  
    Suspended or Unlicensed Members Cannot View Code.

  5. At column 34964 add a close swiggly bracket:

    Block Disabled:      (Update License Status)  
    Suspended or Unlicensed Members Cannot View Code.

For the compressed changes, change 1 corresponds to the change 1 from the uncompressed, 2 & 3 correspond to change 2 from the uncompressed and 4 & 5 correspond to change 3 from the uncompressed javascript.
Reply With Quote