Hi there,
I've recieved the following
Notice: Constant UD_ADD_TAB already defined in /home/.ralip/user/domain.com/forums/extensions/HotDiscussions/default.php on line 15
Notice: Constant UD_ADD_FILTER already defined in /home/.ralip/user/domain.com/forums/extensions/HotDiscussions/default.php on line 18
Fatal error: Cannot redeclare discussiongrid_discussionpages() (previously declared in /home/.ralip/user/domain.com/forums/extensions/DiscussionPages/default.php:13) in /home/.ralip/user/domain.com/forums/extensions/HotDiscussions/default.php on line 119
Hi O.
I still seem to be getting:
Notice: Constant UD_ADD_TAB already defined in /home/.xxxxx/xxxxx/domain.com/forums/extensions/HotDiscussions/default.php on line 15
Notice: Constant UD_ADD_FILTER already defined in /home/.xxxxx/xxxxx/domain.com/forums/extensions/HotDiscussions/default.php on line 18
running across the top of the page. Although, the page now shows and so does 'HOT'
Are you using other extensions adding stuff to the discussion filters menu? Ok, it's a conflict with Unanswered Discussions. Of course, it's based on it.
A discussion is currently marked as "Hot!" if containing more than 20 comments. To modify this number, replace it at lines 82, 92 and 125. You can also change "Hot!" at line 125 by something else. A further version should allow an easier way to edit these settings, but you know, it's open source...
I'd like to make this more user-friendly but I don't have much time right now. Ideally there would be options for this extension in the settings tab, but I've failed miserably last time I've tried to do that. I've managed easily to add settings for comments number and Hot! definition in settings.php but had problems to get their values once they've been written. I'm pretty good at copying and pasting but when it comes to real code that's another story :B
If somebody knows what needs to be done, I'll be happy to make the changes.
Hiding the filter for guests should be doable, but I'm quite busy at the moment so I can't have a look at this right now.
Anyway I'm not sure it has to be hidden for guests. I see your point because it's a bit strange to have some discussion filters when not logged in, but since hot discussions aren't related to private data, there's nothing to hide. I'll see if I can hack something, adding a user preference just for this sounds too time-consuming.
Comments
Ok, it's a conflict with Unanswered Discussions. Of course, it's based on it.
from the Read Me
If somebody knows what needs to be done, I'll be happy to make the changes.
sorry
and thank you
i will let u know
AWESOME
it workds
Hiding the filter for guests should be doable, but I'm quite busy at the moment so I can't have a look at this right now.
Anyway I'm not sure it has to be hidden for guests. I see your point because it's a bit strange to have some discussion filters when not logged in, but since hot discussions aren't related to private data, there's nothing to hide. I'll see if I can hack something, adding a user preference just for this sounds too time-consuming.
your right i don't need the hot discussions disappearing for the guests
it is all cool
thanks a bunch
most of my threads get very long
If a real coder had a suggestion, I'd be happy to include it.
RewriteRule ^discussions/hot/(.*)$ /discussions/?View=HotDiscussions [QSA,L]
Then open
/path/to/vanilla/extensions/HotDiscussions/default.php
Find
$Url = GetUrl(
$Configuration,
'index.php', '', '', '', '',
'View=HotDiscussions');
replace with
$Url = GetUrl(
$Configuration,
'index.php', '', '',
'discussions/hot');