• ¡Bienvenido a XenFácil!

    Estás viendo el sitio como Invitado. Para poder participar en este sitio

    y obtendrás privilegios adicionales, acceso a otras áreas y mucho mas.

    ¡Es gratis!


    ¿Ya eres miembro? Inicia sesión

Mod.Plantilla Iconos de flecha como en XenFacil

lms

Administrador
Mensajes
7.741
Puntuación de reacciones
2.163
Puntos
2.613
Sitio web
xenfacil.com
País
España
Versión de XenForo
2.1.x
PayPal
Donar dinero a este usuario
Página web
Web
El directorio para poner los iconos es styles/default/xenforo/IconThreads/
Los iconos deben de ser TODOS iguales de 84 px de ancho x 47 px de alto y en formato .png.
Si quieres cambiar el formato, busca node_id}.png en los cambios que debes hacer en las plantillas y cambia la extensión por la que corresponda a tus archivos.
Si quieres colocar un icono para el tema id=5, el archivo deberá llamarse 5.png.
Para conocer el id de cada foro o categoría, busca en la URL del foro o categoría el número final http://www.xenfacil.com/forums/ayuda-general.4/. En este caso el id del foro es 4.
Si no lo ves en su URL, vete al panel de control, nodos y cada uno de ellos, cuando lo editas, te dice su número al final.

Los cambios son:

Plantilla node_category_level_1:
Buscar (en la sexta línea)):
PHP:
    <div class="nodeInfo categoryNodeInfo categoryStrip">
Justo debajo, añadir:
PHP:
<span class="lms_container2_node_icons"><img  src="styles/default/xenforo/IconThreads/{$category.node_id}.png" alt=""  /></span>
Con esto hemos hecho las categorías.

Plantilla node_category_level_2:
Buscar:
PHP:
<li class="node category_forum level_{$level} node_{$category.node_id}">
Justo debajo, añadir:
PHP:
<span class="lms_container_node_icons"><span class="lms_node_icons"><img  src="styles/default/xenforo/IconThreads/{$category.node_id}.png" alt=""  /></span></span>
Con esto hemos hecho los foros sin subforos.

Para que se vean los subforos en la página principal, añadid al final del todo:
PHP:
<xen:if is="{$renderedChildren} AND {$level} == 2">
<li class="subForumsGrid">
    <ol class="secondaryContent blockLinksList blockLinksGrid">
    <xen:foreach loop="$renderedChildren" value="$child">
        {xen:raw $child}
    </xen:foreach>
    </ol>
</li>
</xen:if>

Plantilla node_category_level_n:
Buscar al comienzo de la tercera línea
PHP:
<h4 class="nodeTitle"><a href="{xen:link categories, $category}" class="menuRow">
Justo a continuación y antes de
PHP:
{$category.title}</a></h4>
Añadid
PHP:
<img src="./styles/default/xenforo/IconThreads/{$category.node_id}.png" />
Los iconos de aquí son los que salen en los subforos.

Plantilla node_forum_level_2:
En la tercera línea, buscad:
PHP:
<li class="node forum level_{$level} {xen:if '{$level} == 1 AND !{$renderedChildren}', 'groupNoChildren'} node_{$forum.node_id}">
Justo debajo, añadid:
PHP:
<span class="lms_container_node_icons"><span class="lms_node_icons"><img  src="styles/default/xenforo/IconThreads/{$forum.node_id}.png" alt=""  /></span></span>

Plantilla node_forum_level_n:
En la línea 3 de la plantilla, detrás de:
PHP:
        <h4 class="nodeTitle"><a href="{xen:link forums, $forum}" class="menuRow">
Añadis:
PHP:
<img  src="styles/default/xenforo/IconThreads/{$forum.node_id}.png" style="width:54px;height:30px" alt=""  />
y justo detrás va (lo que ya iba):
PHP:
{$forum.title}</a></h4>

Plantilla thread_list_item:
Buscad (en la segunda línea):
PHP:
<xen:if is="{$thread.isDeleted}"><xen:include template="thread_list_item_deleted" /><xen:else />
Justo debajo, añadimos:
PHP:
<div class="lms_node_portal_icons_container"><span class="lms_node_icons"><img  src="styles/default/xenforo/IconThreads/{$thread.node_id}.png" alt="" style="width:60px;height:37px" alt="" /></span></div>

En la plantilla node_list.css, abajo del todo, ponéis:
PHP:
.node .nodeIcon
{
    width: 0px;
    height: 0px;
}

En la plantilla discussion_list.css:
Poned abajo del todo:
PHP:
.discussionListItem .posterAvatar .miniMe
{
    left: 25px;
}
 
