- Posts: 12282
- Thank you received: 2534
Kunena 7.0.4 Released
The Kunena team has announce the arrival of Kunena 7.0.4 [K 7.0.4] in stable which is now available for download as a native Joomla extension for J! 5.4.x/6.0.x. This version addresses most of the issues that were discovered in K 6.2 / K 6.3 / K 6.4 and issues discovered during the last development stages of K 7.0
Topics must relate to a currently supported version of Kunena. If you are unsure what is the current supported version of Kunena, please go to the
download
page.
If you are having problems then, for your own benefit, it would save us all a lot of time if you would kindly post your configuration report when you ask for help from this forum. If you do not post your configuration report we will not ask you for it but you will probably not get your problem solved, either.
If you are having problems then, for your own benefit, it would save us all a lot of time if you would kindly post your configuration report when you ask for help from this forum. If you do not post your configuration report we will not ask you for it but you will probably not get your problem solved, either.
Question How to disable some of the social tabs on user edit profile?
8 years 6 months ago #196759
by rich
Important! Always create a backup before you make any changes to your website!
Replied by rich on topic How to disable some of the social tabs on user edit profile?
I'm sorry, but I don't know what you mean. In "/components/com_kunena/controller/user/edit/profile/display.php" you can disable the options to fill the fields. As you can see, here is only Facebook and Twitter allowed.
In "components/com_kunena/template/crypsis/layouts/user/item/social/default.php" you can disable already existing social icons.
In "components/com_kunena/template/crypsis/layouts/user/item/social/default.php" you can disable already existing social icons.
Important! Always create a backup before you make any changes to your website!
Please Log in or Create an account to join the conversation.
- lusidjudjeto
-
Topic Author
- Offline
- New Member
-
Less
More
- Posts: 6
- Thank you received: 0
8 years 6 months ago #196761
by lusidjudjeto
Replied by lusidjudjeto on topic How to disable some of the social tabs on user edit profile?
Thats what I exactly need is on your picture - to have only facebook and twitter.
I open "/components/com_kunena/controller/user/edit/profile/display.php" and erase the other social tabs as I show you on my pic then clear cache but that do not delete the social tabs in profile information for me. I will look around to see what i amd going wrong.Thank you anyway
I open "/components/com_kunena/controller/user/edit/profile/display.php" and erase the other social tabs as I show you on my pic then clear cache but that do not delete the social tabs in profile information for me. I will look around to see what i amd going wrong.Thank you anyway
Please Log in or Create an account to join the conversation.
8 years 6 months ago - 8 years 6 months ago #196762
by rich
Kunena is cached in
/cache
/media/kunena/cache
If you have enabled css optimize, it is possible, that optimized css files are cached either in your Joomla template or optimize tool. Or maybe you need also empty the browser cache.
I've added the display.php as zip file, so you can compare.
Important! Always create a backup before you make any changes to your website!
Replied by rich on topic How to disable some of the social tabs on user edit profile?
The change on your image is ok.I will look around to see what i amd going wrong.
Kunena is cached in
/cache
/media/kunena/cache
If you have enabled css optimize, it is possible, that optimized css files are cached either in your Joomla template or optimize tool. Or maybe you need also empty the browser cache.
I've added the display.php as zip file, so you can compare.
Important! Always create a backup before you make any changes to your website!
Last edit: 8 years 6 months ago by rich.
Please Log in or Create an account to join the conversation.
Less
More
- Posts: 973
- Thank you received: 153
7 years 8 months ago #204110
by Pinkeltje
Replied by Pinkeltje on topic How to disable some of the social tabs on user edit profile?
This has apparently changed in Kunena 5.1.3. File is different. Any idea on how to solve this now?
/components/com_kunena/controller/user/edit/profile/default.php
/components/com_kunena/controller/user/edit/profile/default.php
Code:
<?php
/**
* Kunena Component
* @package Kunena.Site
* @subpackage Controller.User
*
* @copyright Copyright (C) 2008 - 2018 Kunena Team. All rights reserved.
* @license https://www.gnu.org/copyleft/gpl.html GNU/GPL
* @link https://www.kunena.org
**/
defined('_JEXEC') or die;
use Joomla\CMS\Factory;
use Joomla\CMS\HTML\HTMLHelper;
use Joomla\CMS\Language\Text;
/**
* Class ComponentKunenaControllerUserEditProfileDisplay
*
* @since K4.0
*/
class ComponentKunenaControllerUserEditProfileDisplay extends ComponentKunenaControllerUserEditDisplay
{
/**
* @var string
* @since Kunena
*/
protected $name = 'User/Edit/Profile';
/**
* Prepare profile form items.
*
* @return void
* @throws Exception
* @throws null
* @since Kunena
*/
protected function before()
{
parent::before();
$bd = $this->profile->birthdate ? explode("-", $this->profile->birthdate) : array();
if (count($bd) == 3)
{
$this->birthdate["year"] = $bd[0];
$this->birthdate["month"] = $bd[1];
$this->birthdate["day"] = $bd[2];
}
$this->genders[] = HTMLHelper::_('select.option', '0', Text::_('COM_KUNENA_MYPROFILE_GENDER_UNKNOWN'));
$this->genders[] = HTMLHelper::_('select.option', '1', Text::_('COM_KUNENA_MYPROFILE_GENDER_MALE'));
$this->genders[] = HTMLHelper::_('select.option', '2', Text::_('COM_KUNENA_MYPROFILE_GENDER_FEMALE'));
$config = KunenaConfig::getInstance();
if ($config->social)
{
$this->social = $this->profile->socialButtons();
$this->social = Joomla\Utilities\ArrayHelper::toObject($this->social);
}
else
{
$this->social = null;
}
$this->headerText = Text::_('COM_KUNENA_PROFILE_EDIT_PROFILE_TITLE');
}
/**
* Prepare document.
*
* @return void
* @throws Exception
* @since Kunena
*/
protected function prepareDocument()
{
$app = Factory::getApplication();
$menu_item = $app->getMenu()->getActive();
if ($menu_item)
{
$params = $menu_item->params;
$params_title = $params->get('page_title');
$params_keywords = $params->get('menu-meta_keywords');
$params_description = $params->get('menu-meta_description');
if (!empty($params_title))
{
$title = $params->get('page_title');
$this->setTitle($title);
}
else
{
$this->setTitle($this->headerText);
}
if (!empty($params_keywords))
{
$keywords = $params->get('menu-meta_keywords');
$this->setKeywords($keywords);
}
else
{
$this->setKeywords($this->headerText);
}
if (!empty($params_description))
{
$description = $params->get('menu-meta_description');
$this->setDescription($description);
}
else
{
$this->setDescription($this->headerText);
}
}
}
}
Please Log in or Create an account to join the conversation.
7 years 8 months ago #204116
by Leen
With kind regards
Leen
Replied by Leen on topic How to disable some of the social tabs on user edit profile?
Hey,
If I am right, it is now in you
joomlamap \ libraries \ kunena \ user \ user.php
to adjust
If I am right, it is now in you
joomlamap \ libraries \ kunena \ user \ user.php
to adjust
With kind regards
Leen
Please Log in or Create an account to join the conversation.
Time to create page: 0.252 seconds