I'm struggling a bit here.
I have 2 copies of links tied together with community.
I want to display the owners links from one installation on their detailed page in the other installation.
So far I have found a global to display an owners links on the detailed page with
my $user = $_[0];
my $sth = $DB->table('Links')->select( { LinkOwner => $user, isValidated => 'Yes' } ) || return $GT::SQL::error;
my $back; while (my $hit = $sth->fetchrow_hashref) { $back .= Links::SiteHTML::display('link', $hit); } return $back; }
and this displays the owners link fine but of course from the wrong installation.
I have spent a couple of hours searching but can't find an answer that works to pull the links from the other installation.
The two installations are on the same domain.
Any help would be appreciated as I'm not an expert in perl :(
Cheers
Andy
I have 2 copies of links tied together with community.
I want to display the owners links from one installation on their detailed page in the other installation.
So far I have found a global to display an owners links on the detailed page with
Code:
sub { my $user = $_[0];
my $sth = $DB->table('Links')->select( { LinkOwner => $user, isValidated => 'Yes' } ) || return $GT::SQL::error;
my $back; while (my $hit = $sth->fetchrow_hashref) { $back .= Links::SiteHTML::display('link', $hit); } return $back; }
and this displays the owners link fine but of course from the wrong installation.
I have spent a couple of hours searching but can't find an answer that works to pull the links from the other installation.
The two installations are on the same domain.
Any help would be appreciated as I'm not an expert in perl :(
Cheers
Andy