Hi,
Ok, try this:
get_vb_details
use Digest::Perl::MD5 'md5_hex';
my $rec = $DB->table('Links')->do_query(qq|select userid, salt from vb_user where username = "$_[0]"|)->fetchrow_hashref;
$rec->{logout_hash} = md5_hex($rec->{userid} . $rec->{salt} . '12345678');
return $rec;
}
Call in GLinks, with:
<%get_vb_details($Username)%>
..then, you should have <%logout_hash%>, and all the other details from the SELECT query.
Hopefully that'll do the job for you :) (untested, as I don't have vB =))
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!
Ok, try this:
get_vb_details
Code:
sub { use Digest::Perl::MD5 'md5_hex';
my $rec = $DB->table('Links')->do_query(qq|select userid, salt from vb_user where username = "$_[0]"|)->fetchrow_hashref;
$rec->{logout_hash} = md5_hex($rec->{userid} . $rec->{salt} . '12345678');
return $rec;
}
Call in GLinks, with:
<%get_vb_details($Username)%>
..then, you should have <%logout_hash%>, and all the other details from the SELECT query.
Hopefully that'll do the job for you :) (untested, as I don't have vB =))
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!