The Arcive of vBulletin Modifications Site. |
|
[How To] Admin Donate from Postbit Details »»
|
|||||||||||||||||||||||||
ok i want to add Admin Donate to the Postbit so what i was thinking is wrap an <if> statement around this code for the donate, but im unsure of what to put in the if statement to call the usergroups that i want to be able to do this action...plz help ty
Code:
<a href="vbplaza.php?do=donate&userid=$post[userid]">$vbphrase[vbplaza_donate]</a><br /> Code:
<if condition="USERGROUP=6"> <a href="vbplaza.php?do=action&itemid=12&userid=$post[userid]">Admin Donate</a><br /> </if> Show Your Support
|
|||||||||||||||||||||||||
| Comments |
|
#2
|
|||
|
|||
|
nobody knows? c'mon this should be easy..lol
|
|
#3
|
|||
|
|||
|
Use "is_member_of"
Something like: Code:
<if condition="is_member_of($vbulletin->userinfo, 6)"> |
|
#4
|
|||
|
|||
|
and multiple groups would i add , then usergroup like below? or have to use a whole nother if statement?
Code:
<if condition="is_member_of($vbulletin->userinfo, 6,9)"> thanks CF |
|
#5
|
|||
|
|||
|
Where are u using it at?
If u r using it from the postbit, it should enter the Userid properly. Code:
<a href="vbplaza.php?do=action&itemid=12&userid=$post[userid]">Admin Donate</a> -CMX |
|
#6
|
|||
|
|||
|
that is what im using, what you have in the code box and not pulling the userid...hmmm
|
|
#7
|
|||
|
|||
|
U r editing it for the postbit template right?
-CMX |
|
#8
|
|||
|
|||
|
Anyone ever figure this out? I cant get it to fill in the username for admin donate.
|
|
#9
|
|||
|
|||
|
no i cant get it too either and i have played with it a lil bit
it must be the admin donate page not recognizing the $post[userid] part or something |
|
#10
|
|||
|
|||
|
never mind.
|
![]() |
|
|