Because of the nature of downloading and uploading content with AnodyneXtras, it is not available on mobile devices. If you want to browse, search, and upload, please use a laptop or desktop computer.
You can also check out some of our other sites and services using the links below.
An Extension for Nova 2 that provides multiple methods for ordering mission posts. Day/Time, Date/Time, Stardate(decimal)/Time, and Post Numbering.
This extension provides multiple methods for ordering mission posts. Day/Time, Date/Time, Stardate(decimal)/Time, and Post Numbering. Also adds a Work Count function for missions.
While this extension is not a fork of chronological_mission_posts
it would not have been possible without it and Jon's other wonderful extensions.
This extension requires:
jquery
timepicker
parser_events
applications/extensions/nova_ext_ordered_mission_posts
.application/config/extensions.php
: - Be sure the jquery
and timepicker
lines appear before nova_ext_ordered_mission_posts
$config['extensions']['enabled'][] = 'nova_ext_ordered_mission_posts';
chronological_mission_posts
remove the $config['extensions']['enabled'][] = 'chronological_mission_posts';
line from application/config/extensions.php
_email
function to your application/controllers/write.php
file. This allows Post Numbers to be included in Post emails.Installation is now complete! If you previously used chronological_mission_posts
check below on how to enable support.
ALTER TABLE nova_posts ADD COLUMN nova_ext_ordered_post_day INTEGER NOT NULL DEFAULT 1;
ALTER TABLE nova_posts ADD COLUMN nova_ext_ordered_post_time VARCHAR(4) NOT NULL DEFAULT '0000';
ALTER TABLE nova_posts ADD COLUMN nova_ext_ordered_post_date VARCHAR(255) DEFAULT NULL;
ALTER TABLE nova_posts ADD COLUMN nova_ext_ordered_post_stardate VARCHAR(255) DEFAULT NULL;
ALTER TABLE nova_missions ADD COLUMN mission_ext_ordered_config_setting VARCHAR(255) DEFAULT NULL;
ALTER TABLE nova_missions ADD COLUMN mission_ext_ordered_post_numbering INTEGER NOT NULL DEFAULT 0;
ALTER TABLE nova_missions ADD COLUMN mission_ext_ordered_default_mission_date VARCHAR(255) DEFAULT NULL;
ALTER TABLE nova_missions ADD COLUMN mission_ext_ordered_default_stardate VARCHAR(255) DEFAULT NULL;
ALTER TABLE nova_missions ADD COLUMN mission_ext_ordered_legacy_mode INTEGER NOT NULL DEFAULT 0;
ALTER TABLE nova_missions ADD COLUMN mission_ext_ordered_is_new_record int(11) DEFAULT 0;
CREATE INDEX post_ordered_mission_post ON nova_posts (`nova_ext_ordered_post_day`,`nova_ext_ordered_post_date`,`nova_ext_ordered_post_stardate`,`nova_ext_ordered_post_time`)";
CREATE INDEX post_ordered_mission ON nova_missions (`mission_ext_ordered_config_setting`,`mission_ext_ordered_post_numbering`,`mission_ext_ordered_default_mission_date`,`mission_ext_ordered_default_stardate`,`mission_ext_ordered_legacy_mode`,`mission_ext_ordered_is_new_record`)";
applications/controllers/write.php
file to overwrite _email
function. This will allow the email subject to include Post numbers before the Post title. protected function _email($type, $data)
{
switch ($type)
{
case 'post':
if(($id = $this->input->post('mission', true)) !== false)
{
$query = $this->db->get_where('missions', array('mission_id' => $id));
$model = ($query->num_rows() > 0) ? $query->row() : false;
if(!empty($model) && $model->mission_ext_ordered_post_numbering==1)
{
$queryCount = $this->db->get_where('posts', array('post_mission' => $id,'post_status'=>'activated'));
$count = $queryCount->num_rows();
$title=$data['title'];
$data['title']="Post $count - $title";
}
}
parent::_email($type, $data);
break;
default:
parent::_email($type, $data);
break;
}
}
Installation is now complete! If you previously used chronological_mission_posts
check below on how to enable support.
The extension supports the following Timeline Configurations and will sort the posts chronologically unless Post Numbering is enabled.
chronological_mission_posts
Many games prefer to order posts by post number. This extension will auotmatically add the correct post number and sort posts by number rather than chronologically.
The majority of the labels for this extension can be modified in the admin control panel to fit the needs of your game.
This extension requires you to replace chronological_mission_posts
however you can enable support for existing missions if you used it previously.
chronological_mission_posts
you will see the message "chronological_mission_posts database columns detected. You may enable Legacy Mode for existing Missions."chronologocal_mission_posts
on existing missions.Your posts will now reference the values from chronological_mission_posts
If you encounter a bug or have a feature request, please report it on GitHub in the issue tracker here: https://github.com/reecesavage/nova-ext-ordered-mission-posts/issues
Copyright (c) 2021 Reece Savage.
This module is open-source software licensed under the MIT License. The full text of the license may be found in the LICENSE
file.