MyBB Community Forums

Full Version: Postbit padding help
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
So, I've been having a problem with padding/aligning the newpoints.
I saw the thread Postbit padding issue but it's kinda outdated and I couldn't fix it using that thread.

So, my aim is to make it look like this:
[Image: RQb2dO8.png]
(Points SPACE Amount)

Is there anyone who can help me with this?
I also added postbit classic here:
{$ignore_bit}
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder" style="{$post_extra_style} {$post_visibility}" id="post_{$post['pid']}">
	<tr>
		<td class="{$altbg} pbclassic" width="220px" valign="top"><a name="pid{$post['pid']}" id="pid{$post['pid']}"></a>
		<strong><span class="largetext">{$post['profilelink']}</span></strong><br />
		<span class="smalltext">
                        {$post['useravatar']}<br />
			{$post['usertitle']}<br />
			{$post['userstars']}
			{$post['groupimage']}
			{$post['newpoints_postbit']}
			{$post['user_details']}
		</span>
	</td>
	<td class="{$altbg}" valign="top">
		<table width="100%">
			<tr><td>{$post['posturl']}<span class="smalltext"><strong>{$post['icon']}{$post['subject']} {$post['subject_extra']}</strong></span>
			<br />
			<div id="pid_{$post['pid']}" class="post_body">
				{$post['message']}
			</div>
			{$post['attachments']}
			{$post['signature']}
			<div style="text-align: right; vertical-align: bottom;" id="post_meta_{$post['pid']}">
				<div id="edited_by_{$post['pid']}">{$post['editedmsg']}</div>
				{$post['iplogged']}
			</div>
		</td></tr>
	</table>
</td>
</tr>
<tr>
	<td class="{$altbg}" style="white-space: nowrap; text-align: center; vertical-align: middle;background: #1d1d1d;"><span class="smalltext">{$post['postdate']} {$post['posttime']}</span></td>
	<td class="{$altbg}" style="vertical-align: middle;">
		<table width="100%" border="0" cellpadding="0" cellspacing="0">
			<tr valign="bottom">
				<td align="left" ><span class="smalltext">{$post['button_email']}{$post['button_pm']}{$post['button_www']}{$post['button_find']}{$post['button_rep']}</span></td>
				<td align="right" style="float:right;">{$post['button_edit']}{$post['button_quickdelete']}{$post['button_quote']}{$post['button_multiquote']}{$post['button_report']}{$post['button_warn']}{$post['button_reply_pm']}{$post['button_replyall_pm']}{$post['button_forward_pm']}{$post['button_delete_pm']}</td>
			</tr>
		</table>
	</td>
</tr>
</table>
provide forum url so that someone can check it
(2015-04-22, 05:56 PM).m. Wrote: [ -> ]provide forum url so that someone can check it

http://braindead.pw

There! Excuse the url :p
Isn't my domain as in it was given for me to test etc.
admin panel >> templates & style >> templates >> global templates >> newpoints_postbit

<span class="smalltext">{$currency}: <a href="{$mybb->settings['bburl']}/newpoints.php">{$points}</a></span>

you can change it like this
<span class="smalltext"><span class="pleft">{$currency}:</span> <span class="pright"><a href="{$mybb->settings['bburl']}/newpoints.php">{$points}</a></span></span>
(2015-04-22, 06:14 PM).m. Wrote: [ -> ]admin panel >> templates & style >> templates >> global templates >> newpoints_postbit


<span class="smalltext">{$currency}: <a href="{$mybb->settings['bburl']}/newpoints.php">{$points}</a></span>

you can change it like this

<span class="smalltext"><span class="pleft">{$currency}:</span> <span class="pright"><a href="{$mybb->settings['bburl']}/newpoints.php">{$points}</a></span></span>

This seems like what I pretty much wanted, thanks. I still have one problem tho.
http://i.imgur.com/VuLuDZ0.png
It's a bit... out of place :l
you can try this code segment in newpoints_postbit template
<div class="pwidth"><span class="pleft">{$currency}:</span> <span class="pright"><a href="{$mybb->settings['bburl']}/newpoints.php">{$points}</a></span></div>
That fixed it, thanks a lot .m. !
Seems like you have the error again. Your postbit is kinda messed up, again.
(2015-04-24, 08:02 PM)PhantomD Wrote: [ -> ]Seems like you have the error again. Your postbit is kinda messed up, again.

Ah yes. I've changed the theme and following that it's pretty messed up  Toungue
More than before, but I got more progress done with this theme. There are some problems but I'm trying to get through them.
(2015-04-25, 05:07 PM)Kekko Wrote: [ -> ]
(2015-04-24, 08:02 PM)PhantomD Wrote: [ -> ]Seems like you have the error again. Your postbit is kinda messed up, again.

Ah yes. I've changed the theme and following that it's pretty messed up  Toungue
More than before, but I got more progress done with this theme. There are some problems but I'm trying to get through them.

Use simple CSS

http://jsfiddle.net/agkf8p1z/
Pages: 1 2