hello
i want to replace the affiliate information on member info box with the profile url, but not sure how to do it. have installed mod rewrite; if anyone can help, would be really grateful.
cheers.
hello
i want to replace the affiliate information on member info box with the profile url, but not sure how to do it. have installed mod rewrite; if anyone can help, would be really grateful.
cheers.
Delete the following from your member.php
PHP Code:if ( 0 == $free_mode)
{
echo "<tr class=table>
<td valign=top align=\"left\" class=control_panel_td_1>" . _t( "_Affiliate Program" ) . ": </td>
<td valign=top align=\"left\" class=control_panel_td_2>";
$ar = db_arr ( "SELECT aff_num FROM Profiles WHERE ID='{$p_arr['ID']}' LIMIT 1" );
$res = db_res ( "SELECT * FROM members_as_aff WHERE num_of_mem <= '$ar[0]'" );
$txt = _t( "_Got_members_part_1" ).$ar[0]._t ( "_Got_members_part_2" );
if ( mysql_num_rows( $res ) > 0 )
{
$txt = _t ( "_Congratulation" ).$txt;
$txt .= _t('_Click here to change your membership status');
}
else
{
$txt .= _t ( "_Need_more_members" );
}
echo $txt;
echo "</td>
</tr>";
}
thx kleetus
it does make the affiliate info disappearbut that is only one bit; the other bit is to replace it with member profile url. how can i do it; how i fill in that space with member profile url?
any ideas?
thx
If you are using the "ModRewrite" mod, try this:
In member.php find
and below paste thisPHP Code:$_ni = $_page['name_index'];
PHP Code:$_page_cont[$_ni]['member_info_link'] = contr_panel_member_info_link();
$_page_cont[$_ni]['member_info_link_head'] = _t("_member_info_link_head");
Find
and before paste thisPHP Code:function contr_panel_member_info_g4()
PHP Code:/**
* mod contr panel "member info link"
*/
function contr_panel_member_info_link()
{
global $p_arr;
global $site;
$ret .= '';
$ret .= '<table width="100%" cellspacing="0" cellpadding="1" class="control_panel_table" border="0">
<tr class="table">
<td valign="top" align="left" class="control_panel_td">' . _t("_member_info_link_description") . '</td>
</tr>
<tr class="table">
<td valign="top" align="left" class="control_panel_td"> </td>
</tr>
</table>
<table width="100%" cellspacing="0" cellpadding="1" class="control_panel_table" border="0">
<tr class="table">
<td width="10%" valign="top" align="left" class="control_panel_td_1" style="padding-right:15px;">' . _t("_member_info_link_name1") . '</td>
<td valign="top" align="left" class="control_panel_td_2"><a href="' . $site['url'] . $p_arr['NickName'] . '">' . $site['url'] . $p_arr['NickName'] . '</a></td>
</tr>
<tr class="table">
<td width="10%" valign="top" align="left" class="control_panel_td_1"> </td>
<td valign="top" align="left" class="control_panel_td_2"> </td>
</tr>
<tr class="table">
<td width="10%" valign="top" align="left" class="control_panel_td_1" style="padding-right:15px;">' . _t("_member_info_link_name2") . '</td>
<td valign="top" align="left" class="control_panel_td_2"><a href="' . $site['url'] . 'profile.php?ID=' . $p_arr['ID'] . '">' . $site['url'] . 'profile.php?ID=' . $p_arr['ID'] . '</a></td>
</tr>
<tr class="table">
<td width="10%" valign="top" align="left" class="control_panel_td_1"> </td>
<td valign="top" align="left" class="control_panel_td_2"> </td>
</tr>
</table>';
return $ret;
}
Then look into your templates/tmpl_dfl/page_6.html and find
and below paste thisPHP Code:<div id="member_info">
<div class="header">
__member_info_head__
</div>
<div class="keeper">
__member_info__
</div>
</div>
<div class="clear_both" style="font-size:1px; margin-bottom:10px;"></div>
PHP Code:<div id="member_info_link">
<div class="header">
__member_info_link_head__
</div>
<div class="keeper">
__member_info_link__
</div>
</div>
<div class="clear_both" style="font-size:1px; margin-bottom:10px;"></div>
Create some new language strings for
PHP Code:_t("_member_info_link_description")
_t("_member_info_link_name1")
_t("_member_info_link_name2")
Edit or add some style types in your css files for your page_6 and member.php like
PHP Code:id="member_info_link"
and
class="control_panel_table"
thanks kleetus, much appreciated.
i applied and it works![]()
however, it creates a seperate box for itself and i want the profile url to appear in the "member info" box, where once was "affiliate info".
i tried placing the code immediately after commented affiliate info code but it gave me undefined function call error then. any idea to fix it?
also, how can i move the "member statistics box" and make it appear below the "member menu"? any idea on this?
thanks
Try to put
direct underPHP Code:__member_info_link__
in your page_6.html filePHP Code:__member_info__
thanks a lot kleetus, much appreciated
You're very welcome !![]()
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks