Gossamer Forum
Home : Products : Gossamer Forum : Discussion :

Re: [ArmyAirForces] Gossamer Forum 1.1.7 Released

Quote Reply
Re: [ArmyAirForces] Gossamer Forum 1.1.7 Released In reply to
There are two %s's in the variable - the first gets the e-mail, the second gets the username.

I'd do it using a global like this:

In the template, inside <%loop errors%>, just after <%error%>, add this:

<%if error contains 'has already been used with another username'%> - <%show_existing($user_email)%><%endif%>

The "show_existing" global is going to be:

sub { my $email = shift; my $username = $DB->table('User')->select(user_username => { user_email => $email })->fetchrow; return \(qq|<a href="gforum.cgi?do=lost_password;user_username=| . $IN->escape($username) . qq|">Click here to e-mail your password</a>|); }

Jason Rhinelander
Gossamer Threads
jason@gossamer-threads.com
Subject Author Views Date
Thread Gossamer Forum 1.1.7 Released Jagerman 14051 Jul 11, 2002, 3:00 PM
Thread Moving trails aren't working
ellipsiiis 13360 Jul 11, 2002, 4:34 PM
Post Re: [ellipsiiis] Moving trails aren't working
Jagerman 13243 Jul 11, 2002, 4:37 PM
Thread Re: [ellipsiiis] Moving trails aren't working
Jagerman 13317 Jul 11, 2002, 4:39 PM
Post Re: [Jagerman] Moving trails aren't working
ellipsiiis 13227 Jul 11, 2002, 4:42 PM
Thread Re: [Jagerman] Gossamer Forum 1.1.7 Released
ArmyAirForces 13382 Jul 11, 2002, 4:41 PM
Post Re: [ArmyAirForces] Gossamer Forum 1.1.7 Released
backdream 13142 Jul 12, 2002, 12:54 AM
Thread Re: [Jagerman] Gossamer Forum 1.1.7 Released
yogi 13361 Jul 12, 2002, 12:56 AM
Thread Re: [yogi] Gossamer Forum 1.1.7 Released
Jagerman 13528 Jul 12, 2002, 9:49 AM
Post Re: [Jagerman] Gossamer Forum 1.1.7 Released
yogi 13052 Jul 12, 2002, 10:38 PM
Post Re: [Jagerman] Gossamer Forum 1.1.7 Released
yogi 13194 Jul 12, 2002, 3:31 AM
Thread Post deleted by ArmyAirForces
ArmyAirForces 13216 Jul 12, 2002, 6:48 AM
Post Post deleted by ArmyAirForces
ArmyAirForces 13174 Jul 12, 2002, 6:49 AM
Thread Re: [Jagerman] Gossamer Forum 1.1.7 Released
ArmyAirForces 13219 Jul 12, 2002, 10:13 AM
Thread Re: [ArmyAirForces] Gossamer Forum 1.1.7 Released
Jagerman 13248 Jul 12, 2002, 11:20 AM
Thread Re: [Jagerman] Gossamer Forum 1.1.7 Released
yogi 13123 Jul 13, 2002, 6:52 AM
Post Re: [yogi] Gossamer Forum 1.1.7 Released
Jagerman 13134 Jul 14, 2002, 12:11 PM
Thread Re: [Jagerman] Gossamer Forum 1.1.7 Released
ArmyAirForces 13404 Jul 12, 2002, 10:29 AM
Thread Re: [ArmyAirForces] Gossamer Forum 1.1.7 Released
Jagerman 13356 Jul 12, 2002, 10:32 AM
Post Re: [Jagerman] Gossamer Forum 1.1.7 Released
ArmyAirForces 13142 Jul 12, 2002, 11:02 AM
Thread Re: [Jagerman] Gossamer Forum 1.1.7 Released
ArmyAirForces 13353 Jul 13, 2002, 6:13 AM
Thread Re: [ArmyAirForces] Gossamer Forum 1.1.7 Released
ArmyAirForces 13155 Jul 15, 2002, 10:08 AM
Thread Re: [ArmyAirForces] Gossamer Forum 1.1.7 Released
ellipsiiis 13387 Jul 15, 2002, 10:11 AM
Post Re: [ellipsiiis] Gossamer Forum 1.1.7 Released
ArmyAirForces 13087 Jul 15, 2002, 10:17 AM
Thread Re: [ellipsiiis] Gossamer Forum 1.1.7 Released
ArmyAirForces 13102 Jul 15, 2002, 11:02 AM
Thread Re: [ArmyAirForces] Gossamer Forum 1.1.7 Released
ellipsiiis 8702 Jul 15, 2002, 11:21 AM
Post Re: [ellipsiiis] Gossamer Forum 1.1.7 Released
ArmyAirForces 8640 Jul 15, 2002, 11:56 AM
Thread Re: [ellipsiiis] Gossamer Forum 1.1.7 Released
ArmyAirForces 8738 Jul 15, 2002, 12:02 PM
Thread Re: [ArmyAirForces] Gossamer Forum 1.1.7 Released
ellipsiiis 8766 Jul 15, 2002, 5:39 PM
Post Re: [ellipsiiis] Gossamer Forum 1.1.7 Released
ArmyAirForces 8657 Jul 16, 2002, 11:40 AM
Thread This something to ask our DBA about or...?
agaffin 8629 Jul 19, 2002, 9:42 AM
Thread Re: [agaffin] This something to ask our DBA about or...?
Jagerman 8626 Jul 26, 2002, 12:26 PM
Thread Re: [Jagerman] This something to ask our DBA about or...?
fulcan 8505 Apr 20, 2003, 6:06 AM
Thread Re: [fulcan] This something to ask our DBA about or...?
Paul 8519 Apr 20, 2003, 6:15 AM
Thread Re: [Paul] This something to ask our DBA about or...?
fulcan 8568 Apr 20, 2003, 6:25 AM
Post Re: [fulcan] This something to ask our DBA about or...?
Paul 8569 Apr 20, 2003, 7:03 AM
Thread Re: [fulcan] This something to ask our DBA about or...?
Jagerman 8543 Apr 20, 2003, 4:05 PM
Thread Re: [Jagerman] This something to ask our DBA about or...?
fulcan 8562 Apr 20, 2003, 5:15 PM
Thread Re: [fulcan] This something to ask our DBA about or...?
Jagerman 8680 Apr 20, 2003, 7:59 PM
Thread Re: [Jagerman] This something to ask our DBA about or...?
fulcan 8555 Apr 21, 2003, 12:08 AM
Thread Re: [fulcan] This something to ask our DBA about or...?
Jagerman 8574 Apr 21, 2003, 12:45 AM
Thread Re: [Jagerman] This something to ask our DBA about or...?
fulcan 8497 Apr 22, 2003, 5:15 AM
Thread Re: [fulcan] This something to ask our DBA about or...?
Jagerman 8465 Apr 22, 2003, 2:43 PM
Thread Re: [Jagerman] This something to ask our DBA about or...?
fulcan 8657 Apr 23, 2003, 4:27 AM
Thread Re: [fulcan] This something to ask our DBA about or...?
Jagerman 8569 Apr 23, 2003, 5:01 AM
Post Re: [Jagerman] This something to ask our DBA about or...?
fulcan 8421 Apr 23, 2003, 5:56 AM