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 Kcombo - Kunena game template (27 Nov 2017)

RND KCombo is a dark template and is best for game forums. It is also can be used in a lot of sites related to cinema, gaming, book forums and other.

Profile: birthday field not working

1 week 5 days ago - 1 week 4 days 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>