Not signed in (Sign In)

Categories

Vanilla 1.1.4 is a product of Lussumo. More Information: Documentation, Community Support.

Help keep Vanilla free:
Welcome Guest!
Want to take part in these discussions? If you have an account, sign in now.
If you don't have an account, apply for one now.
    •  
      CommentAuthorØ
    • CommentTimeDec 4th 2007 edited
     # 1
    Marks discussions with more than 20 comments as Hot! next to their title.
    Also provides a discussions filter displaying hot discussions only.

    This is a very simple hack based on SirNot's Participated Threads, reworked by WallPhone, then Grahack, then me (also including a part of Jazzman's Discussion Pages). It lacks a complete translation support and simple settings to change the Hot! value.

    Thanks to MySchizoBuddy for the impulse and Klip for the suggestions (even if they aren't included yet).

    Version 0.4: fixed an error related in this post.
    Version 0.3: fixed a conflict with Unanswered Discussions.
    Version 0.2: fixed a conflict with Discussion Pages.
    •  
      CommentAuthorVaz
    • CommentTimeDec 4th 2007
     # 2
    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
    •  
      CommentAuthorØ
    • CommentTimeDec 4th 2007
     # 3
    Oh ok. I've taken a bit of code from Discussion Pages, that's why there's a conflict (and I forgot to mention it). I'll see what I can do.
  1.  # 4
    Uploaded version 0.2 of Hot Discussions.
    •  
      CommentAuthorØ
    • CommentTimeDec 4th 2007
     # 5
    Looks like I fixed the conflict.
    •  
      CommentAuthorVaz
    • CommentTimeDec 4th 2007
     # 6
    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'
    •  
      CommentAuthorØ
    • CommentTimeDec 4th 2007 edited
     # 7
    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.
  2.  # 8
    Uploaded version 0.3 of Hot Discussions.
    •  
      CommentAuthorØ
    • CommentTimeDec 4th 2007
     # 9
    This should be fixed as well. Sorry for being such an messy developer :)
    •  
      CommentAuthorVaz
    • CommentTimeDec 4th 2007
     # 10
    Your the man! :) Works fine now.
  3.  # 11
    can I alter it to be 100 posts instead of 20?
  4.  # 12
    ah!

    from the Read Me
    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...
    •  
      CommentAuthorØ
    • CommentTimeDec 6th 2007 edited
     # 13
    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.
    •  
      CommentAuthorHamed
    • CommentTimeJan 22nd 2008
     # 14
    my bad
    sorry
    and thank you
    i will let u know


    AWESOME
    it workds
  5.  # 15
    Uploaded version 0.4 of Hot Discussions.
    •  
      CommentAuthorØ
    • CommentTimeJan 23rd 2008
     # 16
    No problem :)

    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.
    •  
      CommentAuthorHamed
    • CommentTimeJan 23rd 2008
     # 17
    naaa it is ok
    your right i don't need the hot discussions disappearing for the guests
    it is all cool

    thanks a bunch
    •  
      CommentAuthorgasface
    • CommentTimeJan 29th 2008
     # 18
    would be great if it did "x posts within x amount of time or similar"
    most of my threads get very long
    •  
      CommentAuthorØ
    • CommentTimeJan 29th 2008
     # 19
    Good idea, but sadly I've no idea how to do that :/

    If a real coder had a suggestion, I'd be happy to include it.
    •  
      CommentAuthorSimonb
    • CommentTimeFeb 4th 2008 edited
     # 20
    To Seo the URL Edit first the .htaccess add
    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');
    • CommentAuthorfysicsluvr
    • CommentTimeFeb 22nd 2008
     # 21
    this addon should do something more like X comments in the last Y hrs. I wouldn't consider a discussion hot if it was 3 years old with 25 comments.
    •  
      CommentAuthorØ
    • CommentTimeFeb 22nd 2008
     # 22
    Sadly, the author of this addon sucks at PHP and doesn't have a clue about how to add such a feature.

    ...and what would you expect of a 3-years old discussion anyway?
    • CommentAuthorQGdesigns
    • CommentTimeFeb 26th 2008
     # 23
    Hey I appreciate all these comments..yes I am new...and i need this stuff.
Add your comments
    Username Password
  • Format comments as