News:

Wondering if this will always be free?  See why free is better.

Main Menu

quitar descripcion y titulo

Started by Anah, April 19, 2024, 07:16:25 PM

Previous topic - Next topic

Anah

como se quita lo que esta marcado en rojo? ya que no lo veo necesario el titulo y descripcion ya eso te sale al inicio del foro y estorba

Diego Andrés

En el Display.tempate.php

<div id="display_head" class="information">
<h2 class="display_title">
<span id="top_subject">', $context['subject'], '</span>', ($context['is_locked']) ? ' <span class="main_icons lock"></span>' : '', ($context['is_sticky']) ? ' <span class="main_icons sticky"></span>' : '', '
</h2>
<p>', $txt['started_by'], ' ', $context['topic_poster_name'], ', ', $context['topic_started_time'], '</p>';

// Next - Prev
echo '
<span class="nextlinks floatright">', $context['previous_next'], '</span>';

if (!empty($settings['display_who_viewing']))
{
echo '
<p>';

// Show just numbers...?
if ($settings['display_who_viewing'] == 1)
echo count($context['view_members']), ' ', count($context['view_members']) == 1 ? $txt['who_member'] : $txt['members'];
// Or show the actual people viewing the topic?
else
echo empty($context['view_members_list']) ? '0 ' . $txt['members'] : implode(', ', $context['view_members_list']) . ((empty($context['view_num_hidden']) || $context['can_moderate_forum']) ? '' : ' (+ ' . $context['view_num_hidden'] . ' ' . $txt['hidden'] . ')');

// Now show how many guests are here too.
echo $txt['who_and'], $context['view_num_guests'], ' ', $context['view_num_guests'] == 1 ? $txt['guest'] : $txt['guests'], $txt['who_viewing_topic'], '
</p>';
}

// Show the anchor for the top and for the first message. If the first message is new, say so.
echo '
</div><!-- #display_head -->

O lo puedes quitar con CSS...

SMF Tricks - Free & Premium Responsive Themes for SMF.

Anah

#2
Quote from: Diego Andrés on April 19, 2024, 09:06:37 PMEn el Display.tempate.php

<div id="display_head" class="information">
            <h2 class="display_title">
                <span id="top_subject">', $context['subject'], '</span>', ($context['is_locked']) ? ' <span class="main_icons lock"></span>' : '', ($context['is_sticky']) ? ' <span class="main_icons sticky"></span>' : '', '
            </h2>
            <p>', $txt['started_by'], ' ', $context['topic_poster_name'], ', ', $context['topic_started_time'], '</p>';

    // Next - Prev
    echo '
            <span class="nextlinks floatright">', $context['previous_next'], '</span>';

    if (!empty($settings['display_who_viewing']))
    {
        echo '
            <p>';

        // Show just numbers...?
        if ($settings['display_who_viewing'] == 1)
            echo count($context['view_members']), ' ', count($context['view_members']) == 1 ? $txt['who_member'] : $txt['members'];
        // Or show the actual people viewing the topic?
        else
            echo empty($context['view_members_list']) ? '0 ' . $txt['members'] : implode(', ', $context['view_members_list']) . ((empty($context['view_num_hidden']) || $context['can_moderate_forum']) ? '' : ' (+ ' . $context['view_num_hidden'] . ' ' . $txt['hidden'] . ')');

        // Now show how many guests are here too.
        echo $txt['who_and'], $context['view_num_guests'], ' ', $context['view_num_guests'] == 1 ? $txt['guest'] : $txt['guests'], $txt['who_viewing_topic'], '
            </p>';
    }

    // Show the anchor for the top and for the first message. If the first message is new, say so.
    echo '
        </div><!-- #display_head -->

O lo puedes quitar con CSS...

gracias
para no confundiste el codigo que pasaste era para borrar este

ahora quiero para este

Diego Andrés

Es el mismo bloque o muy similar, en el MessageIndex.template.php

SMF Tricks - Free & Premium Responsive Themes for SMF.

Anah

Quote from: Diego Andrés on April 20, 2024, 12:01:40 AMEs el mismo bloque o muy similar, en el MessageIndex.template.php
graciass

Advertisement: