Fork me on GitHub

Daily_Archives -> Only for a specific Topic  Bottom

  • Does anyone know how I would use the Daily_Archive modules but only have it work for a specific Topic. I'm assumign I'd just add a WHERE statement that equals a specific topic id but where would I ad it?
  • In pnuserapi I changed this

    Code

    if (($where_lang_text!="") OR ($where_month_text!="")) {
            $where_text=" WHERE ";
            $setcategory="(".$tbl['cid']." = \"1\")";
            if ($where_month_text=="") { $where_text.= " " . $where_lang_text . " AND (" .$setcategory . ")"; }
            else { 
                if ($where_lang_text=="") { $where_text.= " " . $where_month_text . " AND (" .$setcategory . ")"; }
                else { $where_text.= " " . $where_month_text . " AND (" . $where_lang_text . ")" . " AND (" . $setcategory . ")"; }
            }


    I added the setcategory variable in the $where_text statement.

This list is based on users active over the last 60 minutes.