Simple Machines Community Forum

Customizing SMF => Graphics and Templates => Aiheen aloitti: PrizeLive.com - heinäkuu 18, 2006, 10:18:51 AP

Otsikko: Customizing Profile Page
Kirjoitti: PrizeLive.com - heinäkuu 18, 2006, 10:18:51 AP
How do I add additional links to the left area of the profile page?

Otsikko: Re: Customizing Profile Page
Kirjoitti: L.G.S - heinäkuu 18, 2006, 11:11:18 AP
I'd like to know this also please
Otsikko: Re: Customizing Profile Page
Kirjoitti: PrizeLive.com - heinäkuu 18, 2006, 11:21:01 AP
Lainaus käyttäjältä: L.G.S - heinäkuu 18, 2006, 11:11:18 AP
I'd like to know this also please

Well I did it so it looks like this now:



I added code in the very first function of Profile.template.php. Here's what the additions look like:

// For every section of the area display it, and bold it if it's the current area.
foreach ($section['areas'] as $i => $area)
if ($i == $context['menu_item_selected'])
echo '
<b>', $area, '</b><br />';
else
echo '
', $area, '<br />';
echo '
<br />
</td>
</tr>';
}
echo '
<tr>
<td class="catbg">MTP Features</td>
</tr>
<tr class="windowbg2">
<td class="smalltext">
<a href="http://www.moneytalkpro.com/index.php?action=affiliateuser">Affiliate Program</a>
<br />
<a href="http://www.moneytalkpro.com/index.php?action=mm">Member Map</a>
</td>
</tr>
</table>
</td>
<td width="100%" valign="top">';
}
// If no areas exist just open up a containing table.


The new additions that I added are on the bottom of the code (Affiliate Program and Member Map).

If you need help, let me know.
Otsikko: Re: Customizing Profile Page
Kirjoitti: L.G.S - heinäkuu 18, 2006, 12:45:37 IP
Thanks a lot, worked perfect :)
Otsikko: Re: Customizing Profile Page
Kirjoitti: PrizeLive.com - heinäkuu 18, 2006, 12:48:29 IP
Lainaus käyttäjältä: L.G.S - heinäkuu 18, 2006, 12:45:37 IP
Thanks a lot, worked perfect :)

Not a problem....  ;)