Simple Machines Community Forum

Customizing SMF => Graphics and Templates => Topic started by: stephenvb on December 08, 2005, 11:27:49 AM

Title: Info Center Layout Issues
Post by: stephenvb on December 08, 2005, 11:27:49 AM
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 (http://www.criticaldetroit.org).  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?
Title: Re: Info Center Layout Issues
Post by: arco on May 08, 2006, 06:33:10 PM
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']) ? '
Title: Re: Info Center Layout Issues
Post by: stephenvb on May 09, 2006, 06:45:21 AM
Thank you!  Everything looks fine now.