MyBB Hacks

Full Version: [Semi-Solved] How to align signature to the bottom of the post [Semi-Solved]
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
(02-23-2012 01:45 AM)Saman Wrote: [ -> ]So ur sayin' I don't understand the difference between postbit classic and postbit ? Smile I might be new to coding but I'm very smart.
I know that the style of MyBB Hacks forums is postbit_classic. ain't it ? and just to ease my mind, I deleted all postbit codes and it consequently had no effect on postbit classic coz I'd already changed the style to postbit classic and set the sql code to apply it for all users. I'm sure I'm using postbit classic. and I don't guess it's a matter of PEBKAC because all the other codes I manipulated or added, are working perfectly fine. this is a very minor issue I've come across. Frown
If you confirm that this code works then it does Smile
I'll sort it out...
Thank you so much Leefish 'n Sama 4 helpin'

I'm glad to hear it. Re not knowing the difference between one postbit and another - I never said that. Of course, given that you didn't seem to know the difference between one forum software and another it would have been a fair assumption to make......
I guess ur right..
Maybe you can use margin-top, so the signature will be at the bottom of the message area, if the message is one line. Unfortunately, it's a bit ugly for a long message.

Alternatively, you can add a row between the post author/message and the post button for the signature.
oh... Now I know what leefish meant.. u just added a new row and put the signature inside that row right ? this is a good trick but what about those users with no signature ? I don't wanna have empty rows.

I finally came up with the right answer here...

But here's another issue.. some firefox versions aren't compatible with positioning codes introduced there. therefore the signature sticks out of the flow of the web page.. Other browsers are ok with it.. and that's what I call a catch 22.Ouch

Quote:Maybe you can use margin-top, so the signature will be at the bottom of the message area, if the message is one line. Unfortunately, it's a bit ugly for a long message.

Alternatively, you can add a row between the post author/message and the post button for the signature.

Actually I went for this one coz it's the most compatible way.

All I did was add a <br /> before the postbit_signature:

PHP Code:
<br /><hr size="1" width="25%"  align="right"  />
{$post['signature']}


Thank u guys for helpin..tagged the thread as [Solved]

Well, it all depends on how you want your layout to look. For example, I don't have the <hr> tag as I don't like it and I have my .css set so it is not very obvious there is a "missing line". I also use the default profile plugin to hand out a standard sig and avatar on registration. I also have a fixed height on my signatures to stop the board looking too much like a Christmas tree.
I checked ur site a few minutes ago and I have to admit that this is a very cool trick.. at least u have no compatibility issue. I'll give this one a try...
congrats BTW.. ur website is so cool.. I never get tired browsin it.

Quote:I don't have the <hr> tag as I don't like it and I have my .css set so it is not very obvious there is a "missing line.
how did u do that ?
you prolly omitted "hr" and replaced it with "div" and defined it in global.css.. Am I correct?
yup, pretty much

this is what I have in postbit_signature

HTML Code
<div class="signature">{$post['signature']}</div>

and in the .css

Code:
.signature {
border:2px solid #b5bfbe;height:56px;overflow:auto;
}

I can't thank u enough Lee... hope this helps the others who come up with such an issue as well...
Pages: 1 2
Reference URL's