Ipb 2.2:My Posts Link in Member Bar
From IpbWiki
My Posts Link in Member Bar
In this tutorial you will learn how to add a "My Posts" link somewhere near "View New Posts" and "New Messages".
This links will show up only for members.
Follow these simple steps to achieve the desired result. Straightforward and to the point, just like all of my tutorials.
Administration CP Enter the Administration Control Panel (Admin CP) by visiting your forums and instead of browsing the index.php inside your forums' directory, change index.php to admin.php. This will bring you to the screen in which you enter your administrative username and password.
CP Login Enter your administrative username and password (same as your forum username and password)
Look & Feel Tab Click on the Look & Feel tab at the top of your forum.
Skin Template HTML Click on the dropdown beside the skin and select Edit Template HTML from the dropdown menu.
Global HTMl Template Set Scroll down the list of skin templates and click on All Global HTML
Member_Bar Template After the minitemplates load on the side, find member_bar and click on it.
The Actual Modification In the member_bar template set, push Ctrl + F to find text on a page. Inside the box that tells the browser what you are looking for, type in:
Find:
<b><a href="{$this->ipsclass->vars['_admin_link']}" target="_blank">{$this->ipsclass->lang['admin_cp']}</a></b> ·
</if>
You will find this code inside this template. Follow the next step to add a new link to it.
Add After:
<a href='{$this->ipsclass->base_url}act=Search&CODE=getalluser&mid={$this->ipsclass->member['id']}'>My Posts</a> · </if>
Modify the code to your liking and save the template bit!
Save Template Bit After doing the above steps, click on Save Template Bit.
© 2007 by John of Platinum Zone. Find many more IPB tutorials at Platinum Zone
