PDA

View Full Version : Reciprocal Field -- Will this cause a problem


sdawkins
08-09-2006, 12:09 PM
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?

Olaf Lederer
08-09-2006, 01:01 PM
why not using the feature "manage link fields"?

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

sdawkins
08-09-2006, 01:39 PM
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.

Sergey Ten
08-10-2006, 03:27 PM
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 ***


/** 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.

Olaf Lederer
08-16-2006, 10:18 AM
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 ***


/* snippet code * /


*** Remove or comment this code ***
*** Save change ***


Please post the result.

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