News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

help with linktree

Started by chilppp, March 27, 2006, 09:47:28 AM

Previous topic - Next topic

chilppp

can anyone here teach me how to add items into ', theme_linktree(), '

I want to add 'edit profile' to the linktree, i.e. when people click on 'edit profile'

there will be

Forum > Profile Information > Summary
Forum > Modify Profile > Edit Buddies
Forum > Modify Profile > Personal Message Options

... ... appearing above the main table

Thanks!

ipoco

I too would like to do this - adding a link tree to Member Map, and Profile

I've hacked away at this a bit and find that the following seems to return the last value in the linktree for me - EXCEPT in any section where there is no link tree like Profile, the mod Member Map etc.

$array_length= count($context['linktree']);
   while (list($key, $value) = each ($context['linktree'])) {
      if ($value="Array") {
         $vpoint = $array_length - 1;
      while (list($key, $value) = each ($context['linktree'][$vpoint])) {
         $whereamI = $value;
         }
   }
}

Sheepy

It depends on where you want to add to the link tree.  Do a multi-file search to see how it's bulit at various point in the forum.

snork13

ok so if you want linktree , like a gallery page for example, i do this in the source files function:

global  $txt, $scripturl,  $db_prefix, $context;
LoadTemplate('Gallery');
$context['page_title'] = "Gallery";
$context['linktree'][] = array(
'url' => $scripturl . '?action=gallery',
'name' => $txt['gallery']
Mods
Please DO NOT PM me with requests for individual support, but post your questions and concerns in the appropriate section of the forum where other users can benefit from them as well. Thank you.
I have been super busy as of late. Working on updates to all my modifications for 2.0.1

Advertisement: