Globos postbit
Hola que tal amigos de MyBB-es me gustaria saber como puedo modificar el postbit para agregar los globos de dialogo como en esta Web
Es decir que el globo tenga un color diferente si es que es el autor del Hilo y esas cosas.
Espero que me puedan ayudar y les agradezco desde ya.
Saludos
Es decir que el globo tenga un color diferente si es que es el autor del Hilo y esas cosas.
Espero que me puedan ayudar y les agradezco desde ya.
Saludos
Si ya tienes el código del globo pasa tu código del postbit/postbit_classic y necesitaras el Template Conditionals.
Si todavía no tienes el globo colocado has esto para poder pasarte el código PHP y recuerda instalar el plugin que menciono arriba:
http://www.mybb-es.com/Hilo-globos-de-di...t-1-imagen
Si todavía no tienes el globo colocado has esto para poder pasarte el código PHP y recuerda instalar el plugin que menciono arriba:
http://www.mybb-es.com/Hilo-globos-de-di...t-1-imagen
Perdón por responder hasta tarde pero apenas coloque la modificación, ahora si ya puedes pasarme el código PHP.
Gracias
Gracias
Aqui te lo dejo pero ya le tengo modificado, y ya cuento con el plugin que me mencionaste
Saludos
<if $postcounter - 1 then>
{$ignore_bit}
<table width="100%" cellspacing="0" cellpadding="0" border="0" align="center">
<tr>
<td width="20%" valign="top">
<tr>
<td width="15%" valign="top" style="white-space: nowrap; text-align: center;"><a name="pid{$post['pid']}" id="pid{$post['pid']}"></a>
<div class="postbit3_header">
<span class="smalltext">
<span class="largetext"><center>{$post['profilelink']}</center></span>
{$post['useravatar']}
</span></div>
</td>
</td><br />
<td><img src="{$theme['imgdir']}/pixel.gif" height="1" width="2%" alt=""/></td>
<td width="78%" valign="top">
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder" id="post_{$post['pid']}">
<tr>
<td class="tcat" colspan="2" valign="middle">
<span style="float: right;">{$post['posturl']}</span>
<span class="smalltext"><a href="{$post['profilelink_plain']}" id="profile_{$post['pid']}">{$post['username_formatted']} ▼</a> <div id="profile_{$post['pid']}_popup" class="popup_menu" style="display: none;"><div class="popup_item_container">
<table style="text-align: left; color: #000;"><tr><td ><a href="{$post['profilelink_plain']}">
<img src="{$theme['imgdir']}/uqm/profile.png" alt="" title="" /> Ver Perfil</a></td><td>
<a href="private.php?action=send&uid={$post['uid']}"><img src="{$theme['imgdir']}/uqm/pm.png" alt="" title="" /> Enviar MP</a></td></tr><tr><td>
<a href="search.php?action=finduserthreads&uid={$post['uid']}"><img src="{$theme['imgdir']}/uqm/thread.png" alt="" title="" /> Ver sus Temas</a></td><td>
<a href="member.php?action=emailuser&uid={$post['uid']}"><img src="{$theme['imgdir']}/uqm/email.png" alt="" title="" /> Enviar E-mail</a></td></tr><tr><td>
<a href="search.php?action=finduser&uid={$post['uid']}"><img src="{$theme['imgdir']}/uqm/post.png" alt="" title="" /> Ver sus Post's</a></td><td>{$post['buddy_post']}</td></tr></table></div></div>
<script type="text/javascript">if(use_xmlhttprequest == "1"){new PopupMenu("profile_{$post['pid']}");}</script> lo escribió: {$post['postdate']} a las: {$post['posttime']}</span>
</td>
</tr>
<td class="{$altbg}" valign="top">
<table width="100%">
<tr><td>
<div id="pid_{$post['pid']}" style="padding: 5px 0 5px 0;">
{$post['message']}
</div>
{$post['attachments']}
<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="trow2" colspan="2" align="left">{$post['button_quickdelete']}{$post['button_find']}{$post['button_edit']}{$post['button_rep']}
<span style="float: right;">{$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']}</span>
</td>
</tr>
</table></td></td>
</tr>
</table>
<else>
<table width="100%" cellspacing="0" cellpadding="0" border="0" align="center" id="post_{$post['pid']}">
<tr>
<td width="20%" valign="top">
<tr>
<td width="15%" valign="top" style="white-space: nowrap;><a name="pid{$post['pid']}" id="pid{$post['pid']}"></a>
<div class="postbit33_header"><div class="postbit5_header"><center><span class="largetext">{$post['profilelink']}</span><br />
{$post['groupimage']}</center>
</div>
<span class="smalltext">
<div class="postbit4_header">
<center>{$post['useravatar']}</center><br />
{$post['user_details']}{$post['suscriber']}<!-- Achiviement_PIP -->{$post['points_pip']}<!-- /Achiviement_PIP -->
</div>
<a href="misc.php?suscriberuser=yes&usid={$post['uid']}&uid={$mybb->user['uid']}"><img src="images/seg.png" alt="{$lang->suscriber}" title="" /></a><br />
</span></div>
</td>
</td><br />
<td><img src="{$theme['imgdir']}/pixel.gif" height="1" width="2%" alt=""/></td>
<td width="78%" valign="top">
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td class="tcat" colspan="4" valign="middle">
<span style="float: right;">{$post['posturl']}</span>
<span class="smalltext"><img src="{$theme['imgdir']}/folder.gif" height="13" style="margin-top: 2px;" /> <b>{$thread['subject']}</b> escrito por: </span>
<span class="smalltext"><a href="{$post['profilelink_plain']}" id="profile_{$post['pid']}">{$post['username_formatted']} ▼</a> <div id="profile_{$post['pid']}_popup" class="popup_menu" style="display: none;"><div class="popup_item_container">
<table style="text-align: left; color: #000;"><tr><td ><a href="{$post['profilelink_plain']}">
<img src="{$theme['imgdir']}/uqm/profile.png" alt="" title="" /> Ver Perfil</a></td><td>
<a href="private.php?action=send&uid={$post['uid']}"><img src="{$theme['imgdir']}/uqm/pm.png" alt="" title="" /> Enviar MP</a></td></tr><tr><td>
<a href="search.php?action=finduserthreads&uid={$post['uid']}"><img src="{$theme['imgdir']}/uqm/thread.png" alt="" title="" /> Ver sus Temas</a></td><td>
<a href="member.php?action=emailuser&uid={$post['uid']}"><img src="{$theme['imgdir']}/uqm/email.png" alt="" title="" /> Enviar E-mail</a></td></tr><tr><td>
<a href="search.php?action=finduser&uid={$post['uid']}"><img src="{$theme['imgdir']}/uqm/post.png" alt="" title="" /> Ver sus Post's</a></td><td>{$post['buddy_post']}</td></tr></table></div></div>
<script type="text/javascript">if(use_xmlhttprequest == "1"){new PopupMenu("profile_{$post['pid']}");}</script>
</td>
</tr>
<td class="{$altbg}" valign="top" colspan="4">
<table width="100%">
<tr><td>
<div id="pid_{$post['pid']}" style="padding: 5px 0 5px 0;">
{$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="trow2" colspan="4" align="left">{$post['button_quickdelete']}{$post['button_edit']}{$post['button_www']}{$post['button_rep']}
<span style="float: right;">{$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']}</span>
</td>
</tr>
</table></td></td>
</tr>
</table>
</if>Saludos
Ese código no esta modificado para usar el globo? Te pide que primero lo modificaras para usar el globo y luego colocaras el código ya listo aquí para pasarte lo que pedías.
Cuando lo tengas usa:
CLASS_OP = class del usuario que creo el tema.
CLASS_OTROS = class de cualquier usuario que responda al tema.
Cuando lo tengas usa:
<if $thread['uid'] == $post['uid'] then>CLASS_OP<else>CLASS_OTROS</if>CLASS_OP = class del usuario que creo el tema.
CLASS_OTROS = class de cualquier usuario que responda al tema.
Ya lo coloque y me funciono muchas gracias Sama34 te dejo +rep
Gracias
Gracias
![[Image: signature.png]](https://omarg.me/cache/images/signature.png)