MyBB Community Forums

Full Version: Profile Categories?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Ok let me try to explain...

lets say I want a about me section, Interest, Hobbies etc.

Then under those categories I can ask questions instead of all of the questions being together.

Also for the state, country and city/town. Is it anyway for instance that I choose USA then under it a new box pop up with states I choose CA then another box pop up with cities.

Is this possible?
For custom profile fields try this:

http://wiki.mybb.com/index.php/Admin_CP_...ile_Fields
I'm talking about something like this...

ABOUT ME (own profile section)
>age
>height
>weight etc

INTEREST (Own profile section)
>Books
>Movies
>etc
You'll want to edit the member_profile template under Member templates. Where you want it to start, create a table.
i'm still new to this so don't know how. I know how to get to the templates and add stuff just don't know how to create tables etc
<table><tr><th>What the section should be called</th><th></th></tr><tr><td>Profile Field Name</td><td>{$userfields['fidX']}</td></tr>Add additional rows here.</table>

Replace X with the id of the field which can be found in the ACP under Custom Profile Fields.
This is how my member_profile template looks. I am using Profile tabs by Edson Ordaz, So where would i add the table?


<style>
.usertabs {
    margin-left: 0;
    margin-top: 1px;
    margin-bottom: 0;
    list-style-type: none;
    text-align: left;
    
    font-size: 11px;
}

.usertabs ul {
margin: 0;
padding: 0;
}

.usertabs li {
display: inline;
margin: 0;
}

.usertabs li a {
background: {$mybb->settings['ProfileTabs_background_unselected']};
color: {$mybb->settings['ProfileTabs_text_unselected']};
position: relative;
z-index: 1;
border: 1px solid {$mybb->settings['ProfileTabs_border_unselected']};
border-bottom: 0;
padding: 8px;

text-decoration: none;
}

.usertabs li a:visited {
color: #2d2d2d;
text-decoration: none;
}

.usertabs li a:hover {
color: {$mybb->settings['ProfileTabs_onmoushover_unselected']};
text-decoration: none;
}

.usertabs li a.selected {
background: {$mybb->settings['ProfileTabs_background_selected']};
color: {$mybb->settings['ProfileTabs_text_selected']};
border-color: {$mybb->settings['ProfileTabs_borde_selected']};
}

.usertabs li a.selected:hover {
text-decoration: none;
}

.tabcontent {
background: {$mybb->settings['ProfileTabs_background']};
display: none;
padding: 5px;
border: 1px solid {$mybb->settings['ProfileTabs_border']};
margin-top: 7px;
}

.box-thing {
background: #f7f7f7;
border: 1px solid #8e8e8e;
padding: 8px;
}

@
media print {
.tabcontent {
display:block !important;
}
}
</style>
<html>
<head>
<title>{$mybb->settings['bbname']} - {$lang->profile}</title>
{$headerinclude}
</head>
<body>
<script type="text/javascript" src="jscripts/ProfileTabs.js">

</script>
{$header}

<table width="100%" cellspacing="0" cellpadding="0" border="0" align="center">
<tr>
<td width="75%" valign="top">

<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td align="left" class="trow1" valign="middle">{$avatar}</td>
<td class="trow1" align="left" width="100%">
<span class="largetext"><strong>{$formattedname}</strong></span><br />
<span class="smalltext">
({$usertitle})<br />
{$groupimage}
<strong>{$lang->registration_date}</strong> {$memregdate}<br />
<strong>{$lang->date_of_birth}</strong> {$membday} {$membdayage}<br />
<strong>{$lang->local_time}</strong> {$localtime}<br />
<strong>{$lang->postbit_status}</strong> {$online_status}
</span>
</td>
</tr>
{$awaybit}
</table>
<br />

<div id="toolbar" class="usertabs"><div id="nav"><ul id="countrytabs" class="shadetabs">
<li><a href="#" rel="country2"><b>About Me</b></a></li>
<li><a href="#" rel="country3"><b>Stats</b></a></li>
<li><a href="#" rel="country1" class="selected"><b>Comments</b></a></li>
<li><a href="#" rel="country4"><b>Contact Info</b></a></li>
</ul></div></div>

