Ho installato i portale board3 e in seguito anche il blog mod,
fin qui tuttto bene, tutto funzione come dovrebbe tranne un piccolo particolare:
ho creato un blocco che permette di vedere i post del blog nella homepage del portale usando questo codice:
Codice: Seleziona tutto
<div class="navbar">
<div class="inner"><span class="corners-top"><span></span></span>
<!-- IF .recent_blogs -->
<div class="post bg3" style="text-align: center;">
<span><span></span></span>
<strong>{L_RECENT_BLOGS}</strong>
<span><span></span></span>
</div>
<!-- BEGIN recent_blogs -->
<div class="post bg1<!-- IF recent_blogs.S_REPORTED or recent_blogs.S_UNAPPROVED --> reported<!-- ENDIF --><!-- IF recent_blogs.S_DELETED --> deleted<!-- ENDIF -->" <!-- IF recent_blogs.POST_COLOR and not recent_blogs.S_REPORTED and not recent_blogs.S_UNAPPROVED and not recent_blogs.S_DELETED -->style="background-color: {recent_blogs.POST_COLOR}"<!-- ENDIF -->>
<div class="inner"><span class="corners-top"><span></span></span>
<div class="postbody" style="width: 100%;">
<!-- IF recent_blogs.S_UNAPPROVED or recent_blogs.S_REPORTED -->
<p class="rules">
<!-- IF recent_blogs.S_UNAPPROVED -->{UNAPPROVED_IMG} <a href="{recent_blogs.U_APPROVE}"><strong>{L_UNAPPROVED}</strong></a><!-- ENDIF -->
<!-- IF recent_blogs.S_REPORTED -->{REPORTED_IMG} <a href="{recent_blogs.U_REPORT}"><strong>{L_REPORTED_SHORT}</strong></a><!-- ENDIF -->
</p>
<!-- ENDIF -->
<dl>
<dt>
<strong><!-- IF recent_blogs.S_HAS_POLL --><img src="{T_THEME_PATH}/images/blog/icon_poll.gif" style="float: right;" alt="" /> <!-- ENDIF --><a href="{recent_blogs.U_VIEW}">{recent_blogs.TITLE}</a></strong> {L_POST_BY_AUTHOR} <strong>{recent_blogs.USER_FULL}</strong> {L_POSTED_ON_DATE} {recent_blogs.DATE} <br />
<div class="content" style="width: 95%; padding: 4px;">{recent_blogs.MESSAGE}</div>
<!-- IF recent_blogs.S_HAS_ATTACHMENTS -->
<dl class="attachbox">
<dt>{L_ATTACHMENTS}</dt>
</dl>
<!-- ENDIF -->
<br clear="all" />
<div>
<span class="num_replies">{recent_blogs.REPLIES}</span>
{recent_blogs.VIEWS}
</div>
</dt>
</dl>
</div><span class="corners-bottom"><span></span></span>
</div>
</div>
<!-- END recent_blogs -->
<!-- ENDIF -->
<span class="corners-bottom"><span></span></span></div></div>
<br style="clear:both" />
http://lithiumstudios.org/forum/viewtop ... ock#p11862
l'unica cosa è che nel conteggio delle visite rimane sempre uguale, non conteggia le nuove visite
penso che il punto nel codice sopracitato sia
Codice: Seleziona tutto
{recent_blogs.VIEWS}
grazie