vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   QUOTE with scroll bar (https://vborg.vbsupport.ru/showthread.php?t=322802)

Bruno_menor 06-08-2016 02:02 PM

QUOTE with scroll bar
 
How do I get the QUOTE with scroll bar?
Hugs

--------------- Added [DATE]1465405126[/DATE] at [TIME]1465405126[/TIME] ---------------

Already got it, thanks.

PinkMilk 06-09-2016 08:01 PM

1 Attachment(s)
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):
Code:

<div style="margin:20px;

add class:

Code:

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

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


Code:

.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

Code:

<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
Code:

<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.


All times are GMT. The time now is 05:01 AM.

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.01123 seconds
  • Memory Usage 1,726KB
  • 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
  • (5)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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