Doesn't work for me, I got this message:
Fatal error: Cannot redeclare latestdiscussions_addfilters() (previously declared in /home/.inkus/holidayp/holidaypad.net/community/extensions/DiscussionFilters/default.php:40) in /home/.inkus/holidayp/holidaypad.net/community/extensions/LatestDiscusssionsPrime/default.php on line 40
Can't see what the problem could be and now I can't access my forum at all!
http://www.holidaypad.net/community/
Not good!
It seems as you have a conflict between extensions LatestDiscusssionsPrime and DiscussionFilters. Both of them use the same function.
So, you have to disabled one of them.
That's very odd. My forum uses Latest Discussions Prime alongside Discussion Filters with no problems, and I checked the Discussion Filters code, and it definitely does not declare a function of that name. The fact that they both say Line 40 suggests that your copy of Discussion Filters might have accidentally gotten replaced with a duplicate of Latest Discussions Prime. Have you checked on that?
Just for the record, to 'delete' the extensions you also need to remove their references from conf/settings.php which will stop vanilla using them. It's very rare to have to reinstall your whole forum.
Cheers mini, you'll be pleased to know I figured that out (about the reference in the conf, although it's the extensions.php file rather than settings)
Anyway, now I know how to remedy the situation I'll have another bang at it ;-)
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
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •Pol's comment seems pretty realistic, though.
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •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.)
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •