2013-04-15, 11:12 AM
In relation to me trying to find a way to accomplish this, (posted in support last night)
I'm thinking that the best way to do this is to pull through the logged in members username by including what ever relevant MyBB functions I need to do that. As the store page requires members to be logged in you can't order any products without being so, so I should be able to pull through the username and store it as a variable in my IPN to add to my purchases database.
So in short, my second question on this is, using a non related page /ipn.php what do I need to include to be able to read the MyBB usertable and store logged in username as a variable, as I said I'm looking for the php includes I'll need.
Sorry, but I find it hard to explain via writing and my knowledge of MyBB's inner workings is limited.
I'm thinking that the best way to do this is to pull through the logged in members username by including what ever relevant MyBB functions I need to do that. As the store page requires members to be logged in you can't order any products without being so, so I should be able to pull through the username and store it as a variable in my IPN to add to my purchases database.
So in short, my second question on this is, using a non related page /ipn.php what do I need to include to be able to read the MyBB usertable and store logged in username as a variable, as I said I'm looking for the php includes I'll need.
Sorry, but I find it hard to explain via writing and my knowledge of MyBB's inner workings is limited.