mehmetb
08-01-2006, 05:49 AM
http://www.esyndicat.com/forum/about6436.html
WTM,
Why did you close my thread? You say 'you already have asked same question in the another thread',can you please show that same question that I've asked? My question is completely different and the question that Simon answered is definitely not mine.
Anyway,
After a sleepless night, I've found a solution to my problem, I'm going to share it, please check its accuracy.
My question:
I want to use eSyndicat as a trade directory and I want my visitors to add their companies, problem is some of them do not have a website. When these try to add their companies, it says:
1. Make sure you entered valid link URL. (they do not have a website)
2. Your company already exists in directory (but it does not exist. I think that warning displays because they did not enter an URL)
..and they can't add anything if they do not have a web site.
My solution:
Find suggest-link.php , lines 59-68 and delete.
/** check URL **/
if (!$_POST['url'] || ($_POST['url'] == 'http://'))
{
$error = true;
$msg .= "<li>{$gDirLang['error_url_incorrect']}</li>";
}
else
{
$link['domain'] = get_domain($_POST['url']);
}
Find the following code in the same file and delete it:
/** check if link already exists **/
if ($gDirDb->checkDuplicateLinks($_POST['url']))
{
$error = true;
$msg .= "<li>{$gDirLang['error_link_present']}</li>";
}
if ($gDirConfig['duplicate_checking'])
{
$check = $gDirConfig['duplicate_checking_type'] ? $link['domain'] : $link['url'];
if ($gDirDb->checkDuplicateLinks($check, $gDirConfig['duplicate_checking_type']))
{
$error = true;
$msg = $gDirLang['error_link_present'];
$type = 'error';
}
}
and paste this into the same place instead of the above:
/** check if link already exists **/
if ($_POST['url'] && (!$_POST['url'] == 'http://'))
{
if ($gDirDb->checkDuplicateLinks($_POST['url']))
{
$error = true;
$msg .= "<li>{$gDirLang['error_link_present']}</li>";
}
if ($gDirConfig['duplicate_checking'])
{
$check = $gDirConfig['duplicate_checking_type'] ? $link['domain'] : $link['url'];
if ($gDirDb->checkDuplicateLinks($check, $gDirConfig['duplicate_checking_type']))
{
$error = true;
$msg = $gDirLang['error_link_present'];
$type = 'error';
}
}
}
Save and upload.
BTW,
Please do not close threads without investing little bit of time trying to understand what they want to say,Mr. Threadlocker..
WTM,
Why did you close my thread? You say 'you already have asked same question in the another thread',can you please show that same question that I've asked? My question is completely different and the question that Simon answered is definitely not mine.
Anyway,
After a sleepless night, I've found a solution to my problem, I'm going to share it, please check its accuracy.
My question:
I want to use eSyndicat as a trade directory and I want my visitors to add their companies, problem is some of them do not have a website. When these try to add their companies, it says:
1. Make sure you entered valid link URL. (they do not have a website)
2. Your company already exists in directory (but it does not exist. I think that warning displays because they did not enter an URL)
..and they can't add anything if they do not have a web site.
My solution:
Find suggest-link.php , lines 59-68 and delete.
/** check URL **/
if (!$_POST['url'] || ($_POST['url'] == 'http://'))
{
$error = true;
$msg .= "<li>{$gDirLang['error_url_incorrect']}</li>";
}
else
{
$link['domain'] = get_domain($_POST['url']);
}
Find the following code in the same file and delete it:
/** check if link already exists **/
if ($gDirDb->checkDuplicateLinks($_POST['url']))
{
$error = true;
$msg .= "<li>{$gDirLang['error_link_present']}</li>";
}
if ($gDirConfig['duplicate_checking'])
{
$check = $gDirConfig['duplicate_checking_type'] ? $link['domain'] : $link['url'];
if ($gDirDb->checkDuplicateLinks($check, $gDirConfig['duplicate_checking_type']))
{
$error = true;
$msg = $gDirLang['error_link_present'];
$type = 'error';
}
}
and paste this into the same place instead of the above:
/** check if link already exists **/
if ($_POST['url'] && (!$_POST['url'] == 'http://'))
{
if ($gDirDb->checkDuplicateLinks($_POST['url']))
{
$error = true;
$msg .= "<li>{$gDirLang['error_link_present']}</li>";
}
if ($gDirConfig['duplicate_checking'])
{
$check = $gDirConfig['duplicate_checking_type'] ? $link['domain'] : $link['url'];
if ($gDirDb->checkDuplicateLinks($check, $gDirConfig['duplicate_checking_type']))
{
$error = true;
$msg = $gDirLang['error_link_present'];
$type = 'error';
}
}
}
Save and upload.
BTW,
Please do not close threads without investing little bit of time trying to understand what they want to say,Mr. Threadlocker..