vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   merging members of two VBs (https://vborg.vbsupport.ru/showthread.php?t=44309)

Chris M 10-06-2002 10:44 AM

1 Attachment(s)
This screenshot is of a German User...:)

Satan

Merjawy 10-07-2002 02:13 AM

Quote:

Originally posted by Logician
This was what I meant. Say you have 2 boards
a) Help (In English)
b) Hilfe (In German)
..


I have been doing just that for a while, I have a board with about 4 languages and I use different styles making each lang. style the default for the right section with its own buttons and stuff


has english, german, french and arabic

at first I did one set of animated buttons that flip from language to another , then I changed to using sperate folders for each style

theres still little things that ya have to share but no biggie

izz 10-07-2002 06:44 AM

but for this to work fine, the normal users must belong to one of the two groups, no?
If the user belong to a group like mods for example, he should not see the language switching link.

Logician 10-07-2002 07:03 AM

Quote:

Originally posted by izz
but for this to work fine, the normal users must belong to one of the two groups, no?

Yes the users must belong to one of the 2 groups. If you have problems about putting the users manually to the specific usergroups well another hack in register.php can handle this too. You can create 2 different register templates (in English and in German) and put a hidden form variable inside, then in register.php control this variable and put the user into the relevant usergroup. So users following the "English" registration page will be put into usergroup 20, while others 21 etc.

Quote:

If the user belong to a group like mods for example, he should not see the language switching link.
Yes he will not see it if you applied my code. The link will be visible to only 2 usergroups. Mods, Admins etc. will see all the boards in the forum if you didnt restrict their permissions.

izz 10-07-2002 07:12 AM

what about renaming the "registered" group to English (E in your example) from VB control pannel? Will this default all new regisrtants to the English group?

Logician 10-07-2002 07:26 AM

sure it will

izz 10-07-2002 07:38 AM

can you please justify step 4? We did not define a variable "change_lan", so what are you referring to? What is the exact code to put?

(sorry if the question sounds dummy, since I'm not a PHP guy)

Logician 10-07-2002 08:03 AM

Quote:

Originally posted by izz
can you please justify step 4? We did not define a variable "change_lan", so what are you referring to? What is the exact code to put?

Yes we did.. (In step 1). The variable will stand for the language switch link in the header. It will bear the value "English" if the user is from german usergroup, and German if the user is from the English usergroup. You'll see what it does better if you put it in your header and login as a user from usergroup E or D.

izz 10-07-2002 10:59 AM

:(
It sems a headache to me, it is not working.
I also need to worry about having two completely different style sets since the other language is a right-to-left.
It seems that having the two installations which use the same membership table is easier for perfect separation in styles and forums.
Did anybody try this out before?

Logician 10-07-2002 12:14 PM

Quote:

Originally posted by izz
:(
It sems a headache to me, it is not working.
I also need to worry about having two completely different style sets since the other language is a right-to-left.
It seems that having the two installations which use the same membership table is easier for perfect separation in styles and forums.
Did anybody try this out before?

If you gave up just because you couldnt make it run, well you dont need to. Give me the problems you had with exact details and I can help you run the hack.

If you didnt like the solution and this is why you dont apply it, it's your call anyway..

But if this is the case I want to remind you that your project will require much more hacking than my solution and there a lot of tackles to handle in your 2 forums/1 database method.

Just a few points you should be considering about your project:
1- You banned a user in one board, he is not banned in the other. You have to ban it there too. Same applies if you changed any info (usergroup, username, email, settings etc.) of the user in your Admin CP

2- If user forgets his email and uses lost password recovery form, only his password in one board will change.

3- If user changes his email, only one email in one board will change.

4- If user changes any of the settings after registration, the setting will apply to one board.

There are many other issues you need to handle with way a lot of hacking on your project.. ;) In other words be ready to have much more headaches.. :knockedout:


All times are GMT. The time now is 01:45 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.01033 seconds
  • Memory Usage 1,740KB
  • 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
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete