vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   Choose language on registration (https://vborg.vbsupport.ru/showthread.php?t=241062)

Dzi13 04-23-2010 07:45 AM

Choose language on registration
 
Hi,

I have forum with two supported languages. I would like to offer users possibility to choose language in registration. Is there any mod for this or can you give me few hints how to do this.

Regards

Bluefin221 11-11-2012 06:29 PM

I'm also looking for this, has anyone did this before or seen anything like this before.

Manoel J?nior 11-11-2012 08:05 PM

Quote:

Originally Posted by Bluefin221 (Post 2380339)
I'm also looking for this, has anyone did this before or seen anything like this before.

Me too

Simon Lloyd 11-11-2012 09:02 PM

you'd have to add another profile field that is required on registration then users who have checked the field get to see that language.

Manoel J?nior 11-11-2012 09:44 PM

Quote:

Originally Posted by Simon Lloyd (Post 2380365)
you'd have to add another profile field that is required on registration then users who have checked the field get to see that language.

How to Simon? How to checked field?

Simon Lloyd 11-12-2012 12:00 AM

Add a required on registration field to the user profile using admincp>user profile fields>add new user profile field.

In a plugin add something like (not tested)
PHP Code:

if ($this->registry->userinfo['fieldx']=='Yes'
{
$vbulletin->db->query_write(UPDATE " .TABLE_PREFIX."user SET usergroupid 'XX',
WHERE " .TABLE_PREFIX."user.userid $this->registry->userinfo['userid']);


replace filedx with the new field number like field8, replace XX with the usergroup that they are getting moved to.

Or you can follow something like this https://vborg.vbsupport.ru/showthread.php?t=251670, seriously, just use the serach function here and you'll find lots :)


All times are GMT. The time now is 02:35 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.01130 seconds
  • Memory Usage 1,724KB
  • 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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