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 |
#22
|
||||
|
||||
Quote:
|
#23
|
|||
|
|||
Quote:
|
#24
|
|||
|
|||
I might have an idea why this happens....
I'll look into this tonight and keep you posted! |
#25
|
||||
|
||||
Quote:
plz give a thought about ignore image in quote... thnx |
#26
|
|||
|
|||
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] |
#27
|
||||
|
||||
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] |
#28
|
|||
|
|||
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> |
#29
|
|||
|
|||
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 |
#30
|
|||
|
|||
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.... |
#31
|
|||
|
|||
Quote:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|