Add a link to account sub header

I am trying to figure out how to add a link to the account sub header right in between my contacts and unregister

Now I found in chrome using inspect that its somewhere in the the .subMenu h3  but I have no idea how to find the spot to put the html?

Quote · 2 Mar 2009

I would also put the link inside the member info block within the my account page.

I want to add the login link for affiliates.

Please any help for either I dont understand why this link is already in one of these two place already

Quote · 2 Mar 2009

1- admin/menu_compose.php make a new block in my account section?  Blocks are built dynamically so adding code in between one will do all

2- backup and open member.php
In:
function getBlockCode_MemberInfo

after:       
global $oTemplConfig;
add:
global $site;

before:
<!--  Affiliate Program starts here -->

add:
<tr class=table>
<td valign=top align="left" class=control_panel_td_1><? echo _t( "_Referral URL" ); ?>: </td>
<td valign=top align="left" class=control_panel_td_2>
<input type=textfield value="<?=$site['url']."?idFriend=".$this->aMemberInfo['ID']?>" size=42 onfocus="this.select()">
</td>
</tr>
<tr class=table>
<td valign=top align="left" class=control_panel_td_1><? echo _t( "_Referred" ); ?>: </td>
<td valign=top align="left" class=control_panel_td_2> <? echo $this->aMemberInfo['aff_num']?>
</td>
</tr>
<tr class=table>
<td valign=top align="left" class=control_panel_td_1><? echo _t( "_Affiliate Login" ); ?>: </td>
<td valign=top align="left" class=control_panel_td_2>
<a href="<?=$site['url']?>aff">Click here</a>
</td>
</tr>

add new strings & have fun

I have video tutorials to help you mrpowless.com
Quote · 2 Mar 2009

Thank you very much, I will post here with an update when Im done....Thank you Thank you LOL

Quote · 2 Mar 2009

Its almost working one more thing and it will be great little add on.  I choose to just do step two and put all the info including the log in under member info which is really handy Thank you Mr when your this good the call mrpowless

But I did have one problem and the code that displays the affiliate id in right in the member info block, is wrong.

It pulls the member ID into the affiliate code, the problem is the member ID and the affiliate ID are differnt.

Other then that I just moved the log in to the top of the mod and its great. If I cant get the proper affiliate ID to display I will just delete that part of the code since the log in to the affilaite section is right above it anyways...

Quote · 2 Mar 2009

Thanks, works perfectly.

Thanks in Advance, Blaine
Quote · 15 Mar 2010
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.