Log in

View Full Version : QUOTE with scroll bar


Bruno_menor
06-08-2016, 02:02 PM
How do I get the QUOTE with scroll bar?
Hugs

--------------- Added 1465405126 at 1465405126 ---------------

Already got it, thanks.

PinkMilk
06-09-2016, 08:01 PM
It would have been more helpful for others looking if you had posted the answer rather that "got it" update.....just saying.


How I'd do it....

bbcode_quote template find (first line):
<div style="margin:20px;


add class:

<div class="quotewithscrollbar" style="margin:20px;

save

Open style manager and scroll down to near bottom in "Additional CSS Definitions" (second box) add:


.quotewithscrollbar {
max-height:200px;
overflow:auto;
}

Change height to your own desired needs.

blind-eddie
06-10-2016, 01:01 AM
Or change one line of code in the bbcode_quote template
Default bbcode_quote template

<div style="margin:20px; margin-top:5px; <if condition="$show['iewidthfix']">width: 100%;</if>">
<div class="smallfont" style="margin-bottom:2px">$vbphrase[quote]:</div>
<table cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="100%">
<tr>
<td class="alt2" style="border:1px inset">
<if condition="$show['username']">
<div>
<phrase 1="$username">$vbphrase[originally_posted_by_x]</phrase>
<if condition="$postid"><a href="showthread.php?$session[sessionurl]p=$postid#post$postid" rel="nofollow"><img class="inlineimg" src="$stylevar[imgdir_button]/viewpost.gif" border="0" alt="$vbphrase[view_post]" /></a></if>
</div>
<div style="font-style:italic">$message</div>
<else />
$message
</if>
</td>
</tr>
</table>
</div>


Edited bbcode_quote template
<div style="margin:20px; margin-top:5px; <if condition="$show['iewidthfix']">width: 100%;</if>">
<div class="smallfont" style="margin-bottom:2px">$vbphrase[quote]:</div>
<table cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="100%">
<tr>
<td class="alt2" style="border:1px inset">
<if condition="$show['username']">
<div>
<phrase 1="$username">$vbphrase[originally_posted_by_x]</phrase>
<if condition="$postid"><a href="showthread.php?$session[sessionurl]p=$postid#post$postid" rel="nofollow"><img class="inlineimg" src="$stylevar[imgdir_button]/viewpost.gif" border="0" alt="$vbphrase[view_post]" /></a></if>
</div>
<div style="font-style:italic; max-height:300px; width:auto; overflow:auto;">$message</div>
<else />
$message
</if>
</td>
</tr>
</table>
</div>

PinkMilk
06-10-2016, 06:22 PM
Inline styling is not best practice but vbulletin is riddled with it so I suppose not really much of an issue, just different peoples views.