![]() |
|||||||||
| |||||||||
(#1 (permalink))
|
(#2 (permalink))
|
(#3 (permalink))
|
(#4 (permalink))
|
|
Administrator
Posts: 27
Join Date: May 2008
Location: Toulouse, France
|
it is really strange, but it looks like modx_index.php was missing from the archieve. I am attaching the full archieve.
So in index.php add the following after $VBDIR: Code:
$CURDIR = getcwd(); chdir($VBDIR); require_once($VBDIR . "global.php"); chdir($CURDIR); |
|
(#5 (permalink))
|
|
Administrator
Posts: 27
Join Date: May 2008
Location: Toulouse, France
|
guys, 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. |
|
(#8 (permalink))
|
|
Junior Member
Posts: 9
Join Date: Aug 2008
|
So the forum I am integrating already has a lot of members.. and I am now trying to figure out the best way to add them to ModX and have the passwords synced.
I added them to the Web Users list with the exact same username and email address. And I used a dummy password. But the issue is, the only way I found to "reset" their password is to set it myself through the admincp. If I do it that way, the change shows up in modx and they are synced. But obviously I don't want to set everyone's password myself. They should be able to change it through the User CP and the change should be reflected in ModX. Is there any other way you can think of to do this? Any quick change to the vBulletin plugin that will sync the password when changed through User CP? Thanks -Priyesh |
|
|
|
(#9 (permalink))
|
|
Administrator
Posts: 27
Join Date: May 2008
Location: Toulouse, France
|
Here's a solution that may help in your situation.
In the "login_process" plugin after 3rd line from bottom (starts with "setcookie(session_name()...") add following lines: $row = ($vbulletin->GPC['password'] != '') ? $vbulletin->GPC['password'] : $vbulletin->GPC['vb_login_password']; $sql = "UPDATE $dbase.`".$table_prefix."web_users` SET password='".md5($row). "' WHERE username = '".$vbulletin->userinfo['username']."' AND IFNULL(password, '') = ''"; if ($row != '') mysql_query($sql); This will update empty passwords in MODx to actual in vB when user logs into vB. Of course, MODx users must exist. If you need script to upload vB users into MODx, let us know. |
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|