-
AuthorPosts
-
jpcharbonneau Friend
jpcharbonneau
- Join date:
- September 2012
- Posts:
- 64
- Downloads:
- 0
- Uploads:
- 24
- Thanks:
- 32
- Thanked:
- 1 times in 1 posts
July 23, 2013 at 8:26 pm #189185Hi,
The created date for Employer is incorrect when we create a new employer with the option “Import Employer From Joomla User”…
Note// the same situation occur for “Publish date” element from the backend “Job Manager”…
When we registered from the frontend registration form and when we publish a new job from the frontend, created date (employer) and publish date (jobs) is ok.
Could you please help on that one,
Thanks in advance,
JP
HeR0 FriendHeR0
- Join date:
- August 2011
- Posts:
- 3626
- Downloads:
- 0
- Uploads:
- 61
- Thanks:
- 33
- Thanked:
- 588 times in 549 posts
July 24, 2013 at 4:14 am #499966Dear JP,
It is weird!!! Did you edit function function importUsers($userType) in the administrator/components/com_jajobboard/controllers/jaimportuser.php file ?
Pls do as follows:
Find
[PHP]$query = “INSERT INTO #__ja_profiles(user_id, approved) VALUES(‘{$user_id}’, ‘1’)”;[/PHP]change it to
[PHP]$query = “INSERT INTO #__ja_profiles(user_id, created_date, approved) VALUES(‘{$user_id}’, ‘{$int_join_date}’, ‘1’)”;[/PHP]
Hope this helps.
Regards
1 user says Thank You to HeR0 for this useful post
jpcharbonneau Friendjpcharbonneau
- Join date:
- September 2012
- Posts:
- 64
- Downloads:
- 0
- Uploads:
- 24
- Thanks:
- 32
- Thanked:
- 1 times in 1 posts
July 24, 2013 at 2:42 pm #500041Hi HeR0!
Thanks for your excellent support! I really appreciate.
I did’nt edit function importUsers($userType) before…
You we’re right on with your code modification suggestion! Employer Created date is fine now when we use the “Import Employer From Joomla User” functionality.
The only issue that still left in the “Publish date” element from the backend of the “Job Manager”. We we create a new job from that feature, the default publish date is still 1969-12-31 19:00:00
Do you have something to suggest?
Thanks in advance!
JP
HeR0 FriendHeR0
- Join date:
- August 2011
- Posts:
- 3626
- Downloads:
- 0
- Uploads:
- 61
- Thanks:
- 33
- Thanked:
- 588 times in 549 posts
July 25, 2013 at 2:29 am #500073Hello,
Please open file administrator/components/com_jajobboard/assets/rendfield.php
Find
[PHP]case “DATE_CAL”:
$dateFormat = $jbconfig[‘general’]->get(‘format_date’);
if(!$dateFormat) {
$dateFormat = “%Y-%m-%d %H:%M:%S”;
}
if($field->field_name == ‘created_date’){
if ($value) {
$value = date(str_replace(‘%’, ”, $dateFormat), strtotime($value));
}
$r = $value ;
}else{
$value = date(“Y-m-d H:i:s”, strtotime($value));
$r = JHTML::_(‘calendar’, $value, $field->field_name, $field->field_name, “%Y-%m-%d %H:%M:%S”, array(‘class’ => isset($field->field_class) ? $field->field_class : “inputbox”, ‘size’ => ’25’, ‘maxlength’ => ’19’, $field->eventmouse => $field->functionjs));
}
break;[/PHP]
and try to change it to
[PHP]case “DATE_CAL”:
$dateFormat = $jbconfig[‘general’]->get(‘format_date’);
if(!$dateFormat) {
$dateFormat = “%Y-%m-%d %H:%M:%S”;
}
if($field->field_name == ‘created_date’){
if ($value) {
$value = date(str_replace(‘%’, ”, $dateFormat), strtotime($value));
}
$r = $value ;
}else{
$value = $value ? $value : date(“Y-m-d H:i:s”);
$value = date(“Y-m-d H:i:s”, strtotime($value));
$r = JHTML::_(‘calendar’, $value, $field->field_name, $field->field_name, “%Y-%m-%d %H:%M:%S”, array(‘class’ => isset($field->field_class) ? $field->field_class : “inputbox”, ‘size’ => ’25’, ‘maxlength’ => ’19’, $field->eventmouse => $field->functionjs));
}
break;[/PHP]
Hope this helps.1 user says Thank You to HeR0 for this useful post
jpcharbonneau Friendjpcharbonneau
- Join date:
- September 2012
- Posts:
- 64
- Downloads:
- 0
- Uploads:
- 24
- Thanks:
- 32
- Thanked:
- 1 times in 1 posts
July 26, 2013 at 2:55 pm #500246Hi HeR0!
You we’re right on! It works like a charm now!
Many thanks!!!
Best,
JP
-
AuthorPosts
This topic contains 5 replies, has 2 voices, and was last updated by jpcharbonneau 11 years, 4 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum