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;
}

:)

thetechgenius 07-25-2014 02:25 AM

Quote:

Originally Posted by tbworld (Post 2508191)
Try this:

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

Code:

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

:)

I tried that already. lol.

But just so you see what that code does, I added it to the additional.css anyway.

It does fix the PM problem, but it also changes the width for the threads.

https://thetechgenius.net/threads/7-...st-title.?p=20

Edit:
I think I have to change the "postbody" div in the Private Message template, so it uses its own Div CSS class. But I dont know where the Div is, for the Private Message template.

This is from "pm_showpm" Template:

Code:


<ol>
               
                {vb:raw postbit}
                 

        </ol>

The {vb:raw postbit} is where the "postbody" Div is located, but I have no idea where that code is at, since its in that vb:raw format.

Edit 2: I think {vb:raw postbit} is the Postbit_legacy Template. Or which ever postbit your using. Because when I applied "<div class="postbody" "style=width: 757px"> in the postbit_legacy template to make the threads wider, it also made the Private Message Boxes Wide again. So I think the Private Message box and the Threads, are linked to the Postbit_Legacy template.

tbworld 07-25-2014 04:06 AM

Now, I am caught up. We probably just need to add a bit of specificity to the container for the PM area. I will give it another go. ;)

--------------- Added 24 Jul 2014 at 22:36 ---------------

Try this and of course remove the previous CSS we included:

Code:

div#showpm {
    width: 546px;
}


"showpm" template is processed in "private.php" -- since you wanted to know.

thetechgenius 07-25-2014 05:04 AM

Quote:

Originally Posted by tbworld (Post 2508198)
Now, I am caught up. We probably just need to add a bit of specificity to the container for the PM area. I will give it another go. ;)

--------------- Added 24 Jul 2014 at 22:36 ---------------

Try this and of course remove the previous CSS we included:

Code:

div#showpm {
    width: 546px;
}


"showpm" template is processed in "private.php" -- since you wanted to know.

I have just contacted EdenWebs, they made my custom style. And they said they will fix it for me.

But thank you so much for the help!! I greatly appreciate it, I really do! :)


All times are GMT. The time now is 07:56 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.01149 seconds
  • Memory Usage 1,755KB
  • 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
  • (4)bbcode_html_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (13)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