Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 02-10-2013, 07:44 PM
PirateTinman PirateTinman is offline
 
Join Date: May 2009
Posts: 44
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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.
Reply With Quote
  #2  
Old 02-11-2013, 08:54 PM
PirateTinman PirateTinman is offline
 
Join Date: May 2009
Posts: 44
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #3  
Old 02-12-2013, 01:01 AM
LifesGreatestGift's Avatar
LifesGreatestGift LifesGreatestGift is offline
 
Join Date: Jul 2009
Location: Louisville, KY USA
Posts: 885
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?

Reply With Quote
Благодарность от:
PirateTinman
  #4  
Old 02-12-2013, 01:34 PM
PirateTinman PirateTinman is offline
 
Join Date: May 2009
Posts: 44
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well all of those things I know how to do

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

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!
Reply With Quote
  #5  
Old 02-16-2013, 04:51 PM
PirateTinman PirateTinman is offline
 
Join Date: May 2009
Posts: 44
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi!
Still need some help with this project

Thanks!
Reply With Quote
  #6  
Old 02-16-2013, 04:58 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #7  
Old 02-16-2013, 07:08 PM
LifesGreatestGift's Avatar
LifesGreatestGift LifesGreatestGift is offline
 
Join Date: Jul 2009
Location: Louisville, KY USA
Posts: 885
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #8  
Old 02-16-2013, 10:46 PM
PirateTinman PirateTinman is offline
 
Join Date: May 2009
Posts: 44
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
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.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 07:47 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05966 seconds
  • Memory Usage 2,229KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (8)post_thanks_box
  • (1)post_thanks_box_bit
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (8)post_thanks_postbit_info
  • (8)postbit
  • (8)postbit_onlinestatus
  • (8)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete