News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Who's online error

Started by scoops09, December 10, 2009, 01:39:16 AM

Previous topic - Next topic

scoops09

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)?

Antechinus

Please post the code for about five lines before and after that line.

scoops09

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>';

Antechinus

Got it. The problem is actually on Line 46. You are missing an apostrophe after ', $member['myspace']['link'],

scoops09


Antechinus

If you are ok now please use the "Mark Topic Solved" button at the lower left of the page. :)

Advertisement: