How do I add additional links to the left area of the profile page?
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg457.imageshack.us%2Fimg457%2F2932%2Funtitleduw7.png&hash=ec5eb0530e84c7b65b60bc85f0548ffd562cdb06)
I'd like to know this also please
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:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg515.imageshack.us%2Fimg515%2F3149%2Funtitlednu7.png&hash=db93eff6fd4de833f72becd6e767a90ca0a14ec4)
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.
Thanks a lot, worked perfect :)