The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Collapsable Quotes Details »» | |||||||||||||||||||||||||
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>"> <table cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="100%"> <if condition="$show[quoteid]=$show[quoteid] + 1 + $vbulletin->userinfo[lastactivity]"></if> <tr> <td class="tcat"> <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('quote_$show[quoteid]')"><img id="collapseimg_quote_$show[quoteid]" src="$stylevar[imgdir_button]/collapse_tcat{$collapseimg_forumid}.gif" alt="" border="0" /></a> <div class="smallfont" style="margin-bottom:2px"> <a href="#top" onclick="return toggle_collapse('quote_$show[quoteid]')">$vbphrase[quote] <if condition="$show['username']">($username)</if>: <em>(click to expand/collapse)</em></a> </div> </td> </tr> <tbody id="collapseobj_quote_$show[quoteid]" style="{$collapseobj_forumid}"> <tr> <td class="alt2" style="border:1px inset"> <if condition="$show['username']"> <div><phrase 1="$username">$vbphrase[originally_posted_by_x]</phrase></div> <div style="font-style:italic">$message</div> <else /> $message </if> </td> </tr> </tbody> </table> </div> <script type="text/javascript"> <!-- toggle_collapse('quote_$show[quoteid]'); --> </script> 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: Code:
<script type="text/javascript"> <!-- toggle_collapse('quote_$show[quoteid]'); --> </script> That's it. Have fun Show Your Support
|
Comments |
#12
|
||||
|
||||
Quote:
thnx |
#13
|
|||
|
|||
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.
|
#14
|
|||
|
|||
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. |
#15
|
|||
|
|||
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 |
#16
|
|||
|
|||
Love it Hellcat.
clicks Install. |
#17
|
||||
|
||||
okiz...... I found a bug may b... Hellcats.. U better chk the link
http://www.golpo.net/forum/showpost....4&postcount=16 |
#18
|
||||
|
||||
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 |
#19
|
|||
|
|||
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. |
#20
|
||||
|
||||
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. |
#21
|
|||
|
|||
Thank you for explaining that better than I could.
Quote:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|