echo '
<div id="header">
<h1 class="forumtitle">
<a id="top" href="', $scripturl, '">', empty($context['header_logo_url_html_safe']) ? $context['forum_name_html_safe'] : '<img src="' . $context['header_logo_url_html_safe'] . '" alt="' . $context['forum_name_html_safe'] . '">', '</a>
</h1>';
echo '
', empty($settings['site_slogan']) ? '<img id="smflogo" src="' . $settings['images_url'] . '/smflogo.svg" alt="Simple Machines Forum" title="Simple Machines Forum">' : '<div id="siteslogan">' . $settings['site_slogan'] . '</div>', '';
</div><!-- .inner_wrap -->
</div><!-- #top_section -->';
echo '
<div id="header">
<h class="forumtitle">
<a href=""><img src="[color=red]https://i.postimg.cc/nhzrq7LS/test.jpg[/color]" alt="" title=""></a>
</h>
</div>
Quote from: Noble on May 25, 2024, 02:38 AMYou cannot view this attachment.
$txt['response_prefix'] = '[color=red]Re: [/color]';
INNER JOIN {db_prefix}topics AS t ON (t.id_topic = m.id_topic)
INNER JOIN {db_prefix}topics AS t ON (t.id_last_msg = m.id_msg)
WHERE m.id_msg >= {int:likely_max_msg}
WHERE t.id_last_msg >= {int:likely_max_msg}
ORDER BY m.id_msg DESC
ORDER BY t.id_last_msg DESC
Quote from: Skhilled on May 25, 2024, 07:26 AMI'm sorry but it is not in English and I don't understand it.
<?php
/**
* The recent posts section of the info center
*/
function template_ic_block_recent()
{
global $context, $scripturl, $settings, $txt;
// This is the "Recent Posts" bar.
echo '
<div class="sub_bar">
<h4 class="subbg">
<a href="', $scripturl, '?action=recent"><span class="main_icons recent_posts"></span> ', $txt['recent_posts'], '</a>
</h4>
</div>
<div id="recent_posts_content">';
// Only show one post.
if ($settings['number_recent_posts'] == 1)
{
// latest_post has link, href, time, subject, short_subject (shortened with...), and topic. (its id.)
echo '
<p id="infocenter_onepost" class="inline">
<a href="', $scripturl, '?action=recent">', $txt['recent_view'], '</a> ', sprintf($txt['is_recent_updated'], '"' . $context['latest_post']['link'] . '"'), ' (', $context['latest_post']['time'], ')<br>
</p>';
}
// Show lots of posts.
elseif (!empty($context['latest_posts']))
{
echo '
<table id="ic_recentposts">
<tr class="windowbg">
<th class="recentpost">', $txt['message'], '</th>
<th class="recentposter">', $txt['author'], '</th>
<th class="recentboard">', $txt['board'], '</th>
<th class="recenttime">', $txt['date'], '</th>
</tr>';
/* Each post in latest_posts has:
board (with an id, name, and link.), topic (the topic's id.), poster (with id, name, and link.),
subject, short_subject (shortened with...), time, link, and href. */
foreach ($context['latest_posts'] as $post)
echo '
<tr class="windowbg">
<td class="recentpost"><strong>', $post['link'], '</strong></td>
<td class="recentposter">', $post['poster']['link'], '</td>
<td class="recentboard">', $post['board']['link'], '</td>
<td class="recenttime">', $post['time'], '</td>
</tr>';
echo '
</table>';
}
echo '
</div><!-- #recent_posts_content -->';
}
?>
<?php
/**
* The recent posts section of the info center
*/
function template_ic_block_recent()
{
global $context, $scripturl, $settings, $txt;
// This is the "Recent Posts" bar.
echo '
<div class="sub_bar">
<h4 class="subbg">
<a href="', $scripturl, '?action=recent"><span class="main_icons recent_posts"></span> ', $txt['recent_posts'], '</a>
</h4>
</div>
<div id="recent_posts_content">';
// Only show one post.
if ($settings['number_recent_posts'] == 1)
{
// latest_post has link, href, time, subject, short_subject (shortened with...), and topic. (its id.)
echo '
<p id="infocenter_onepost" class="inline">
<a href="', $scripturl, '?action=recent">', $txt['recent_view'], '</a> ', sprintf($txt['is_recent_updated'], '"' . $context['latest_post']['link'] . '"'), ' (', $context['latest_post']['time'], ')<br>
</p>';
}
// Show lots of posts.
elseif (!empty($context['latest_posts']))
{
echo '
<table id="ic_recentposts">
<tr class="windowbg">
<th class="recentpost">', $txt['message'], '</th>
<th class="recentposter">', $txt['author'], '</th>
<th class="recentboard">', $txt['board'], '</th>
<th class="recenttime">', $txt['date'], '</th>
</tr>';
/* Each post in latest_posts has:
board (with an id, name, and link.), topic (the topic's id.), poster (with id, name, and link.),
subject, short_subject (shortened with...), time, link, and href. */
foreach ($context['latest_posts'] as $post)
echo '
<tr class="windowbg">
<td class="recentpost"><strong>', $post['link'], '</strong></td>
<td class="recentposter">', $post['poster']['link'], '</td>
<td class="recentboard">', $post['board']['link'], '</td>
<td class="recenttime">', $post['time'], '</td>
</tr>';
echo '
</table>';
}
echo '
</div><!-- #recent_posts_content -->';
}
?>
<div id="boardindex_table" class="boardindex_table">'
require("showrecent.php");
template_ic_block_recent(20);
echo '<br />'
foreach ($context['info_center'] as $block)
{
$func = 'template_ic_block_' . $block['tpl'];
$func();
}
foreach ($context['info_center'] as $block)
{
if ($block['tpl'] == 'recent')
continue;
$func = 'template_ic_block_' . $block['tpl'];
$func();
}
Page created in 0.022 seconds with 19 queries.