News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Info Center Layout Issues

Started by stephenvb, December 08, 2005, 11:27:49 AM

Previous topic - Next topic

stephenvb

I've got a small issue with my Info Center.  The latest post line is offset so it's under "Total Posts" and the "Total Topics" does not match the rest of the theme.

Here's what I think is the correct excerpt from BoardIndex.template.php:
// Show YaBB SP1 style information...
if ($settings['show_sp1_info'])
{
echo '
<tr>
<td class="catbg" colspan="2">', $txt[645], '</td>
</tr>
<tr>
<td class="windowbg" width="20" valign="middle" align="center">
<a href="', $scripturl, '?action=stats">
<img src="', $settings['images_url'], '/icons/info.gif" alt="',

$txt[645], '" border="0" /></a>
</td>
<td class="windowbg2" width="100%">
<table border="0" width="90%"><tr>
<td class="smalltext">
<div style="float: ', !$context['right_to_left'] ? 'left' :

'right', '; width: 50%;">', $txt[490], ': <b>', $context['common_stats']['total_topics'],

'</b></div>', $txt[489], ': <b>', $context['common_stats']['total_posts'], '</b><br />',

!empty($context['latest_post']) ? '
' . $txt[659] . ': &quot;' . $context['latest_post']['link']

. '&quot;  (' . $context['latest_post']['time'] . ')<br />' : '', '
<a href="', $scripturl, '?action=recent">', $txt[234],

'</a>', $context['show_stats'] ? '<br />
<a href="' . $scripturl . '?action=stats">' . $txt['smf223']

. '</a>' : '', '
</td>
<td width="32%" class="smalltext" valign="top">
', $txt[488], ': <b><a href="', $scripturl,

'?action=mlist">', $context['common_stats']['total_members'], '</a></b><br />
', $txt[656], ': <b>',

$context['common_stats']['latest_member']['link'], '</b><br />';
// If they are logged in, show their unread message count, etc..
if ($context['user']['is_logged'])
echo '
', $txt['smf199'], ': <b><a href="', $scripturl,

'?action=pm">', $context['user']['messages'], '</a></b> ', $txt['newmessages3'], ': <b><a href="',

$scripturl, '?action=pm">', $context['user']['unread_messages'], '</a></b>';
echo '
</td>
</tr></table>
</td>
</tr>';
}



The site is www.criticaldetroit.org/forum.  The Info Center is at the bottom.  I think it might be a conflict between the joomla css and the template css.  Can anybody point out what might be causing these issues?

arco

You can fix it by locating the following in BoardIndex.template.php for your SMF template:

<div style="float: ', !$context['right_to_left'] ? 'left' : 'right', '; width: 50%;">', $txt[490], ': <b>', $context['common_stats']['total_topics'], '</b></div>', $txt[489], ': <b>', $context['common_stats']['total_posts'], '</b><br />', !empty($context['latest_post']) ? '

And replace it with:

<div class="smalltext" style="float: ', !$context['right_to_left'] ? 'left' : 'right', '; width: 50%;">', $txt[490], ': <b>', $context['common_stats']['total_topics'], '</b></div>', $txt[489], ': <b>', $context['common_stats']['total_posts'], '</b><br />', !empty($context['latest_post']) ? '

stephenvb

Thank you!  Everything looks fine now.

Advertisement: