如何编辑“编辑个人资料并查看个人资料"页面(Joomla 2.5) [英] How to edit Edit Profile And View Profile page (Joomla 2.5)

查看:210
本文介绍了如何编辑“编辑个人资料并查看个人资料"页面(Joomla 2.5)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经使用Joomla 2.5创建了Web应用程序.

I have created web-application using Joomla 2.5.

因为我使用了Joomla用户管理.我将菜单保留为查看个人资料"编辑配置文件(菜单项类型为用户管理器»用户配置文件).问题是,当我单击查看配置文件"时,也会得到不需要的数据,如下所示.

In that I have used Joomla user management. I have kept menu as View Profile & Edit Profile (Menu Item Type as Users Manager » User Profile). The problem is when I click on View Profile, I get un-wanted data also as shown below.

Basic Settings

Editor: Editor - JCE
Time zone: No Information Entered
Frontend language: No Information Entered
Backend Template Style: No Information Entered
Backend language: No Information Entered
Help Site: No Information Entered

所以我想要的是编辑此页面,并仅显示我想要的内容.知道我需要执行哪些步骤才能对其进行编辑吗?

so what I want is edit this page and show only what I wanted. Any idea what steps I need to follow to edit the same?

在遵循Lodder回答后,我可以删除基本设置.现在在页面上我有

After following Lodder answer I am able to remove Basic settings. Now on page I have

Profile

Name:: dummy name
Username:: id
Registered Date: Sunday, 07 October 2012
Last visited date: Tuesday, 09 October 2012

但是我想要的是

Profile

Name:: dummy name
Username:: id
Email Id :: dummy@dummy.com
Phone :: 12345678

推荐答案

请遵循以下简单步骤:

  1. 转到Joomla后端
  2. 转到用户管理器
  3. 打开参数"窗口
  4. 将前端用户参数"设置为隐藏"

更新:

要用电子邮件和电话替换最后两个字段,我首先建议您执行模板替代,这样您就不会编辑任何核心的Joomla文件. 您要覆盖的内容如下:

To replace the last 2 fields with e-mail and phone, I firstly recommend you do a template override so that you are not editing any core Joomla files. What you want to be overriding is the following:

root/components/com_users/views/profile/tmpl/default_core.php

一旦您覆盖了此文件,请打开它并从第31行开始,您将看到以下代码:

Once you have overridden this file, open it and starting on line 31, you will see the following code:

<dt>
    <?php echo JText::_('COM_USERS_PROFILE_REGISTERED_DATE_LABEL'); ?>
</dt>
<dd>
    <?php echo JHtml::_('date', $this->data->registerDate); ?>
</dd>

需要替换为:

<dt>
    <?php echo "E-mail"; ?> 
    //or you can make this language based. Up to you.
</dt>
<dd>
    <?php $user = JFactory::getUser();
          echo $user->email; ?>
</dd>

其他字段也一样,我认为这取决于您如何创建它:

The same applies for the other field which I assume will be something along the lines of this, depending on how you created it:

<dt>
     <?php echo "Phone"; ?> 
     //or you can make this language based. Up to you.
</dt>
<dd>
     <?php $user = JFactory::getUser();
           echo $user->phone; ?>
</dd>

这篇关于如何编辑“编辑个人资料并查看个人资料"页面(Joomla 2.5)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