I have set up a "featured" link type for sponsored links, and I want to have them preceeded by a simple "Sponsored Links:" before the first link. However, I do not want this text to appear if there are no sponsored links. How can I do this? Here's what I have:
<IF {THISMEMBERGROUPCANVIEWVOTES}><br><a href="showvotes.php?id={LINKID}">Show Individual Votes</a></IF> <IF {THISMEMBERISREGISTERED} and {THISMEMBERID} is {LINKOWNERID}> <IF {SWITCH_RATINGS}>| <a href="index.php?action=getvotingcode&id={LINKID}">Get voting code to place on your site</a></IF> <IF {SPONSORUSELINK} is yes><br><a href="link.php?action=sponsor&id={LINKID}">Move your link to the top: sponsor this category</a><br></IF> </IF>
<IF {LINKFILEFIELD}><br>Attached files:<br> <!-- BEGIN LINK ATTACHMENTS --> <a href="download.php?id={LINKID}&attachid={ATTACHID}">{ATTACHFILETITLE}</a> ({ATTACHKB} KB, {ATTACHDOWNLOADS} downloads)<br> <!-- END LINK ATTACHMENTS --> </IF>
</font> </td> <!-- END FEATURED LINKS --> </table>
I'm sure it's just a matter of putting an "IF" condition around the 2nd line, but I'm not sure how to format it or what it would look like completed. Can anyone help?
Can this same thing be done for the "description" line, so that there isn't just a blank line if the link doesn't have a description associated with it? If so, what would it look like?
Comments on Making text appear conditionally - help
Member
Usergroup: Customer
Joined: Nov 26, 2005
Location: MI, USA
Total Topics: 11
Total Comments: 35
I have set up a "featured" link type for sponsored links, and I want to have them preceeded by a simple "Sponsored Links:" before the first link. However, I do not want this text to appear if there are no sponsored links. How can I do this? Here's what I have:
I'm sure it's just a matter of putting an "IF" condition around the 2nd line, but I'm not sure how to format it or what it would look like completed. Can anyone help?
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
<IF {FEATUREDTOTAL}></IF>
Member
Usergroup: Customer
Joined: Nov 26, 2005
Location: MI, USA
Total Topics: 11
Total Comments: 35
Perfect - thanks, Paul.
Member
Usergroup: Customer
Joined: Nov 26, 2005
Location: MI, USA
Total Topics: 11
Total Comments: 35
Can this same thing be done for the "description" line, so that there isn't just a blank line if the link doesn't have a description associated with it? If so, what would it look like?
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
It works with anything. Please read scripts.webmastersite.net/w...inks/wsnmanual/articles/69 , and if you need a list of variables scripts.webmastersite.net/w...mplates/Template_Variables