Tutorial de Discuz: Cómo eliminar la cantidad de temas y publicaciones que se muestran en la versión horizontal
Utilice el Bloc de notas para abrir la plantilla predeterminada: \template\default\forum\discuz.htm y busque el siguiente código:
$todayposts Número de publicaciones hoy $postdata[0] Publicaciones ayer Cuente $posts, el número total de publicaciones en el foro, $_G['cache']['userstats']['totalmembers'], el número de miembros,
Luego puede agregar el número que desee para modificar delante del símbolo $, cada código que comienza con $ es una variable. Por ejemplo, si la publicación de hoy es 36, agregar un número delante es 2 y la página de inicio del foro mostrará 236.
Elimine el siguiente código y ya no se mostrará:
lt;div id="chart" class="bm bw0 cl"gt;
lt;!- -{if $_G['uid']}--gt;lt;p class="y"gt;lt;a href="home.php?mod=spaceamp;uid=$_G['uid ']amp; do=threadamp;view=me" title="{lang my_posts}" class="xi2"gt;{lang my_posts}lt;/agt;lt;span class="pipe"gt;|lt;/ spangt;lt; a href="search.php?mod=forumamp;srchfrom=$newthreadsamp;searchsubmit=yes" title="{lang show_newthreads}" class="xi2"gt;{lang show_newthreads}lt;/agt;lt ;/pgt; lt;!--{/if}--gt;
lt;p class="chart"gt;{lang index_today}: lt;emgt;$todaypostslt;/emgt;lt ;span class= "pipe"> emgt;lt;span class="pipe"gt;|lt;/spangt;{lang index_members}: lt;emgt;$_G['cache']['userstats']['totalmembers ']lt;/emgt;lt ;!--{if $_G['setting']['lastmember']}--gt;lt;span class="pipe"gt;|lt;/spangt;{lang bienvenidos_nuevos_miembros }: lt;emgt;lt; a href="home.php?mod=spaceamp;username={echo rawurlencode($_G['setting']['lastmember'])}" target="_blank" class="xi2 "gt;$_G['configuración ']['último miembro']lt;/agt;lt;/emgt;lt;!--{/if}--gt;lt;/pgt;
lt;/divgt;
Reimpreso del Foro Manman Life