![]() |
Collapsable Quotes
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: Code:
<div style="margin:20px; margin-top:5px; <if condition="$show['iewidthfix']">width: 100%;</if>"> 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 :D (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: Code:
<script type="text/javascript"> <!-- That's it. Have fun :) |
Yahoooooooooooooooooooooooooooooooooooooooo
HellCat Rockzzzzzzzzzz First POst :) [high]* Zia klicks install [/high] no doubt it will reduce page loading time with a long quote Thanx Man...really thnx |
Installed
|
Nice Modification ;)
is it compatible with Backlink for Quotes By Andreas ? Quote:
|
This is great! Thanks...
|
Quote:
in ipb this kinda feature is avilable...& its really Kool...full quote in the reply but Collaps..after klik it will xpand & readable... yeah its really nice...if any case u have to quote a LONG POST..that long post will be Collaps... umm umm......i think another feature would be nice if added here....ignore any image in quote Mr.Coder can u give a thought on it? I Love This hack...its too good...only needed to edit template..nothing els... in my view samll change but big out-put |
<font color="Green">click, Giz hits the install button</font>
Nice, very useful. |
hmm, not working on posts using quotes entered after I installed it, works fine on all those post with quotes previous to it :(
|
logged out and back and it now works again, haven't tried a new quoted post yet though... when open the quote dialogue still say "click to expand" not "click to close"
|
/me applauds
Nice hack |
Quote:
thnx |
Yeah, no problem, you can see in screen shot 1 dialogue is click to expand and it screen shot 2 it stays the same only the quote box is now expanded.
|
Just had the same error as this afternoon, everything was Ok then I read a thread and the quote box was already open, tried to collapse and it wouldn't, went to a different theme based on bulletin default and it worked OK but the one I usually use is heavily customised, no idea why it does it a random though :(
More on this, it happens only in certain threads and only where there is more than one quoted box, the first quote works fine and collapses or opens, the second and subsequent are open when the page loads , if you try and collapse them it opens or closes the quote in the earliest post, weird. |
The thing with the text is just a phrasing issue.
I changed it in the description and attached files to "click to expand/collapse". The text doen't change when the quote is expaned or collapsed - it's not supposed to, at least at the moment ;) Quote:
But, like you already said, logging out and back in usually does the trick :) |
Love it Hellcat.
clicks Install. |
okiz...... I found a bug may b... Hellcats.. U better chk the link
http://www.golpo.net/forum/showpost....4&postcount=16 |
helo hellcat..
seemd quote inside quote... a post with previous quote is okay..when any one quote that one.... here comes the porblem........ "Paid Subscribers Link" shown.... http://www.golpo.net/forum/showthrea...=5024#post5024 this will show the full thread..1st quote is preffy nice...2nd quote ..its the problem... is there any way that Quote will always Ignore Image & always ignore if there any previous quote... Thnx |
Quote:
thanks for new phrase wording. Is there any cache setting I can change to stop this opening quotes in certain threads, logging out and in occasionally works but not enough times and even logging in on a different computer as a different user the thread still has same problem. I can't work out why only odd threads are affected, its just happened in a 2 page thread where the first page is perfect but the second opens expanded other than first quote on that page. |
Nice idea.
It doesn't fully work yet though. Quotes prior to the hack, are still old style (granted that's probably because of post cache in html). When a user makes a post with a single quote in a topic and then another post with a single quote, only the first one can be un/collapsed. The second one is uncollapsed from the start and can't be collapsed. Even worse, collapsing it just collapses the quote in the first post. http://forums.totalwar.org/colquote.gif Quotes from different users work fine, as long as they are the first one by that user. |
Thank you for explaining that better than I could.
Quote:
|
Quote:
|
Quote:
|
I might have an idea why this happens....
I'll look into this tonight and keep you posted! |
Quote:
plz give a thought about ignore image in quote... thnx |
Quote:
Or (IMO better) converted to [url] tags? Hmm.... that would be a different thing, but should be possible to do pretty easy with a plugin at the right hook.... [high]* Hellcat thinks[/high] |
thnx man...
did u figured out the probs..describe last post.. quote-inside a quote it showd the "paid subscriber link" ? ::) give a deep deep think... [high]* Zia offers hellcat a chilled bear & a cigar...[/high] |
No clue where a subscription link could come from.
But I (hopfully) solved the "Later quote collapses/expands quote from earlier post" problem. Replace this line: Code:
<if condition="$show[quoteid]=$show[quoteid]+1"></if> Code:
<if condition="$show[quoteid]=$show[quoteid] + 1 + $vbulletin->userinfo[lastactivity]"></if> |
Sorry :(
I applied the code change but its still the same only now the first quote opens "expanded" and has same problem - subsequent quotes are "expanded" clicking collapse closes the very first one :( Thanks for the time and effort on this |
Quote:
I experienced that myself during my experiments and didn't find a way (yet) to counteract it. Try this: On a post that seems to "ignore" the last modification to the template, edit and save that post and try again - should work now. Try to post some some quote-posts in a test thread and look if everythings works there. If it does -> it's the vB cache still pulling the old version of the template. That cache is EVIL! I disabled it on my boards.... |
Quote:
|
Quote:
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.... Quote:
The only stupid question is the one not asked :) We all started at square one and had to ask our way through ;) |
Quote:
Quote:
|
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??
|
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: Code:
<div style="margin:5px 20px 20px 20px"> |
Updated Today?
|
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. |
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.
http://img212.imageshack.us/img212/8...ndfield5jy.png Demo http://forums.phpmix.org/viewtopic.php?p=1164#1164 http://forums.phpmix.org/viewtopic.php?p=1165#1165 |
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. Code:
<div style="margin:20px; margin-top:5px; <if condition="$show['iewidthfix']">width: 100%;</if>"> Thanks for a great hack! |
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 |
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... Code:
<div style="margin:20px; margin-top:5px;"> |
All times are GMT. The time now is 04:57 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|