vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Link to move user to usergroup? (https://vborg.vbsupport.ru/showthread.php?t=294978)

PirateTinman 02-10-2013 07:44 PM

Link to move user to usergroup?
 
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

Quote:

Originally Posted by Lynne (Post 2404640)
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.


All times are GMT. The time now is 11:42 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01156 seconds
  • Memory Usage 1,721KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete