Popular questions for this item

How to change address info to date info in home list?

Open EventsListAdapter.java inside eventsdetailsmap package in the Android studio project. Replace line 69 from
subtitle.setText(values.get(position).getBrief_description().trim());
to
subtitle.setText(EventDateUtils.getPrettyString(values.get(position)));
Remember to import EventDateUtils class.

How to change address info to date info in map view?

Open MapFragment.java inside eventsdetailsmap package in the Android studio project. Replace line 163 from
.snippet(events.get(i).getAddress().trim()));
to
.snippet(EventDateUtils.getPrettyString(events.get(i)));
Remember to import EventDateUtils class.

How to set time step from 60 minutes to 30 minutes in the admin panel?

Open create_poi.php and edit_poi.php in the views/pois admin panel folder. Replace lines 108-109 from:
$('#start_date_time').datetimepicker();
$('#end_date_time').datetimepicker();
to
$('#start_date_time').datetimepicker({step: 30});
$('#end_date_time').datetimepicker({step: 30});

There is an “auto-unpublish” feature for expired events?

No, there is not auto-unpublishing option. We suggest to edit models/Pois_model.php and controllers/Pois.php to return to app only not-expired events. So, open models/Pois.php and add this method
public function published_not_expired_pois()
    {
        return $this->db->query('SELECT * FROM `pois` WHERE `status` = 2 AND `end_date_time` > NOW() ORDER BY `title` ASC');
    }
After this, edit the controllers/pois.php file and replace the index_son method (line 49) to
function index_json()
    {
        $this->data['data']['events'] = $this->pois_model->published_not_expired_pois()->result();

        $this->_json_out('json/api', $this->data);
    }

Show more

by
by
by
by
by
by