MyBB Community Forums

Full Version: Is it possible to modify this?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Is it possible to modify this: http://dubtalk.com/member.php?action=profile&uid=8
^@Where it says "Awards 1", is it possible to make it look like the other stuff, like "Reputation", "Warning level" etc.?
Go to: ACP > Templates > Member Templates > member_profile > and find {$reputation} and add the following code just after that;
<tr>
	<td class="trow1"><strong>Awards</strong></td>
	<td class="trow1">{$AWARDS_VARIABLE_GOES_HERE}</td>
</tr>
It didn't really worked.
-This is something I've came up with myself so far:
<div class="detailbox"><div style="width: 180px; text-align: right; float: right;"><strong>{$lang->postbit_awards}</strong></div>{$myawards}
As you can see, I'm closer.
-However, the "Details" box doesn't really fit the "Reputation count".
Do you know how I can move it to the right?
Paste here your member_profile template code.
<html>
<head>
<title>{$mybb->settings['bbname']} - {$lang->profile}</title>
{$headerinclude}
<script type="text/javascript" src="images/e-blu/customjs/usertabs.js">

/***********************************************
* Tab Content script v2.2- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/

</script>
</head>
<body>
{$header}

<table class="tborder" border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" width="100%">
<tr>
<td class="thead" colspan="2"><strong>{$lang->profile}</strong></td>
</tr>
<tr><td width="200" align="center" class="trow1">
{$avatar}<br />
{$groupimage}
{$userstars}<br />
<span class="smalltext"><em>{$usertitle}</em></span>
</td>

<td align="left" valign="top" class="trow2">
<div class="post_userdetails"><div style="width: 130px; text-align: left; float: left;"><strong>{$lang->registration_date}</strong></div> {$memregdate}</div>
<div class="post_userdetails"><div style="width: 130px; text-align: left; float: left;"><strong>{$lang->date_of_birth}</strong></div> {$membday} {$membdayage}</div>
<div class="post_userdetails"><div style="width: 130px; text-align: left; float: left;"><strong>{$lang->local_time}</strong></div> {$localtime}</div>
<div class="post_userdetails"><div style="width: 130px; text-align: left; float: left;"><strong>{$lang->postbit_status}</strong></div> {$online_status}</div>
{$buddy_options}
</td>
</tr>
{$awaybit}
</table>

<br />

<ul id="usertabs" class="usertabs">
<li><a href="#" rel="userstats" class="selected">Forum Stats</a></li>
<li><a href="#" rel="usercontact">Contact Details</a></li>
<li><a href="#" rel="useraddinfo">Additional Info</a></li>
{$signature}
{$modoptions}
</ul>

<div id="userstats" class="tabcontent">
<div class="detailbox"><div style="width: 180px; text-align: left; float: left;"><strong>{$lang->joined}</strong></div> {$memregdate}</div>
<div class="detailbox"><div style="width: 180px; text-align: left; float: left;"><strong>{$lang->lastvisit}</strong></div> {$memlastvisitdate} {$memlastvisittime}</div>
<div class="detailbox"><div style="float: right;">(<a href="search.php?action=finduserthreads&amp;uid={$uid}">{$lang->find_threads}</a> &mdash; <a href="search.php?action=finduser&amp;uid={$uid}">{$lang->find_posts}</a>)</div><div style="width: 180px; text-align: left; float: left;"><strong>{$lang->total_posts}</strong></div> {$memprofile['postnum']} ({$lang->ppd_percent_total})</div>
<div class="detailbox"><div style="width: 180px; text-align: left; float: left;"><strong>{$lang->timeonline}</strong></div> {$timeonline}</div>
{$reputation}
{$warning_level}
<div class="detailbox"><div style="width: 180px; text-align: center; float: center;"><strong>{$lang->postbit_awards}</strong></div>{$myawards}
</div>

<div id="usercontact" class="tabcontent">
<div class="detailbox"><div style="width: 180px; text-align: left; float: left;"><strong>{$lang->homepage}</strong></div> {$website}&nbsp;</div>
{$sendemail}
<div class="detailbox"><div style="width: 180px; text-align: left; float: left;"><strong>{$lang->pm}</strong></div> <a href="private.php?action=send&amp;uid={$memprofile['uid']}">{$lang->send_pm}</a>&nbsp;</div>
<div class="detailbox"><div style="width: 180px; text-align: left; float: left;"><strong>{$lang->icq_number}</strong></div> <a href="javascript:;" onclick="MyBB.popupWindow('misc.php?action=imcenter&amp;imtype=icq&amp;uid={$uid}', 'imcenter', 450, 300);">{$memprofile['icq']}</a>&nbsp;</div>
<div class="detailbox"><div style="width: 180px; text-align: left; float: left;"><strong>{$lang->aim_screenname}</strong></div> <a href="javascript:;" onclick="MyBB.popupWindow('misc.php?action=imcenter&amp;imtype=aim&amp;uid={$uid}', 'imcenter', 450, 300);">{$memprofile['aim']}</a>&nbsp;</div>
<div class="detailbox"><div style="width: 180px; text-align: left; float: left;"><strong>{$lang->yahoo_id}</strong></div> <a href="javascript:;" onclick="MyBB.popupWindow('misc.php?action=imcenter&amp;imtype=yahoo&amp;uid={$uid}', 'imcenter', 450, 300);">{$memprofile['yahoo']}</a>&nbsp;</div>
<div class="detailbox"><div style="width: 180px; text-align: left; float: left;"><strong>{$lang->msn}</strong></div> <a href="javascript:;" onclick="MyBB.popupWindow('misc.php?action=imcenter&amp;imtype=msn&amp;uid={$uid}', 'imcenter', 450, 300);">{$memprofile['msn']}</a>&nbsp;</div>
</div>

<div id="useraddinfo" class="tabcontent">
{$profilefields}
</div>

<div id="usersig" class="tabcontent">
{$memprofile['signature']}
</div>

<div id="usermodoptions" class="tabcontent">
<div class="detailbox"><a href="{$mybb->settings['bburl']}/modcp.php?action=editprofile&amp;uid={$uid}">{$lang->edit_in_mcp}</a></div>
<div class="detailbox"><a href="{$mybb->settings['bburl']}/modcp.php?action=banuser&amp;uid={$uid}">{$lang->ban_in_mcp}</a></div>
<div class="detailbox">{$memprofile['usernotes']}.<br />
<a href="{$mybb->settings['bburl']}/modcp.php?action=editprofile&amp;uid={$uid}">{$lang->edit_usernotes}</a></div>
{$adminoptions}
</div>

<script type="text/javascript">

var usertabs=new ddtabcontent("usertabs")
usertabs.setpersist(true)
usertabs.setselectedClassTarget("link")
usertabs.init()

</script>

{$footer}
</body>
</html>
Replace all with this;
<html>
<head>
<title>{$mybb->settings['bbname']} - {$lang->profile}</title>
{$headerinclude}
<script type="text/javascript" src="images/e-blu/customjs/usertabs.js">

/***********************************************
* Tab Content script v2.2- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/

</script>
</head>
<body>
{$header}

<table class="tborder" border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" width="100%">
<tr>
<td class="thead" colspan="2"><strong>{$lang->profile}</strong></td>
</tr>
<tr><td width="200" align="center" class="trow1">
{$avatar}<br />
{$groupimage}
{$userstars}<br />
<span class="smalltext"><em>{$usertitle}</em></span>
</td>

<td align="left" valign="top" class="trow2">
<div class="post_userdetails"><div style="width: 130px; text-align: left; float: left;"><strong>{$lang->registration_date}</strong></div> {$memregdate}</div>
<div class="post_userdetails"><div style="width: 130px; text-align: left; float: left;"><strong>{$lang->date_of_birth}</strong></div> {$membday} {$membdayage}</div>
<div class="post_userdetails"><div style="width: 130px; text-align: left; float: left;"><strong>{$lang->local_time}</strong></div> {$localtime}</div>
<div class="post_userdetails"><div style="width: 130px; text-align: left; float: left;"><strong>{$lang->postbit_status}</strong></div> {$online_status}</div>
{$buddy_options}
</td>
</tr>
{$awaybit}
</table>

<br />

<ul id="usertabs" class="usertabs">
<li><a href="#" rel="userstats" class="selected">Forum Stats</a></li>
<li><a href="#" rel="usercontact">Contact Details</a></li>
<li><a href="#" rel="useraddinfo">Additional Info</a></li>
{$signature}
{$modoptions}
</ul>

<div id="userstats" class="tabcontent">
<div class="detailbox"><div style="width: 180px; text-align: left; float: left;"><strong>{$lang->joined}</strong></div> {$memregdate}</div>
<div class="detailbox"><div style="width: 180px; text-align: left; float: left;"><strong>{$lang->lastvisit}</strong></div> {$memlastvisitdate} {$memlastvisittime}</div>
<div class="detailbox"><div style="float: right;">(<a href="search.php?action=finduserthreads&amp;uid={$uid}">{$lang->find_threads}</a> &mdash; <a href="search.php?action=finduser&amp;uid={$uid}">{$lang->find_posts}</a>)</div><div style="width: 180px; text-align: left; float: left;"><strong>{$lang->total_posts}</strong></div> {$memprofile['postnum']} ({$lang->ppd_percent_total})</div>
<div class="detailbox"><div style="width: 180px; text-align: left; float: left;"><strong>{$lang->timeonline}</strong></div> {$timeonline}</div>
{$reputation}
{$warning_level}
<tr>
    <td class="trow1"><strong>{$lang->postbit_awards}</strong></td>
    <td class="trow1">{$myawards}</td>
</tr>

<div id="usercontact" class="tabcontent">
<div class="detailbox"><div style="width: 180px; text-align: left; float: left;"><strong>{$lang->homepage}</strong></div> {$website}&nbsp;</div>
{$sendemail}
<div class="detailbox"><div style="width: 180px; text-align: left; float: left;"><strong>{$lang->pm}</strong></div> <a href="private.php?action=send&amp;uid={$memprofile['uid']}">{$lang->send_pm}</a>&nbsp;</div>
<div class="detailbox"><div style="width: 180px; text-align: left; float: left;"><strong>{$lang->icq_number}</strong></div> <a href="javascript:;" onclick="MyBB.popupWindow('misc.php?action=imcenter&amp;imtype=icq&amp;uid={$uid}', 'imcenter', 450, 300);">{$memprofile['icq']}</a>&nbsp;</div>
<div class="detailbox"><div style="width: 180px; text-align: left; float: left;"><strong>{$lang->aim_screenname}</strong></div> <a href="javascript:;" onclick="MyBB.popupWindow('misc.php?action=imcenter&amp;imtype=aim&amp;uid={$uid}', 'imcenter', 450, 300);">{$memprofile['aim']}</a>&nbsp;</div>
<div class="detailbox"><div style="width: 180px; text-align: left; float: left;"><strong>{$lang->yahoo_id}</strong></div> <a href="javascript:;" onclick="MyBB.popupWindow('misc.php?action=imcenter&amp;imtype=yahoo&amp;uid={$uid}', 'imcenter', 450, 300);">{$memprofile['yahoo']}</a>&nbsp;</div>
<div class="detailbox"><div style="width: 180px; text-align: left; float: left;"><strong>{$lang->msn}</strong></div> <a href="javascript:;" onclick="MyBB.popupWindow('misc.php?action=imcenter&amp;imtype=msn&amp;uid={$uid}', 'imcenter', 450, 300);">{$memprofile['msn']}</a>&nbsp;</div>
</div>

<div id="useraddinfo" class="tabcontent">
{$profilefields}
</div>

<div id="usersig" class="tabcontent">
{$memprofile['signature']}
</div>

<div id="usermodoptions" class="tabcontent">
<div class="detailbox"><a href="{$mybb->settings['bburl']}/modcp.php?action=editprofile&amp;uid={$uid}">{$lang->edit_in_mcp}</a></div>
<div class="detailbox"><a href="{$mybb->settings['bburl']}/modcp.php?action=banuser&amp;uid={$uid}">{$lang->ban_in_mcp}</a></div>
<div class="detailbox">{$memprofile['usernotes']}.<br />
<a href="{$mybb->settings['bburl']}/modcp.php?action=editprofile&amp;uid={$uid}">{$lang->edit_usernotes}</a></div>
{$adminoptions}
</div>

<script type="text/javascript">

var usertabs=new ddtabcontent("usertabs")
usertabs.setpersist(true)
usertabs.setselectedClassTarget("link")
usertabs.init()

</script>

{$footer}
</body>
</html>
It isn't working, mate :/.
-Thanks for trying though.