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

Missing <%Contact_Name%> in link_expired template

Quote Reply
Missing <%Contact_Name%> in link_expired template
Hi,

Why I don't see the NAME from the user in the link_expired.eml template mail?

Template: Gentile<%if Contact_Name%> <%Contact_Name%><%elsif Name%> <%Name%><%endif%>,
......

But in the link_added template it works.
Template: Gentile Webmaster <%if Contact_Name%> <%Contact_Name%><%elsif Name%> <%Name%><%endif%>,
......

version 3.2.0 german

thanks

andy
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


IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates
Quote Reply
Re: [Andy] Missing <%Contact_Name%> in link_expired template In reply to
hi andy,

I'm testing it.

but I don't understand your last sentences:

Andy wrote:
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)

thanks.
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


IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates