Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Separate Sticky and Normal Threads Details »»
Separate Sticky and Normal Threads
Version: 4.01, by Atakan KOC Atakan KOC is offline
Developer Last Online: Mar 2023 Show Printable Version Email this Page

Category: Forum Display Enhancements - Version: 4.0.0 Beta 5 Rating:
Released: 11-14-2009 Last Update: 12-12-2009 Installs: 2665
Uses Plugins Template Edits Auto-Templates
Re-useable Code Translations  
No support by the author.

Go to your admin cp, then:
Plugin System -> Manage Products -> [Add/Import Product] -> Select 'product-eparate.xml' from your computer then press 'Import'

Separate Sticky and Normal Threads Setting

Go to your admin cp, then:
vBulletin Options -> Forum Display Options (forumdisplay) ->
Separate Sticky and Normal Threads (Yes/No)

1.0.4 Initial Version.
1.0.5 fix bug.
2.0.0 vbulletin 3.7.0 release
3.0.0 vbulletin 3.8.0 release
4.0.0 vbulletin 4.0.0 release
4.0.1 style change (Thanks BBR-APBT)

Download Now

File Type: xml product-eparate.xml (4.1 KB, 9674 views)

Screenshots

File Type: png Main Forum_1260698621594.png (30.3 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #252  
Old 09-05-2011, 10:56 PM
lkn m3 lkn m3 is offline
 
Join Date: Sep 2011
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you for this works great!!!
Reply With Quote
  #253  
Old 10-16-2011, 07:58 PM
KissOfDeath KissOfDeath is offline
 
Join Date: Dec 2008
Posts: 158
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi, when this mod is used in a sub forum it makes the inline mod options stop working
Reply With Quote
  #254  
Old 10-19-2011, 05:03 PM
karel1985 karel1985 is offline
 
Join Date: Mar 2007
Location: Belgium
Posts: 101
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by KissOfDeath View Post
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...
Reply With Quote
  #255  
Old 10-23-2011, 11:20 PM
KGodel's Avatar
KGodel KGodel is offline
 
Join Date: May 2011
Location: Indiana
Posts: 332
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Has anyone been able to isolate where the inline mod issue is?
Reply With Quote
  #256  
Old 10-28-2011, 10:25 PM
AusPhotography's Avatar
AusPhotography AusPhotography is offline
 
Join Date: Nov 2007
Location: Hobart & Adelaide .au
Posts: 521
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by KGodel View Post
Has anyone been able to isolate where the inline mod issue is?
Yes! See post above: https://vborg.vbsupport.ru/showpost....&postcount=236
Reply With Quote
  #257  
Old 11-08-2011, 12:57 AM
Freak0204's Avatar
Freak0204 Freak0204 is offline
 
Join Date: Dec 2005
Location: WV
Posts: 98
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for this!
Reply With Quote
  #258  
Old 11-15-2011, 03:53 PM
skengman skengman is offline
 
Join Date: Jul 2011
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Works fine Cheers !
Reply With Quote
  #259  
Old 12-02-2011, 03:54 PM
squidsk's Avatar
squidsk squidsk is offline
 
Join Date: Nov 2010
Posts: 969
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by snoopytas View Post
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.
Reply With Quote
  #260  
Old 12-07-2011, 04:31 PM
squidsk's Avatar
squidsk squidsk is offline
 
Join Date: Nov 2010
Posts: 969
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #261  
Old 12-10-2011, 09:45 PM
datoneer datoneer is offline
 
Join Date: Jul 2011
Posts: 453
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great mod. Works on 4.1.8
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:13 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05402 seconds
  • Memory Usage 2,355KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (11)bbcode_code
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (10)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (2)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete