... últimamente estoy tomando el foro como conejo de indias ( para hacer pruebas ).
La forma en que logré lo que tu quieres es mediante condiciones dentro de la plantilla postbit. En sí, lo que tu quieres puede lograrse remplazando el siguiente código:
con este:Código PHP:<vb:if condition="$post['userid']">
<hr />
<dl class="userinfo_extra">
<vb:if condition="$post['joindate']"><dt>{vb:rawphrase join_date}</dt> <dd>{vb:raw post.joindate}</dd></vb:if>
<vb:if condition="$post['field2']"><dt>{vb:rawphrase location_perm}</dt> <dd>{vb:raw post.field2}</dd></vb:if>
<vb:if condition="$post['age']"><dt>{vb:rawphrase age}</dt> <dd>{vb:raw post.age}</dd></vb:if>
<dt>{vb:rawphrase 'posts'}</dt> <dd>{vb:raw post.posts}</dd>
<dt>Gustado</dt> <dd>{vb:raw post.vbseo_likes_in} Veces</dd>
<dt>Me Gustan</dt> <dd>{vb:raw post.vbseo_likes_out} Veces</dd>
{vb:raw template_hook.postbit_userinfo_right_after_posts}
</dl>
<vb:if condition="$show['infraction'] OR $show['reppower']">
<dl class="user_rep">
<vb:if condition="$show['infraction']">
<dt>{vb:rawphrase infractions}</dt>
<dd>{vb:raw post.warnings}/{vb:raw post.infractions} ({vb:raw post.ipoints})</dd>
</vb:if>
<vb:if condition="$show['reputation']">
<vb:if condition="$show['reppower']">
<dt>{vb:rawphrase reppower}</dt>
<dd id="reppower_{vb:raw post.postid}_{vb:raw post.userid}">{vb:raw post.reppower}</dd>
</vb:if>
</vb:if>
</dl>
</vb:if>
{vb:raw template_hook.postbit_userinfo_right}
<div class="imlinks">
{vb:raw post.icqicon} {vb:raw post.aimicon} {vb:raw post.msnicon} {vb:raw post.yahooicon} {vb:raw post.skypeicon}
</div>
</vb:if>
El cambio solo es la condición envolviendo el código que muestra la información del usuario:Código PHP:<vb:if condition="$post['postcount'] == 1">
<vb:if condition="$post['userid']">
<hr />
<dl class="userinfo_extra">
<vb:if condition="$post['joindate']"><dt>{vb:rawphrase join_date}</dt> <dd>{vb:raw post.joindate}</dd></vb:if>
<vb:if condition="$post['field2']"><dt>{vb:rawphrase location_perm}</dt> <dd>{vb:raw post.field2}</dd></vb:if>
<vb:if condition="$post['age']"><dt>{vb:rawphrase age}</dt> <dd>{vb:raw post.age}</dd></vb:if>
<dt>{vb:rawphrase 'posts'}</dt> <dd>{vb:raw post.posts}</dd>
<dt>Gustado</dt> <dd>{vb:raw post.vbseo_likes_in} Veces</dd>
<dt>Me Gustan</dt> <dd>{vb:raw post.vbseo_likes_out} Veces</dd>
{vb:raw template_hook.postbit_userinfo_right_after_posts}
</dl>
<vb:if condition="$show['infraction'] OR $show['reppower']">
<dl class="user_rep">
<vb:if condition="$show['infraction']">
<dt>{vb:rawphrase infractions}</dt>
<dd>{vb:raw post.warnings}/{vb:raw post.infractions} ({vb:raw post.ipoints})</dd>
</vb:if>
<vb:if condition="$show['reputation']">
<vb:if condition="$show['reppower']">
<dt>{vb:rawphrase reppower}</dt>
<dd id="reppower_{vb:raw post.postid}_{vb:raw post.userid}">{vb:raw post.reppower}</dd>
</vb:if>
</vb:if>
</dl>
</vb:if>
{vb:raw template_hook.postbit_userinfo_right}
<div class="imlinks">
{vb:raw post.icqicon} {vb:raw post.aimicon} {vb:raw post.msnicon} {vb:raw post.yahooicon} {vb:raw post.skypeicon}
</div>
</vb:if>
</vb:if>
Utilicé la variable $psot['postcount'] que es la que devuelve el número de mensaje en un tema, y me aseguro que solo tome efecto en el primer mensaje.Código PHP:<vb:if condition="$post['postcount'] == 1">
Editción: Esto es en la plantilla postbit_legacy, para la plantilla postbit, debería ser algo parecido también.



2Likes
URL del LinkBack
Acerca de los LinkBacks
, mi pregunta es, existe alguna manera de que solo se muestre la info del postbit (Edad, sexo, biografia, etc) solo en el primer post, y las demas respuestas solo muestren el avatar???, osea que solo se muestre la info del que creo el post y los comentarios solo se vea el avatar...
...




Citar





