Simple Machines Community Forum

SMF Support => SMF 2.1.x Support => Topic started by: DarkBrew on March 23, 2022, 10:14:23 PM

Title: Some ChidBoard impression not Correct (Switch Places)
Post by: DarkBrew on March 23, 2022, 10:14:23 PM
Hi all

My Childboard is not correct.

(https://i.postimg.cc/63mW8kdk/1.png)

ATP
https://www.thaitennisboard.com/index.php?board=7.0
Clinic
https://www.thaitennisboard.com/index.php?board=174.0
Babolat
https://www.thaitennisboard.com/index.php?board=30.0
How can i do.
Title: Re: Some ChidBoard impression not Correct (Switch Places)
Post by: Shades. on March 23, 2022, 10:30:13 PM
What mods do you have installed?
Title: Re: Some ChidBoard impression not Correct (Switch Places)
Post by: Kindred on March 23, 2022, 11:15:33 PM
What exactly is wrong?

Just looking at the picture,  I don't see anything particularly wrong...
Title: Re: Some ChidBoard impression not Correct (Switch Places)
Post by: Speed King on March 24, 2022, 12:33:35 AM
The problem board has no moderator assigned, try to add some moderator and see if that helps.
Title: Re: Some ChidBoard impression not Correct (Switch Places)
Post by: DarkBrew on March 24, 2022, 02:52:33 AM
Quote from: Speed King on March 24, 2022, 12:33:35 AMThe problem board has no moderator assigned, try to add some moderator and see if that helps.

Wow.. My Problem was Solved, You are awesome !!

Big Thanks  :D  :D
Title: Re: Some ChidBoard impression not Correct (Switch Places)
Post by: Kindred on March 24, 2022, 02:28:43 PM
now that i'm on a big screen, I see the "problem" ---    and it's nice that adding a moderator fixed it -- but it should not act like that, even without a moderator...   something that you installed broke the display
Title: Re: Some ChidBoard impression not Correct (Switch Places)
Post by: DarkBrew on April 23, 2022, 10:52:49 PM
Quote from: Kindred on March 24, 2022, 02:28:43 PMnot that i'm on a big screen, I see the "problem" ---    and it's nice that adding a moderator fixed it -- but it should not act like that, even without a moderator...   something that you installed broke the display

Yes, I'm just found it.

Remove RSS Feed Icon Mod

The Problem will be solve. ;)
Title: Re: Some ChidBoard impression not Correct (Switch Places)
Post by: Antechinus on April 23, 2022, 11:03:55 PM
Aha. The problem is in the markup for that mod:
global $context, $scripturl, $txt, $settings;

echo '
<a class="subject mobile_subject" href="', $board['href'], '" id="b', $board['id'], '">
', $board['name'], '
</a>
<a href="' . $scripturl . '?action=.xml;board=' . $board['id'] . ';type=rss"><img src="' . $settings['images_url'] . '/rss.png" alt="rss" />
It is missing the closing tag for the RSS link. It should be like this:
global $context, $scripturl, $txt, $settings;

echo '
<a class="subject mobile_subject" href="', $board['href'], '" id="b', $board['id'], '">
', $board['name'], '
</a>
<a href="' . $scripturl . '?action=.xml;board=' . $board['id'] . ';type=rss"><img src="' . $settings['images_url'] . '/rss.png" alt="rss" /></a>
Title: Re: Some ChidBoard impression not Correct (Switch Places)
Post by: DarkBrew on April 24, 2022, 10:34:37 PM
Quote from: Antechinus on April 23, 2022, 11:03:55 PMAha. The problem is in the markup for that mod:
global $context, $scripturl, $txt, $settings;

echo '
<a class="subject mobile_subject" href="', $board['href'], '" id="b', $board['id'], '">
', $board['name'], '
</a>
<a href="' . $scripturl . '?action=.xml;board=' . $board['id'] . ';type=rss"><img src="' . $settings['images_url'] . '/rss.png" alt="rss" />
It is missing the closing tag for the RSS link. It should be like this:
global $context, $scripturl, $txt, $settings;

echo '
<a class="subject mobile_subject" href="', $board['href'], '" id="b', $board['id'], '">
', $board['name'], '
</a>
<a href="' . $scripturl . '?action=.xml;board=' . $board['id'] . ';type=rss"><img src="' . $settings['images_url'] . '/rss.png" alt="rss" /></a>


Where is this code ?
Quote from: Antechinus on April 23, 2022, 11:03:55 PMAha. The problem is in the markup for that mod:
global $context, $scripturl, $txt, $settings;

echo '
<a class="subject mobile_subject" href="', $board['href'], '" id="b', $board['id'], '">
', $board['name'], '
</a>
<a href="' . $scripturl . '?action=.xml;board=' . $board['id'] . ';type=rss"><img src="' . $settings['images_url'] . '/rss.png" alt="rss" />
It is missing the closing tag for the RSS link. It should be like this:
global $context, $scripturl, $txt, $settings;

echo '
<a class="subject mobile_subject" href="', $board['href'], '" id="b', $board['id'], '">
', $board['name'], '
</a>
<a href="' . $scripturl . '?action=.xml;board=' . $board['id'] . ';type=rss"><img src="' . $settings['images_url'] . '/rss.png" alt="rss" /></a>


Yessss ! The problem was completly Solved.

Big Thanks All  ;)  ;)  ;)