Hot Topics

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Vinnie
    Senior Member
    • May 2001
    • 133

    Hot Topics

    There are two thresholds for hot topics: number of posts, and number of views

    Is this a boolean OR, or a boolean AND?

    From what I can tell, it is an OR

    How do I change this to an AND? Is it possible to do it without modifying the PHP code?

    The authors of this software did such a kick ass job that must bow down and refrain from modifying it...

    Also, I don't know PHP.
  • Freddie Bingham
    Former vBulletin Developer
    • May 2000
    • 14057
    • 1.1.x

    #2
    It's an OR

    Open forumdisplay.php and search for:
    Code:
    if ($usehotthreads and ( ($thread[replycount]>=$hotnumberposts and $hotnumberposts>0) [b]or[/b] ($thread[views]>=$hotnumberviews and $hotnumberviews>0) ) ) {
    Change to
    Code:
    if ($usehotthreads and ( ($thread[replycount]>=$hotnumberposts and $hotnumberposts>0) [b]and[/b] ($thread[views]>=$hotnumberviews and $hotnumberviews>0) ) ) {

    Comment

    widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
    Working...