Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

Guest reviews - is .....@email.com possible?

Quote Reply
Guest reviews - is .....@email.com possible?
I have reviews open to guests but for privacy reasons I don't have a guests e-mail address viewable. Would it be possible to display the address as "@email.com" or "...@email.com" or something similar?

Last edited by:

MJB: Mar 13, 2010, 6:14 AM
Quote Reply
Re: [MJB] Guest reviews - is .....@email.com possible? In reply to
Should be simple...

remove_start_of_email
Code:
sub {
my $email = $_[0];
$email =~ s/.*\@(.*)/\@$1/;
return $email;
}

Then call with:

<%remove_start_of_email($Review_GuestEmail)%>

Untested, but should work Smile

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!
Quote Reply
Re: [Andy] Guest reviews - is .....@email.com possible? In reply to
Holy carp that was quick! Shocked

I'll give it a try, thanks.
Quote Reply
Re: [MJB] Guest reviews - is .....@email.com possible? In reply to
haha cos I'm working on a script to sell , and need a break every so often ;)

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!
Quote Reply
Re: [Andy] Guest reviews - is .....@email.com possible? In reply to
Perfect, thanks. Wink