Hi,
Not sure if this is a valid line?
my $last_in_forum = $DB->table('UserNew')->select('usernew_last' => { user_id_fk => $user_id, forum_id_fk => $forum_id})->fetchrow_hashref->{usernew_last};
Probably better written;
my $last_in_forum = $DB->table('UserNew')->select( ['usernew_last'], { user_id_fk => $user_id, forum_id_fk => $forum_id})->fetchrow;
Not sure about any other coding problems.
What happens if you run it in the plugin editor? i.e make a test plugin, copy the code into the .pm file, and then do a "Perl Check". This normally shows up any major errors :)
Hope that helps.
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!
Not sure if this is a valid line?
my $last_in_forum = $DB->table('UserNew')->select('usernew_last' => { user_id_fk => $user_id, forum_id_fk => $forum_id})->fetchrow_hashref->{usernew_last};
Probably better written;
my $last_in_forum = $DB->table('UserNew')->select( ['usernew_last'], { user_id_fk => $user_id, forum_id_fk => $forum_id})->fetchrow;
Not sure about any other coding problems.
What happens if you run it in the plugin editor? i.e make a test plugin, copy the code into the .pm file, and then do a "Perl Check". This normally shows up any major errors :)
Hope that helps.
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!