PDA

View Full Version : Quote length limit?


Barcham
03-17-2014, 11:22 PM
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
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

/* 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
No as vB3 don't have additional.cssIt 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:

<div style="font-style:italic">$message</div>

And change it to this:

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

Max Taxable
03-18-2014, 01:46 AM
But what you can do is edit the bbcode_quote template, and find this bit of code:

<div style="font-style:italic">$message</div>

And change it to this:

<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) (https://vborg.vbsupport.ru/showthread.php?t=309638)
Post Quote Length Limit (vB4) (https://vborg.vbsupport.ru/showthread.php?t=309635)
Post Quote Length Limit (vB3) (https://vborg.vbsupport.ru/showthread.php?t=309637)

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
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) (https://vborg.vbsupport.ru/showthread.php?t=309635)

Max Taxable
03-18-2014, 04:23 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. :DI 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: