News:

Wondering if this will always be free?  See why free is better.

Main Menu

ssi_welcome function edit

Started by GalaticNetwork, March 10, 2011, 02:58:49 PM

Previous topic - Next topic

GalaticNetwork

Hi all I'm posting yet another problem now lol, I am running 1.1.13 and this my problem.


As you can see the avatar and welcome message are suppose to be in the box with the arrow yet it comes out the box. I have entered <?php include ('welcome.php'); ?> and i added this into SSI.php

function ssi_welcome($output_method = 'echo')
{
    global $context, $txt, $scripturl;
        if ($output_method == 'echo')
        {
               if ($context['user']['is_guest'])
   echo $txt['welcome_guest'];
               else
                   echo '<td>'. $context['user']['avatar']['image'] . '</td><td> ' . $txt['hello_member'], ' <b>', $context['user']['name'], '</b>', allowedTo('pm_read') ? ', ' . $txt[152] . ' <a href="' . $scripturl . '?action=pm">' . $context['user']['messages'] . ' ' . ($context['user']['messages'] == '1' ? $txt[471] : $txt[153]) . '</a>' . $txt['newmessages4'] . ' ' . $context['user']['unread_messages'] . ' ' . ($context['user']['unread_messages'] == '1' ? $txt['newmessages0'] : $txt['newmessages1']) : '', '.</td>';
}
So it deffo works just i don't understand why it gets placed out of the box even tho i put the include script within the box like i have with forum stats and newest members. Just needs a lil tune.

Can anyone help me out?

Thanks
Time controlls everyone, if we could master time we could master anything.
_________________________________________
Where space folds into one :D

Advertisement: