+ Reply to Thread (include dating software, release, and patch number!)
Results 1 to 8 of 8

Thread: Replacing Affiliate Info

  1. #1
    Neron
    Guest

    Question Replacing Affiliate Info

    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.

  2. #2
    Kleetus
    Guest

    Default

    Delete the following from your member.php
    PHP Code:
    if ( == $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 ) > )
        {
                
    $txt  _t "_Congratulation" ).$txt;
                
    $txt .= _t('_Click here to change your membership status');
        }
        else
        {
                
    $txt .= _t "_Need_more_members" );
        }

        echo 
    $txt;

            echo 
    "</td>
                </tr>"
    ;
        } 

  3. #3
    Neron
    Guest

    Default Re: Replacing Affiliate Info

    thx kleetus

    it does make the affiliate info disappear but 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

  4. #4
    Kleetus
    Guest

    Default

    If you are using the "ModRewrite" mod, try this:

    In member.php find
    PHP Code:
    $_ni $_page['name_index']; 
    and below paste this
    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
    PHP Code:
    function contr_panel_member_info_g4() 
    and before paste this
    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">&nbsp;</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">&nbsp;</td>
                    <td valign="top" align="left" class="control_panel_td_2">&nbsp;</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">&nbsp;</td>
                    <td valign="top" align="left" class="control_panel_td_2">&nbsp;</td>
                  </tr>
                </table>'
    ;
        
        return 
    $ret;


    Then look into your templates/tmpl_dfl/page_6.html and find
    PHP 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
    and below paste this
    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" 

  5. #5
    Neron
    Guest

    Default Re: Replacing Affiliate Info

    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

  6. #6
    Kleetus
    Guest

    Default

    Try to put
    PHP Code:
    __member_info_link__ 
    direct under
    PHP Code:
    __member_info__ 
    in your page_6.html file

  7. #7
    Neron
    Guest

    Default

    thanks a lot kleetus, much appreciated

  8. #8
    Kleetus
    Guest

    Default

    You're very welcome !

+ Reply to Thread (include dating software, release, and patch number!)

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. Replacing Orca with phpbb or smf but what about groups?
    By frankychan04 in forum Dolphin General Discussion v6.00 and above
    Replies: 8
    Last Post: 01-12-2008, 03:12 PM
  2. Replacing the AEDating Logo
    By Mary Jane in forum FAQ & HOWTO
    Replies: 2
    Last Post: 05-18-2006, 06:20 AM
  3. Google Info
    By Rusty007 in forum General Issues, Comments, Questions
    Replies: 0
    Last Post: 08-07-2005, 12:14 PM
  4. how to add more info
    By stevie in forum General Issues, Comments, Questions
    Replies: 3
    Last Post: 07-06-2005, 06:19 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts