DarkFinder   16 Jul, 2011, 4:11 pm
#1
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
Omar G.   16 Jul, 2011, 4:29 pm
#2
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

Envía un DM o MP si te interesa patrocinar alguna actualización o complemento a alguno de mis plugins.

[Imagen: signature.png]

Discord omar.gonzalez (Omar G.#6117); Telegram at @omarugc;
DarkFinder   21 Jul, 2011, 12:13 pm
#3
Perdón por responder hasta tarde pero apenas coloque la modificación, ahora si ya puedes pasarme el código PHP.

Gracias
Omar G.   21 Jul, 2011, 5:25 pm
#4
Pasame tu codigo postbit_classci/postbit por favor Wink

Y te recuerdo que necesitaras el plugin que pensione anteriormente.

Envía un DM o MP si te interesa patrocinar alguna actualización o complemento a alguno de mis plugins.

[Imagen: signature.png]

Discord omar.gonzalez (Omar G.#6117); Telegram at @omarugc;
DarkFinder   21 Jul, 2011, 5:33 pm
#5
Aqui te lo dejo pero ya le tengo modificado, y ya cuento con el plugin que me mencionaste

<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']}&nbsp;▼</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&amp;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&amp;uid={$post['uid']}"><img src="{$theme['imgdir']}/uqm/thread.png" alt="" title="" /> Ver sus Temas</a></td><td>
<a href="member.php?action=emailuser&amp;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&amp;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']}&nbsp;▼</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&amp;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&amp;uid={$post['uid']}"><img src="{$theme['imgdir']}/uqm/thread.png" alt="" title="" /> Ver sus Temas</a></td><td>
<a href="member.php?action=emailuser&amp;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&amp;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
Omar G.   21 Jul, 2011, 6:29 pm
#6
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:
<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.

Envía un DM o MP si te interesa patrocinar alguna actualización o complemento a alguno de mis plugins.

[Imagen: signature.png]

Discord omar.gonzalez (Omar G.#6117); Telegram at @omarugc;
DarkFinder   21 Jul, 2011, 6:33 pm
#7
Omar G.   21 Jul, 2011, 6:39 pm
#8

Envía un DM o MP si te interesa patrocinar alguna actualización o complemento a alguno de mis plugins.

[Imagen: signature.png]

Discord omar.gonzalez (Omar G.#6117); Telegram at @omarugc;
DarkFinder   21 Jul, 2011, 7:21 pm
#9
Ya lo coloque y me funciono muchas gracias Sama34 te dejo +rep

Gracias
  
Powered By MyBB, © 2002-2025 MyBB Group.
Made with by Curves UI.