The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
merging members of two VBs
I have a bi-lingual website for which I have baught two licences of VB.
My problem is that I want users who register in one of the two forums, to be automatically in submitte to both. In other words, I want the two VB installations to use a single membership table. What are the files need to be modified. I have the latest VB version. |
#2
|
||||
|
||||
I would say it may be easier to use 1 vb for your site instead of trying to merge 2 vb databases.
I recall I give this solution before but basically it's how it works: Create 2 usergroups for each language. Set forum permissions so that each usergroup will access to the forums that is in its language. Then put a small link in the header named "Change Language" or smt. and create a one line hack which will change the usergroup of the user when clicked. So their languages and the boards they access changes either.. Just a thought.. |
#3
|
|||
|
|||
But I need not to change user permissions in each language version. I want all members to have the same privilages in both versions. But both versions will have different forums names and so.
|
#4
|
||||
|
||||
This was what I meant. Say you have 2 boards
a) Help (In English) b) Hilfe (In German) Configure the access permissions so that HELP group is visible to only usergroup 20 and Hilfe is visible to usergroup 21. Then create your link in the header and make it display the text "ENGLISH BOARD" if the visitor's usergroup is 21 and "DEUTCHE" if visitor's usergroup is 20. If a visitor from usergroup 20 visits your board he will only see the board HELP and he didnt even know you have another board named "Hilfe", (let alone its contents). He will also see a text in the neader "DEUTCHE" and if he can understand German, he can click it and to his ignorety the hack will change his usergroup to 21 on the background. Now he will see your board differently. Board HELP dissappears for him while a new forum HILFE appears. You can even apply different styles/colors/buttons etc. to different languages. So you would have 1 board but from the visitor's point of view they can think you have 2 seperate boards.. |
#5
|
||||
|
||||
That is clever...
How would you make a link that changes their usergroup? Satan |
#6
|
|||
|
|||
Sound interesting
Can you please give me the PHP code that changes the usergroup according to the language? Will the usergroup assigned to the user override his original usergroup (if he is a moderator for example)? |
#7
|
||||
|
||||
ok this is not tested but should work:
1- Edit template phpinclude and add this: PHP Code:
2- edit misc.php, find: PHP Code:
PHP Code:
3- Create a template named:language_changed its content: "Language Changed.. You are taken to the forum home" 4- Edit header template and put $change_lan to anywhere you like.. That's it.. And yes this option will only apply to usergroups E and D, not mods, admins etc. If you set your permissions correctly, they will see the entire board.. Make sure the general permissions of usergroups E and D are exactly same except forum access permissions. (Say if E is granted PM rights, either should D) There maybe a parse errors etc, since I didnt test it, but nothing we can't fix. Just holler if it does not work.. |
#8
|
||||
|
||||
It works well
Satan |
#9
|
||||
|
||||
This first one is of an English User Satan |
#10
|
||||
|
||||
This one is of the Re-direct Screen...
Satan |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|