.LoggedIn .discussionListItem .titleText
{
    padding-left: 25px;
}
Estos son valores que habría que cambiar más arriba en la plantilla pero que, poniéndolos aquí abajo, sobreescriben cualquier valor configurado más arriba.
Así es más sencillo localizar las modificaciones si toca en algún momento.

En la plantilla EXTRA.css, añadis:
  1. Para que se vean los subforos:
    PHP:
    /*<---------- CSS para subforos --------> */
    .node .nodeLastPost { margin-right: 0px !important; }
    .node .nodeControls { right: 232px !important; }
    
    .subForumsGrid { padding-right: 4px; }
    .subForumsGrid .blockLinksGrid { width: 100%; display: inline-block; margin-left: 10px; }
    .subForumsGrid .fullWidth { width: 100% !important; padding-bottom: 4px; }
    .subForumsGrid .node { width: 25%; float: left; padding-left: 10px; border-right: 2px solid @primaryLightish; }
    .subForumsGrid .node ol { padding-left: 10px; }
    .subForumsGrid .node .node a { padding: 1px 10px; }
    .subForumsGrid .node .nodeTitle { font-size: 11px; white-space: nowrap; overflow: hidden; }
    
    /* <---------- CSS para subforos --------> */
  2. Para los iconos:
    PHP:
    /* <--- lms_node_icons.css ---> */
    
    .lms_node_icons {
    position:absolute;
    left:-5px;
    }
    
    .lms_container_node_icons {
    position:relative;
    display:block;
    float:left;
    background: transparent center center;
    margin: 5px 20px 30px 0px;
    z-index:10000;
    }
    
    .lms_container2_node_icons {
    position:relative;
    display:block;
    float:right;
    margin: -5px -20px -10px 20px;
    z-index:10000;
    }
    
    .lms_node_portal_icons_container {
    position:relative;
    display: block;
    float:left;
    margin: 10px;
    margin-left: -17px;
    widht: 50px;
    z-index:10000;
    }
    
    .discussionListItem .posterAvatar .avatar
    {
        margin-left: 25px;
    }
    
    .nodeList .node.level_1
    {
        margin-left: -20px;
    }
    /* <--- lms_node_icons.css ---> */
Dejo en adjuntos el .psd con los iconos de aquí. Veréis que es muy sencillo hacer unos nuevos. También dejo un archivo .txt con los cambios aquí indicados.

Salud2
http://www.xenfacil.com tu web de soporte en español.

61994155.png
 

Adjuntos

  • lmsXenFacil.zip
    153,1 KB · Visitas: 73
  • IconsLMS.txt
    5,6 KB · Visitas: 74

ManuTdi

XenForoUser
Mensajes
1.189
Puntuación de reacciones
405
Puntos
583
País
España
Versión de XenForo
2.1.x
Gracias!!! todo un detalle por tu parte
 

xavimtz

XenForoUser
Mensajes
218
Puntuación de reacciones
89
Puntos
28
Saludos

Muchas gracias lms muy buena modificación....
 

ManuTdi

XenForoUser
Mensajes
1.189
Puntuación de reacciones
405
Puntos
583
País
España
Versión de XenForo
2.1.x
Bueno pues e estado poniendo estos iconos pero sin flecha, en concreto los que mas me interesaban eran los del portal y los de los foros pero se me hace muy cansino estos de dentro de los foros (dejo foto)

Sin título.png

Como puedo quitarlos sin que se quiten los del portal?? Dejo la praltilla de thread_list_item a ver si me la podeis editar para que no salgan estos iconos. Gracias

Insertar CODE, HTML o PHP:
<xen:require css="discussion_list.css" />

<xen:if is="{$thread.isDeleted}"><xen:include template="thread_list_item_deleted" /><xen:else />
<div class="lms_node_portal_icons_container"><span class="lms_node_icons"><img  src="styles/default/xenforo/iconosforos2/{$thread.node_id}.png" alt="" style="width:40px;height:auto" alt="" /></span></div>
<li id="thread-{$thread.thread_id}" class="discussionListItem {$thread.discussion_state} {xen:if {$thread.sticky}, 'sticky'} {xen:if {$thread.isNew}, 'unread'}" data-author="{$thread.username}">

    <div class="listBlock posterAvatar">
        <span class="avatarContainer">
            <xen:avatar user="$thread" size="s" img="true" />
            <xen:if is="{$thread.user_post_count}"><xen:avatar user="$visitor" size="s" img="true" class="miniMe" title="{xen:phrase you_have_posted_x_messages_in_this_thread, 'count={xen:number $thread.user_post_count}'}" /></xen:if>
        </span>
    </div>

    <div class="listBlock main">

        <div class="titleText">
            <h3 class="title">
                <xen:if is="{$thread.canInlineMod}"><input type="checkbox" name="threads[]" value="{$thread.thread_id}" class="InlineModCheck" id="inlineModCheck-thread-{$thread.thread_id}" data-target="#thread-{$thread.thread_id}" title="{xen:phrase select_thread}: '{$thread.title}'" /></xen:if>
                <xen:if is="{$showSubscribeOptions}"><input type="checkbox" name="thread_ids[]" value="{$thread.thread_id}" /></xen:if>
                <!-- TODO: Thread prefix here -->
                <a href="{xen:link "threads{xen:if '{$thread.isNew} AND {$thread.haveReadData}', '/unread'}", $thread}"
                    title="{xen:if '{$thread.isNew} AND {$thread.haveReadData}', {xen:phrase go_to_first_unread_message}}"
                    class="{xen:if $thread.hasPreview, PreviewTooltip}"
                    data-previewUrl="{xen:if $thread.hasPreview, {xen:link threads/preview, $thread}}">{xen:helper wrap, $thread.title, 50}</a>
                <xen:if is="{$thread.isNew}"><a href="{xen:link threads/unread, $thread}" class="unreadLink" title="{xen:phrase go_to_first_unread_message}"></a></xen:if>
            </h3>

            <xen:if hascontent="true">
                <div class="iconKey">
                <xen:contentcheck>
                    <xen:if is="{$thread.isModerated}"><span class="moderated" title="{xen:phrase moderated}">{xen:phrase moderated}</span></xen:if>
                    <xen:if is="!{$thread.discussion_open}"><span class="locked" title="{xen:phrase locked}">{xen:phrase locked}</span></xen:if>
                    <xen:if is="{$thread.sticky}"><span class="sticky" title="{xen:phrase sticky}">{xen:phrase sticky}</span></xen:if>
                    <xen:if is="{$thread.isRedirect}"><span class="redirect" title="{xen:phrase redirect}">{xen:phrase redirect}</span></xen:if>
                </xen:contentcheck>
                </div>
            </xen:if>

            <div class="secondRow">
                <div class="posterDate muted">
                    <xen:username user="$thread" title="{xen:phrase thread_starter}" />,
                    <a{xen:if {$visitor.user_id}, ' href="{xen:link threads, $thread}"'} class="faint"><xen:datetime time="$thread.post_date" title="{xen:if {$visitor.user_id}, '{xen:phrase go_to_first_message_in_thread}'}" /></a><xen:if is="{$showForumLink}">,
                    <a href="{xen:link forums, $thread.forum}" class="forumLink">{$thread.forum.title}</a></xen:if>

                    <xen:if is="{$showLastPageNumbers} AND {$thread.lastPageNumbers}">
                        <span class="itemPageNav">
                            <span>...</span>
                            <xen:foreach loop="$thread.lastPageNumbers" value="$pageNumber">
                                <a href="{xen:link threads, $thread, 'page={$pageNumber}'}">{$pageNumber}</a>
                            </xen:foreach>
                        </span>
                    </xen:if>
                </div>

                <div class="controls faint">
                    <xen:if is="{$thread.canEditThread}"><a href="{xen:link 'threads/list-item-edit', $thread}" class="EditControl">{xen:phrase edit}</a></xen:if>
                    <xen:if is="{$showSubscribeOptions} AND {$thread.email_subscribe}">{xen:phrase email}</xen:if>
                </div>
            </div>
        </div>
    </div>

    <div class="listBlock stats pairsJustified" title="{xen:phrase members_who_liked_first_message}: {xen:if $thread.isRedirect, '&ndash;', {xen:number $thread.first_post_likes}}">
        <dl class="major"><dt>{xen:phrase replies}:</dt> <dd>{xen:if $thread.isRedirect, '&ndash;', {xen:number $thread.reply_count}}</dd></dl>
        <dl class="minor"><dt>{xen:phrase views}:</dt> <dd>{xen:if $thread.isRedirect, '&ndash;', {xen:number $thread.view_count}}</dd></dl>
    </div>

    <div class="listBlock lastPost">
        <xen:if is="{$thread.isRedirect}">
            <div class="lastPostInfo">{xen:phrase n_a}</div>
        <xen:else />
            <dl class="lastPostInfo">
                <dt><xen:username user="$thread.lastPostInfo" /></dt>
                <dd class="muted"><a{xen:if '{$visitor.user_id}', ' href="{xen:link posts, $thread.lastPostInfo}" title="{xen:phrase go_to_last_message}"'} class="dateTime"><xen:datetime time="$thread.lastPostInfo.post_date" /></a></dd>
            </dl>
        </xen:if>
    </div>

