简体   繁体   English

自定义文件中的Joomla登录模块

[英]Joomla login module in custom file

We have Joomla all setup and running, however the login module is not where we want it. 我们已经安装并运行了Joomla,但是登录模块不在我们想要的位置。 The theme we are using had a built in "style panel", something that slides in and out on the right hand side of the page. 我们使用的主题有一个内置的“样式面板”,它可以在页面的右侧滑动进出。 We used this to display some user data, however it is not actually a defined position in the gantry framework. 我们用它来显示一些用户数据,但是实际上它并不是龙门框架中定义的位置。

Therefore, we are unable to assign the login module to this area... Does anyone know how to maybe call the elements from the module so they will display where we want it too and have the same functionality? 因此,我们无法将登录模块分配给该区域...是否有人知道如何从模块中调用元素,以便它们也可以在我们需要的位置显示并具有相同的功能?

EDIT: http://demo.rockettheme.com/?template=voxel 编辑: http//demo.rockettheme.com/? template = voxel

The panel on the left side. 左侧面板。 We have editied that (php file) to display some info we want, however we'd also like the login box there. 我们已经编辑了该文件(php文件)以显示我们想要的一些信息,但是我们也希望在那里有一个登录框。

You will need to iclude the files from the login module folder, therefore the following: 您将需要从登录模块文件夹中隐藏文件,因此需要执行以下操作:

include (JURI::root() . "modules/mod_login/mod_login.php");

include (JURI::root() . "modules/mod_login/helper.php");

include (JURI::root() . "modules/mod_login/tmpl/default.php");

Once you have done this, let me know if it works and if not, I will update my answer accordingly. 完成此操作后,请告诉我它是否有效,如果无效,我将相应地更新我的答案。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM