vBulletin Mods

The Official vBulletin Modifications Site
https://www.vbulletin.org/forum/showthread.php?t=321756

Quote Expander / Collapse - By Technidev
by Dave
08 Feb 2016 22:07

Mark as installed = get support.

If you're tired of people quoting long posts and having to scroll past it, then this modification is definitely something you want to use.

This template modification will make it possible to resize quote containers and add an "Expand" button to it which can be clicked to view the whole quote.

This modification should work on pretty much all vBulletin 4 versions.

Installation
  1. Open the "showthread" template and paste the following above </body>

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

  2. Now open the additional.css template under "CSS Templates" and add the following:

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

  3. Done.

How to change the height of when the quote should be resized?
Change the 2 occurences of the number "250" in the showthread template to whatever height you want.

How to change the background color of the expander?
Change all occurences of the color "#C2CAD2" in the additional.css template to the hex code of the color you want.

Screenshots
https://www.vbulletin.org/forum/external/2016/02/15.png

MarkFL 09 Feb 2016 00:14

Nice work, Dave! :)

I had to do something similar at the site I help admin (we have many users who will lazily quote an entire huge post to address one point), but I had to also account for LaTeX by MathJax making quotes grow after the DOM was in place. Fortunately they provide a script queue that will allow javascript to execute only after the LaTeX is done rendering.

Dave 09 Feb 2016 00:32

Quote:

Originally Posted by MarkFL (Post 2564486)
Nice work, Dave! :)

I had to do something similar at the site I help admin (we have many users who will lazily quote an entire huge post to address one point), but I had to also account for LaTeX by MathJax making quotes grow after the DOM was in place. Fortunately they provide a script queue that will allow javascript to execute only after the LaTeX is done rendering.

Yeah I'm surprised vBulletin didn't create something like this themselves and that no one else released something like this before. Long quotes are the most annoying thing on forum boards.

Alan_SP 09 Feb 2016 12:04

Only thing I would add, if it is possible, that users choose if they want their quotes expanded or collapsed.

ArcadeSyndicate 09 Feb 2016 13:11

very nice, looks like xenforo :)

Dave 09 Feb 2016 23:48

Quote:

Originally Posted by ArcadeSyndicate (Post 2564515)
very nice, looks like xenforo :)

Yep, that's where I got the idea from.

Techno Cowboy 22 Feb 2016 13:23

Installed & Thanks! :cool:

X-or 05 Aug 2016 16:20

it's very nice, and working in 4.2.3 PL2
wish you could make this into a plugin for easy install
wish also you could re-collapse after expansion
it can be improved but very useful nonetheless

Bulent Tekcan 29 Oct 2016 13:57

Not work on 4.2.3 version, mesage not expand. When I press Expand button no any action. Can you check this problem ? Is it possible to make expand and collapse again function ?

Flipfloptrader 07 Jun 2017 13:58

Works nicely on Avenger Fluid also on 4.2.5.

iamme_meisi 17 Dec 2017 08:35

Installed and working great!

iyihost 23 Jan 2018 14:16

l want to 3.8.x
who can hep me ?

ramesh_umk3 16 Mar 2018 09:33

Quote:

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


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

Should Work with vB 3.8

Try once.

Thanks.

Mellow 12 Apr 2018 14:32

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

Hostboard 24 Sep 2020 19:21

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 16:38.

Powered by vBulletin® Version 3.8.14
Copyright © 2020, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.