</li>

</xen:if>
 

lms

Administrador
Mensajes
7.741
Puntuación de reacciones
2.163
Puntos
2.613
Sitio web
xenfacil.com
País
España
Versión de XenForo
2.1.x
PayPal
Donar dinero a este usuario
Página web
Web
Bueno pues e estado poniendo estos iconos pero sin flecha, en concreto los que mas me interesaban eran los del portal y los de los foros pero se me hace muy cansino estos de dentro de los foros (dejo foto)

Ver el archivo adjunto 814

Como puedo quitarlos sin que se quiten los del portal?? Dejo la praltilla de thread_list_item a ver si me la podeis editar para que no salgan estos iconos. Gracias
Prueba así:

Insertar CODE, HTML o PHP:
<xen:require css="discussion_list.css" />

<xen:if is="{$thread.isDeleted}"><xen:include template="thread_list_item_deleted" /><xen:else />
<xen:if is="{$contentTemplate} = 'EWRporta_Portal'"><div class="lms_node_portal_icons_container"><span class="lms_node_icons"><img  src="styles/default/xenforo/iconosforos2/{$thread.node_id}.png" alt="" style="width:40px;height:auto" alt="" /></span></div></xen:if>
<li id="thread-{$thread.thread_id}" class="discussionListItem {$thread.discussion_state} {xen:if {$thread.sticky}, 'sticky'} {xen:if {$thread.isNew}, 'unread'}" data-author="{$thread.username}">

    <div class="listBlock posterAvatar">
        <span class="avatarContainer">
            <xen:avatar user="$thread" size="s" img="true" />
            <xen:if is="{$thread.user_post_count}"><xen:avatar user="$visitor" size="s" img="true" class="miniMe" title="{xen:phrase you_have_posted_x_messages_in_this_thread, 'count={xen:number $thread.user_post_count}'}" /></xen:if>
        </span>
    </div>

    <div class="listBlock main">

        <div class="titleText">
            <h3 class="title">
                <xen:if is="{$thread.canInlineMod}"><input type="checkbox" name="threads[]" value="{$thread.thread_id}" class="InlineModCheck" id="inlineModCheck-thread-{$thread.thread_id}" data-target="#thread-{$thread.thread_id}" title="{xen:phrase select_thread}: '{$thread.title}'" /></xen:if>
                <xen:if is="{$showSubscribeOptions}"><input type="checkbox" name="thread_ids[]" value="{$thread.thread_id}" /></xen:if>
                <!-- TODO: Thread prefix here -->
                <a href="{xen:link "threads{xen:if '{$thread.isNew} AND {$thread.haveReadData}', '/unread'}", $thread}"
                    title="{xen:if '{$thread.isNew} AND {$thread.haveReadData}', {xen:phrase go_to_first_unread_message}}"
                    class="{xen:if $thread.hasPreview, PreviewTooltip}"
                    data-previewUrl="{xen:if $thread.hasPreview, {xen:link threads/preview, $thread}}">{xen:helper wrap, $thread.title, 50}</a>
                <xen:if is="{$thread.isNew}"><a href="{xen:link threads/unread, $thread}" class="unreadLink" title="{xen:phrase go_to_first_unread_message}"></a></xen:if>
            </h3>

            <xen:if hascontent="true">
                <div class="iconKey">
                <xen:contentcheck>
                    <xen:if is="{$thread.isModerated}"><span class="moderated" title="{xen:phrase moderated}">{xen:phrase moderated}</span></xen:if>
                    <xen:if is="!{$thread.discussion_open}"><span class="locked" title="{xen:phrase locked}">{xen:phrase locked}</span></xen:if>
                    <xen:if is="{$thread.sticky}"><span class="sticky" title="{xen:phrase sticky}">{xen:phrase sticky}</span></xen:if>
                    <xen:if is="{$thread.isRedirect}"><span class="redirect" title="{xen:phrase redirect}">{xen:phrase redirect}</span></xen:if>
                </xen:contentcheck>
                </div>
            </xen:if>

            <div class="secondRow">
                <div class="posterDate muted">
                    <xen:username user="$thread" title="{xen:phrase thread_starter}" />,
                    <a{xen:if {$visitor.user_id}, ' href="{xen:link threads, $thread}"'} class="faint"><xen:datetime time="$thread.post_date" title="{xen:if {$visitor.user_id}, '{xen:phrase go_to_first_message_in_thread}'}" /></a><xen:if is="{$showForumLink}">,
                    <a href="{xen:link forums, $thread.forum}" class="forumLink">{$thread.forum.title}</a></xen:if>

                    <xen:if is="{$showLastPageNumbers} AND {$thread.lastPageNumbers}">
                        <span class="itemPageNav">
                            <span>...</span>
                            <xen:foreach loop="$thread.lastPageNumbers" value="$pageNumber">
                                <a href="{xen:link threads, $thread, 'page={$pageNumber}'}">{$pageNumber}</a>
                            </xen:foreach>
                        </span>
                    </xen:if>
                </div>

                <div class="controls faint">
                    <xen:if is="{$thread.canEditThread}"><a href="{xen:link 'threads/list-item-edit', $thread}" class="EditControl">{xen:phrase edit}</a></xen:if>
                    <xen:if is="{$showSubscribeOptions} AND {$thread.email_subscribe}">{xen:phrase email}</xen:if>
                </div>
            </div>
        </div>
    </div>

    <div class="listBlock stats pairsJustified" title="{xen:phrase members_who_liked_first_message}: {xen:if $thread.isRedirect, '&ndash;', {xen:number $thread.first_post_likes}}">
        <dl class="major"><dt>{xen:phrase replies}:</dt> <dd>{xen:if $thread.isRedirect, '&ndash;', {xen:number $thread.reply_count}}</dd></dl>
        <dl class="minor"><dt>{xen:phrase views}:</dt> <dd>{xen:if $thread.isRedirect, '&ndash;', {xen:number $thread.view_count}}</dd></dl>
    </div>

    <div class="listBlock lastPost">
        <xen:if is="{$thread.isRedirect}">
            <div class="lastPostInfo">{xen:phrase n_a}</div>
        <xen:else />
            <dl class="lastPostInfo">
                <dt><xen:username user="$thread.lastPostInfo" /></dt>
                <dd class="muted"><a{xen:if '{$visitor.user_id}', ' href="{xen:link posts, $thread.lastPostInfo}" title="{xen:phrase go_to_last_message}"'} class="dateTime"><xen:datetime time="$thread.lastPostInfo.post_date" /></a></dd>
            </dl>
        </xen:if>
    </div>

