Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[DEV] MyStatus
Author Message
euantor
Designer/Themer

Support

Posts: 576
Joined: Jun 2009
Reputation: 2
Post: #11
RE: [DEV] MyStatus
You can do that very simply by editing your postbit_classic template;

Find:

PHP Code:
        <td class="trow1" width="20%" valign="top" style="white-space: normal; text-align: center;"

Or something similar to that - it's the side container of the postbit.

Replace with:

PHP Code:
        <td class="trow1" width="20%" valign="top" style="white-space: pre-line; text-align: center;;"

There is actually a limit though - you just can't edit it in the ACP at the minute because it's hard-coded haha

11-22-2010, 01:54 AM
LeeFish
SimFish


Posts: 49
Joined: Nov 2009
Reputation: 0
Post: #12
RE: [DEV] MyStatus
Oh? I added this to my css

Code:
.wordwrap
            {
                word-wrap:break-word;        
            }

and gave the mystatus variable a div class of wordwrap. Did not work. So what am I missing/doing wrong?

/lee edits post too

Hmmm - I shall try that in the HTML and css.

[Image: leelink.gif]
MyBB 1.6 & XThreads
(This post was last modified: 11-22-2010, 02:02 AM by LeeFish)
11-22-2010, 01:57 AM
euantor
Designer/Themer

Support

Posts: 576
Joined: Jun 2009
Reputation: 2
Post: #13
RE: [DEV] MyStatus
Yeah, I was thinking the postbit had a class, but it's just inline styles as with much of mybb xD

11-22-2010, 02:10 AM
LeeFish
SimFish


Posts: 49
Joined: Nov 2009
Reputation: 0
Post: #14
RE: [DEV] MyStatus
Ok, I did this :

Code:
<div width="15%" valign="top" style="white-space: pre-line; line-height: 1.2em;">{$post['mystatus']}</div>

Worked well. I added the lineheight to stop the text overlaying and the center is inherited. Thanks

[Image: leelink.gif]
MyBB 1.6 & XThreads
11-22-2010, 02:13 AM
euantor
Designer/Themer

Support

Posts: 576
Joined: Jun 2009
Reputation: 2
Post: #15
RE: [DEV] MyStatus
No problem at all It also works if you apply it to the overall td though - that way nothing can cause stretching at all ^^

11-22-2010, 02:19 AM
 




User(s) browsing this thread: 2 Guest(s)