Go Back   vb.org Archive > vBulletin Article Depository > Read An Article > vBulletin 4 Articles
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Post Quote Length Limit (vB4)
ozzy47's Avatar
ozzy47
Join Date: Jul 2009
Posts: 10,929

Just here to help out where I can.

USA
Show Printable Version Email this Page Subscription
ozzy47 ozzy47 is offline 03-17-2014, 11:00 PM

As some of you know, when someone quotes a post, sometimes they are long posts. This can make the post hard to read, and IMO, not look as good as it can.

Sure you could limit the characters of the quote one way or another, but this is not the best approach. Someone may actually want to see all the quoted text in the post.

So I have come up with the solution, of adding a scroll bar in the quote bubble. This way you can keep the post looking neat, with out loosing functionality. So here we go wit the tutorial.

Take for example this post, [OzzModz] Classifieds

Now if someone were to quote that, and reply something like, " Thanks for sharing Ozzy. " the post would look bad, because the amount of info in the quote would overwhelm the reply.

So what you can do is go to your ACP --> Styles & Templates --> Style Manager, then choose Edit Templates for your style.

Now in the scroll box find, CSS Templates, then double click on that, then find additional.css and double click on that.

Once inside that template, paste the following code at the very end of the template, below everything else:

HTML Code:
/* Start scroll bar in quotes */
.bbcode_container div.bbcode_quote div.message {
    max-height:300px;
    width:auto;
    overflow:auto;
}
/* End scroll bar in quotes */
Then click on the Save button. This will have to be done for each of your styles.

Now when someone quotes a post that is longer that 300px high, it will add a scroll bar inside the quote bubble. This allows anyone viewing the post, to be able to still see all the original quoted text, but without making the post longer than it needs to be. In the attached image, is this post quoted, [OzzModz] Classifieds but as you can see, it is much shorter.
Attached Images
File Type: jpg scroll quote 2.jpg (69.8 KB, 0 views)
Reply With Quote
  #12  
Old 03-18-2014, 08:10 PM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well If I knew Joe had already did this, I would have pointed everyone there.

As far as the show more, I can look into it, but not sure when.
Reply With Quote
Благодарность от:
Alan_SP
  #13  
Old 03-18-2014, 08:11 PM
RichieBoy67's Avatar
RichieBoy67 RichieBoy67 is offline
 
Join Date: Apr 2004
Location: CT - Down in a hole..
Posts: 3,057
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ozzy47 View Post
Well If I knew Joe had already did this, I would have pointed everyone there.

As far as the show more, I can look into it, but not sure when.
Great minds think alike. :up:

Now it is easier to find.
Reply With Quote
  #14  
Old 03-19-2014, 04:40 PM
Alan_SP's Avatar
Alan_SP Alan_SP is offline
 
Join Date: Nov 2009
Posts: 1,122
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ozzy47 View Post
Well If I knew Joe had already did this, I would have pointed everyone there.

As far as the show more, I can look into it, but not sure when.
I too didn't knew till recently for his version, it was just a few days ago when I found it out.

If you could add show more option, maybe in your mod for quoting you already have... or somewhere else, as I think it would need a bit more coding.
Reply With Quote
  #15  
Old 03-19-2014, 09:12 PM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yeah if I was to add the Show More deal, I might just turn it into a product.
Reply With Quote
  #16  
Old 04-21-2014, 11:20 PM
fxdigi-cash fxdigi-cash is offline
 
Join Date: Jul 2012
Posts: 674
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

great article as usual,

Thanks, ozzy47
Reply With Quote
Благодарность от:
tbworld
  #17  
Old 03-05-2015, 10:53 PM
pablodip pablodip is offline
 
Join Date: Mar 2014
Posts: 37
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi ozzy!

This contribution truth is that it is very useful! Only in my forum 4.2.2 has not worked for me. Copy and paste the code that mencionastes in additional.css but not served at all. I spent some time trying until I could make out.

What I had to do is enter "ACP -> Styles & Templates -> Style Manager- templates- edit css" and open BBCODE.CSS, search ".bbcode_quote div.quote_container" and modify ADDING what you mention

default:

Code:
.bbcode_quote div.quote_container {
-moz-border-radius: {vb: stylevar border_radius};
-webkit-border-radius: {vb: stylevar border_radius};
border-radius: {vb: stylevar border_radius};
padding: {vb: stylevar bbcode_quote_padding};
}
update

Code:
.bbcode_quote div.quote_container {
-moz-border-radius: {vb: stylevar border_radius};
-webkit-border-radius: {vb: stylevar border_radius};
border-radius: {vb: stylevar border_radius};
padding: {vb: stylevar bbcode_quote_padding};
max-height: 300px;
width: auto;
overflow: auto;
}
I have marked as excellent as I served besides modifying, I hope will be helpful to someone
Reply With Quote
Благодарность от:
CAG CheechDogg
  #18  
Old 01-25-2016, 06:55 AM
IggyP IggyP is offline
 
Join Date: May 2012
Posts: 252
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

is it possible to fix this for vb5? was really happy about that one and just notice it in the graveyard
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.05209 seconds
  • Memory Usage 2,308KB
  • Queries Executed 25 (?)
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
  • (1)bbcode_html
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_article
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (8)post_thanks_box
  • (7)post_thanks_box_bit
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (4)post_thanks_postbit
  • (8)post_thanks_postbit_info
  • (7)postbit
  • (1)postbit_attachment
  • (8)postbit_onlinestatus
  • (8)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_postinfo_query
  • fetch_postinfo
  • 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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete