Log in

View Full Version : How do I make ads invisible to a particular usergroup?


goingnova
11-01-2004, 01:41 AM
Hello, and thank you very much for reading my question and trying to help me. Here is my situation:

My forum is free to register and browse, but I have ads on using phpAdsNew. I want to allow members to make a donation using PayPal, and then not see the ads. I have set up a user group called Premium Members. Now, how can I make just that usergroup, Premium Members, once they make a $9.99 donation or more, not see any ads?

Thank you again for trying to assist me. I hate not knowing how to do things.

Colin F
11-01-2004, 04:34 AM
Hello, and thank you very much for reading my question and trying to help me. Here is my situation:

My forum is free to register and browse, but I have ads on using phpAdsNew. I want to allow members to make a donation using PayPal, and then not see the ads. I have set up a user group called Premium Members. Now, how can I make just that usergroup, Premium Members, once they make a $9.99 donation or more, not see any ads?

Thank you again for trying to assist me. I hate not knowing how to do things.
You can surround the ads with a template conditional:

<if condition="!is_member_of($bbuserinfo, 6)">//ADCODE</if>

In this example, users with the usergroupid of 6 won't see the ad.

goingnova
11-01-2004, 11:39 AM
Thank you Colin. I will give that a try. :nervous:

goingnova
11-02-2004, 01:05 AM
It worked. Thank you very much. :classic:

goingnova
11-02-2004, 01:12 AM
Ok, new question. The name of the usergroup that does not see ads is called "Premium Members", and is user id 9. What I would like to know is, how can I have the usergroup change automatically whenever someone donates? Right now, I have to manually change it. I would like to happen as soon as they pay via PayPal. Any ideas?

Colin F
11-02-2004, 03:13 AM
Ok, new question. The name of the usergroup that does not see ads is called "Premium Members", and is user id 9. What I would like to know is, how can I have the usergroup change automatically whenever someone donates? Right now, I have to manually change it. I would like to happen as soon as they pay via PayPal. Any ideas?
You can set up a subscription, which will do exactly this.
The only problem will be that you'll have to predefine the amounts that can be donated.

goingnova
11-02-2004, 02:54 PM
Ok. I have never done that. I will give it a shot. I hope I can figure it out. Thanks again! I will post any problems I encounter.

Colin F
11-02-2004, 03:00 PM
Ok. I have never done that. I will give it a shot. I hope I can figure it out. Thanks again! I will post any problems I encounter.
Good Luck :)