Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Re: [MJB] Change link URL in Check Duplicates results

Quote Reply
Re: [MJB] Change link URL in Check Duplicates results In reply to
Hi,

Untested, but in /admin/Links/Tools.pm, find:

Code:
while (my ($id, $title) = $sth2->fetchrow_array) {
my $cats = $db->get_categories($id);
my ($cid, $cname) = each %$cats;
my $etitle = $IN->html_escape($title);

$dupes .= qq~
<tr><td valign=top>
<font face="Tahoma,Arial,Helvetica" size="2">
<input type="checkbox" name="delete" value="$id">
<input type="hidden" name="$id-ID" value="$id">
$id - <a href="$eurl">$etitle</a> - $cname -
[ <a href="admin.cgi?do=modify_form&db=Links&modify=1&1-ID=$id">Modify</a> ]
</font>
</td></tr>
~;
}
...and change to:

Code:
while (my ($id, $title) = $sth2->fetchrow_array) {
my $cats = $db->get_categories($id);
my ($cid, $cname) = each %$cats;

my $detailed_url = "$CFG->{build_detail_url}/" . $DB->table('Links')->detailed_url( $id ) . $CFG->{build_extension};

my $etitle = $IN->html_escape($title);

$dupes .= qq~
<tr><td valign=top>
<font face="Tahoma,Arial,Helvetica" size="2">
<input type="checkbox" name="delete" value="$id">
<input type="hidden" name="$id-ID" value="$id">
$id - <a href="$detailed_url">$etitle</a> - $cname -
[ <a href="admin.cgi?do=modify_form&db=Links&modify=1&1-ID=$id">Modify</a> ]
</font>
</td></tr>
~;
}

See if that works :)

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!
Subject Author Views Date
Thread Change link URL in Check Duplicates results MJB 2592 Oct 22, 2009, 12:13 PM
Thread Re: [MJB] Change link URL in Check Duplicates results
VishalT 2535 Oct 22, 2009, 2:11 PM
Thread Re: [SWDevil.Com] Change link URL in Check Duplicates results
MJB 2528 Oct 22, 2009, 2:55 PM
Thread Re: [MJB] Change link URL in Check Duplicates results
Andy 2518 Oct 23, 2009, 12:55 AM
Thread Re: [Andy] Change link URL in Check Duplicates results
MJB 2516 Oct 23, 2009, 2:59 AM
Post Re: [MJB] Change link URL in Check Duplicates results
Andy 2514 Oct 23, 2009, 3:00 AM