Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

Disabling duplicate checking for blank URLs

Quote Reply
Disabling duplicate checking for blank URLs
Hi.

For my needs, I have listings that may or may not have URLS. Whenever I enter listings that do not have URLS (thus the URL field is blank and causing a blank duplicate I guess?) I get the following message...

"The URL you entered already seems to be in our database, either live, or awaiting validation!" .. preventing me from entering the listing. A URL wasn't entered.

My question is, can I disable duplicate checking for blank URLs?
Quote Reply
Re: [TNIJason] Disabling duplicate checking for blank URLs In reply to
Which plugins do you have installed?

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] Disabling duplicate checking for blank URLs In reply to
Currently installed...
ContactPage, Expire_Links, Recip_Link, SearchLogger, Top_5_Links, & Top_Weekly_Link..

Thanks.
Quote Reply
Re: [TNIJason] Disabling duplicate checking for blank URLs In reply to
Try editing the Recip_Link plugin. You need to edit /admin/Plugins/Recip_Links.pm (about line 60~),

Code:
if ($chk_dup) {

with

Code:
if !$IN->param('URL') return @args;
if ($chk_dup) {

and in /admin/check.cgi, you need to replace;

Code:
my $sth = $table->select( GT::SQL::Condition->new( 'ID', '>=', $start_from ) );

with

Code:
my $sth = $table->select( GT::SQL::Condition->new(
'ID', '>=', $start_from,
'URL', 'LIKE', 'http%'
)
);

Hopefully that should work :)

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] Disabling duplicate checking for blank URLs In reply to
That seemed to do the trick. Wink

Many thanks.