Gossamer Forum
Quote Reply
Removed
Removed
Quote Reply
Re: [turischt] Missing <%Contact_Name%> in link_expired template In reply to
Should work fine.

Try (in the extra headers for that email), adding:

Code:
Content-type: text/html

..and then at the end of the template, add:

Code:
<%GT::Template::dump%>

..and then make it so an email is sent (it'll be sent in HTML format, so you should see the output of GT::Template::dump fine)

Definatly no reason I can think of that it wouldn't exist (as its part of the link, not user)

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
Removed In reply to
Removed
Quote Reply
Re: [turischt] Missing <%Contact_Name%> in link_expired template In reply to
Hi,

In FTP, goto /admin/template/luna/local, and find link_expired.eml.

Download it, and put the following code in it:

Code:
To: <%if Name%>"<%Name%>" <<%Email%>><%else%><%Email%><%endif%>
From: <%config.db_admin_email%>
Subject: Expiry Notification
Content-Type: text/html

Hello<%if Name%> <%Name%><%endif%>,

The following link<%if expiry_links.length != 1%>s<%endif%> <%if expiry_links.length != 1%>have<%else%>has<%endif%> expired:

<%loop expiry_links~%>
<%Title%>
Expiry Date: <%ExpiryDate%>
Renewal Payment: <%renewal_url%>
<%endloop%>
Please make a payment as soon as possible or contact us for more information.

Sincerely,

Links Manager

<%~--
File : link_expired.eml
Description : This is the e-mail a user receives when their link has
expired.
Tags : The Title, ID, and ExpiryDate of the links that have
expired are in the loop expired_links.
--%>

<%GT::Template::dump%>

Thats all I was saying =)

Oh, ahctually - looking at it, the reason its not letting you use Contact_Email, is cos that tag won't be available. Its looping through ALL the links a user has, that have expired - so the only place "Contact_Name" and "Contact_Email" will exist, are between:

Code:
<%loop expiry_links~%>
<%Title%>
Expiry Date: <%ExpiryDate%>
Renewal Payment: <%renewal_url%>
<%endloop%>

Why exactly do you wanna use Contact_Email/Name?

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!