1. jesper-skelgaard
  2. Bug Report
  3. Wednesday, October 12 2016, 03:43 PM
Profile edit view:
1. You add a file to a core component: Why do you not add a view to com_jsn?
/public_html/templates/ufds/html/com_users/profile/easyprofile.php

2. Now you have added a file to a core component - please check for a theme override:

$app = JFactory::getApplication();
$template = JPATH_SITE . '/templates/' . $app->getTemplate() . '/html/com_users/profile/edit.php';

if( JFile::exists($template) ) {
include( $template );
} else {
include( JPATH_SITE . '/components/com_users/views/profile/tmpl/edit.php');
}
admin Accepted Answer
Admin
Hi,
Why do you not add a view to com_jsn?

Easy Profile extends Joomla user management (not replace), registration and edit profiles pages are the same of Joomla with many improvements.
When you go to edit profile or registration page you go to com_users and not com_jsn. This is a best way to benefit of all Joomla users plugin available for Joomla.

This file is useful to REMOVE template override of com_users. why remove overrides? because our tabs and condition are calibrated for default Joomla output.
Examples:
- when a condition hide some field, it hide container with class ".control-group". but if template override change this class then condition will not works
- tab are generated by a javascript, this code split HTML fieldset and use HTML legend as title, but if template override change this HTML tag with a DIV then tabs will not works

Do you need to use com_users template override? No problem, you can disable function "Skip Template Overrides" from Easy Profile options and file "easyprofile.php" will be ignored.
  1. more than a month ago
  2. Bug Report
  3. # 1
  • Page :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.