View Full Version : [How To] Admin Donate from Postbit
cOuNtErFiET
04-15-2006, 12:53 AM
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
<a href="vbplaza.php?do=donate&userid=$post[userid]">$vbphrase[vbplaza_donate]</a><br />
so im thinking it would be something like this (see below)?
<if condition="USERGROUP=6">
<a href="vbplaza.php?do=action&itemid=12&userid=$post[userid]">Admin Donate</a><br />
</if>
cOuNtErFiET
04-16-2006, 01:54 AM
nobody knows? c'mon this should be easy..lol
CMX_CMGSCCC
04-18-2006, 05:15 PM
Use "is_member_of"
Something like:
<if condition="is_member_of($vbulletin->userinfo, 6)">
-CMX
cOuNtErFiET
05-06-2006, 03:53 AM
and multiple groups would i add , then usergroup like below? or have to use a whole nother if statement?
<if condition="is_member_of($vbulletin->userinfo, 6,9)">
also when i click admin donate it doesn't pull the username and put it in the "donate to" box like the regular donate does, any idea on what i got messed up in the link? using the one that i have in first post
thanks
CF
CMX_CMGSCCC
05-07-2006, 04:01 PM
Where are u using it at?
If u r using it from the postbit, it should enter the Userid properly.
<a href="vbplaza.php?do=action&itemid=12&userid=$post[userid]">Admin Donate</a>
The link that u click, does it say userid=somenumber?
-CMX
cOuNtErFiET
05-28-2006, 11:12 PM
that is what im using, what you have in the code box and not pulling the userid...hmmm
CMX_CMGSCCC
06-20-2006, 05:43 PM
U r editing it for the postbit template right?
-CMX
Anyone ever figure this out? I cant get it to fill in the username for admin donate.
cOuNtErFiET
10-19-2006, 01:39 AM
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
Lyricsmama
04-08-2007, 10:38 PM
never mind.
vuiveclub
04-14-2007, 04:36 PM
It doesnt work!
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.