Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Re: [pugdog] Multiple Link Editors

Quote Reply
Re: [pugdog] Multiple Link Editors In reply to
Hi Pugdog..long time since I've talked with you!

Thanks for the reply! I went into modify.pm and went to the subroutine
Code:


sub _modify_passed_in {
# --------------------------------------------------------
# Display link that was passed in.
#
my ($name, $category);
my $lid = $IN->param('LinkID');
my $link_db = $DB->table('Links');
my $sth = $link_db->select ( { ID => $lid, LinkOwner => $USER->{Username} });
if ($sth->rows) {


And made changes as such:

Code:


sub _modify_passed_in {
# --------------------------------------------------------
# Display link that was passed in.
#
my ($name, $category);
my $lid = $IN->param('LinkID');
my $link_db = $DB->table('Links');
if ( $USER->{'Status'} eq 'Editor') { $sth = $link_db->select ( { ID => $lid });
}
else {
$sth = $link_db->select ( { ID => $lid, LinkOwner => $USER->{Username} });
}


For whatever reason, though I get a 500 error. I'm not going to worry about validation as they are automatically validated by registered users. It's basically just for project management tasks. I thought a simple solution might be easily accessible rather than customizing the browser editor to what I want.

Thanks again for your help,
Perl Hopefull
Subject Author Views Date
Thread Multiple Link Editors stilton 1607 Oct 2, 2003, 6:55 PM
Thread Re: [stilton] Multiple Link Editors
pugdog 1496 Oct 3, 2003, 5:44 AM
Post Re: [pugdog] Multiple Link Editors
stilton 1484 Oct 3, 2003, 8:46 AM