Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Collapsable Quotes Details »»
Collapsable Quotes
Version: 1.02, by Hellcat Hellcat is offline
Developer Last Online: Apr 2014 Show Printable Version Email this Page

Version: 3.5.3 Rating:
Released: 01-31-2006 Last Update: 02-02-2006 Installs: 38
Template Edits
 
No support by the author.

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>
If that part is removed/left out all quotes start up uncollapsed and visible.


That's it.

Have fun

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 02-01-2006, 08:37 AM
Zia's Avatar
Zia Zia is offline
 
Join Date: Dec 2005
Location: golpo.net
Posts: 931
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #3  
Old 02-01-2006, 08:40 AM
AshokForums.com AshokForums.com is offline
 
Join Date: Nov 2005
Posts: 160
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed
Reply With Quote
  #4  
Old 02-01-2006, 08:56 AM
IrPr IrPr is offline
 
Join Date: Mar 2005
Posts: 351
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice Modification
is it compatible with Backlink for Quotes By Andreas ?

Quote:
Originally Posted by Zia
no doubt it will reduce page loading time with a long quote
is this rite?
Reply With Quote
  #5  
Old 02-01-2006, 10:21 AM
Snake's Avatar
Snake Snake is offline
 
Join Date: Mar 2005
Location: Cleveland, OH
Posts: 3,832
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is great! Thanks...
Reply With Quote
  #6  
Old 02-01-2006, 11:49 AM
Zia's Avatar
Zia Zia is offline
 
Join Date: Dec 2005
Location: golpo.net
Posts: 931
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by IrPr
Nice Modification
is it compatible with Backlink for Quotes By Andreas ?


is this rite?
backlinks to quote put an link with the origin post...i didnt use this...
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
Reply With Quote
  #7  
Old 02-01-2006, 01:14 PM
Gizmo999 Gizmo999 is offline
 
Join Date: Dec 2005
Location: In my own virtual world
Posts: 126
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

<font color="Green">click, Giz hits the install button</font>

Nice, very useful.
Reply With Quote
  #8  
Old 02-01-2006, 01:46 PM
Gizmo999 Gizmo999 is offline
 
Join Date: Dec 2005
Location: In my own virtual world
Posts: 126
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hmm, not working on posts using quotes entered after I installed it, works fine on all those post with quotes previous to it
Reply With Quote
  #9  
Old 02-01-2006, 02:04 PM
Gizmo999 Gizmo999 is offline
 
Join Date: Dec 2005
Location: In my own virtual world
Posts: 126
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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"
Reply With Quote
  #10  
Old 02-01-2006, 03:29 PM
GamerJunk.net's Avatar
GamerJunk.net GamerJunk.net is offline
 
Join Date: Jan 2004
Posts: 457
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

/me applauds

Nice hack
Reply With Quote
Reply


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

Forum Jump


All times are GMT. The time now is 09:23 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04586 seconds
  • Memory Usage 2,298KB
  • Queries Executed 23 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete