-
AuthorPosts
-
conforturis Friend
conforturis
- Join date:
- April 2010
- Posts:
- 256
- Downloads:
- 0
- Uploads:
- 58
- Thanks:
- 59
- Thanked:
- 7 times in 1 posts
August 8, 2013 at 10:51 am #189565Hi,
How can I make changes in code for hide publish date field in ‘JA Jobboard: List of Jobs’ module using Theme Name -> Default??HeR0 FriendHeR0
- Join date:
- August 2011
- Posts:
- 3626
- Downloads:
- 0
- Uploads:
- 61
- Thanks:
- 33
- Thanked:
- 588 times in 549 posts
August 9, 2013 at 4:29 am #501710Hi Conforturis,
In the theme/default/item_jalist.php file. Find code line
[PHP]$width_column = ($field->column_width!=0)?”width=””.$field->column_width.”%””:””;[/PHP]
and add new code line above that line
[PHP]if($field->field_name == ‘effected_date’){
continue;
}[/PHP]
Hope that helps.1 user says Thank You to HeR0 for this useful post
conforturis Friendconforturis
- Join date:
- April 2010
- Posts:
- 256
- Downloads:
- 0
- Uploads:
- 58
- Thanks:
- 59
- Thanked:
- 7 times in 1 posts
August 9, 2013 at 4:16 pm #501785It did not help. Thus hide the date but the field name continues to appear.
HeR0 FriendHeR0
- Join date:
- August 2011
- Posts:
- 3626
- Downloads:
- 0
- Uploads:
- 61
- Thanks:
- 33
- Thanked:
- 588 times in 549 posts
August 12, 2013 at 8:16 am #501932Did you edit this file jalist_item.php , please note this file contains 4 themes of the component.
conforturis Friendconforturis
- Join date:
- April 2010
- Posts:
- 256
- Downloads:
- 0
- Uploads:
- 58
- Thanks:
- 59
- Thanked:
- 7 times in 1 posts
August 13, 2013 at 4:11 pm #502111Yes I made it in default theme. The date (Ex 2013-08-07 13:15:00) hidden but the field name ‘Publish Date’ keep to show.
HeR0 FriendHeR0
- Join date:
- August 2011
- Posts:
- 3626
- Downloads:
- 0
- Uploads:
- 61
- Thanks:
- 33
- Thanked:
- 588 times in 549 posts
August 14, 2013 at 2:57 am #502142Yes, sorry for my mistake on the the lable of field name. Please find the following code block on t hat file:
<?php for($i = 0, $n = count($fieldlist); $i < $n; $i++ ) {
$field = $fieldlist[$i];
$header = rendfieldlabel($field);?>
<td class="<?php if ($i==$n-1) echo 'last'; ?> sectiontableheader">
<?php echo $header; ?>
</td>
<?php
}?>Then change it to
<?php for($i = 0, $n = count($fieldlist); $i < $n; $i++ ) {
$field = $fieldlist[$i];
if($field->field_name == 'effected_date'){
continue;
}
$header = rendfieldlabel($field);?>
<td class="<?php if ($i==$n-1) echo 'last'; ?> sectiontableheader">
<?php echo $header; ?>
</td>
<?php
}?>Pls try and let me know if it helps.
1 user says Thank You to HeR0 for this useful post
conforturis Friendconforturis
- Join date:
- April 2010
- Posts:
- 256
- Downloads:
- 0
- Uploads:
- 58
- Thanks:
- 59
- Thanked:
- 7 times in 1 posts
August 19, 2013 at 10:26 am #502678Solved.
Thanks -
AuthorPosts
This topic contains 7 replies, has 2 voices, and was last updated by conforturis 11 years, 3 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum