PDA

View Full Version : Integration with vBulletin - modXvBin - modX CMS and vBulletin integration script


resurepus
06-10-2008, 10:00 PM
BanzaiTokyo modXvBin 1.0

BanzaiTokyo modXVBin 1.0 is an integration script that synchronizes the users databases of modX and vBulletin. We've chosen vBulletin forum script as the core of the package. It has more developed tools to work with the users and is just a more advanced piece of software.

BanzaiTokyo modXvBin requires that the PHP files of both systems (modX and vBulletin) are located on the same server. As for the databases - they can be anywhere since the script looks up the information for the connections in the configuration files.

What has already been done:
1. When a user logs in one system he is automatically logged in in the other.
2. When a user is registered in one system he is automatically registered in the other. In fact the registration is done through vBulletin. The data for modX's database is taken from there.
3. When a user edits their password or email in the User Control Panel in vBulletin, the script automatically updates the parameters in modX.
4. The same happens when you change user's parameters from vBulletin Admin Control Panel.
5. vBulletin password reset works for both systems.

What has not been done yet:
1. Registration though the means of modX script (through registration form or creation of webuser in admin panel) doesn't add the user in vBulletin's database.
2. The user modifications in modX admin panel are not automatically transferred to the vBulletin database.
3. modX password reset does not reset passwords in vBulletin.
4. User removal from either modX or vBulletin database does not remove him from the other system.
6. The script will not affect the users registered in either of the systems before the installation of the script. If it is needed the users can be created manually in the other system and password reset.

Installation

These are istrtuctions for istallation of BanzaiTokyo modXVBin script version 1.0.

I. in vBulletin
1. Plugins & Products -> Manage Products -> Add/Import Product -> choose product-modixvbin.xml from the installation archive and install.
2. In the beginning we recommend to turn off GZIP HTML output in vBulletin Options -> Cookies and HTTP Header Options -> GZIP HTML Output. After install, test user login and registration. If everything works ok, you can turn it back on.
3. Languages & Phrases -> Phrase Manager -> Phrase Type: GLOBAL find phrase "modxpath" and set it to modX (see below).

