Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Dublicates links promblem, when add new link.

Quote Reply
Dublicates links promblem, when add new link.
Hello, I have some kond of problem with add new links in Links SQL 2.0.1 System. How I can make so, what at a stage addition of the new link there was a filtration under the URL and Name for duplication? Thus simply to not suppose addition of new link if the link to this address (URL) already exists.
Quote Reply
Re: [Konstantin] Dublicates links promblem, when add new link. In reply to
My Duplicate_Check plugin should do this;

http://www.ultranerds.com/cgi-bin/details/28.html

Its a free plugin; but it does half of what you want.

1) They submit a URL to your site.
2) They submit it again (either by accident, or on purpose) - and are then shown an error message, as it already found the URL in the database.

Very simple... but it seems to limit spammers :)

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] Dublicates links promblem, when add new link. In reply to
If Plugin Hooks is enable - when Somebody add new dublicate link, server report: Internal Server Error. The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator... Crazy

If Plugin Hooks is disable - OK. Mad


LOGs ERROR:
[error] [client XXX.XXX.XXX.XXX] Premature end of script headers: /_some_path_/add.cgi

Last edited by:

Konstantin: Jul 17, 2004, 11:22 PM
Quote Reply
Re: [Konstantin] Dublicates links promblem, when add new link. In reply to
Hi. Sorry about that. I don't see how this bug keeps coming back in again :(

Just after (in /admin/Plugins/Duplicate_Check.pm);

Code:
if ($chk_dup) {

...you need to add;

Code:
print $IN->header();

... so it looks something like;

Code:
if ($chk_dup) {
print $IN->header();
$error_show = "The URL you entered already seems to be in our database, either live, or awaiting validation!";
print Links::SiteHTML::display('error', { error => $error_show });
exit;
}

Hope that helps.

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!