Home : Products : Links 2.0 : Customization :

Products: Links 2.0: Customization: Re: [carlosca] Put admin email in all pages: Edit Log

Here is the list of edits for this post
Re: [carlosca] Put admin email in all pages
Like so... in db_utils.pl, just before the 1; at the bottom of the file, add this:


Code:

sub admin_email {
#----------------------------------------------------------------------
# put the admin email anywhere, called with <%admin_email%>
$output .= qq|<a href="mailto: admin\@yoursite.com">Send us a note!</a>|;
return $output;
}


Of course, change the green to whatever you want, but remeber to \escape the @. Then, look in site_html_templates.pl, and add this to the globals at the top of the file (remember to put a comma after what is currently last in the list, then add this under it with NO comma on the end):

admin_email => &admin_email


Leonard
aka PerlFlunkie

Last edited by:

PerlFlunkie: May 22, 2004, 12:40 PM

Edit Log: