1

Topic: Additional Menu Items

Hi guys,

I've used this forum software on-and-off for 2 years now and still loving it.

I'm trying to add an additional menu item but the actual link needs to go to a profile page that is determined by a $_GET string.

How would I add an additional link to go to this URL (for example)?

profile.php?id=101

101 being my user ID that'd need to change for each user.

Is there something I can replace it with, like <USER_ID> or something that'll automatically get that for me?

...or is it possible to use PHP in that little box?

profile.php?id=<?php echo $_GET['id'];?>

Anyone?

Re: Additional Menu Items

The profile link is in the menu already. It is added in the lines 445, 451 of the file "<FORUM_ROOT>include/functions.php".

3

Re: Additional Menu Items

Yes, that was just an example...

profile.php?section=rscd&id=101

I need to get to that URL.

Re: Additional Menu Items

if (!$forum_user['is_guest'])
{
    global $base_url;
    $links['rscd'] = '<li '.((FORUM_PAGE == 'PAGE_NAME') ? ' class="isactive"' : '').'><a href="'.$base_url.'/profile.php?section=rscd&id='.$forum_user['id'].'">PAGE_NAME</a></li>';
}

This is a draft of the code which will add a new link to the menu. Place it after the 455 line of <FORUM_ROOT>/include/functions.php. PAGE_NAME is the name of the new page.