Logo name

Ipb 2.2:My Posts Link in Member Bar

From IpbWiki

  • Currently5.00/5
Jump to: navigation, search


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.

user posted image

CP Login Enter your administrative username and password (same as your forum username and password)

user posted image

Look & Feel Tab Click on the Look & Feel tab at the top of your forum.

user posted image

Skin Template HTML Click on the dropdown beside the skin and select Edit Template HTML from the dropdown menu.

user posted image

Global HTMl Template Set Scroll down the list of skin templates and click on All Global HTML

user posted image

Member_Bar Template After the minitemplates load on the side, find member_bar and click on it.

user posted image

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:

CODE
<if="$this->ipsclass->member['g_access_cp'] == 1 AND $this->ipsclass->vars['security_remove_acp_link'] == 0">
<b><a href="{$this->ipsclass->vars['_admin_link']}" target="_blank">{$this->ipsclass->lang['admin_cp']}</a></b> &middot;
</if>

You will find this code inside this template. Follow the next step to add a new link to it.

Add After:

CODE
<if="$this->ipsclass->member['id']">
<a href='{$this->ipsclass->base_url}act=Search&amp;CODE=getalluser&amp;mid={$this->ipsclass->member['id']}'>My Posts</a>   &middot;&nbsp;</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.

user posted image

© 2007 by John of Platinum Zone. Find many more IPB tutorials at Platinum Zone

This page was last modified on 23 December 2007, at 14:41.  This page has been accessed 4,109 times.  Content is available under GNU Free Documentation License 1.2Disclaimers