Official support hours: from 9 AM — 6 PM Monday to Friday (GMT +2).
The support staff may not reply on technical inquiries on weekends; all requests will be answered necessarily during working days. Reply time: depending on the complexity of your issue, the answer can be provided between a few hours up to 48 hours. In the particular instances we will notify you if extra time will be required to solve the issue.

×
RND Kparadise 2.0 - update of travel template (14 Nov 2018)

Tourist and travel template Kparadise updated to version 2.0 and is compatible with Kunena 5.1.6. Do not miss this great template which has unique features: Images in Category and Masonry Grid.

Profile: birthday field not working

2 months 1 week ago - 2 months 1 week ago #860 by Astrid
Profile: birthday field not working was created by Astrid
Unable to change birthday. Found a workaround/solution by using parts of Crypsis file layouts/user/edit/profile/default.php an copying profile.js from crypsis to kglorious assets/js folder.
<?php
/**
 * Kunena Component
 * @package     Kunena.Template.Crypsis
 * @subpackage  Layout.User
 *
 * @copyright   (C) 2008 - 2017 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;
$this->addStyleSheet('assets/css/bootstrap.datepicker.css');
$this->addScript('assets/js/bootstrap.datepicker.js');
$this->addScript('assets/js/profile.js');
?>
<h3>
	<?php echo $this->headerText; ?>
</h3>

<div class="form-vertical well well-small kedit-settings-panel">

	<div class="control-group">
	
		<label class="control-label" for="personaltext">
			<?php echo JText::_('COM_KUNENA_MYPROFILE_PERSONALTEXT'); ?>
		</label>
		
		<div class="controls">
			<input class="form-control input-block-level" id="personaltext" type="text" maxlength="<?php echo (int) $this->config->maxpersotext; ?>"
				   name="personaltext" value="<?php echo $this->escape($this->profile->personalText); ?>" />
		</div>
	</div>
	
	<div class="control-group">
	
		<label class="control-label" for="birthdate">
			<?php echo JText::_('COM_KUNENA_MYPROFILE_BIRTHDATE'); ?>
		</label>
		
		<div class="controls">
			<div id="birthdate">
				<div class="input-append date">
					<input type="text" name="birthdate" data-date-format="mm/dd/yyyy"
					       value="<?php echo $this->profile->birthdate == '0001-01-01' ? Factory::getDate()->format('m/d/y') : KunenaDate::getInstance($this->profile->birthdate)->format('m/d/Y'); ?>"
					       class="hasTooltip" title="<?php echo Text::_('COM_KUNENA_MYPROFILE_BIRTHDATE_DESC') ?>">
					<span class="add-on"><?php echo KunenaIcons::grid();?></span>
				</div>
			</div>
		</div>
	</div>


	<div class="control-group">
	
		<label class="control-label" for="location">
			<?php echo JText::_('COM_KUNENA_MYPROFILE_LOCATION'); ?>
		</label>
		
		<div class="controls">
			<input class="form-control input-block-level" id="location" type="text" name="location"
				   value="<?php echo $this->escape($this->profile->location); ?>" />
		</div>
	</div>

	<div class="control-group">
	
		<label class="control-label" for="gender">
			<?php echo JText::_('COM_KUNENA_MYPROFILE_GENDER'); ?>
		</label>
		
		<div class="controls">
			<?php
			// Make the select list for the view type
			$gender[] = JHtml::_('select.option', 0, JText::_('COM_KUNENA_MYPROFILE_GENDER_UNKNOWN'));
			$gender[] = JHtml::_('select.option', 1, JText::_('COM_KUNENA_MYPROFILE_GENDER_MALE'));
			$gender[] = JHtml::_('select.option', 2, JText::_('COM_KUNENA_MYPROFILE_GENDER_FEMALE'));
			// Build the html select list
			echo JHtml::_(
 'select.genericlist', $gender, 'gender', 'class="inputbox form-control input-block-level" size="1"', 'value', 'text',
$this->escape($this->profile->gender), 'gender');
			?>
		</div>
	</div>
	
	<div class="control-group">
	
		<label class="control-label hasTooltip" title="<?php echo JText::_('COM_KUNENA_MYPROFILE_WEBSITE_NAME'). '::' . JText::_('COM_KUNENA_MYPROFILE_WEBSITE_NAME_DESC'); ?>" for="social-site">
			<?php echo JText::_('COM_KUNENA_MYPROFILE_WEBSITE_NAME'); ?>
		</label>
		
		<div class="controls">
			<input class="form-control input-block-level" id="social-site" type="text" name="websitename"
				   value="<?php echo $this->escape($this->profile->websitename); ?>" />
		</div>
		
	</div>

	<div class="control-group">
	
		<label class="control-label hasTooltip" for="social-url" title="<?php echo JText::_('COM_KUNENA_MYPROFILE_WEBSITE_URL') . '::' . JText::_('COM_KUNENA_MYPROFILE_WEBSITE_URL_DESC'); ?>" >
			<?php echo JText::_('COM_KUNENA_MYPROFILE_WEBSITE_URL'); ?>
		</label>
		
		<div class="controls">
			<input class="form-control input-block-level" id="social-url" type="url" name="websiteurl"
					   value="<?php echo $this->escape($this->profile->websiteurl); ?>" />
		</div>
	</div>


	<?php foreach ($this->social as $key => $social) : ?>

	<?php if ($social != 'qq') : ?>
	<?php $tooltip =  JText::_("COM_KUNENA_MYPROFILE_{$key}"). '::' . JText::_("COM_KUNENA_MYPROFILE_{$key}_DESC"); ?>
	<?php else: ?>
	<?php $tooltip =  ''; ?>
	<?php endif; ?>
	
	<div class="control-group">
	
		<label class="control-label hasTooltip" for="social-<?php echo $key; ?>" title="<?php echo $tooltip; ?>">
			<?php echo JText::_('COM_KUNENA_MYPROFILE_' . $key); ?>
		</label>
		
		<div class="controls">
			<input class="form-control input-block-level" id="social-<?php echo $key; ?>" type="text" name="<?php echo $key; ?>"
					   value="<?php echo $this->escape($this->profile->$key); ?>" />
		</div>
	</div>

<?php endforeach; ?>
	
	<div class="control-group">
	
		<label class="control-label hasTooltip" for="signature" title="<?php echo JText::_('COM_KUNENA_MYPROFILE_SIGNATURE'). '::' . JText::_('COM_KUNENA_MYPROFILE_SIGNATURE_DESC'); ?>">
			<?php echo JText::_('COM_KUNENA_MYPROFILE_SIGNATURE'); ?>
		</label>
		
		<div class="controls">
			<textarea class="input-xxlarge form-control input-block-level" maxlength="<?php echo (int) $this->config->maxsig; ?>"
					  name="signature" id="signature" rows="10"
					  cols="30"><?php echo $this->escape($this->profile->signature); ?></textarea>
		</div>
	</div>

</div>
The topic has been locked.
1 month 1 week ago #884 by Dmitry
Replied by Dmitry on topic Profile: birthday field not working
Yeap this was fixed in upcoming release of updated version.
The topic has been locked.
4 weeks 2 days ago #898 by Astrid
Replied by Astrid on topic Profile: birthday field not working
Solved with template update. Thanx!
The topic has been locked.
Moderators: Eugene S.