vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=246)
-   -   Show Thread Enhancements - Reduce page's length for the long messages in postbit & postbit_legacy (https://vborg.vbsupport.ru/showthread.php?t=264563)

BCP Hung 05-31-2011 10:00 PM

Reduce page's length for the long messages in postbit & postbit_legacy
 
1 Attachment(s)
About this modificaion :
Right, reducing the length of the page for the long messages in postbit & postbit_legacy. In your forum, many members have written long message (maybe up to 10,000 characters), made that webpage is longer, more viewers will be offended because they have to slide the screen to see it. You can limit the number of characters, however, why do you do that ? Let your members write unlimited words. And, you do not have to worry about the length of the webpage.
Additional, you can reduce space between message content and signature !
Install :
  • First Step : add new css in additional.css (Edit Templates -> CSS Templates).
    Paste following code into bottom of additional.css template (or anywhere in that template) :
    Code:

    /* Make a shorter message in postbit_legacy */
    .g_short {
        min-height: auto !important;
        max-height: 350px; /* Custom for your */
        overflow-x: hidden;
        overflow-y: auto;
        padding-right: 10px;
        text-align: justify;
        margin-bottom: 0 !important;
    }

    /* move up signature */
    .postbitlegacy .after_content {
        clear: both !important;
    }

  • Second Step : edit in postbit.css (Edit Templates -> CSS Templates) :
    Find this code :
    Code:

    /*post bit*/
        ...
        and
        ...
    .postbitlegacy .postrow.has_after_content {
        padding-bottom: 4em;
    }

    Add below and edit code :
    Code:

    /*post bit*/
    .postbitlegacy .after_content {
        clear: right !important;
    }
        ...
        and
        ...
    .postbitlegacy .postrow.has_after_content {
        padding-bottom: 0em !important;
    }

  • Third Step : edit in postbit & postbit_legacy template (Edit Templates -> Postbit Templates) :
    The code you will do all same in these templates. Find this code :
    PHP Code:

    <div id="post_message_{vb:raw post.postid}">
        <
    blockquote class="postcontent restore ">
            {
    vb:raw post.message}
        </
    blockquote>
    </
    div

    Make it same ...
    PHP Code:

    <div id="post_message_{vb:raw post.postid}">
        <
    blockquote class="postcontent restore g_short">
            {
    vb:raw post.message}
        </
    blockquote>
    </
    div


FReeSTER 06-01-2011 08:27 PM

Sound good but neither of those links work

BCP Hung 06-02-2011 01:09 AM

Quote:

Originally Posted by FReeSTER (Post 2202478)
Sound good but neither of those links work

Oh no, they are working. Ok, I uploaded to my hosting.

It look easy and pretty !

FReeSTER 06-02-2011 02:18 PM

man this look great thank you very much

BCP Hung 06-02-2011 03:03 PM

Quote:

Originally Posted by FReeSTER (Post 2202701)
man this look great thank you very much

Yeah, I hope everybody like that !
-----------------------------------
Want a some change ? I will update it late in this modification !

Randomm 06-02-2011 03:11 PM

Arggh!!!! This is a tough one to decide...TAGGED!

BCP Hung 06-03-2011 08:03 AM

Quote:

Originally Posted by Randomm (Post 2202713)
Arggh!!!! This is a tough one to decide...TAGGED!

Installed men ! Do not difficult !

BadgerDog 06-03-2011 03:31 PM

Just for clarity ... I'm slow ... :D

So, in essence, this mod adds a browser like sliding bar within a post, for some designated post character count? Therefore, it keeps the reader within the size of postbit, so they scroll inside of the post?

I already use this mod to pull the bottom of the postbit bar up tighter and it works well, so will this mod interfere with it?

How to reduce space in postbit

Finally, I can be dangerous playing around with code, mucking things up. Is this reversible if it doesn't look right on out forums, our if out members don't like it and want it gone?

Thanks for your efforts ... :up:

Regards,
Doug

BCP Hung 06-04-2011 04:51 AM

Quote:

Originally Posted by BadgerDog (Post 2203100)
Just for clarity ... I'm slow ... :D

So, in essence, this mod adds a browser like sliding bar within a post, for some designated post character count? Therefore, it keeps the reader within the size of postbit, so they scroll inside of the post?

Yeah, this is what you think ! I want to make it different, easy for viewer, they do not want to move anymore in that page !
Quote:

Originally Posted by BadgerDog (Post 2203100)
I already use this mod to pull the bottom of the postbit bar up tighter and it works well, so will this mod interfere with it?

How to reduce space in postbit

Finally, I can be dangerous playing around with code, mucking things up. Is this reversible if it doesn't look right on out forums, our if out members don't like it and want it gone?

I did refer to some code in that article, I supplemented so that it can work properly with my modification.
If you do not like it, you can remove css code I added, not necessary to remove the postbit (postbit_legacy) template.

BCP Hung 06-16-2011 05:11 PM

Update : new improve code has been updated !

Working better !

BCP Hung 06-29-2011 12:36 PM

The final code has been updated. I won't continue update.

Thanks for use,
Getamped 1404.

FReeSTER 10-21-2011 10:38 AM

thank yoiu great mod

BCP Hung 10-21-2011 12:29 PM

You're welcome, and thank you for using my modification.
Also, you can check my other modifications via a link in signature !

RSNF 10-21-2011 01:51 PM

Trying to see the demo but links not working any ideas?

FReeSTER 10-21-2011 07:14 PM

Quote:

Originally Posted by RSNF (Post 2259770)
Trying to see the demo but links not working any ideas?

It just add a scroll bar inside the post for the dimension you choose in this case is set as default 350 pixels. So post actually longer then that will show a scroll bar on the side to scroll down into the post making the post much shorter.

hanhdn 10-24-2011 05:13 AM

demo die;)

BCP Hung 10-24-2011 10:10 AM

Quote:

Originally Posted by RSNF (Post 2259770)
Trying to see the demo but links not working any ideas?

Quote:

Originally Posted by hanhdn (Post 2260812)
demo die;)

New link demo updated !

Thanks,
Getamped 1404.

OldSchoolDSL 11-30-2011 04:29 PM

Installed and working

4.1.8

Scanu 11-30-2011 09:01 PM

Great! My congratulations! Tagged for later :)


All times are GMT. The time now is 10:29 PM.

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.01113 seconds
  • Memory Usage 1,763KB
  • 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
  • (3)bbcode_code_printable
  • (2)bbcode_php_printable
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (19)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