i~Designs โพสต์เมื่อ 2008-10-12 14:08:35

Ucenter/Discuz+Joomla

ผมไม่ได้ทดลองนะครับ ผ่านไปเจอเลยเอามาฝากกัน
จากที่นี่http://blog.treeber.com/?p=377Comsenz application to extend one of the series: Ucenter / Discuz fully integrated with the depth of Joomla solutions: 2 version of the installation instructions

It was recently found to provide a drupal module for integration discuz.

And we joomla and discuz increasing demands for integration (that is, there are a few years ago mambochina head of the development of integrated components). The author recently started a project, incidentally, completed the integration of this function, nearly a month since a good test run.

Comsenz thanks to the introduction of Ucenter, very short code does not need to modify any of the existing core code. From today's 3:00 now, these simple procedures for sorting out is for the benefit of all-you Joo.


The main features:
1. Ucenter API use interface, the standardization of user, simple code;
2. With the support of all other Ucenter based on the application of interoperability, such as Discuz, Supesite, EcShop, and so on, through various types of operations can be automatically synchronized Ucenter to Joomla;
3. Joomla using common components provided by the CB plug-in features, user registration, log on, write-off, change its name change synchronized to close the whole station Ucenter application.
4. On this basis, a short news stations, system integration, synchronization and so on the head only 3-5 hours of coding work;
5. Joomla1.5 will improve support;
6. Permanently free of charge and will demand to produce more peripheral expansion.

To install a few simple steps:
1. Please install conventional Discuz (Ucenter version), Ucenter server-side (in the light of comsenz.com site ucenter installation configuration that), Joomla1.0.x + CB1.0.x components;
2. Ucenter and to ensure that the joomla user name, user id is not repeated, to ensure that ucenter / discuz current id is greater than the maximum possible joomla largest id;
3. Joomla modify configuration files in configuration.php, it included at the bottom of the ucenter client configuration parameters are as follows

define(’UC_CONNECT’, ‘mysql’);                // a way to connect UCenter
define(’UC_DBHOST’, ‘localhost’);            // UCenter database host
define(’UC_DBUSER’, ‘dbuser’);                // UCenter database user name
define(’UC_DBPW’, ‘dbpass’);                // UCenter database password
define(’UC_DBNAME’, ‘dbname’);                // UCenter name of the database
define(’UC_DBCHARSET’, ‘utf8′);                // UCenter database character set
define(’UC_DBTABLEPRE’, ‘dbname.uc_’);  // UCenter data table prefix
define(’UC_DBCONNECT’, ‘1′);                // UCenter persistent database connection
define(’UC_KEY’, ‘dsafasdfwer42141235fgvgd’); // communication with the key UCenter
define(’UC_API’, ‘http://zhonghuayixue.com/ucenter‘);   // UCenter  URL
define(’UC_CHARSET’, ‘utf-8′);                // UCenter character set
define(’UC_IP’, ‘58.30.16.108′);               // UCenter of IP
define(’UC_APPID’, 3);                    // current ID applications

4. Ucenter will install the package uc_client directory to extract joomla root;
5. Will file the following api / uc.php placed in the joomla root / api / uc.php, this version of the document to achieve a function, that is, Ucenter to Joomla synchronization;
6. CB in the cb plug-in components to install plug_cbucentertreeber.zip, the opening of the plug-in, plug-in version 2 functions to achieve, that is, simultaneously Joomla to Ucenter;
7. Revision / com_comprofiler / comprofiler.php:
– Find onAfterUserUpdate line, the original code for:
$_PLUGINS->trigger( ‘onAfterUserUpdate’, array($row, $rowExtras, true));
– Please read
$_PLUGINS->trigger( ‘onAfterUserUpdate’, array($row, $rowExtras, true, $_POST["password"]));

Modify / administrator / components / com_comprofiler / admin.comprofiler.php documents, pay attention to trigger a slightly different name (which is still in CB1.2RC2 in two different flip-flop):
$ _PLUGINS-> Trigger ( 'onAfterUpdateUser', array ($ row, $ rowExtras, true));
- Please read
$ _PLUGINS-> Trigger ( 'onAfterUpdateUser', array ($ row, $ rowExtras, true, $ _POST [ "password "]));

8. Test.Action in the application of operation
ucenter joomla discuz supesite
Through the adoption of registered users through the adoption of
Users log in through through through through!! New registered users, to be the first forum supesite activated before they can log in (1)
Users through the write-off through the adoption of the adoption of
Profile changes did not pass through here, through the adoption of ucenter can change the email, but did not pass the test (Note 2)
Users did not pass through the nickname change did not pass did not pass!! Relating to the user to change the nickname of the operation, only ucenter change in (Note 3)
User password change through the adoption of here, including through the adoption of changes to information at the same time to change the password to change your password or a separate (Note 4)
Delete users through the adoption of the adoption of* Note 1: If the installation supesite / xspace, be sure to prompt the user to re-activate the forum in the use of supesite. Another, the use of google chrome browser, log on, click a few cases of personal data may not exist, but the recurrence of such cases is very low, to be considered CB1.02 code
* Note 2: ucenter change in the Email applications are not the update, discuz in email and will not change but the change in the use of email will be able to feedback in ucenter. Brought to you be used with caution, pending an official explanation or analysis of the code.
* Note 3: But compared with other types of operations are also significantly delayed, as detailed in the official http://www.discuz.net/thread-1038512-1-1.html, has yet to be explained
* Note 4: comprofiler change the password information is divided into front and back, were tested successfully.

Sum (further reminder):
1. Joomla Please do not use the background information on the user's own change of function to change the username or password - it will not sync to update ucenter, to ensure that the use of CB components of the user or other management applications.
2. Shenxing please change the nickname, at least to ensure that changes in ucenter
3. Shenxing please change the email address, in an application to change
4. Can be used in the production of the current system, but at some point need for a permanent abolition of the ucenter articulated, it may appear as follows:
In the part of the pre-registered articulated and articulated after the unknown user data ucenter system is still not in sync to joomla (it seems that not a problem).

Ucenter look forward to the development team can improve in ucenter update email users after the notice from the application and provide updates Broadcasting in ucenter user nickname.

Any questions, please reply to this message next to the author or walk home message http://blog.treeber.net
If so, the revised version does not mind, after the release smoothly to a message issued to the author to pay respect for.
Six years experience in Web development, CMS development experience over the years, the ashes of three-class experienced players Joomla, the main interest in the current Joomla / drupal and the framework of research, based on the framework for the development of JS also concerned about the welcome the development of cooperation (for or interest in the business applications Can).

Please note that this program only Joomla1.0.x to install Community Builder 1.02/1.03 components.http://www.joomlagate.com/component/option,com_remository/Itemid,48/func,fileinfo/id,54/CB1.2RC to install Joomla 1.5.x version is still in testing.



Annex are as follows:
api.zip (updated on 2008.09.15 11:50)http://blog.treeber.com/api.zipplug_cbucentertreeber.zip (updated on 2008.09.15 11:50)http://blog.treeber.com/plug_cbucentertreeber.zip

[ แก้ไขล่าสุด i~Designs เมื่อ 2008-10-12 14:09 ]

buachompoox โพสต์เมื่อ 2008-10-12 15:12:23

ตอบกลับโพสของ หนึ่ง i~Designs

ไม่แปลไทยซักหน่อยรึ -*-
ปล.มีคนลองแล้วรึยังตัวนี้

acaz โพสต์เมื่อ 2008-10-12 15:14:42

ขาจูมล่าลองกันหน่อยสิๆๆๆ

thaizeal โพสต์เมื่อ 2008-10-14 19:53:38

เข้าไปดูแล้ว งงครับ:L

kikok โพสต์เมื่อ 2008-12-22 16:29:41

เคยทำแต่แมมโบ้ แต่ไม่กล้าลอง ปวดหมอง

adman โพสต์เมื่อ 2009-1-14 15:27:25

จะได้ไหม ครับ เนี่ย
ขอลองดู ละกันครับ
..ไม่ค่อยเก่ง อังกฤษ ด้วย...:victory:

phraisohn โพสต์เมื่อ 2009-2-6 14:04:10

อ่า มีคนลองยังอ่าคับ

hengworld โพสต์เมื่อ 2009-6-29 00:10:17

น่าลองๆๆมากกกกครับ

golf_eka โพสต์เมื่อ 2009-8-17 19:34:39

ขอภาษาไทยได้ไหมครับ

741147 โพสต์เมื่อ 2010-11-12 05:18:17

ตอนนี้ตี 5 แล้ว ยังหาวิธีเชื่อมต่อ discuz x กับ Joomla ไม่ได้เลยครับ พรุ่งนี้จะไปแข่งแล้ว แต่ไม่อยากทิ้ง discuz อะครับ T T เห็นทีต้องยอมโดยตัดคะแนนแล้ว
หน้า: [1]
ดูในรูปแบบกติ: Ucenter/Discuz+Joomla