Support Forum
Hey,
it worked so far; splendid! But - just to get on your nerves right away (again ): Would it be possible to do the whole things by group_id? So - sorting a complete forum group by topic_name ASC? I have a feeling that it would not, but i ask in the hope of one of your magic tricks - it's very likely you know something i don't.
We don't actually expose the group_id and have never been asked for it but it seems to me that it somewhat remiss not to do so and we can do basically free of charge.
So two choices.. you can either build a compound IF statement to cover all of the forum IDs in the target group - or - I can give you a small core code edit to add group_id into the $sfvars array and I can make sure that the change will make it into the next SP release.
YELLOW
SWORDFISH
|
Ok - well this following change has already been committed into core code so will be in the next SP update. The core file to edit is
/simple-press/sp-startup/forum/sp-forum-support-functions.php
The function you need to find is sp_populate_support_vars() around line 137
A few lines into that function you will find the line of code:
$sfvars['forumid'] = $record->forum_id;
Below this simply add:
$sfvars['groupid'] = $record->group_id;
Finally, in your SP theme functions file in the small sort routine, change the $sfvars['forumid'] to $sfvars['groupid'] along with the appropriate Group record number.
YELLOW
SWORDFISH
|
1 Guest(s)