The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
hook for Paid suscription
Hello,
This is my question: When a User PAY por a suscription (paypal, etc) I can choose his/her group, access, etc, etc.... but I need to do more thing.. basicatly I need to insert php when the transaction is complete and vBulletin Start to change his/her group. Someone know where is the php o hook?? Thank you!! |
#2
|
|||
|
|||
There is a hook location paidsub_build, which is in inculdes/class_paid_subscription.php around line 453. But it's after the usergroup has been changed, and it isn't only called once when the subscription is created. It can be called when it's renewed, or when another subscription is deleted (I suppose that's to make sure that the user ends up in the correct usergroup if they have more than one subscription, and one is deleted). In any case, there might be something you can check to know if you want to do whatever it is you want to do.
|
#3
|
||||
|
||||
Hi kh99, basicatly, I want to add a forum suscription (the PAID FORUM) to the users that pay for the access.
I know that the can do this manual with a click in FORUM SUSCRIPTION, control panel, etc.... but the kind of user is old people3and mi client (forum owners) wants that when a user pay and is automatic change to the VIP usergroups they has the forum suscription TO. thank you |
#4
|
|||
|
|||
Then I think you can use hook paidsub_build and check to see if they are already subscribed to that forum before adding one (which is something that you'd probably want to do anyway).
AT that hook you can use tha variables $subscriptionid, $subid, and $userid.. There's also $user and $currentsubscription arrays with more info. |
#5
|
||||
|
||||
Hi again kh99, I checked the the hook and that is the correct that I need
my another question is: How I can call this event without use a Paypal? Thank You |
#6
|
|||
|
|||
Quote:
I'm not sure what you're asking - are you asking how you can test it without paying for a subscription? I don't know the answer to that - maybe if you manually add someone to a subscription by going to Paid Subscriptions > Subscription Manager and choosing "Add User" from the dropdown. I'm not 100% sure that will work but it seems like it should. |
#7
|
||||
|
||||
Thank you very much kh99; I solved the problem (without testing :P)
thank you again |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|