Log in

View Full Version : Display something in postbit if subscription purchased?


007
05-08-2005, 11:24 PM
I know somehow vBulletin knows when someone subscribes, but what is the conditional I could put in postbit to display something based on whether or not somebody is a subscriber to X subsctiption ID??

Is this possible in a template mod or do I have to hack for it?

Thanks.

~007

P.S. I should mention that I am talking about a subscription that doesn't change the usergroup, so conditionals based on usergroup won't help.

Reeve of shinra
05-08-2005, 11:53 PM
I believe the subscription features adds that user to a secondary usergroup. If you didn't want to go that route, im not sure what you would have to do.

007
05-08-2005, 11:56 PM
I have made it add a secondary usergroup now. How would I use a secondary usergroup in conditionals?

Is it the same as a normal usergroup conditional? I can't seem to find any examples of a secondary group, so I am wondering if I would just use the normal

<if condition="$userinfo['usergroup'] = X">

??

rinkrat
08-30-2005, 09:53 PM
I haf the sam eproblem, finally just moved subscribed to be a primamry user group and now it works fine.

KW802
08-31-2005, 04:07 AM
I have made it add a secondary usergroup now. How would I use a secondary usergroup in conditionals?IIRC, you want to use 'is member of' instead.

<if condition="is_member_of($bbuserinfo, {usergroup ID})">
{do something}
<else />
{do something else}
</if>