vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Quote length limit? (https://vborg.vbsupport.ru/showthread.php?t=309631)

Barcham 03-17-2014 11:22 PM

Quote length limit?
 
I think we all have seen members who love to quote other members, especially the extremely long posts that some members like to make. I've already installed a mod to remove the quote button from the last post in a thread and that has solved one problem, but I was wondering if there was a mod to limit the number of characters that can appear in any quote. It drives me nuts seeing members quoting a long post and making a one like reply to it. I have looked but have not been able to find anything.

ForceHSS 03-18-2014 12:06 AM

Admincp/options/Message Posting and Editing Options
Some options in there you could test

Barcham 03-18-2014 12:29 AM

Yes, I have toyed with those options but none of the basic settings have what I am looking for. What I would like would be a 'Quote character limit' kind of thing that would automatically edit a long quote down to a character limit set by the admin. This would be transparent to the member and automatically truncate a quote down to the limit set.

I considered lowering the character limit per post and including the quote in the character count, but I have a feeling that some people would get a character limit warning and just dump the post instead of figuring out what to remove.

ozzy47 03-18-2014 12:57 AM

1 Attachment(s)
Character count can get tricky, best way to do it is have the quote have a scroll bar, once it reaches a certain height.

Add this to your additional.css

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 */

Now what will happen, is it the quoted text is longer than 300px high, it will add the scroll bar inside the quote bubble.

You can adjust the height by changing, 300px in the above. :)

Max Taxable 03-18-2014 01:31 AM

That gonna work in vB 3.8.7 too Ozzy?

ozzy47 03-18-2014 01:41 AM

No as vB3 don't have additional.css

Max Taxable 03-18-2014 01:42 AM

Quote:

Originally Posted by ozzy47 (Post 2487935)
No as vB3 don't have additional.css

It does in style manager.:D

You should make this a product it's got MOTM written all over it.

ozzy47 03-18-2014 01:45 AM

But what you can do is edit the bbcode_quote template, and find this bit of code:

HTML Code:

<div style="font-style:italic">$message</div>
And change it to this:

Code:

<div style="font-style:italic; max-height:300px; width:auto; overflow:auto;">$message</div>

Max Taxable 03-18-2014 01:46 AM

Quote:

Originally Posted by ozzy47 (Post 2487937)
But what you can do is edit the bbcode_quote template, and find this bit of code:

HTML Code:

<div style="font-style:italic">$message</div>
And change it to this:

Code:

<div style="font-style:italic; max-height:300px; width:auto; overflow:auto;">$message</div>

Ok lemme try that and I will get right back to you.

Needs to be a product though that does the auto template edits!

Max Taxable 03-18-2014 01:55 AM

Works SOOOO sweetly on my moderately modified vB 3.8.7!

ozzy47 03-18-2014 02:05 AM

Excellent, glad to hear. Any one else viewing this, I wrote it up as articles.

Post Quote Length Limit (vB5)
Post Quote Length Limit (vB4)
Post Quote Length Limit (vB3)

Max Taxable 03-18-2014 02:05 AM

U da man.

Barcham 03-18-2014 03:33 AM

That's totally awesome!!! That will make things look much cleaner, which is what I was looking for, but all the content is still there to boot! I can't thank you enough for the time and effort, guys! I'll set this up tomorrow on my board and test it out. I'd do it tonight but I don't trust myself not to make mistakes and mess something up when I'm tired. :D

ozzy47 03-18-2014 03:36 AM

Quote:

Originally Posted by Barcham (Post 2487962)
That's totally awesome!!! That will make things look much cleaner, which is what I was looking for, but all the content is still there to boot! I can't thank you enough for the time and effort, guys! I'll set this up tomorrow on my board and test it out. I'd do it tonight but I don't trust myself not to make mistakes and mess something up when I'm tired. :D

Follow the article, it will make it easy, Post Quote Length Limit (vB4)

Max Taxable 03-18-2014 04:23 AM

Quote:

Originally Posted by Barcham (Post 2487962)
That's totally awesome!!! That will make things look much cleaner, which is what I was looking for, but all the content is still there to boot! I can't thank you enough for the time and effort, guys! I'll set this up tomorrow on my board and test it out. I'd do it tonight but I don't trust myself not to make mistakes and mess something up when I'm tired. :D

I really dig this little template edit and still believe it would have been a shoo-in for mod of the month, had Ozzy released it as a auto-template XML product.

Barcham 03-18-2014 03:23 PM

I think it would have made mod of the month very easily as well. I can't imagine anyone not wanting this ability on their board. I set it up this morning and it works fantastic. :up:


All times are GMT. The time now is 10:36 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
  • Page Generation 0.01189 seconds
  • Memory Usage 1,754KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_code_printable
  • (2)bbcode_html_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (16)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete