Post Quote Length Limit (vB4)
1 Attachment(s)
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 */ 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. |
Used, might help with less load as well. Did you get my pm
|
Yes I did, and I corrected it. :)
|
Happy to help, you should sleep you work too hard
|
I may have over celebrated the holiday today a little, but I swear it looks like this works retro for all prior existing posts!
Too much green beer? If so it might also make me think maybe this reduces page load, which of course it doesn't.:D |
Right, I don't see it reducing page load, as all the same info is there. :)
|
Quote:
|
Modified and working perfectly! Thanks so much, Chris!
|
Nice idea @Ozzy47, such a simple concept. Good work! :)
|
Yes, it's a good idea.
I took it from BirdOPrey5 (http://www.qapla.com/mods/showthread...ike-XenForo-12). Anyway, is there an easy way to have it more like it is on Xenforo? That at the end is text Show more (or something) and when you click on it, all of the text is shown? I think it would ask for a bit of javascript or something similar, not just simple CSS addition. |
All times are GMT. The time now is 02:11 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|