PDA

View Full Version : Post Quote Length Limit (vB4)


ozzy47
18 Mar 2014, 02:39
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 (http://www.vbulletin.org/forum/showthread.php?t=304635)

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:

/* 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 (http://www.vbulletin.org/forum/showthread.php?t=304635) but as you can see, it is much shorter.

ForceHSS
18 Mar 2014, 03:04
Used, might help with less load as well. Did you get my pm

ozzy47
18 Mar 2014, 03:08
Yes I did, and I corrected it. :)

ForceHSS
18 Mar 2014, 03:13
Happy to help, you should sleep you work too hard

Max Taxable
18 Mar 2014, 03:15
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

ozzy47
18 Mar 2014, 03:16
Right, I don't see it reducing page load, as all the same info is there. :)

ozzy47
18 Mar 2014, 03:20
Happy to help, you should sleep you work too hard

I do sleep, and this edit is a result of taking a nap. :)

Barcham
18 Mar 2014, 16:20
Modified and working perfectly! Thanks so much, Chris!

tbworld
18 Mar 2014, 17:16
Nice idea @Ozzy47, such a simple concept. Good work! :)

Alan_SP
18 Mar 2014, 20:20
Yes, it's a good idea.

I took it from BirdOPrey5 (http://www.qapla.com/mods/showthread.php/985-Scrolling-Quotes-like-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.

ozzy47
18 Mar 2014, 21:10
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.

RichieBoy67
18 Mar 2014, 21:11
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. :)

Alan_SP
19 Mar 2014, 17:40
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.

ozzy47
19 Mar 2014, 22:12
Yeah if I was to add the Show More deal, I might just turn it into a product.

fxdigi-cash
22 Apr 2014, 01:20
great article as usual,

Thanks, ozzy47 (http://www.vbulletin.org/forum/member.php?u=344814)

pablodip
06 Mar 2015, 00:53
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:

.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

.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

IggyP
25 Jan 2016, 08:55
is it possible to fix this for vb5? was really happy about that one and just notice it in the graveyard :(