<div style="border:1px solid gray; width:100%px; margin-bottom: 1em; padding: 0px">

<div id="country1" class="tabcontent">
<!-- ProfileComments -->{$comments_index}<!-- /ProfileComments -->
</div>

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

<div id="country3" class="tabcontent">
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td class="trow1"><strong>{$lang->joined}</strong></td>
<td class="trow1">{$memregdate}</td>
</tr>
<tr>
<td class="trow2"><strong>{$lang->lastvisit}</strong></td>
<td class="trow2">{$memlastvisitdate} {$memlastvisittime}</td>
</tr>
<tr>
<td class="trow1"><strong>{$lang->total_posts}</strong></td>
<td class="trow1">{$memprofile['postnum']} ({$lang->ppd_percent_total})<br /><span class="smalltext">(<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>)</span></td>
</tr>
<tr>
<td class="trow2"><strong>{$lang->timeonline}</strong></td>
<td class="trow2">{$timeonline}</td>
</tr>
{$reputation}
{$warning_level}<!-- ProfileComments -->{$pf_statistics}<!-- /ProfileComments -->
</table>
</div>

<div id="country4" class="tabcontent">
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td class="trow1"><strong>{$lang->homepage}</strong></td>
<td class="trow1">{$website}</td>
</tr>
{$sendemail}
<tr>
<td class="trow2"><strong>{$lang->pm}</strong></td>
<td class="trow2"><a href="private.php?action=send&amp;uid={$memprofile['uid']}">{$lang->send_pm}</a></td>
</tr>
<tr>
<td class="trow1"><strong>{$lang->icq_number}</strong></td>
<td class="trow1"><a href="javascript:;" onclick="MyBB.popupWindow('misc.php?action=imcenter&amp;imtype=icq&amp;uid={$uid}', 'imcenter', 450, 300);">{$memprofile['icq']}</a></td>
</tr>
<tr>
<td class="trow2"><strong>{$lang->aim_screenname}</strong></td>
<td class="trow2"><a href="javascript:;" onclick="MyBB.popupWindow('misc.php?action=imcenter&amp;imtype=aim&amp;uid={$uid}', 'imcenter', 450, 300);">{$memprofile['aim']}</a></td>
</tr>
<tr>
<td class="trow1"><strong>{$lang->yahoo_id}</strong></td>
<td class="trow1"><a href="javascript:;" onclick="MyBB.popupWindow('misc.php?action=imcenter&amp;imtype=yahoo&amp;uid={$uid}', 'imcenter', 450, 300);">{$memprofile['yahoo']}</a></td>
</tr>
<tr>
<td class="trow2"><strong>{$lang->msn}</strong></td>
<td class="trow2"><a href="javascript:;" onclick="MyBB.popupWindow('misc.php?action=imcenter&amp;imtype=msn&amp;uid={$uid}', 'imcenter', 450, 300);">{$memprofile['msn']}</a></td>
</tr>
</table>
</div>

<div id="country5" class="tabcontent">
{$signature}
</div>

</div>

<script type="text/javascript">

var countries=new ddtabcontent("countrytabs")
countries.setpersist(true)
countries.setselectedClassTarget("link") //"link" or "linkparent"
countries.init()

</script>


</td>
<td><img src="{$theme['imgdir']}/pixel.gif" height="1" width="8" alt=""/></td>
<td width="25%" valign="top">

<table class="tborder" border="0" cellspacing="1" cellpadding="1">
<tr><td colspan="1" class="thead"><center><strong>Mini Stats</strong></center></td></tr>
    <td class="trow1">&nbsp;<FONT SIZE=2><strong>{$lang->joined}</strong><br />&nbsp;{$memregdate}<br />
&nbsp;<strong>{$lang->total_posts}</strong><br />&nbsp;{$memprofile['postnum']} <br /></font></td>
<tr>
<td class="trow2" align="right"><a href="#" rel="country3"><FONT SIZE=2>Profile Link</font></a></td>
</tr>
</table>

<br />{$buddylist}

</td>
</tr>
</table>
{$footer}
</body>
</html>
ACP -> Configuration -> Custom Profile Fields -> From there you can add all the fields you want.