![]() |
Subscriptions + paid ad place below signature
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]1208468306[/DATE] at [TIME]1208468306[/TIME] --------------- Solved. Correct code: Code:
<if condition="in_array($post[membergroupids],array(26))"> |
I'm trying to do this, but i can't get it working. this is the code i've used, and i've double checked the group, and field numbers are correct. I've added it in postbit after the signature code that i've quoted.
Code:
<if condition="$post['signature']"> |
Quote:
Here is dump from my (working) template: Code:
<if condition="in_array($post[membergroupids],array(26))"> vB admincp -> Usergroups and in vB admincp -> Paid Subscriptions "17", "18", "19" are the numbers of custom profile fields declared in admincp. Does it help you? |
I tried this but i still can't get it, what am i doing wrong? ARGH
Code:
<if condition="in_array($post[membergroupids],array(82))"> Just to remove anything extra i did this Code:
<if condition="in_array($post[membergroupids],array(82))"> |
All times are GMT. The time now is 10:31 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:
|