zahipro   20 Feb, 2012, 8:31 pm
#1
Amigos quisiera centrar las celdas pongo el codigo:

{$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="threadtcat" width="18%" valign="top" style="white-space: nowrap; text-align: center;"><a name="pid{$post['pid']}" id="pid{$post['pid']}"></a>{$post['onlinestatus']} <strong><span class="largetext">{$post['profilelink']}</span></strong>
        <td class="threadtcat" valign="middle" style="white-space: nowrap;">{$post['posturl']}<span class="smalltext"><strong>{$post['icon']}{$post['subject']} {$post['subject_extra']}</strong></span><br /></div>
    </tr>
    <tr>
        <td class="{$altbg}" width="15%" valign="top" style="white-space: nowrap; text-align: center;">
        <span class="smalltext">
            <span class="rankname rankname_green originalcursor">{$post['usertitle']}</span><br />
            {$post['userstars']}<br />
            {$post['groupimage']}
            {$post['useravatar']}<br /><br />
            {$post['user_details']}
                        <div class="postbit-box">{$post['points_pip']}
                        {$post['levelbar']}</div>
<br />
        </span>
        <div align="center"><span class="smalltext">{$post['button_email']}{$post['button_pm']}{$post['button_www']}{$post['button_find']}{$post['button_rep']}</span></div><br /><br /><br />
    </td>
    <td class="{$altbg}" valign="top">
        <table width="100%">
            <tr><td>
            <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;"><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="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><!-- PointsInPosts -->{$post['pip_classic']}<!-- /PointsInPosts -->
</table>{$post['adsaf']}

Entonces queda asi :/

[Imagen: dibujors.png]

Si me podrían ayudar gracias.
DARKNESSDH   20 Feb, 2012, 9:29 pm
#2
si mal no me equivoco debe ir asi

{$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="threadtcat" width="18%" valign="top" style="white-space: nowrap; text-align: center;"><a name="pid{$post['pid']}" id="pid{$post['pid']}"></a>{$post['onlinestatus']} <strong><span class="largetext">{$post['profilelink']}</span></strong>
        <td class="threadtcat" valign="middle" style="white-space: nowrap;">{$post['posturl']}<span class="smalltext"><strong>{$post['icon']}{$post['subject']} {$post['subject_extra']}</strong></span><br /></div>
    </tr>
    <tr>
        <td class="{$altbg}" width="15%" valign="top" style="white-space: nowrap; text-align: center;">
        <span class="smalltext">
            <span class="rankname rankname_green originalcursor">{$post['usertitle']}</span><br />
            {$post['userstars']}<br />
            {$post['groupimage']}
            {$post['useravatar']}<br /><br />
           <div class="postbit-box"> {$post['user_details']}
                        {$post['points_pip']}
                        {$post['levelbar']}</div>
<br />
        </span>
        <div align="center"><span class="smalltext">{$post['button_email']}{$post['button_pm']}{$post['button_www']}{$post['button_find']}{$post['button_rep']}</span></div><br /><br /><br />
    </td>
    <td class="{$altbg}" valign="top">
        <table width="100%">
            <tr><td>
            <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;"><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="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><!-- PointsInPosts -->{$post['pip_classic']}<!-- /PointsInPosts -->
</table>{$post['adsaf']}
zahipro   21 Feb, 2012, 8:17 am
#3
Con el codigo que me pasastes queda ahora asi:
[Imagen: designedfo.png]

:/ Quiero nada mas centrar el leveluser los points y el thanks
DARKNESSDH   21 Feb, 2012, 10:50 am
#4
Edita entonces el class de postbit-box

o pon aqui el codigo de ese class para modificartelo facilmente
zahipro   21 Feb, 2012, 11:56 am
#5
Mira mi plantilla de postbit_classic:

{$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="threadtcat" width="18%" valign="top" style="white-space: nowrap; text-align: center;"><a name="pid{$post['pid']}" id="pid{$post['pid']}"></a>{$post['onlinestatus']} <strong><span class="largetext">{$post['profilelink']}</span></strong>
        <td class="threadtcat" valign="middle" style="white-space: nowrap;">{$post['posturl']}<span class="smalltext"><strong>{$post['icon']}{$post['subject']} {$post['subject_extra']}</strong></span><br /></div>
    </tr>
    <tr>
        <td class="{$altbg}" width="15%" valign="top" style="white-space: nowrap; text-align: center;">
        <span class="smalltext">
            <span class="rankname rankname_green originalcursor">{$post['usertitle']}</span><br />
            {$post['userstars']}<br />
            {$post['groupimage']}
            {$post['useravatar']}<br /><br />
            {$post['user_details']}
                        <div class="postbit-box">{$post['points_pip']}
                        {$post['levelbar']}</div>
<br />
        </span>
        <div align="center"><span class="smalltext">{$post['button_email']}{$post['button_pm']}{$post['button_www']}{$post['button_find']}{$post['button_rep']}</span></div><br /><br /><br />
    </td>
    <td class="{$altbg}" valign="top">
        <table width="100%">
            <tr><td>
            <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;"><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="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><!-- PointsInPosts -->{$post['pip_classic']}<!-- /PointsInPosts -->
</table>{$post['adsaf']}

Ahora lo que quisiera que se centre bien como mensajes y eso:
<
div class="postbit-box">{$post['points_pip']}
                        {$post['levelbar']}</div>
DARKNESSDH   21 Feb, 2012, 9:22 pm
#6
@zahipro pero lo que quiero es el codigo de ese class

@papichulo Favor de reportar con el boton [Imagen: postbit_report.gif] cuando sucedan estas cosas

Gracias
zahipro   21 Feb, 2012, 10:59 pm
#7
como se cual es el codigo de class ?
  
Powered By MyBB, © 2002-2025 MyBB Group.
Made with by Curves UI.