Gossamer Forum
Home : Products : Gossamer Links : Version 1.x :

ID in email-add.txt

Quote Reply
ID in email-add.txt
Hi all, i tried to insert the ID to email-messages (add, mod); but it seems they are not in $links; cause i use 'password-modify' its absolutely needed to give my users the id of their link. Has someone an idea, how to get the ID inside the email-messages. Every other (own) fields are no problem.

Robert
Quote Reply
Re: ID in email-add.txt In reply to
In admin.cgi after:

$result = $db->add_record ( \%{$links{$id}} );

add:

$links{$id}->{ID} = $result;

then the ID tag will be available. It should already be available when updating modifications.

Cheers,

Alex
Quote Reply
Re: ID in email-add.txt In reply to
Please help me!!
I have try the following processing, but <%ID%>Tag of ID number be different from real ID number and that ID number be all one, what's wrong;

Try adding in admin.cgi around line 228 right after:

$result = $db->add_record ( \%{$links{$id}} );
$result or ($error{$id} = "<li>$id Couldn't add: '$t' $Links: BSQL::error") and next;

add:

$links{$id}->{ID} = $result;

Quote Reply
Re: ID in email-add.txt In reply to
Sorry, i dont understand your problem?

Robert