vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   How to adjust PM Width? (https://vborg.vbsupport.ru/showthread.php?t=313190)

thetechgenius 07-24-2014 02:52 AM

How to adjust PM Width?
 
Does anyone know how to change the PM Box Width? My Inbox messages are showing up to wide for my style, the box goes off of the edge.


Here is a screenshot:

https://vborg.vbsupport.ru/external/2014/07/19.png



I have been checking it out with Firebug for FireFox, but I cannot find the CSS that changes that box. Can someone please help me? This is really bugging me.

Thank You,

-Gary

MarkFL 07-24-2014 05:55 AM

A "down and dirty" fix would be to open the pm_showpm template, and locate the code:

HTML Code:

        <ol>
                {vb:raw postbit}
        </ol>

And edit it to read:

HTML Code:

        <ol style="margin-right: 200px">
                {vb:raw postbit}
        </ol>

And then by trial and error replace the margin's value of 200px with the value that gives the desired result.

thetechgenius 07-24-2014 04:58 PM

Quote:

Originally Posted by MarkFL (Post 2508052)
A "down and dirty" fix would be to open the pm_showpm template, and locate the code:

HTML Code:

        <ol>
                {vb:raw postbit}
        </ol>

And edit it to read:

HTML Code:

        <ol style="margin-right: 200px">
                {vb:raw postbit}
        </ol>

And then by trial and error replace the margin's value of 200px with the value that gives the desired result.

I really thought that was going to work, but it just made the top and bottom shorter. The center, where the message content is, is still bigger then my board.

Here is the screenshot after I added your code:

https://vborg.vbsupport.ru/external/2014/07/16.png

MarkFL 07-24-2014 05:12 PM

1 Attachment(s)
On my locally hosted board where I do my coding, the change to the template has the effect shown in the attached image. I'm not sure why you are getting a different effect.

thetechgenius 07-24-2014 06:01 PM

Quote:

Originally Posted by MarkFL (Post 2508141)
On my locally hosted board where I do my coding, the change to the template has the effect shown in the attached image. I'm not sure why you are getting a different effect.

I just found out, the CSS that controls the width is the same CSS that controls the width for Viewing Threads.

Its the ".postbody" CSS. So when I change the width for "postbody", it also changes the width for the threads too.

Do you know where the codding is for "{vb:raw postbit}" ? I need to change the CSS variable for the private message body to "postbody2", and copy and paste the CSS code from postbody into additional.css, and change the width. So that way the threads wont change width, because they will use a different CSS Variable.

Do you know what I am trying to say?

tbworld 07-24-2014 07:45 PM

Create a temp account where we can find that header and then we can easily help.

thetechgenius 07-24-2014 09:00 PM

Quote:

Originally Posted by tbworld (Post 2508155)
Create a temp account where we can find that header and then we can easily help.

Here you go,

Site: https://thetechgenius.net

Username: Testing
Password: testing

Note: Notice the first capital letter of the user name. They are case sensitive.


Thank you so much for helping me. I greatly appreciate it!

tbworld 07-24-2014 09:50 PM

Quote:

Originally Posted by thetechgenius (Post 2508164)
Username: Testing
Password: testing
Note: Notice the first capital letter of the user name. They are case sensitive.

In vBulletin they are not case sensitive, just for your info. :)

Please send a few private messages to the test account, so that I can see the header. Thanks. :)

thetechgenius 07-24-2014 11:25 PM

Quote:

Originally Posted by tbworld (Post 2508171)
In vBulletin they are not case sensitive, just for your info. :)

Please send a few private messages to the test account, so that I can see the header. Thanks. :)

Oh really? I thought they were case sensitive, sorry about that, my mistake.

And I have sent a PM to the test account.

Thanks again! :)

tbworld 07-25-2014 01:51 AM

Try this:

Add this to the bottom of your additional.css template.

Code:

.postbitlegacy .postbody, .eventbit .eventdetails .eventbody {
  width: 546px !important;
}

:)


All times are GMT. The time now is 04:49 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.02473 seconds
  • Memory Usage 1,739KB
  • 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
  • (1)bbcode_code_printable
  • (4)bbcode_html_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete