![]() |
Advertisement paid by user / Paid subscription
Hi
I have tried to make following mod of vB: 1. Target: paid subscription members have a special (like google adword) fields in profile:
2. These advertisements are browsed under signature of each post written by the subscriber What have I done wrong? Well. Procedure is following: a. Set up a new usergroup "Forum Sponsors" based on User - OK b. Set up 3 custom fields as described above - OK c. Set up a subscription plan - OK d. edit postbit (postbit_legacy) template to add conditionals, which are supposed to insert paid ad under each post of the subscriber - PROBLEM Code:
<if condition="is_member_of($post[usergroupid], array(a,b,c))"> There is a problem with $post[usergroupid] variable, I suppose. Any idea how to overcome this problem? Regards zlos --------------- Added [DATE]1208468268[/DATE] at [TIME]1208468268[/TIME] --------------- Solved. Correct code example: Code:
<if condition="in_array($post[membergroupids],array(26))"> |
All times are GMT. The time now is 03:54 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:
|