View Full Version : Editing existing link
imagis
02-07-2007, 07:41 AM
I am using 2.0.2.
When an editor is trying to edit an existing tutorial he receive:
1. Your tutorial already exists in directory.
And updates can't be made....
Any idea ?
Michael Hill
02-07-2007, 08:26 AM
Hello, imagis!
Would you describe in details about tutorial? What did you mean under tutorial?
Maybe the duplicate links checking is enabled and you just try to add existing link.
Please, create the ticket to our support with your ftp credentials, this is interest issue.
imagis
02-07-2007, 08:43 AM
Tutorials are instead of links.
Check my tutorials site from signature.
Duplicate links checking would wrong to be active on editing....
I will supply FTP account...
Michael Hill
02-07-2007, 10:09 AM
Hello, imagis !
Please, test it now, please, suppose, that I have fixed this problem.
I had changed the follow in your edit-links.php files:
The code below
if ($gDirConfig['duplicate_checking'])
{
$check = ($gDirConfig['duplicate_type'] == 'domain') ? $link['domain'] : $link['url'];
$status = $gDirDb->checkDuplicateLinks($check, $gDirConfig['duplicate_type']);
if ('banned' == $status)
{
$error = true;
$msg .= "<li>{$gDirLang['error_banned']}</li>";
}
elseif ($status)
{
$error = true;
$msg .= "<li>{$gDirLang['error_link_present']}</li>";
}
}
I had replaced with
if ($gDirConfig['duplicate_checking'])
{
$check = ($gDirConfig['duplicate_type'] == 'domain') ? $link['domain'] : $link['url'];
$status = $gDirDb->checkDuplicateLinks($check, $gDirConfig['duplicate_type']);
if ('banned' == $status)
{
$error = true;
$msg .= "<li>{$gDirLang['error_banned']}</li>";
}
/* elseif ($status)
{
$error = true;
$msg .= "<li>{$gDirLang['error_link_present']}</li>";
}
*/
}
Is it works now?
imagis
02-07-2007, 10:18 AM
Works thank you.
Is this a bug into 2.0.2 or just mine installation has some problems ?
Michael Hill
02-08-2007, 10:10 AM
You are welcome!
No, installation process not apply to this problem. Suppose that script bug.
Glad to help you)
vBulletin® v3.7.0, Copyright ©2000-2008, Jelsoft Enterprises Ltd.