vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   only 1 Public usergroup, have code (think) (https://vborg.vbsupport.ru/showthread.php?t=95476)

FrozenCreations 09-01-2005 11:26 PM

only 1 Public usergroup, have code (think)
 
ok, i was taking a wiz, and i had an idea on how 2 get this code to work ;) verry easy!

all i need to know is, where do i put it?

PHP Code:

if (is_member_of($bbuserinfo25)) {
echo 
'Sorry, you are already part of a usergroup';
}
else {
Code 2 make user a part of a usergroup


would that work? and if not, can you suply what i missed ^^;

im guesing the code is somewhere in the options.php

Andreas 09-01-2005 11:58 PM

Try the attached Product XML and let me know if it does what you want.

FrozenCreations 09-02-2005 12:06 AM

no :( i could send requests still

( i looked in the product install box, and theres nothing )
( i am part of a public usergroup )

Andreas 09-02-2005 12:20 AM

Ah, your Groups are moderated ... I only thought of unmoderated Groups :)
Send requests for 2 or more Groups and check what happens if you accept them

FrozenCreations 09-02-2005 12:27 AM

ahhh, is it posible to make that not happen? so they cant send 2 requests? or what ever? like, they cant even attempt 2 be in 2 usergroups ^^;

umm, i can still join usergroups /; idk if its cause im an admin ^^;

Andreas 09-02-2005 12:40 AM

1 Attachment(s)
Shouldn't be possible, even if you are Admin.
Anyway, I changed it so it should only be possible to make 1 Request.

Boofo 09-02-2005 12:42 AM

I haven't messed with joining usergroups yet. Is this a good idea to have? Just curious. ;)

FrozenCreations 09-02-2005 12:48 AM

kirby, i love you (l) your awesome! like really, you go around all day, helping other people witht here problems... i really like that about you! if you opened a busness offering help, im shure youd get a ton of offeres!

same 4 you other mods, gj!

umm, im using it for clans ^^; im 2 lazzy 2 find a really good clan mod, although aj said he might be upgrading his ^^; i like it, it prevents users form joining more than 1 clan!

if there was an install button, id click it ^^;

rookiyong 10-31-2005 08:51 AM

Hi, I have tried this plugin, but my users are still able to join 2 groups (unmoderated) . Are there any additional changes needed?


All times are GMT. The time now is 11:49 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.01414 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_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)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