MyBB Community Forums

Full Version: Direct URL to Join in a Group
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
if a user is logied in.. how to join in Group just by clicking on a link.

without going to userCP and all.
{$mybb->settings['bburl']}/usercp.php?action=usergroups&joingroup=groupid (number)&my_post_key={$mybb->post_code}
Got it! Smile thanks! Rep Added Smile

can you explan about {$mybb->post_code}

will that number same for each user or will it change like dynamic ?
^ it is dynamic. it gets required value.
is it not possible to do this without with that number...

i want to add a link in footer in my forum. when a user clicks on it. it 1st redirect X url and then after 3 seconds it will redirect to Y url..

X Url will be this mywebsite.com/usercp.php?action=usergroups&joingroup=11&my_post_key={$mybb->post_code}

and Y url will be some congrats page..

i didn't understand how to do that X url..

did you understand what i am looking for Sad
(09-14-2013, 09:59 AM)vishnudath Wrote: [ -> ]is it not possible to do this without with that number...

i want to add a link in footer in my forum. when a user clicks on it. it 1st redirect X url and then after 3 seconds it will redirect to Y url..

X Url will be this mywebsite.com/usercp.php?action=usergroups&joingroup=11&my_post_key={$mybb->post_code}

and Y url will be some congrats page..

i didn't understand how to do that X url..

did you understand what i am looking for Sad
You'll need some sort of plugin I think, the UserCP won't just randomly redirect after a user joins a group without some modifications.