MyBB Community Forums

Full Version: Screwed up user_details
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I have a strange problem with a theme I'm editing.
http://www.awesomestyles.com/mybb-themes...kunv2yesil
This is the problem:
http://img85.imageshack.us/img85/2678/67639010.png
For some reason in postbit the user_details attribute is screwed up.
When I remove this code It get's rid of it but I still want the user info.
<td class="smalltext post_author_info">
							{$post['user_details']}
						</td>
All I want to show is the reputation, when they joined, if they're online, and they're warning level but I get everything else too.
And those annoying dotted lines are bothering me.
Here is the full template code in postbit:
{$ignore_bit}
<a name="pid{$post['pid']}" id="pid{$post['pid']}"></a>
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder" style="{$post_extra_style} {$post_visibility}" id="post_{$post['pid']}">
	<tbody>
		<tr>
			<td class="tcat">
				<div class="float_left smalltext">
					{$post['postdate']}, {$post['posttime']} <span id="edited_by_{$post['pid']}">{$post['editedmsg']}</span>
				</div>
				{$post['posturl']}
			</td>
		</tr>

		<tr>
			<td class="trow1 {$unapproved_shade}">
				<table cellspacing="0" cellpadding="0" border="0" style="width: 100%;">
					<tr>
						<td class="post_avatar" width="1" style="{$post['avatar_padding']}">
							{$post['useravatar']}
						</td>
						<td class="post_author">
							<strong><span class="largetext">{$post['profilelink']}</span></strong> {$post['onlinestatus']}<br />
							<span class="smalltext">
								{$post['usertitle']}<br />
								{$post['userstars']}
								{$post['groupimage']}
							</span>
						</td>
					<td class="smalltext post_author_info">
							{$post['user_details']}
						</td>
					</tr>
				</table>
			</td>
		</tr>

		<tr>
			<td class="trow2 post_content {$unapproved_shade}">
				<span class="smalltext"><strong>{$post['icon']}{$post['subject']} {$post['subject_extra']}</strong></span>

				<div class="post_body" id="pid_{$post['pid']}">
					{$post['msgbirth']}{$post['message']}
				</div>
				{$post['attachments']}
				{$post['signature']}

				<div class="post_meta" id="post_meta_{$post['pid']}">
				{$post['iplogged']}
				</div>
			</td>
		</tr>

		<tr>
			<td class="trow1 post_buttons {$unapproved_shade}">
				<div class="author_buttons float_left">
					{$post['button_email']}{$post['button_pm']}{$post['button_www']}{$post['button_find']}
				</div>
				<div class="post_management_buttons float_right">{$post['button_edit']}{$post['button_quickdelete']}{$post['button_quote']}{$post['button_multiquote']}{$post['button_report']}{$post['button_warn']}{$post['button_reply_pm']}{$post['button_replyall_pm']}{$post['button_forward_pm']}{$post['button_delete_pm']}
				</div>
			</td>
		</tr>
	</tbody>
</table>

Where and how to I fix this? I am a newb to making mybb themes.
Board is located at http://technoking.sitefrost.com/bbproject
Do you want the user name, avatar, user title and user stars in the right side or in the left side?
Left side. I also want to get rid of those lines...
Post your postbit_author_user template here. I think the themes has added the information into postbit_author_user template.
<div class="postbit"><strong><span class="largetext">{$post['profilelink']}</span></strong></div>
		<span class="smalltext">
	<div class="postbit">{$post['usertitle']}
			</div><div class="postbit">{$post['userstars']}
			</div><div class="postbit">{$post['useravatar']}</div>


<div align="left"><div class="postbit">{$lang->postbit_posts} {$post['postnum']}</div><div class="postbit">
	{$lang->postbit_joined} {$post['userregdate']}</div><div class="postbit">
	{$post['replink']}</div><div class="postbit">{$post['warninglevel']}</div>
<div class="postbit"> {$post['onlinestatus']}</div></span></div>

I guess I can remove usertitle, userstars, and useravatar?
How do I get rid of the lines?
Here is the default postbit_author_user template as a comparison for you.

{$lang->postbit_posts} {$post['postnum']}<br />
{$lang->postbit_joined} {$post['userregdate']}
{$post['replink']}{$post['warninglevel']}

So, by default, you have only total posts, joined date, and warning level in the right side of the postbit (for the reputation link and warning level, it is depend on your board configuration settings).
It is always a great moment for me in knowing about the user details in a quick manner. That gives the best type of approach for others to make it everything better. It makes the people to go for the different things in a best possible manner.
That will give the better approach for everyone in knowing about the exact one for everyone in getting it.