Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Change format of Paid Listings

Quote Reply
Change format of Paid Listings
Hi there,

I thought this would be simple but....
I'm trying to format any paid links differently from the others. In my case I just want to put a box around them.
How do I select them in the link template?
I've tried the following;

<%if ExpiryDate ne '2147483647'%>
As I understood that paid links would have a different expiry date from the default expiry date for unpaid links. This is true, but I now get lots of links showing up as paid links in other forms which use the link template.

Is there another way for a template to differentiate between a paid link and a normal link?

Any help would be appreciated,
Cheers,
Piers
Quote Reply
Re: [Piers1] Change format of Paid Listings In reply to
Sorted.
I surrounded the link.html template with the following;

<%if paymentsEnabled and ExpiryDateFormatted and not isFree%>
<%include include_paid_link.html%>
<%else%>

..original link template stuff in here...

<%endif%>

Then create a new template called include_paid_link.html with the different formatting you require for a paid link.

Cheers,
Piers
Quote Reply
Re: [Piers1] Change format of Paid Listings In reply to
Which of course only works if the link owner is logged in!!,
However this post worked for me;

Paid Link Global