Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.7 > vBulletin 3.7 Add-ons

Reply
 
Thread Tools
modXvBin - modX CMS and vBulletin integration script Details »»
modXvBin - modX CMS and vBulletin integration script
Version: 1.00, by resurepus resurepus is offline
Developer Last Online: Apr 2014 Show Printable Version Email this Page

Category: Integration with vBulletin - Version: 3.7.0 Rating:
Released: 06-10-2008 Last Update: 09-09-2008 Installs: 15
Uses Plugins Template Edits Auto-Templates
 
No support by the author.

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".

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 06-11-2008, 07:29 PM
M-Tuning's Avatar
M-Tuning M-Tuning is offline
 
Join Date: Jul 2005
Location: Winschoten (NL)
Posts: 275
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice, will see if I can use it.
Reply With Quote
  #3  
Old 06-11-2008, 08:08 PM
resurepus resurepus is offline
 
Join Date: Dec 2004
Location: Toulouse, France
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Please, let us know if you experience any problems.
Reply With Quote
  #4  
Old 06-12-2008, 02:54 PM
M-Tuning's Avatar
M-Tuning M-Tuning is offline
 
Join Date: Jul 2005
Location: Winschoten (NL)
Posts: 275
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Works great, hope you will implement the 6 points you stated above soon :P
Reply With Quote
  #5  
Old 08-22-2008, 08:14 PM
timegate timegate is offline
 
Join Date: Jul 2008
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #6  
Old 08-23-2008, 01:24 AM
resurepus resurepus is offline
 
Join Date: Dec 2004
Location: Toulouse, France
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for your message, Priyesh! I will have someone from our tech staff look at your problem.

/sergey
Reply With Quote
  #7  
Old 09-02-2008, 08:15 PM
timegate timegate is offline
 
Join Date: Jul 2008
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by resurepus View Post
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.
Reply With Quote
  #8  
Old 09-10-2008, 07:06 AM
resurepus resurepus is offline
 
Join Date: Dec 2004
Location: Toulouse, France
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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:

Code:
$CURDIR = getcwd();
chdir($VBDIR);
require_once($VBDIR . "global.php");
chdir($CURDIR);
Reply With Quote
  #9  
Old 10-25-2008, 02:13 PM
Levint Levint is offline
 
Join Date: Sep 2008
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #10  
Old 10-25-2008, 04:19 PM
Levint Levint is offline
 
Join Date: Sep 2008
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
Reply

Thread Tools

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 08:33 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.08214 seconds
  • Memory Usage 2,294KB
  • Queries Executed 23 (?)
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)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)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_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
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete