Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Template Modifications

Reply
 
Thread Tools
Reduce page's length for the long messages in postbit & postbit_legacy Details »»
Reduce page's length for the long messages in postbit & postbit_legacy
Version: 2.00, by BCP Hung BCP Hung is offline
Developer Last Online: Jan 2019 Show Printable Version Email this Page

Category: Show Thread Enhancements - Version: 4.x.x Rating:
Released: 05-31-2011 Last Update: Never Installs: 10
Template Edits
Code Changes Translations  
No support by the author.

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

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 06-01-2011, 08:27 PM
FReeSTER FReeSTER is offline
 
Join Date: Jun 2006
Location: Rome
Posts: 730
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sound good but neither of those links work
Reply With Quote
  #3  
Old 06-02-2011, 01:09 AM
BCP Hung BCP Hung is offline
 
Join Date: May 2011
Location: Vietnam
Posts: 155
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by FReeSTER View Post
Sound good but neither of those links work
Oh no, they are working. Ok, I uploaded to my hosting.

It look easy and pretty !
Reply With Quote
  #4  
Old 06-02-2011, 02:18 PM
FReeSTER FReeSTER is offline
 
Join Date: Jun 2006
Location: Rome
Posts: 730
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

man this look great thank you very much
Reply With Quote
  #5  
Old 06-02-2011, 03:03 PM
BCP Hung BCP Hung is offline
 
Join Date: May 2011
Location: Vietnam
Posts: 155
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by FReeSTER View Post
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 !
Reply With Quote
  #6  
Old 06-02-2011, 03:11 PM
Randomm Randomm is offline
 
Join Date: Jul 2010
Posts: 125
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Arggh!!!! This is a tough one to decide...TAGGED!
Reply With Quote
  #7  
Old 06-03-2011, 08:03 AM
BCP Hung BCP Hung is offline
 
Join Date: May 2011
Location: Vietnam
Posts: 155
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Randomm View Post
Arggh!!!! This is a tough one to decide...TAGGED!
Installed men ! Do not difficult !
Reply With Quote
  #8  
Old 06-03-2011, 03:31 PM
BadgerDog BadgerDog is offline
 
Join Date: Oct 2006
Location: Toronto
Posts: 1,789
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

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
Reply With Quote
  #9  
Old 06-04-2011, 04:51 AM
BCP Hung BCP Hung is offline
 
Join Date: May 2011
Location: Vietnam
Posts: 155
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by BadgerDog View Post
Just for clarity ... I'm slow ...

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 View 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?
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.
Reply With Quote
  #10  
Old 06-16-2011, 05:11 PM
BCP Hung BCP Hung is offline
 
Join Date: May 2011
Location: Vietnam
Posts: 155
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Update : new improve code has been updated !

Working better !
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 12:05 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.07365 seconds
  • Memory Usage 2,315KB
  • Queries Executed 24 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (3)bbcode_code
  • (2)bbcode_php
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete