
Andy
Enthusiast
Karma: -1 / +7

Jul 8, 2006, 1:55 PM
Post #2 of 2
(14661 views)
Shortcut
Send Andy a wink
|
|
Re: [scottish] allow certain duplicate URLs
[In reply to]
|
Can't Post
|
|
Hi, I don't see why not :) Try opening up /admin/Plugins/Dumplicate_Check.pm, and just after;
my ($error_show, $chk_dup, $db_con); ..add;
if (!$IN->param('URL') || $IN->param('URL') eq "http://") { return @args; } Also, an optional update; Change:
$chk_dup = $db_con->count ( { URL => $IN->param('URL') } ); ..to;
my $cond = new GT::SQL::Condition; $cond->add('URL','=',$IN->param('URL')); $cond->add('URL','=',$IN->param('URL')."%"); # matches anything extra after it - optional, but a recommended add in :) $cond->bool('OR'); $chk_dup = $db_con->count ( $cond ); Untested, but should work fine :) Cheers Andy Programmer/Designer/LinksSQL Freak http://www.ultranerds.com http://www.imagesql.com
|