Gossamer Forum
Home : Products : Gossamer Links : Discussions :

payment link.html

Quote Reply
payment link.html
can someone please help. I am using the new version of links SQL and I'm having trouble figuring out how to structure the links.html. I want free listings to display differently than paid listings.I have tried the following without success:

in link.html

<%if paymentsEnabled and isFree%>
<%linkfree.html%>
<%elseif paymentsEnabled and not isFree%>
<%linkpremium.html%>
<%endif%>
to my doing wrong. Do I need to make changes in the setup
Quote Reply
Re: [ajiimd] payment link.html In reply to
can anyone help
Quote Reply
Re: [ajiimd] payment link.html In reply to
I believe you want to use an include, ie. <%include linkfree.html%>

Adrian
Quote Reply
Re: [brewt] payment link.html In reply to
Thanks,
this doesn'twork either

<%if paymentsEnabled and isFree%>
<%include linkfree.html%>
<%elseif paymentsEnabled and not isFree%>
<%include linkpremium.html%>
<%endif%>

is this right
<%if paymentsEnabled and isFree%>

also how do i make a link free or paid
if i change
"Expiry Date" to "No Payment Required" does that register as a free link and if "Expiry Date" has a date entered is it a paid link
Quote Reply
Re: [ajiimd] payment link.html In reply to
someone please help
Quote Reply
Re: [ajiimd] payment link.html In reply to
If they are 'Yes' or 'No' fields try this:
<%if paymentsEnabled eq 'Yes' and isFree eq 'Yes'%>