Uutiset:

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

Main Menu
Advertisement:

Some template help needed...

Aloittaja Graphixx, syyskuu 13, 2006, 11:08:53 AP

« edellinen - seuraava »

Graphixx

Hello there!

I have been playing around and modified a theme to use on smf on my site.
I have read trough the forum to see if i find a solution,but i didnt find one yet(atleast not that i have found yet)
But i have a small problem to fix before its ready to be used.
First i have my logo,then the menu with  home, help ,search etc.
And then the info about new messages, username etc.
Between the menu and the info i have a big space i should have removed, an


The space between menu and the info needs to be removed,but im nto sure how to remove it..
Any suggestions??

http://img178.imageshack.us/img178/3020/boardyo4.jpg [nofollow]

HEre is the code from index.template.php
// The logo, user information, news, and menu.
echo '
<table cellspacing="0" cellpadding="0" border="0" align="center" width="780px" class="tborder">
<tr id="back">
<td valign="middle" align="center"><img src="', !empty($settings['header_logo_url']) ? $settings['header_logo_url'] : $settings['images_url'] . '/logo.png', '" alt="" /></td>
</tr>

<tr id="back">
<td colspan="0" valign="middle" align="left" class="tborder">';

// Show the menu here, according to the menu sub template.
template_menu();

echo '
</td>
</tr>';

echo '
<table cellspacing="0" cellpadding="0" border="0" align="center" width="780px" class="tborder">
<tr id="back">
<td valign="top" align="center">';
// If the user is logged in, display stuff like their name, new messages, etc.
if ($context['user']['is_logged'])
{
echo '
', $txt['hello_member'], ' <b>', $context['user']['name'], '</b>', $context['allow_pm'] ? ', ' . $txt[152] . ' <a href="' . $scripturl . '?action=pm">' . $context['user']['messages'] . ' ' . ($context['user']['messages'] != 1 ? $txt[153] : $txt[471]) . '</a>' . $txt['newmessages4'] . ' ' . $context['user']['unread_messages'] . ' ' . ($context['user']['unread_messages'] == 1 ? $txt['newmessages0'] : $txt['newmessages1']) : '', '.';

// Are there any members waiting for approval?
if (!empty($context['unapproved_members']))
echo '<br />
', $context['unapproved_members'] == 1 ? $txt['approve_thereis'] : $txt['approve_thereare'], ' <a href="', $scripturl, '?action=viewmembers;sa=browse;type=approve">', $context['unapproved_members'] == 1 ? $txt['approve_member'] : $context['unapproved_members'] . ' ' . $txt['approve_members'], '</a> ', $txt['approve_members_waiting'];


Regards

Graphixx

Ravyn

Im finding it hard to figure out where the problem is coming from based off that small pic.. could you provide either a link to your forum, or a picture of the entire template?
Ravyn
-SMF Newbie in Training

Graphixx

#2
I did some changes,but still confused would like the menubar with home,help, search etc to get closer to the logo at top?

And is it possible to change so the home button is linked to the my main page,since the forum gonna be on a subdomain?

I am testing it local so sorry no link yet,but here is bigger picture:

http://img88.imageshack.us/img88/4881/untitled2gy2.jpg [nofollow]

Graphixx

Well,ill try to keep this post alive by myself..
Another problem i ran into.
when a user have signed up and click the activation link in the email they get to this:

Activation Complete!

Your account has been successfully activated. You can now login using the username and password you chose during the registration.

And i have no link or menu on that site.
would be happy for some help with that too.

Btw, forum is up and running at www.lostinthailand.net [nofollow]

Advertisement: