For Programmers: Free Programming Magazines  


Home > Archive > PHP Smarty Templates > July 2004 > Re: [SMARTY] inserting an obfuscated mailto link into a componentised layout









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: [SMARTY] inserting an obfuscated mailto link into a componentised layout
Vonleigh Simmons

2004-07-21, 9:00 am

> everything i put into the $content variable is printed as-is, and is
> not processed.


Check out smarty->fetch.


> i could create a custom template file for the contact section of
> course..


That would work too. You could even provide a form to fill out for
quick contacting.


Vonleigh Simmons
<http://illusionart.com/>
Messju Mohr

2004-07-21, 8:58 pm

On Wed, Jul 21, 2004 at 09:39:40PM +0200, Thorsten wrote:
> i read the part dealing with fetch, but i can't see how that improves
> the situation, really. as far as i've understood, one doesn't display
> the template, but passes it into a variable. how would i manipulate that
> variable to have the mail obfuscation?


fetch() returns the already evaluated template's output. so the
variable you assign it's return-value to already contains the
obfuscated mail-address.

> - Thorsten

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com