</li>

</xen:if>

Indicar que, para que salgan en el portal, debes de seguir colocando un icono correspondiente a cada foro o no saldrá ninguno en el portal.


Salud2
 

ManuTdi

XenForoUser
Mensajes
1.189
Puntuación de reacciones
405
Puntos
583
País
España
Versión de XenForo
2.1.x
Ha ocurrido el siguiente error:

Las siguientes plantillas contienen errores y no se guardarán: thread_list_item: 1) Línea 4: Expresión de condición no válida
 

lms

Administrador
Mensajes
7.741
Puntuación de reacciones
2.163
Puntos
2.613
Sitio web
xenfacil.com
País
España
Versión de XenForo
2.1.x
PayPal
Donar dinero a este usuario
Página web
Web
Mira ahora (esto de trabajar estas cosas con word es una mierda)

Insertar CODE, HTML o PHP:
<xen:require css="discussion_list.css" />

<xen:if is="{$thread.isDeleted}">
    <xen:include template="thread_list_item_deleted" />
<xen:elseif is="{$contentTemplate} = 'EWRporta_Portal'">
    <div class="lms_node_portal_icons_container">
        <span class="lms_node_icons">
            <img  src="styles/default/xenforo/iconosforos2/{$thread.node_id}.png" alt="" style="width:40px;height:auto" alt="" />
        </span>
    </div>
