vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=246)
-   -   Show Thread Enhancements - Quote Expander / Collapse - By Technidev (https://vborg.vbsupport.ru/showthread.php?t=321756)

iamme_meisi 12-17-2017 06:35 AM

Installed and working great!

iyihost 01-23-2018 12:16 PM

l want to 3.8.x
who can hep me ?

ramesh_umk3 03-16-2018 07:33 AM

Quote:

Originally Posted by iyihost (Post 2592389)
l want to 3.8.x
who can hep me ?

Code:

<script>window.jQuery||document.write(unescape("%3Cscript src='https://cdnjs.cloudflare.com/ajax/libs/jquery/2.2.0/jquery.min.js' type='text/javascript'%3E%3C/script%3E"));</script>
<script>
$(function(){
  $(".quote").each(function(index){
      if($(this).height() > 250){
        $(this).css({
            'height': '250px',
            'overflow': 'hidden'
        });

        $(this).parent().append('<div class="quote_expander"><a href="">Expand</a></div>');
      }
  });

  $(".quote_expander").click(function(){
      $(this).parent().find('.quote').css({'height': 'initial', 'overflow': 'initial'});
      $(this).remove();
      return false;
  });
});
</script>

Should Work with vB 3.8

Try once.

Thanks.

Mellow 04-12-2018 11:32 AM

Nice, works great thanks... would be nice to have a contract on the expanded quote but this is nice enough.

Hostboard 09-24-2020 04:21 PM

Vbulletin 4 has a "Use Remote jQuery" with; Google, jQuery, and Microsoft. being listed.
Your using CloudFlare jQuery 2.2.0
Any reason why you did not default to one of the built in selections? Are there any performance enhancements between any of these? Would it be worth while to add Cloudflare to the available default configuration list? Could not be too difficult... Will vBulletin 4.2.x run under jQuery 2.2.0?

Would be nice to have a collapse option once expanded :)


All times are GMT. The time now is 11:26 PM.

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.01039 seconds
  • Memory Usage 1,727KB
  • 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
  • (1)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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