MyBB Central

Full Version: usercp doesnt look right
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
ok on my forums the usercp is so un proportion and i cant figure it out prob because its 4am and i havnt slept but none the less i need help

i want the top image to be the same way as the bottom image the the positioning of stuff

here is the code that it has currently if someone could like edit it or tell me what needs to get changed you have no idea how appreciate i would be!

Is that a converted theme?
(Aug 18, 2010, 05:34 AM)Clone Wrote: [ -> ]Is that a converted theme?
nah its a theme that i created
can anyone help me with this?
Go to Templates > User Control Panel Templates > usercp

Erase all stuff there and paste this.

PHP Code:
<html>
<
head>
<
title>{$lang->user_cp}</title>
{
$headerinclude}
</
head>
<
body>
{
$header}
<
table width="100%" border="0" align="center">
<
tr>
{
$usercpnav}
<
td valign="top">
<
table border="0" cellspacing="{$theme['borderwidth']}cellpadding="{$theme['tablespace']}class="tborder">
<
tr>
<
td class="thead" colspan="{$colspan}"><strong>{$lang->brief_summary}</strong></td>
</
tr>
<
tr>
{
$avatar}
<
td class="trow1" width="50%"><strong>{$lang->username}</strong></td>
<
td class="trow1" width="50%">{$username}</td>
</
tr>
<
tr>
<
td class="trow2" width="50%"><strong>{$lang->primary_usergroup}</strong></td>
<
td class="trow2" width="50%">{$usergroup}</td>
</
tr>
<
tr>
<
td class="trow1" width="50%"><strong>{$lang->registration_date}</strong></td>
<
td class="trow1" width="50%">{$regdate}</td>
</
tr>
<
tr>
<
td class="trow2" width="50%"><strong>{$lang->postnum}</strong></td>
<
td class="trow2" width="50%"><a href="search.php?action=finduser&amp;uid={$mybb->user['uid']}">{$mybb->user['postnum']}</a> {$lang->posts_day}</td>
</
tr>
<
tr>
<
td class="trow1" width="50%"><strong>{$lang->email}</strong></td>
<
td class="trow1" width="50%">{$mybb->user['email']}</td>
</
tr>
{
$reputation}
</
table>
{
$latest_warnings}
</
td>
</
tr>
</
table>
{
$footer}
</
body>
</
html
i sorted mine using slightly different to that, theres 3 <td> parts to the top of the table and 2 to the rest, so i added the {$username} to the {$lang->username} part, and omitted the {$username} part

anyway try this


Code:
<html>
<head>
<title>{$lang->user_cp}</title>
{$headerinclude}
</head>
<body>
{$header}
<table width="100%" border="0" align="center">
<tr>
{$usercpnav}
<td valign="top">
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td class="thead" colspan="{$colspan}"><strong>{$lang->brief_summary}</strong></td>
</tr>
<tr>
{$avatar}
<td class="trow1" width="50%"><strong> {$lang->username} {$username} </strong></td>
</tr>
<tr>
<td class="trow2" width="50%"><strong>{$lang->primary_usergroup}</strong></td>
<td class="trow2" width="50%">{$usergroup}</td>
</tr>
<tr>
<td class="trow1" width="50%"><strong>{$lang->registration_date}</strong></td>
<td class="trow1" width="50%">{$regdate}</td>
</tr>
<tr>
<td class="trow2" width="50%"><strong>{$lang->postnum}</strong></td>
<td class="trow2" width="50%"><a href="search.php?action=finduser&amp;uid={$mybb->user['uid']}">{$mybb->user['postnum']}</a> {$lang->posts_day}</td>
</tr>
<tr>
<td class="trow1" width="50%"><strong>{$lang->email}</strong></td>
<td class="trow1" width="50%">{$mybb->user['email']}</td>
</tr>
{$reputation}
</table>
{$latest_warnings}
</td>
</tr>
</table>
{$footer}
</body>
</html>
hmm neither of those worked
Use a W3C validator if you can. It should tell you the problem.