<xen:else />
<li id="thread-{$thread.thread_id}" class="discussionListItem {$thread.discussion_state} {xen:if {$thread.sticky}, 'sticky'} {xen:if {$thread.isNew}, 'unread'}" data-author="{$thread.username}">
 
    <div class="listBlock posterAvatar">
        <span class="avatarContainer">
            <xen:avatar user="$thread" size="s" img="true" />
            <xen:if is="{$thread.user_post_count}"><xen:avatar user="$visitor" size="s" img="true" class="miniMe" title="{xen:phrase you_have_posted_x_messages_in_this_thread, 'count={xen:number $thread.user_post_count}'}" /></xen:if>
        </span>
    </div>

    <div class="listBlock main">

        <div class="titleText">
            <h3 class="title">
                <xen:if is="{$thread.canInlineMod}"><input type="checkbox" name="threads[]" value="{$thread.thread_id}" class="InlineModCheck" id="inlineModCheck-thread-{$thread.thread_id}" data-target="#thread-{$thread.thread_id}" title="{xen:phrase select_thread}: '{$thread.title}'" /></xen:if>
                <xen:if is="{$showSubscribeOptions}"><input type="checkbox" name="thread_ids[]" value="{$thread.thread_id}" /></xen:if>
                <!-- TODO: Thread prefix here -->
                <a href="{xen:link "threads{xen:if '{$thread.isNew} AND {$thread.haveReadData}', '/unread'}", $thread}"
                    title="{xen:if '{$thread.isNew} AND {$thread.haveReadData}', {xen:phrase go_to_first_unread_message}}"
                    class="{xen:if $thread.hasPreview, PreviewTooltip}"
                    data-previewUrl="{xen:if $thread.hasPreview, {xen:link threads/preview, $thread}}">{xen:helper wrap, $thread.title, 50}</a>
                <xen:if is="{$thread.isNew}"><a href="{xen:link threads/unread, $thread}" class="unreadLink" title="{xen:phrase go_to_first_unread_message}"></a></xen:if>
            </h3>

            <xen:if hascontent="true">
                <div class="iconKey">
                <xen:contentcheck>
                    <xen:if is="{$thread.isModerated}"><span class="moderated" title="{xen:phrase moderated}">{xen:phrase moderated}</span></xen:if>
                    <xen:if is="!{$thread.discussion_open}"><span class="locked" title="{xen:phrase locked}">{xen:phrase locked}</span></xen:if>
                    <xen:if is="{$thread.sticky}"><span class="sticky" title="{xen:phrase sticky}">{xen:phrase sticky}</span></xen:if>
                    <xen:if is="{$thread.isRedirect}"><span class="redirect" title="{xen:phrase redirect}">{xen:phrase redirect}</span></xen:if>
                </xen:contentcheck>
                </div>
            </xen:if>
            <div class="secondRow">
                <div class="posterDate muted">
                    <xen:username user="$thread" title="{xen:phrase thread_starter}" />,
                    <a{xen:if {$visitor.user_id}, ' href="{xen:link threads, $thread}"'} class="faint"><xen:datetime time="$thread.post_date" title="{xen:if {$visitor.user_id}, '{xen:phrase go_to_first_message_in_thread}'}" /></a><xen:if is="{$showForumLink}">,
                    <a href="{xen:link forums, $thread.forum}" class="forumLink">{$thread.forum.title}</a></xen:if>
                    <xen:if is="{$showLastPageNumbers} AND {$thread.lastPageNumbers}">
                        <span class="itemPageNav">
                            <span>...</span>
                            <xen:foreach loop="$thread.lastPageNumbers" value="$pageNumber">
                                <a href="{xen:link threads, $thread, 'page={$pageNumber}'}">{$pageNumber}</a>
                            </xen:foreach>
                        </span>
                    </xen:if>
                </div>
                <div class="controls faint">
                    <xen:if is="{$thread.canEditThread}"><a href="{xen:link 'threads/list-item-edit', $thread}" class="EditControl">{xen:phrase edit}</a></xen:if>
                    <xen:if is="{$showSubscribeOptions} AND {$thread.email_subscribe}">{xen:phrase email}</xen:if>
                </div>
            </div>
        </div>
    </div>
   <div class="listBlock stats pairsJustified" title="{xen:phrase members_who_liked_first_message}: {xen:if $thread.isRedirect, '&ndash;', {xen:number $thread.first_post_likes}}">
        <dl class="major"><dt>{xen:phrase replies}:</dt> <dd>{xen:if $thread.isRedirect, '&ndash;', {xen:number $thread.reply_count}}</dd></dl>
        <dl class="minor"><dt>{xen:phrase views}:</dt> <dd>{xen:if $thread.isRedirect, '&ndash;', {xen:number $thread.view_count}}</dd></dl>
    </div>
    <div class="listBlock lastPost">
        <xen:if is="{$thread.isRedirect}">
            <div class="lastPostInfo">{xen:phrase n_a}</div>
        <xen:else />
            <dl class="lastPostInfo">
                <dt><xen:username user="$thread.lastPostInfo" /></dt>
                <dd class="muted"><a{xen:if '{$visitor.user_id}', ' href="{xen:link posts, $thread.lastPostInfo}" title="{xen:phrase go_to_last_message}"'} class="dateTime"><xen:datetime time="$thread.lastPostInfo.post_date" /></a></dd>
            </dl>
        </xen:if>
    </div>
</li>
</xen:if>

Salud2
 

ManuTdi

XenForoUser
Mensajes
1.189
Puntuación de reacciones
405
Puntos
583
País
España
Versión de XenForo
2.1.x
O es mi tablet o lo veo mal? :D
 

lms

Administrador
Mensajes
7.741
Puntuación de reacciones
2.163
Puntos
2.613
Sitio web
xenfacil.com
País
España
Versión de XenForo
2.1.x
PayPal
Donar dinero a este usuario
Página web
Web
es el pu...to word que hace estas cosas. Esta tarde te lo "arreglo".

Salud2
 

ManuTdi

XenForoUser
Mensajes
1.189
Puntuación de reacciones
405
Puntos
583
País
España
Versión de XenForo
2.1.x
Ha ocurrido el siguiente error:

Las siguientes plantillas contienen errores y no se guardarán: thread_list_item: 1) Línea 82: error de sintaxis en plantilla.


Repito no hay prisa ;)
 

lms

Administrador
Mensajes
7.741
Puntuación de reacciones
2.163
Puntos
2.613
Sitio web
xenfacil.com
País
España
Versión de XenForo
2.1.x
PayPal
Donar dinero a este usuario
Página web
Web
Ahora sí:
Insertar CODE, HTML o PHP:
<xen:require css="discussion_list.css" />

<xen:if is="{$thread.isDeleted}">
    <xen:include template="thread_list_item_deleted" />
<xen:else />
    <xen:if is="{$contentTemplate} == 'EWRporta_Portal'">
        <div class="lms_node_portal_icons_container">
            <span class="lms_node_icons">
                <img  src="styles/default/xenforo/iconosforos2/{$thread.node_id}.png" alt="" style="width:40px;height:auto" alt="" />
            </span>
        </div>
    </xen:if>
    <li id="thread-{$thread.thread_id}" class="discussionListItem {$thread.discussion_state} {xen:if {$thread.sticky}, 'sticky'} {xen:if {$thread.isNew}, 'unread'}" data-author="{$thread.username}">
     
        <div class="listBlock posterAvatar">
            <span class="avatarContainer">
                <xen:avatar user="$thread" size="s" img="true" />
                <xen:if is="{$thread.user_post_count}"><xen:avatar user="$visitor" size="s" img="true" class="miniMe" title="{xen:phrase you_have_posted_x_messages_in_this_thread, 'count={xen:number $thread.user_post_count}'}" /></xen:if>
            </span>
        </div>

        <div class="listBlock main">

            <div class="titleText">
                <h3 class="title">
                    <xen:if is="{$thread.canInlineMod}"><input type="checkbox" name="threads[]" value="{$thread.thread_id}" class="InlineModCheck" id="inlineModCheck-thread-{$thread.thread_id}" data-target="#thread-{$thread.thread_id}" title="{xen:phrase select_thread}: '{$thread.title}'" /></xen:if>
                    <xen:if is="{$showSubscribeOptions}"><input type="checkbox" name="thread_ids[]" value="{$thread.thread_id}" /></xen:if>
                    <!-- TODO: Thread prefix here -->
                    <a href="{xen:link "threads{xen:if '{$thread.isNew} AND {$thread.haveReadData}', '/unread'}", $thread}"
                        title="{xen:if '{$thread.isNew} AND {$thread.haveReadData}', {xen:phrase go_to_first_unread_message}}"
                        class="{xen:if $thread.hasPreview, PreviewTooltip}"
                        data-previewUrl="{xen:if $thread.hasPreview, {xen:link threads/preview, $thread}}">{xen:helper wrap, $thread.title, 50}</a>
                    <xen:if is="{$thread.isNew}"><a href="{xen:link threads/unread, $thread}" class="unreadLink" title="{xen:phrase go_to_first_unread_message}"></a></xen:if>
                </h3>

                <xen:if hascontent="true">
                    <div class="iconKey">
                    <xen:contentcheck>
                        <xen:if is="{$thread.isModerated}"><span class="moderated" title="{xen:phrase moderated}">{xen:phrase moderated}</span></xen:if>
                        <xen:if is="!{$thread.discussion_open}"><span class="locked" title="{xen:phrase locked}">{xen:phrase locked}</span></xen:if>
                        <xen:if is="{$thread.sticky}"><span class="sticky" title="{xen:phrase sticky}">{xen:phrase sticky}</span></xen:if>
                        <xen:if is="{$thread.isRedirect}"><span class="redirect" title="{xen:phrase redirect}">{xen:phrase redirect}</span></xen:if>
                    </xen:contentcheck>
                    </div>
                </xen:if>
                <div class="secondRow">
                    <div class="posterDate muted">
                        <xen:username user="$thread" title="{xen:phrase thread_starter}" />,
                        <a{xen:if {$visitor.user_id}, ' href="{xen:link threads, $thread}"'} class="faint"><xen:datetime time="$thread.post_date" title="{xen:if {$visitor.user_id}, '{xen:phrase go_to_first_message_in_thread}'}" /></a><xen:if is="{$showForumLink}">,
                        <a href="{xen:link forums, $thread.forum}" class="forumLink">{$thread.forum.title}</a></xen:if>
                        <xen:if is="{$showLastPageNumbers} AND {$thread.lastPageNumbers}">
                            <span class="itemPageNav">
                                <span>...</span>
                                <xen:foreach loop="$thread.lastPageNumbers" value="$pageNumber">
                                    <a href="{xen:link threads, $thread, 'page={$pageNumber}'}">{$pageNumber}</a>
                                </xen:foreach>
                            </span>
                        </xen:if>
                    </div>
                    <div class="controls faint">
                        <xen:if is="{$thread.canEditThread}"><a href="{xen:link 'threads/list-item-edit', $thread}" class="EditControl">{xen:phrase edit}</a></xen:if>
                        <xen:if is="{$showSubscribeOptions} AND {$thread.email_subscribe}">{xen:phrase email}</xen:if>
                    </div>
                </div>
            </div>
        </div>
       <div class="listBlock stats pairsJustified" title="{xen:phrase members_who_liked_first_message}: {xen:if $thread.isRedirect, '&ndash;', {xen:number $thread.first_post_likes}}">
            <dl class="major"><dt>{xen:phrase replies}:</dt> <dd>{xen:if $thread.isRedirect, '&ndash;', {xen:number $thread.reply_count}}</dd></dl>
            <dl class="minor"><dt>{xen:phrase views}:</dt> <dd>{xen:if $thread.isRedirect, '&ndash;', {xen:number $thread.view_count}}</dd></dl>
        </div>
        <div class="listBlock lastPost">
            <xen:if is="{$thread.isRedirect}">
                <div class="lastPostInfo">{xen:phrase n_a}</div>
            <xen:else />
                <dl class="lastPostInfo">
                    <dt><xen:username user="$thread.lastPostInfo" /></dt>
                    <dd class="muted"><a{xen:if '{$visitor.user_id}', ' href="{xen:link posts, $thread.lastPostInfo}" title="{xen:phrase go_to_last_message}"'} class="dateTime"><xen:datetime time="$thread.lastPostInfo.post_date" /></a></dd>
                </dl>
            </xen:if>
        </div>
    </li>
</xen:if>

Salud2
 

ManuTdi

XenForoUser
Mensajes
1.189
Puntuación de reacciones
405
Puntos
583
País
España
Versión de XenForo
2.1.x
Pues no da error pero desaparecen los iconos tanto de los subforos (que ya es lo que quiero) y del portal (que es lo que no quiero) :D
 

lms

Administrador
Mensajes
7.741
Puntuación de reacciones
2.163
Puntos
2.613
Sitio web
xenfacil.com
País
España
Versión de XenForo
2.1.x
PayPal
Donar dinero a este usuario
Página web
Web
Del portal no pueden desaparecer.

Repasa. Lo he comprobado aquí y rula bien.

Salud2
 

ManuTdi

XenForoUser
Mensajes
1.189
Puntuación de reacciones
405
Puntos
583
País
España
Versión de XenForo
2.1.x
Del portal no pueden desaparecer.

Repasa. Lo he comprobado aquí y rula bien.

Salud2
Ves a charla, veras que hay 2 styles, pilla el Aurora (el Aurora1 NO) e aplicado la plantilla y veras que han desaparecido.
 

lms

Administrador
Mensajes
7.741
Puntuación de reacciones
2.163
Puntos
2.613
Sitio web
xenfacil.com
País
España
Versión de XenForo
2.1.x
PayPal
Donar dinero a este usuario
Página web
Web
Bueno, algo pasa en tus estilos.

Comprueba aquí en xenfacil como el mismo código funciona de maravilla.

Salud2
 

ManuTdi

XenForoUser
Mensajes
1.189
Puntuación de reacciones
405
Puntos
583
País
España
Versión de XenForo
2.1.x
Bueno, algo pasa en tus estilos.

Comprueba aquí en xenfacil como el mismo código funciona de maravilla.

Salud2
Ummmm no, creo que no nos hemos entendido... Yo aquí en xenfacil ahora no veo no los iconos de los subforos ni en el portal en temas recientes. Y lo que yo quiero es ver en el portal pero no en subforos.
 
Arriba