Reciprocal Field -- Will this cause a problem

Discussion in 'Installation and Updates' started by sdawkins, Aug 9, 2006.

  1. sdawkins

    sdawkins Paid Customer

    I wanted to remove the recipricol URL field as it is not neccessary
    and no need to show it, just makes the page that much longer.

    So I have been reading threads like this
    http://www.esyndicat.com/forum/showthread.php?t=5510&highlight=remove reciprocal
    and
    http://www.esyndicat.com/forum/showthread.php?t=5084&highlight=remove reciprocal

    However, I thought instead of doing that and removing it, I would just change this in the phpadmin
    Go to this table
    Table: dir_link_fields
    And change the "Pages" field to "0"

    Anyways, to me this is a better option then deleting. Is this ok to do or will it cause an issue?
  2. Olaf Lederer

    Olaf Lederer Paid Customer

    why not using the feature "manage link fields"?

    manipulating the database will take you in problems with later updates...
  3. sdawkins

    sdawkins Paid Customer

    It is the same thing, I guess, for some reason I get this when I try to uncheck the suggest link field.


    Field name should consist of letters and numbers only. Length 2-20.
    Last edited: Aug 9, 2006
  4. Sergey Ten

    Sergey Ten <b>eSyndiCat Lead Developer</b>

    Hello sdawkins,

    You could remove reciprocal field in the your phpMyAdmin panel. You have to open the "dir_link_fields" and delete field with name "reciprocal".

    After you have to :

    *** Open your suggest-link.php ***
    *** Find code ***

    PHP:
    /** reciprocal link checking **/
            
    if ($gDirConfig['reciprocal_check'])
            {
                if (
    $gDirConfig['reciprocal_domain'])
                {
                    if (
    get_domain($_POST['reciprocal']) != $link['domain'])
                    {
                        
    $error =true;
                        
    $msg .= "<li>{$gDirLang['error_reciprocal_domain']}</li>";
                    }
                    else
                    {
                        
    $link['recip_valid'] = check_reciprocal($tmp['reciprocal']);
                        if (!
    $link['recip_valid'])
                        {
                            
    $error true;
                            
    $msg .= "<li>{$gDirLang['error_reciprocal_link']}</li>";
                        }
                    }                
                }
                else
                {
                    
    $link['recip_valid'] = check_reciprocal($tmp['reciprocal']);
                    if (!
    $link['recip_valid'])
                    {
                        
    $error true;
                        
    $msg .= "<li>{$gDirLang['error_reciprocal_link']}</li>";
                    }
                }
            }
    *** Remove or comment this code ***
    *** Save change ***


    Please post the result.
  5. Olaf Lederer

    Olaf Lederer Paid Customer

    that's much easier then via the admin panel :]

Share This Page