how 2 convert link tree into a drop down menu

Started by 061, July 23, 2005, 02:57:31 PM

Previous topic - Next topic

061

in my theme the link tree is causing me frustration. When it is set as inline  display its okey but when switched to tree style it messes up my design. Any way to setup "tree menu"  as a drop down menu just like the "jump to" box  at the bottom of the forum. Thanks


forsakenlad

There already is a jump to box in the messageindex.template.php just copy it from there and if you want it seen all the boards, put it somewhere in the index.template
Eren "forsakenlad" Yaşarkurt
SMF Friend & Former Team Member

061

actually i want link tree to appear infor of jump box

this code

// Show a linktree.  This is that thing that shows "My Community | General Category | General Discussion"..function theme_linktree()
{
global $context, $settings, $options;

// Folder style or inline?  Inline has a smaller font.
echo '<span class="nav"', $settings['linktree_inline'] ? ' style="font-size: smaller;"' : '', '>';

// Each tree item has a URL and name.  Some may have extra_before and extra_after.
foreach ($context['linktree'] as $link_num => $tree)
{
// Show the | | |-[] Folders.
if (!$settings['linktree_inline'])
{
if ($link_num > 0)
echo str_repeat('<img src="' . $settings['images_url'] . '/icons/linktree_main.gif" alt="| " border="0" />', $link_num - 1), '<img src="' . $settings['images_url'] . '/icons/linktree_side.gif" alt="|-" border="0" />';
echo '<img src="' . $settings['images_url'] . '/icons/folder_open.gif" alt="+" border="0" />&nbsp; ';
}

// Show something before the link?
if (isset($tree['extra_before']))
echo $tree['extra_before'];

// Show the link, including a URL if it should have one.
echo '<b>', $settings['linktree_link'] && isset($tree['url']) ? '<a href="' . $tree['url'] . '" class="nav">' . $tree['name'] . '</a>' : $tree['name'], '</b>';

// Show something after the link...?
if (isset($tree['extra_after']))
echo $tree['extra_after'];

// Don't show a separator for the last one.
if ($link_num != count($context['linktree']) - 1)
echo $settings['linktree_inline'] ? ' &nbsp;|&nbsp; ' : '<br />';
}

echo '</span>';




i am fine with inline style but when folder style is selected i want that to appear as a drop down...
thanks any way

Advertisement: