Simple Machines Community Forum

Customizing SMF => Graphics and Templates => Topic started by: Rgvill on October 05, 2022, 07:14:43 PM

Title: How do I remove this?
Post by: Rgvill on October 05, 2022, 07:14:43 PM
Is there anyway to disable this? Thanks8BE4906C-8362-4B15-8AFE-8262A49CAF3F.jpeg
Title: Re: How do I remove this?
Post by: Diego Andrés on October 05, 2022, 08:07:35 PM
Comment/remove this line in MessageIndex.template.php
template_topic_legend();
Title: Re: How do I remove this?
Post by: Rgvill on October 05, 2022, 09:40:39 PM
Thank you. How about this part?(https://iili.io/QCuadG.md.jpg)
Title: Re: How do I remove this?
Post by: Diego Andrés on October 05, 2022, 10:07:03 PM
Probably this

echo '<div id="display_head" class="information">
<h2 class="display_title">', $context['name'], '</h2>';

if (isset($context['description']) && $context['description'] != '')
echo '
<p>', $context['description'], '</p>';

if (!empty($context['moderators']))
echo '
<p>', count($context['moderators']) === 1 ? $txt['moderator'] : $txt['moderators'], ': ', implode(', ', $context['link_moderators']), '.</p>';

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_board'], '
</p>';
}

echo '
</div>';
Title: Re: How do I remove this?
Post by: Rgvill on October 05, 2022, 11:15:19 PM
Thank you so much Diego! You are so helpful! But how do I remove it from the post page as well? Do I have to remove the same code from which file?
Title: Re: How do I remove this?
Post by: Steve on October 06, 2022, 04:54:39 AM
Quote from: Diego Andrés on October 05, 2022, 08:07:35 PMComment/remove this line in MessageIndex.template.php
template_topic_legend();
@Rgvill - Keep in mind that this also removes the 'Jump To' dropdown on any theme that has it.
Title: Re: How do I remove this?
Post by: Rgvill on October 06, 2022, 12:09:27 PM
Quote from: Steve on October 06, 2022, 04:54:39 AM
Quote from: Diego Andrés on October 05, 2022, 08:07:35 PMComment/remove this line in MessageIndex.template.php
template_topic_legend();
@Rgvill - Keep in mind that this also removes the 'Jump To' dropdown on any theme that has it.

Hi, please tell me how do I remove it from the post page too.
(https://iili.io/Q5S0yx.md.jpg)
Title: Re: How do I remove this?
Post by: Diego Andrés on October 06, 2022, 12:19:26 PM
Display.template.php

Search for display_head, and do a similar process.
Make sure you get the whole div, no less, no more.
Title: Re: How do I remove this?
Post by: Rgvill on October 06, 2022, 12:38:43 PM
Quote from: Diego Andrés on October 06, 2022, 12:19:26 PMDisplay.template.php

Search for display_head, and do a similar process.
Make sure you get the whole div, no less, no more.

Got it! Thank you so much!!😃
Title: Re: How do I remove this?
Post by: Steve on October 06, 2022, 01:18:00 PM
Marking solved then.
Title: Re: How do I remove this?
Post by: Kindred on October 06, 2022, 04:05:59 PM
Just out of curiosity, why are you removing the board title and the post title from those pages?   How is someone supposed to know what they are viewing without the titles?
Title: Re: How do I remove this?
Post by: Rgvill on October 06, 2022, 07:14:02 PM
Quote from: Kindred on October 06, 2022, 04:05:59 PMJust out of curiosity, why are you removing the board title and the post title from those pages?   How is someone supposed to know what they are viewing without the titles?


They can still see it from here

(https://iili.io/QlgNix.md.jpg)
Title: Re: How do I remove this?
Post by: Kindred on October 06, 2022, 09:26:28 PM
Well, it's your site, but I think it's a mistake
Title: Re: How do I remove this?
Post by: Steve on October 07, 2022, 06:09:26 AM
+1