View Full Version : subscription in postbit or memberlists?
cookiepants
09-17-2007, 08:54 PM
About 150 of my members have paid through How do I put a paid subscription image or text in the postbit and or in the member list? I can't recall or find the info.
The user group id is 10, how do I add that in?:confused:
Thanks!
WhaLberg
09-17-2007, 08:57 PM
Open your postbit or postbit_legacy template and find:
<if condition="$post['rank']"><div class="smallfont">$post[rank]</div></if>
After, add:
<if condition="$bbuserinfo[usergroupid] == 'id'"><div class="smallfont">Paid Subscription</div></if>
Don't forget to change id as paid users' usergroup id.
cookiepants
09-17-2007, 11:47 PM
Thank you!!! :)
Kirk Y
09-18-2007, 01:53 AM
That should be $post['usergroupid'] not $bbuserinfo.
cookiepants
09-18-2007, 02:37 PM
:o oh dear, it won't work. The user group id is 10, how do I add that in?:confused:
Kirk Y
09-18-2007, 02:51 PM
<if condition="$post['usergroupid'] == 10">
WhaLberg
09-18-2007, 06:14 PM
I am so sorry, I confused it with the current user.
i did this and nothing will show up.
--------------- Added at 14:51 ---------------
actually it only works for "primary user ranks" not secondary. is there a way to fix this?
Kirk Y
09-27-2007, 10:25 PM
<if condition="is_member_of($post, 10)">
<if condition="is_member_of($post, 10)">
add that after the other code? or replace
<if condition="$post['usergroupid'] == 10">
this?
Kirk Y
09-27-2007, 10:42 PM
Use it instead of the previous one.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.