vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Adding / removing membergroupids (https://vborg.vbsupport.ru/showthread.php?t=161916)

BeatificFaith 11-04-2007 04:55 PM

Adding / removing membergroupids
 
I have a script that I would like to integrate with vbulletin as far as adding and removing a membergroup id when necessary. Is there a way to accomplish this? Should I go about it the way I would for a regular array or is there some other way?

Marco van Herwaarden 11-05-2007 06:20 AM

A bit difficult to answer if we don't know what "a script" is.

BeatificFaith 11-06-2007 02:40 PM

I apologize, it's a custom script on my site that I made, a membership area outside of the forum. I've just decided to use the array functions and array_filter to remove the memberships when they are no longer apart of that group.

Marco van Herwaarden 11-06-2007 02:44 PM

Still don't really get what you are trying to do? Use permissions in an external script?

BeatificFaith 11-07-2007 12:22 AM

Not permissions. When they join the membership area outside of the forum they are automatically added to a group on the forum that coincides with the outside area, and then when they are no longer a part of that membership, they are no longer a part of that group on the forum.

So no, not permissions. Just being a part of a usergroup by joining something outside of the forum.


All times are GMT. The time now is 09:16 AM.

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.00991 seconds
  • Memory Usage 1,708KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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