Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
  #1  
Old 12-02-2016, 10:32 AM
Inna Inna is offline
 
Join Date: Jul 2016
Posts: 65
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default How to change Unregistered usergroup ID

Hi, I heard it's possible to change the Unregistered usergroup ID in vBulletin, and I've googled but I think I googled not well enough, so that I could not see any relevant results.
How to change Unregistered usergroup ID? Now and by default it is 1, but for example I want to change it to 10! Or even a primary one, like 6!
How to do it?
Reply With Quote
  #2  
Old 12-02-2016, 11:51 AM
Brandon Sheley's Avatar
Brandon Sheley Brandon Sheley is offline
 
Join Date: Mar 2005
Location: Google Kansas
Posts: 4,678
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Why would you want to change the usergroup ID?

I have a feeling it's going to be a large task, the ID are only internally. The admin is the only one who would know it's been changed.

http://www.vbulletin.com/forum/forum...ing-a-group-id
Reply With Quote
2 благодарности(ей) от:
Dragonsys, Inna
  #3  
Old 12-02-2016, 12:02 PM
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Location: Nottingham, UK
Posts: 23,748
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Inna View Post
Hi, I heard it's possible to change the Unregistered usergroup ID in vBulletin, and I've googled but I think I googled not well enough, so that I could not see any relevant results.
How to change Unregistered usergroup ID? Now and by default it is 1, but for example I want to change it to 10! Or even a primary one, like 6!
How to do it?
You dont, it would most likely break things, while serving no purpose at all.
Reply With Quote
2 благодарности(ей) от:
Brandon Sheley, Inna
  #4  
Old 12-02-2016, 01:20 PM
Inna Inna is offline
 
Join Date: Jul 2016
Posts: 65
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Brandon Sheley View Post
Why would you want to change the usergroup ID?

I have a feeling it's going to be a large task, the ID are only internally. The admin is the only one who would know it's been changed.

http://www.vbulletin.com/forum/forum...ing-a-group-id
Thanks for your help, and I've learned a new thing in vBulletin
Quote:
Originally Posted by Paul M View Post
You dont, it would most likely break things, while serving no purpose at all.
I'm going to test something and I changed the Unregistered ID in usergroup table to 12.
It seems my test worked well, not perfectly as I expected, but it's OK
Reply With Quote
  #5  
Old 12-02-2016, 03:39 PM
Brandon Sheley's Avatar
Brandon Sheley Brandon Sheley is offline
 
Join Date: Mar 2005
Location: Google Kansas
Posts: 4,678
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Inna View Post
Thanks for your help, and I've learned a new thing in vBulletin

I'm going to test something and I changed the Unregistered ID in usergroup table to 12.
It seems my test worked well, not perfectly as I expected, but it's OK
There is more than one table that calls the usergroup ID.. :erm:


FYI.. there are 85 matches for "usergroup" in the vbulletin schema, which you can find in your install folder..
You will break the site if you changed one usergroup ID as you said..
Reply With Quote
  #6  
Old 12-02-2016, 03:59 PM
Inna Inna is offline
 
Join Date: Jul 2016
Posts: 65
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Brandon Sheley View Post
There is more than one table that calls the usergroup ID.. :erm:


FYI.. there are 85 matches for "usergroup" in the vbulletin schema, which you can find in your install folder..
You will break the site if you changed one usergroup ID as you said..
Really? Fortunately I was testing it on my test-site, so there's nothing to be worry about.

Yeah, I figured out changing usergroup table didn't work, then I reverted changed back!
And now my test is done via another method
Reply With Quote
2 благодарности(ей) от:
Brandon Sheley, Dragonsys
  #7  
Old 12-02-2016, 09:32 PM
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Location: Nottingham, UK
Posts: 23,748
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Inna View Post
I'm going to test something and I changed the Unregistered ID in usergroup table to 12.
It seems my test worked well, not perfectly as I expected, but it's OK
Thats nice for you, there is nothing physically stopping you from changing any id value in any table, thats not the point. The point is some code is likely to rely on it being 1, so changing it will likely break something - and all for nothing, there is no gain in messing with internal ids, only pain, but if you think you know best, go for it.
Reply With Quote
  #8  
Old 12-02-2016, 09:53 PM
Inna Inna is offline
 
Join Date: Jul 2016
Posts: 65
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Paul M View Post
Thats nice for you, there is nothing physically stopping you from changing any id value in any table, thats not the point. The point is some code is likely to rely on it being 1, so changing it will likely break something - and all for nothing, there is no gain in messing with internal ids, only pain, but if you think you know best, go for it.
Yeah, I figured it out when I only changed guest id in usergroup tabel
Then I reverted any changes were done
Reply With Quote
Reply

Thread Tools
Display Modes

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 10:19 AM.


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.07100 seconds
  • Memory Usage 2,235KB
  • Queries Executed 13 (?)
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
  • (7)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
  • (6)post_thanks_box_bit
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (3)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_postinfo_query
  • fetch_postinfo
  • 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