1 (edited by freddykgb 2006-03-06 06:18)

Topic: [SOLVED] 'Show all my post' link in the menu bar

Is it possible to add a 'Show all my post' links in the menu bar, just beside 'Profile' and 'Logout' links ?

A new poker community is rising : see for yourselft at unbluffed.com

Re: [SOLVED] 'Show all my post' link in the menu bar

Open functions.php

Find:

$links[] = '<li id="navprofile"><a href="profile.php?id='.$pun_user['id'].'">'.$lang_common['Profile'].'</a>';
$links[] = '<li id="navlogout"><a href="login.php?action=out&id='.$pun_user['id'].'">'.$lang_common['Logout'].'</a>';

Before, add:

$links[] = '<li><a href="search.php?action=show_user&user_id='.$pun_user['id'].'">'.$lang_common['Show your posts'].'</a>';

Find:

$links[] = '<li id="navprofile"><a href="profile.php?id='.$pun_user['id'].'">'.$lang_common['Profile'].'</a>';
$links[] = '<li id="navadmin"><a href="admin_index.php">'.$lang_common['Admin'].'</a>';
$links[] = '<li id="navlogout"><a href="login.php?action=out&id='.$pun_user['id'].'">'.$lang_common['Logout'].'</a>';

Before, add:

$links[] = '<li><a href="search.php?action=show_user&user_id='.$pun_user['id'].'">'.$lang_common['Show your posts'].'</a>';

I believe that should do it.

Looking for a certain modification for your forum? Please take a look here before posting.

Re: [SOLVED] 'Show all my post' link in the menu bar

Works great!

Thanks  wink

A new poker community is rising : see for yourselft at unbluffed.com