Disabled the "Away" feature.

  • Welcome to "The New" Wrestling Smarks Forum!

    I see that you are not currently registered on our forum. It only takes a second, and you can even login with your Facebook! If you would like to register now, pease click here: Register

    Once registered please introduce yourself in our introduction thread which can be found here: Introduction Board


Anonymous

The Artiste
Joined
Dec 16, 2011
Messages
326
Reaction score
22
Points
0
RT @Anonymous - fix it. #needhelp

@xanth @crayo fixed while mobile browsing like a ninja. Still need to make a postbit away background though. #callanonymous #jobdone.

P.S. @Crayo, you post too much, took me ages to find a post by monster. #postwhore #fml
 

Anonymous

The Artiste
Joined
Dec 16, 2011
Messages
326
Reaction score
22
Points
0
ic @[Crayo], gna make tagging thing show message in PM though, save clicking link or if post gets edited/deleted.


Fucking edit button is so hard to click on this cunting phone.
 

Crayo

The Boss
Joined
Dec 16, 2011
Messages
63,815
Reaction score
6,080
Points
1
Location
United Kingdom of Ambrose
Website
wweforums.net
I can't remember now, in his post_bit it had like a line of code and his username in-between. Naturally that stretched his post_bit out and looked horrible. Probably one character missing from the code that's all, just haven't looked into it now.
 

Solidus1

eXit
Joined
Dec 25, 2011
Messages
15,712
Reaction score
4,672
Points
0
If you enable it again, I can see the problem.
To prevent the postbit from stretching, just add a div tag like this to postbit_classic surrounding {$post['user_details']}

Code:
<div style="max-width:150px;"> </div>

150px looks about right for this theme.
 

Solidus1

eXit
Joined
Dec 25, 2011
Messages
15,712
Reaction score
4,672
Points
0
I can see you're using the div tag, but with awards installed it didn't work correctly, surrounding everything in postbit_author_user should work.
 

Lith

Jobber
Joined
Dec 19, 2011
Messages
236
Reaction score
9
Points
0
Fix dat regex @[Anonymous]

<snip>

PM Anonymous directly for this

-Crayo
__________

I can't PM him directly because you fucking took away the screenshot

*is not going to do it now*
 

Anonymous

The Artiste
Joined
Dec 16, 2011
Messages
326
Reaction score
22
Points
0
The problem had nothing to do with long text.

To make the table display a different background depending on the users online status, i placed the user status template variable inside the class attribute of the tr tag surrounding the whole user area in the postbit. Then replaced the online and offline templates with status_online and status_offline respectively, then simply styled those classes with a different background image.

I assumed the away status didn't show up in the postbit, and simply forgot to edit the template. The default template returned HTML and broke out of the tr tag above, which is why some plaintext html was shown.

When I get back onto the computer, I just need to make a separate background for 'away' and it'll be done.
 

Solidus1

eXit
Joined
Dec 25, 2011
Messages
15,712
Reaction score
4,672
Points
0
I'm sure I never had these problems with this theme.
{$post['onlinestatus']} is already inside <tr> btw.
 

Anonymous

The Artiste
Joined
Dec 16, 2011
Messages
326
Reaction score
22
Points
0
You misunderstood. I moved that template variable inside <tr class="{$post['onlinestatus']}">*, so now, whichever template is returned, the tr will be styled with either the status_online or status_offline class.

I've now changed the away template to return status_away, now I just need to make a background image under the style .status_away.

* you know how hard it was to write that on a mobile?