II. In modX
1. Manager -> Resources -> Manage resources -> Plugins -> New plugin.
Plugin name - any name. Take "vBulletin" for instance.
Plugin code - insert the contents of modx_vblogin.php
Menu tab System Events: check OnWebLogin, OnWebLogout. Save.
2. In index.php anywhere (you can do it right after "<?php" insert the contents of modx_index.php
in $VBDIR put the path to vBulletin script (see below)

III. Setting the Paths
Paths have to be relative and end with "/"
Let's take BanzaiTokyo.com for example:
modX is installed in the root folder and vBulletin is located in the folder "forum". In this case:
1. In vBulletin: modxpath has to link to modX, e.g. une level higher. What we have to write is simply "../" Of course when you edit the phrase in "English (US) Translation" window you don't use brackets.
2. In modX the forum can be found one level below in the folder "forum". So, we'll just write: $VBDIR = "forum/";

To give you an example of how it is done if both scripts are installed on the same level, just in different directories, for example modX is in yoursite/modx and vBulletin in yoursite/vBulletin
1. In modxpath you put "../modx/"
2. $VBDIR = "../vb/";


The script is officially released and has been tested on http://BanzaiTokyo.com/forum
However we do not guarantee that it will not have any bugs errors and will not ruin your whole database and even your server In fact we do not guarantee anything at all. You agree to use this script "as is".

M-Tuning
06-11-2008, 07:29 PM
Nice, will see if I can use it.

resurepus
06-11-2008, 08:08 PM
Please, let us know if you experience any problems.

M-Tuning
06-12-2008, 02:54 PM
Works great, hope you will implement the 6 points you stated above soon :P

timegate
08-22-2008, 08:14 PM
I'm trying to use it on a website with the latest version of modx (0961p2) and latest vBulletin (3.7) and its not working with the given instructions.

Heres what I did:
- Created a modx plugin with the given code and set it to run at login/logout
- Added vBulletin plugin and enabled it and set modxpath to the right path (../modx-0961p2/)
- Put $VBDIR = "../forum/" right after <?php in index.php (thats the only line I added)

The error I get on login:

Fatal error: Call to a member function on a non-object in /home/immortal/public_html/modx-0961p2/manager/includes/document.parser.class.inc.php(745) : eval()'d code on line 11

Error I get on logout:

Fatal error: Call to a member function on a non-object in /home/immortal/public_html/forum/includes/functions_login.php on line 393

And vBulletin is not being automatically logged in.

I noticed the install.txt says something about a modx_index.php but I can't find this anywhere. Is there more to add to the index.php in the modx directory?

Any help would be greatly appreciated!
-Priyesh

resurepus
08-23-2008, 01:24 AM
Thanks for your message, Priyesh! I will have someone from our tech staff look at your problem.

/sergey

timegate
09-02-2008, 08:15 PM
Thanks for your message, Priyesh! I will have someone from our tech staff look at your problem.

/sergey
Any luck finding a solution to this? I am using vBulletin Version 3.7.2 actually.. and it seems the error is on the "clean_array_gpc" line of the snippet code (when logging in at least).

Thanks in advance! I am on a tight deadline to get this website done.

resurepus
09-10-2008, 07:06 AM
it looks like the original archive that I uploaded was missing modx_index.php I am uploading the correct version right now. So for everybody who downloads it from now everything should work fine. I am sorry for any disconvenience it may have caused.

for those of you who tried installing the script from the old archive, in index.php after $VBDIR line you should add these four:

$CURDIR = getcwd();
chdir($VBDIR);
require_once($VBDIR . "global.php");
chdir($CURDIR);

Levint
10-25-2008, 02:13 PM
First of all, great idea. I'd love to get it to work but I'm having a problem with the implementation. I get a blank page in modx when inserting the code into the modx index.php file. The code itself is added right after <?php as suggested. A quick test showed that it's the line that includes global.php which causes the error.

I'm running 'vBulletin® v3.7.3 Patch Level 1' and ModX 0.9.6.2

Any suggestions? I did exactly what was suggested in the installation instructions, and I added the updated version of the index.php code.

thx,

Levint

Levint
10-25-2008, 04:19 PM
I got rid of the blank page by reconfiguring Apache and working on the errors. Login still doesn't work, but I'm nearly there.

grtz,

Levint

coffee_bean
04-20-2009, 11:49 AM
This looks awesome. Any chance that vB 3.8 will be supported?

Also, what happens if a user checks "remember me" in vbulletin. Will they be automatically logged into both for that?

I will likely use this in the near future.

coffee_bean
05-14-2009, 11:11 PM
OK. I've installed it, but logging in doesn't appear to work. If I log in on the forums, I am not logged into the web user on MODx. Any ideas? There are no errors or information displayed.

Peter Ostry
02-05-2010, 03:52 PM
Does it make sense to install this modx integration in vBulletin 4?
We've set up a new site and if it does not work we are forced to go back to vBulletin 3.7 ...

resurepus
02-05-2010, 04:22 PM
Does it make sense to install this modx integration in vBulletin 4?
We've set up a new site and if it does not work we are forced to go back to vBulletin 3.7 ...

I don't think it works in vB4, but if you like we could do the necessary adjustments to the script to make it compatible with vB4.

Peter Ostry
02-05-2010, 05:25 PM
I don't think it works in vB4, but if you like we could do the necessary adjustments to the script to make it compatible with vB4.
Yes, this would be great. Please.
Do you do this with an offical release or on project basis or how do you/we handle it?

momon
03-08-2010, 06:07 AM
This is something I would be very much interested in as well. Integration of the latest modx version (evolution 1.0.2) and the latest vbulletin version.

resurepus
04-16-2010, 07:16 PM
the integration of latest versions of MODx and vBulletin is possible, but unfortunately we cannot provide it as a freeware product.