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.
Jul 17, 2004, 12:46 AM
Veteran / Moderator (18441 posts)
Jul 17, 2004, 12:46 AM
Post #2 of 4
Views: 1918
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!
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!
Jul 17, 2004, 11:11 PM
Novice (19 posts)
Jul 17, 2004, 11:11 PM
Post #3 of 4
Views: 1897
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...
If Plugin Hooks is disable - OK.
LOGs ERROR:
[error] [client XXX.XXX.XXX.XXX] Premature end of script headers: /_some_path_/add.cgi
Please contact the server administrator...
If Plugin Hooks is disable - OK.
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
Jul 18, 2004, 2:33 AM
Veteran / Moderator (18441 posts)
Jul 18, 2004, 2:33 AM
Post #4 of 4
Views: 1902
Hi. Sorry about that. I don't see how this bug keeps coming back in again :(
Just after (in /admin/Plugins/Duplicate_Check.pm);
...you need to add;
... so it looks something like;
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!
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!