Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Collapsable Quotes Details »
Collapsable Quotes
Mod Version: 1.02, by Hellcat (Member) Hellcat is offline
Developer Last Online: Apr 2014 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 3.5.3 Rating: (2 votes - 5.00 average) Installs: 38
Released: 01 Feb 2006 Last Update: 03 Feb 2006 Downloads: 39
Not Supported Template Edits  

As requested in this thread

Collapsable Quote Mod

What does it do?
==================

Sometimes, when others post lots of quotes, or very long ones, you might get the wish to hide the quoted text and only read the new posted message.
Now you can
This little mod makes the quotes collapsable, like the categories on the forumhome or other areas of vBulletin.


Installation
==============

To apply this go to:
AdminCP -> Style Manager -> Edit templates -> "BB Code Layout Templates" group -> Template: "bbcode_quote"

Edit that template, cut out (=delete) EVERYTHING that's in there and paste this back in:



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


Hit "SAVE" and you're done


*** If you are one of the lucky folks that have the "Template Manager" installed: ***
You can simply take the template .XML also supplied as download and import it via the template manager -> even faster and more easy done
(you might have to check "overwrite templates" when importing)


What else?
============

By default this collapsable quotes start up collapsed!
So if a user wants to read the quoted text he has to uncollapse it.

If you want it the other way round, users can collapse quotes they do not want to waste space for the moment:
Remove (or leave out at install) the last three lines of the template:


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

If that part is removed/left out all quotes start up uncollapsed and visible.


That's it.

Have fun

Download Now

Only licensed members can download files, Click Here for more information.

Screenshots

Click image for larger version

Name:	colaplsedquotes.gif
Views:	892
Size:	36.5 KB
ID:	41960  

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
  #31  
Old 03 Feb 2006, 09:23
Hellcat Hellcat is offline
 
Join Date: May 2003
Real name: Michael
Originally Posted by Gizmo999
Is that the post caching in admin Cp>server settings/optimisation ??
Yes, it's the "Cached Posts Lifespan" setting.
On my live board I have that set to "0", my board isn't that huge that I need the cache to pull load off the server....


Originally Posted by Gizmo999
sorry, I'm new to all this
Hey,no problem!
The only stupid question is the one not asked
We all started at square one and had to ask our way through
__________________
<?php eval('$post["signature"] = "' . fetch_template('hellcats_sig') . '";'); ?>

Check this:
[ WMail - vBulletin WebMailer || PM-Auto-Reply || Countdown-Timer for signature ] * [ more ]
[ Realtime Page Compressor || The allmighty IRC /me action ]
Reply With Quote
  #32  
Old 03 Feb 2006, 10:06
Gizmo999 Gizmo999 is offline
 
Join Date: Dec 2005
Real name: Michael
Originally Posted by Hellcat
Yes, it's the "Cached Posts Lifespan" setting.
On my live board I have that set to "0", my board isn't that huge that I need the cache to pull load off the server....
Thanks for the help, I tried editing a post with a specific users quote and all my subsequent posts using that users quotes work fine. Switching off cache made no difference to existing quoted posts/threads. We'll see how it goes on new posts/quoted posts.

Originally Posted by Hellcat

Hey,no problem!
The only stupid question is the one not asked
We all started at square one and had to ask our way through
I do try and ask and learn but its hard, I do marketing and have a little computer knowledge but maybe that is more dangerous than having none
Reply With Quote
  #33  
Old 03 Feb 2006, 17:50
Gizmo999 Gizmo999 is offline
 
Join Date: Dec 2005
Real name: Michael
One quick question, the phrase Quote(user):click to expand /contract isn't showing up as the font colour is the same as the background (red), from the code it looks like the font style is smallfont yet my smallfont in my style is white. How do i change that colour please??
Reply With Quote
  #34  
Old 03 Feb 2006, 17:56
TosaInu's Avatar
TosaInu TosaInu is offline
 
Join Date: Jul 2004
We have a spoiler code and I modified that one to make collapsable quotes. Nesting and Cache proof.

Same template bbcode_quote, replace the whole content:

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

Thanks to Hellcat.
__________________
Ja mata
TosaInu
Reply With Quote
  #35  
Old 03 Feb 2006, 18:22
IrPr IrPr is offline
 
Join Date: Mar 2005
Real name: MoOZ
Updated Today?
Reply With Quote
  #36  
Old 28 Feb 2006, 12:04
djwins djwins is offline
 
Join Date: Jan 2005
This would be great if it would check to see how many lines where in the quote before collapsing it.

Maybe 4 lines or less and the quote isn't collapsed.
Reply With Quote
  #37  
Old 02 Mar 2006, 01:39
LEAD_WEIGHT LEAD_WEIGHT is offline
 
Join Date: Feb 2005
Real name: Jose Amaral Rego
Would it be possible to create a collapse field, but still be still be open with scrollbar. I do not know if select all can be made without file editing. see image below and follow link to site that has this a functional one. I notice it requires files edits to make for that brand of message board.



Demo
http://forums.phpmix.org/viewtopic.php?p=1164#1164
http://forums.phpmix.org/viewtopic.php?p=1165#1165
Reply With Quote
  #38  
Old 02 Mar 2006, 03:25
Tralala's Avatar
Tralala Tralala is offline
 
Join Date: Jan 2006
In order to remove the redundant attribution...

From this:
Quote (Max): (click to expand/collapse)
Originally Posted by Max
This is a test...

to this:
Quote (Max):
This is a test...

Here's the code I modified.


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

Yes, I removed the "click to expand/collapse" text; I found it too wordy and unnecessary.

Thanks for a great hack!

Last edited by Tralala; 02 Mar 2006 at 05:36.
Reply With Quote
  #39  
Old 02 Mar 2006, 05:14
Tralala's Avatar
Tralala Tralala is offline
 
Join Date: Jan 2006
How can I make the "banner" a bit thinner? Users are complaining that it's distracting.


Actually, some users really don't like this change, and don't see why you'd want to collapse a quote in the first place at all.

And of course, others love it.


Like your Quoted IMG->URL hack, can this be made a user preference, Hellcat?

Allow each user to choose, in UserCP -> Edit Options:

Quoting:
Old style vs. new style
If new style, Default to collapsed vs. Default to expanded

Last edited by Tralala; 02 Mar 2006 at 05:37.
Reply With Quote
  #40  
Old 12 Mar 2006, 09:11
ElForro ElForro is offline
 
Join Date: Mar 2006
Hi.... One simple question.... I would love to use this but as a NEW BBCode.... I mean: [ spoiler ]something[ /spoiler ]

But i need something to replace the "quote_$show[quoteid]" in order to work as a separate BBCode...

Here's what i've got.. It works when only is a single "quote", but it doesn't when there ara more than one...


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

Thanks!! And sorry about my english!
Reply With Quote
  #41  
Old 08 May 2006, 23:57
InsaneContender's Avatar
InsaneContender InsaneContender is offline
 
Join Date: May 2003
Real name: Cameron
Your code isn't XHTML 1.0 Traditional valid. Here's a quick fix...

Change:


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

To this:


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

Getting rid of that tbody tag takes care of it.
Reply With Quote
  #42  
Old 02 Nov 2006, 13:44
Avalon111's Avatar
Avalon111 Avalon111 is offline
 
Join Date: Dec 2004
Real name: chris
anyone tried this great mod on vb3.6.2?
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

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


New To Site? Need Help?

All times are GMT. The time now is 04:39.

Layout Options | Width: Wide Color: