Forums

Discuz users?

eldywan 11 Dec, 2012
Hi,
We have a Joomla website that uses Discuz as its forum.
We have several hundred users registered already, so we are using this as our user login instead of the Joomla system. Currently users don't login to Joomla. However, we have used Chronoforms for users to submit product registrations to us.

I now want to tie those registrations to the users in Discuz.

Is it possible to create a form that pulls out information from the Discuz database instead?
For example, when a user is logged into Discuz, I would like to have them be able to not only edit their profile, address, (which Discuz already allows) but also to see some custom fields like the products they already registered to us.
Thus when the user's id matches the id of a registered product, the page would then display that product and its attributes.

For Joomla, it appears that to get the current logged in user, you would use
$user =& JFactory::getUser(); as per your FAQ.
If I am able to determine what the Discuz equivalent would be to get $user, could I input that variable into Chronoforms and pull out my custom fields?
Or do you happen to already know how to determine the user id of a currently logged in Discuz user?

thanks!
GreyHead 11 Dec, 2012
Hi eldywan,

I don't know anything about Discuz I'm afraid :-(

Assuming that your Discuz database is shared with the Joomla! database / or accessible from Joomla! then what you describe sounds OK. You'd need to find out how the data is saved and how to identify the user though.

Bob
eldywan 13 Dec, 2012
Thank you for the fast reply. The Joomla install does share the same database with Discuz, so it will be able to pull the data.

I will pursue the user login info with Discuz. Once I find out how to get the Discuz user id of the logged in user, do I then define that as $user and follow the instructions here?
GreyHead 13 Dec, 2012
Hi eldywan,

Yes, it will be similar to that depending on exactly what Diskuz creates.

Bob
This topic is locked and no more replies can be posted.