Okay… the first thing I noticed were the amount of errors that were thrown when I installed the plugin.
What version of WP is it rated to support? What version of WP do you currently have installed?
In order to show forum topics alphabetically, we need to adjust the simple-press/forum/content/classes/sp-forum-view-class.php
file.
In that file, around line #297… you will see this snippet:
if ($setSort XOR $reverse) {
$ORDER = 'topic_pinned DESC, '.$COLUMN.' DESC';
} else {
$ORDER = 'topic_pinned DESC, '.$COLUMN.' ASC';
}
Immediately, after that… on a new line… let’s add the following:
// OVER-RIDE ORDER TO ALLOW ALPHABETICAL
$ORDER = 'topic_name ASC';
Final code should look like so:
if ($setSort XOR $reverse) {
$ORDER = 'topic_pinned DESC, '.$COLUMN.' DESC';
} else {
$ORDER = 'topic_pinned DESC, '.$COLUMN.' ASC';
}
// OVER-RIDE ORDER TO ALLOW ALPHABETICAL
$ORDER = 'topic_name ASC';
Basically, what we have done, is over-ridden the variable used to store the sort order… depending on the admin option.
Unfortunately, it only looks like the two options they provided for sorting are ascending and descending ONLY by forum topic date.
I don’t really have the time to dig through the code to find out about storing an option… so I just hard-coded it.
This means that no matter what the admin option setting for sorting… it will always display alphabetically (unless you remove the hard-coded snippet).
Save the file.. and re-upload to your server.
Voila… alphabetical sorting!!