MyBB Community Forums

Full Version: Where can I insert code to be run upon email activation?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I run a small Minecraft server and forums, I have a great bukkit plugin which allows me to send consle commands via http.

What I want to do is run a command when a user registers automatically. It will rank the user ingame when they click on the activation link sent in their email.

I have the code for this but I can't find where exactly (was snooping around in member.php) I need to add this code, or the most effective way to go about it.

It would work great if I could find somewhere to add a quick redirect (to the page which executes all the console commands) then I can just do header redirect to the forums index.php which you land on when you activate your email. Would this work or mess up something, like if the activation page was tyring to pass variables to the forum index.php?

Forum: http://ballzofsteel.com/forum


Could anyone help me out?
Many thanks
maybe it could be added in the register page?

I also run a miencraft server and forums if you need any help just send me a PM
(2012-07-06, 01:56 PM)JamieJackson Wrote: [ -> ]maybe it could be added in the register page?

I also run a miencraft server and forums if you need any help just send me a PM

I would want it after they have verified their email though.

Just had an idea, maybe i can edit the email verification link to redirect to my page and then the actual verification page. I'll take a look into that. Anyone have any ideas?

I've figured it out and it works great (my idea above). Thanks anyway