的Joomla统一为论坛的登录和定制PHP分会场 [英] Joomla unified logins for forum and a custom made php sub-site
问题描述
我建设与Joomla一个网站,一个论坛,应该存在除其他事项。但我也打算开发一个定制的功能(类似日记的)与PHP插件(它确实有效,例如用JUMI)。问题是,我想没有人会明白,如果这个论坛,这个子网站将已经分居登录。我会使用现有的论坛认证为我的code还可以,但我不喜欢的想法,登录看起来像论坛,只有登录。我看到有桥梁存在(如的JFusion),但我应该选择一个特定的论坛推广,如果我打算使用一个特定的桥梁延伸?并桥梁容易定制的PHP code访问?
I'm building a site with Joomla where a forum should exist amongst other things. But also I plan to develop a custom made functionality (diary-like) with a php inserts (it really works, for example with jumi). The problem is that I suppose nobody will understand if the forum and this sub-site will have separated logins. I'd use an existing forum authentication for my code also, but I don't like the idea that the login will look like forum-only login. I see there are bridges exist (like JFusion), but should I choose one particular forum extension if I plan to use a particular bridge extension? And are bridges easy to access with custom-made php code?
推荐答案
如果这是一个Joomla 1.5网站,你将要创建一个用户
插件,将记录用户到您的自定义网站,因为他们登录到的Joomla。看看插件/用户/使用example.php
为例用户
插件。在 onLoginUser
函数会被别人成功登录到的Joomla之后。在这一点上,你就会有他们的所有在 $用户数据
数组的传递给函数的。您应该能够使用该信息来创建桥到外部的PHP应用程序。
If this is for a Joomla 1.5 website, you will want to create a user
plugin that will log the user into your custom site as they log into Joomla. Take a look at plugins/user/example.php
for an example user
plugin. The onLoginUser
function will be called just after someone successfully logs into Joomla. At this point, you'll have all of their data in the $user
array that's passed into the function. You should be able to use this information to create a bridge into your external PHP application.
这篇关于的Joomla统一为论坛的登录和定制PHP分会场的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!