Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: scoops09 on December 10, 2009, 01:39:16 AM

Title: Who's online error
Post by: scoops09 on December 10, 2009, 01:39:16 AM
Thankfully the new site hasn't launched yet. When I click on who's online I get this page -

http://coolchimp.com/index.php?action=who

I'm very much a novice but from the explanation it gives, I don't see what the problem is. It says the error is on line 47 and the only thing on line 47 is </span>';

It says try using the 'Default Theme' but I already am using the default curve theme.

How do I fix this so I can see who's online (for when that time comes)?
Title: Re: Who's online error
Post by: Antechinus on December 10, 2009, 01:57:12 AM
Please post the code for about five lines before and after that line.
Title: Re: Who's online error
Post by: scoops09 on December 10, 2009, 02:00:00 AM
Here is the whole block for that section -

// Guests don't have information like icq, msn, y!, and aim... and they can't be messaged.
if (!$member['is_guest'])
{
echo '
<span class="contact_info floatright">
', $context['can_send_pm'] ? '<a href="' . $member['online']['href'] . '" title="' . $member['online']['label'] . '">' : '', $settings['use_image_buttons'] ? '<img src="' . $member['online']['image_href'] . '" alt="' . $member['online']['text'] . '" align="bottom" />' : $member['online']['text'], $context['can_send_pm'] ? '</a>' : '', '
', $member['icq']['link'], ' ', $member['msn']['link'], ' ', $member['yim']['link'], ' ', $member['aim']['link'], ' ', $member['myspace']['link'],
</span>';
}

echo '
<span class="member', $member['is_hidden'] ? ' hidden' : '', '">
', $member['is_guest'] ? $member['name'] : '<a href="' . $member['href'] . '" title="' . $txt['profile_of'] . ' ' . $member['name'] . '"' . (empty($member['color']) ? '' : ' style="color: ' . $member['color'] . '"') . '>' . $member['name'] . '</a>', '
</span>';

if (!empty($member['ip']))
echo '
(<a href="' . $scripturl . '?action=', ($member['is_guest'] ? 'trackip' : 'profile;area=tracking;sa=ip;u=' . $member['id']), ';searchip=' . $member['ip'] . '">' . $member['ip'] . '</a>)';

echo '
</td>
<td nowrap="nowrap">', $member['time'], '</td>
<td>', $member['action'], '</td>
</tr>';
Title: Re: Who's online error
Post by: Antechinus on December 10, 2009, 02:02:46 AM
Got it. The problem is actually on Line 46. You are missing an apostrophe after ', $member['myspace']['link'],
Title: Re: Who's online error
Post by: scoops09 on December 10, 2009, 02:38:13 AM
Cool, thanks!
Title: Re: Who's online error
Post by: Antechinus on December 10, 2009, 02:54:15 AM
If you are ok now please use the "Mark Topic Solved" button at the lower left of the page. :)