Gossamer Forum
Home : Products : Gossamer Links : Discussions :

-ifnot isFree- is not working

Quote Reply
-ifnot isFree- is not working
Hi everybody,

I've payments enabled and in my links.html I've the following code:

Code:

<%if paymentsEnabled%>
<%ifnot isFree%>
<SUP>Premium</SUP>
<%else%>
<SUP>Free</SUP>
<%endif%>
<%endif%>


But somehow this code isn't working like it should:

+ The "<SUP>Free</SUP>" is just displayed at some free links, at the most free ones not!
+ The "<SUP>Premium</SUP>" works in most cases of paid links but, not if an expired link is reaktivated by a payment of its owner again


Any solutions or ideas why this doesn't work as it should?

Regards,
Manu

Shopping Portal Shop-Netz.de® | Partnerprogramme | Flugreisen & Billigflüge | KESTERMEDIA e.K. | European Affiliate Marketing Forum.
Quote Reply
Re: [ManuGermany] -ifnot isFree- is not working In reply to
Unfortunately, most of those template variables are useless since they're only valid for the user who owns the links.

In Gossamer Links 3.x, you'll have to use config.payment.enabled and isPaidLink for a paid link. However, there currently isn't a tag for free links (I'll add it for the next version).

Adrian
Quote Reply
Re: [brewt] -ifnot isFree- is not working In reply to
Quote:
...since they're only valid for the user who owns the links...


uups, that's it!
That wasn't clear to me.


Thanks.

Regards,
Manu

Shopping Portal Shop-Netz.de® | Partnerprogramme | Flugreisen & Billigflüge | KESTERMEDIA e.K. | European Affiliate Marketing Forum.