Any idea on how to remove the stickies from the list?
I was able to do this by modifying the "default.php" file in the Latest Discussions Prime extension directory. I added the following three pieces of code:
First, beneath the other dictionary entries near the top of the file:
$Context->Dictionary['LatestDiscussionsNotIncludeSticky'] = 'Don\'t include Stickied discussions';
Second, just beneath the block of code that starts "if ($D->Context->Session->User->Preference('LatestDiscussionsOnlyShowMine'))":
Comments
I was able to do this by modifying the "default.php" file in the Latest Discussions Prime extension directory. I added the following three pieces of code:
- First, beneath the other dictionary entries near the top of the file:
- Second, just beneath the block of code that starts "if ($D->Context->Session->User->Preference('LatestDiscussionsOnlyShowMine'))":
- Finally, in the block of code that calls the "Addpreferences":
This completely removes sticky discussions from the panel list.$Context->Dictionary['LatestDiscussionsNotIncludeSticky'] = 'Don\'t include Stickied discussions';
if ($D->Context->Session->User->Preference('LatestDiscussionsNotIncludeSticky')) {
$s->AddJoin('Discussion', 'di', 'DiscussionID', 't', 'DiscussionID', 'left join');
$s->AddWhere('di', 'Sticky', '', '1', '<>');
}
$PreferencesForm->AddPreference('LatestDiscussionsPrefs', 'LatestDiscussionsNotIncludeSticky', 'LatestDiscussionsNotIncludeSticky', 0);
(NOTE: I'm still looking for a good way for this list to update automatically on a regular basis using AJAX. Any help appreciated.)