PDA

View Full Version : Link to move user to usergroup?


PirateTinman
02-10-2013, 07:44 PM
HI!

I am wanting to know how I would go about creating a link that when clicked would move the thread starter to a specific usergroup.

PirateTinman
02-11-2013, 08:54 PM
Would have thought someone on here would have any sort of clue on how to do this, its a pretty straight forward thing, I just can't figure it out since I have not found any resources for anything like this.

LifesGreatestGift
02-12-2013, 01:01 AM
well... here we go, another post without detailed info.

you want a link that will allow a user to be moved to a usergroup when clicked.

1) who should be able to click this link?
2) will it be a specific usergroup the user is moved to or dynamically determined based on conditionals?
3) will it be available to affect all users or specific users?
4) will it change users primary group, or just add them to an 'additional' group?
5) why?

:)

PirateTinman
02-12-2013, 01:34 PM
Well all of those things I know how to do :D

But I will play along :P

1) Administrators and Moderators will be the only one to see the button/link.
2) The usergroup is set, no dynamic fancy things needed!
3) It will effect only the thread starter, possibly only if they are in the "registered users" usergroup.
4) It should only have to change the primary usergroup.
5) Its for an approval/denial setup when it comes to applications to a clan/guild/outfit, people post an application, at the top there will be a button for us to approve the application without having to go in and edit the users settings the button would do it for us :D

Other things that it will do is sending an e-mail to the user, a PM and also post in the thread that it has been approved, though that was a hurdle I would face when I slammed into it >_>

Thanks for replying!

PirateTinman
02-16-2013, 04:51 PM
Hi!
Still need some help with this project :D

Thanks!

Lynne
02-16-2013, 04:58 PM
It's not going to be some little link you can click. You will need to actually create a form that will change the users usergroup. And, if you want emails sent and such... well, it isn't some simple little 5 line form we can type out for you. You may want to post in the Requests for Paid Services forum if you are unable to do the coding yourself.

LifesGreatestGift
02-16-2013, 07:08 PM
im not sure what is involved with the regular vbulletin code to change a users group, but it shouldnt be too hard to do it with a button, and ajax.post call and then do all security permissions in a plugin to change the user.usergroup id value. could even have dropdown next to it with multiple groups to be able to move user to. jQuery/ajax and posting to misc.php and getting the POST variables there.

PirateTinman
02-16-2013, 10:46 PM
You may want to post in the Requests for Paid Services forum if you are unable to do the coding yourself.

Yeah might want to do that, I don't really know what the market price for things are though.