![]() |
Can you show ads to guests according to post usergroups
I've been looking for a way to show ads on the forum according to what usergroup posted the ad, NOT show ads only to certain usergroups.
For example, any posts by regular members will show ads on them, however posts by upgraded members do not have ads in their posts. Does that make sense and is this possible? Like for example I'd like to offer a subscription or upgraded usergroup which has the benefit of not having ads show in posts they created. Another example, if a guest is viewing a thread started by usergroup-a, the guest will see ads, however if a guest is viewing a thread started by usergroup-b, the guest will not see any ads. |
Quote:
Code:
<vb:if condition="is_member_of($post, a)"> probably in the postbit or postbit_legacy template. (Of course 'a' should be the usergroup id). |
Quote:
|
That is the code you would put around your ad code. Just change "a" to the usergroupid.
|
Edit: ..oh, right. You want to do it based on who posted. Which ad location(s) are you talking about? Do you mean the user group of the user who started the thread, or for each post?
|
All times are GMT. The time now is 06:45 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|