vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Forum Display Enhancements - Separate Sticky and Normal Threads (https://vborg.vbsupport.ru/showthread.php?t=228036)

lkn m3 09-05-2011 10:56 PM

Thank you for this works great!!!

KissOfDeath 10-16-2011 07:58 PM

Hi, when this mod is used in a sub forum it makes the inline mod options stop working

karel1985 10-19-2011 05:03 PM

Quote:

Originally Posted by KissOfDeath (Post 2257889)
Hi, when this mod is used in a sub forum it makes the inline mod options stop working

Same here, i cant seem to use the option to select all threads...

KGodel 10-23-2011 11:20 PM

Has anyone been able to isolate where the inline mod issue is?

AusPhotography 10-28-2011 10:25 PM

Quote:

Originally Posted by KGodel (Post 2260715)
Has anyone been able to isolate where the inline mod issue is?

Yes! See post above: https://vborg.vbsupport.ru/showpost....&postcount=236

Freak0204 11-08-2011 12:57 AM

Thanks for this!

skengman 11-15-2011 03:53 PM

Works fine Cheers !

squidsk 12-02-2011 03:54 PM

Quote:

Originally Posted by snoopytas (Post 2262471)

Only problem with this solution is that it generates html that won't validate because you have a div as a direct descendant of a ul tag.

squidsk 12-07-2011 04:31 PM

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:
    Code:

    if (this.collection[i].checkbox.checked)
    to
    Code:

    if (this.collection[i].checkbox && this.collection[i].checkbox.checked)
  2. On line 2889, nest the switch statement in an if statement as follows:
    Code:

            switch (action[1])
            {
                    case "invert": {

                            this.checkbox.checked = !this.checkbox.checked;
                    }
                    break;
                    case "none": {

                            this.checkbox.checked = false;
                    }
                    break;

                    case "class":
                    {
                            this.checkbox.checked = YAHOO.util.Dom.hasClass(this.container, action[2]);
                    }
                    break;
                    case "flag":
                    {
                            if (typeof action[2] != undefined && !isNaN(action[2]))
                            {
                                    this.checkbox.checked = this.checkbox.value & action[2];
                            }
                            else
                            {
                                    this.checkbox.checked = true;
                            }
                    }
                    break;
                    default:
                    case "all": {

                            this.checkbox.checked = true;
                    }
                    break;
            }

    to
    Code:

            if(this.checkbox)
            {

                    switch (action[1])
                    {
                            case "invert": {

                                    this.checkbox.checked = !this.checkbox.checked;
                            }
                            break;
                            case "none": {

                                    this.checkbox.checked = false;
                            }
                            break;

                            case "class":
                            {
                                    this.checkbox.checked = YAHOO.util.Dom.hasClass(this.container, action[2]);
                            }
                            break;
                            case "flag":
                            {
                                    if (typeof action[2] != undefined && !isNaN(action[2]))
                                    {
                                            this.checkbox.checked = this.checkbox.value & action[2];
                                    }
                                    else
                                    {
                                            this.checkbox.checked = true;
                                    }
                            }
                            break;
                            default:
                            case "all": {

                                    this.checkbox.checked = true;
                            }
                            break;
                    }
          }

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

    Code:

            var func = (this.checkbox.checked ? "addClass" : "removeClass");
            YAHOO.util.Dom[func](this.container, "imod_highlight");
            console.log("Set Inlinemod State for %s - %s", this.itemid, func);

    to
    Code:

            if(this.checkbox)
            {

                    var func = (this.checkbox.checked ? "addClass" : "removeClass");
                    YAHOO.util.Dom[func](this.container, "imod_highlight");
                    console.log("Set Inlinemod State for %s - %s", this.itemid, func);
            }

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:
    Code:

    this.collection[A].checkbox&&
  2. At column 34118 add:
    Code:

    if(this.checkbox){
  3. At column 34531 add a close swiggly bracket:
    Code:

    }
  4. At column 34780 add:
    Code:

    if(this.checkbox){
  5. At column 34964 add a close swiggly bracket:
    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.

datoneer 12-10-2011 09:45 PM

Great mod. Works on 4.1.8


All times are GMT. The time now is 09:59 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01417 seconds
  • Memory Usage 1,763KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (11)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete