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

Ad free alternative variable

Quote Reply
Ad free alternative variable
Hi

I would like to be able to make a difference between those shared mailusers that pays and those who not. I would like a variable in user profile that is valled is_paid. Then, if it is paid, no ads shall appear on the member pages (like the setting that disables footer msg at outgoing individual mail), and no ads in outgoing email.

Is that a difficult modification ? I just want to disable the ad view in one template.

Regards,
Are
Quote Reply
Re: [areh] Ad free alternative variable In reply to
go into...
Code:
admin > database > demographics

if you're not sure what to do, click on the help menu and it'll tell you how.

r
Quote Reply
Re: [ryel01] Ad free alternative variable In reply to
Hi

I added a field is_paid, but it doesn´t seem to be saved...after I get confirmation that it is saved, and displays in the list, and then sync with database...then it dissapears from the list.

Is the variable for attaching footer-ad availble in templates ? I could use that one instead, with advantage, on individual users.

Are
Quote Reply
Re: [areh] Ad free alternative variable In reply to
you don't need to resync the database after you've added the table - that could be why it's disappearing.

once you've added it - that's it. You can then go into the users records and change the value to yes or no.

give that a go.

r.
Quote Reply
Re: [ryel01] Ad free alternative variable In reply to
Hi

Thanks.

I checked now, the field is in my database. But when doing an if test in template, it always hit.

<%if is_paid == "nei"%>
TEST 1-2-3
<%endif%>

I tried changing with ja/nei (yes/no), but no mather what I did, it showed TEST 1-2-3.

Are
Quote Reply
Re: [areh] Ad free alternative variable In reply to
what about...

Code:
<%if is_paid = 'nei' %>
DISPLAY BANNER AD
<%endif%>

or

<%if is_paid eq 'nei' %>
DISPLAY BANNER AD
<%endif%>

see if that works? I think the second one might do the trick.

r.

Last edited by:

ryel01: Jun 28, 2002, 2:51 PM
Quote Reply
Re: [areh] Ad free alternative variable In reply to
Change == to eq
Quote Reply
Re: [Paul] Ad free alternative variable In reply to
Thanks!



That worked.