Show
Ignore:
Timestamp:
09/26/07 08:57:31 (3 years ago)
Author:
mdodoo
Message:

Lots of things are still not working, but I think this code is better than what was currently committed ([1639]
should have been reverted, and the person who committed should have had their SVN access pulled, for example).
Created this by grabbing the trunk code and then manually inserting the MU branch's changes in. This is probably
not usable in an actual installation (no support for creating new user accounts yet, for example), but patches are
welcome.

Not sure why I write so much here - I am not sure anyone other than my fellow devs actually read them...

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/multiuser/index.php

    r1639 r1759  
    9292 
    9393rss_plugin_hook('rss.plugins.frontpage.afterread', null); 
    94  
    9594$GLOBALS['rss'] -> header = new Header("",LOCATION_HOME,array('cid'=>null,'fid'=>null)); 
    9695$GLOBALS['rss'] -> feedList = new FeedList(false); 
     
    132131    $sqlWhereHidden = ""; 
    133132     
    134     $unreadItems -> populate("i2u.flgunread=1 & " . RSS_MODE_UNREAD_STATE . $sqlWhereHidden, "", 0, $numItems,ITEM_SORT_HINT_UNREAD); 
     133    $unreadItems -> populate("i2u.flgunread=1 " . $sqlWhereHidden, "", 0, $numItems,ITEM_SORT_HINT_UNREAD); 
    135134    //var_dump($unreadItems); 
    136135    _pf('end populate unread items'); 
     
    166165 
    167166    if (getConfig('rss.config.feedgrouping')) { 
    168         if ($limit <= 0) { 
     167        if ($limit <= 0) { 
    169168            return; 
    170169        } 
    171     $sql = "select c2u.fkcid from " . getTable("channels2user") . " c2u "  
    172             . "inner join " . getTable("folders") ." f on c2u.parent = f.id "; 
     170        $sql = "select c2u.fkcid from " . getTable("channels2user") . " c2u "  
     171            . "inner join " . getTable("channels") . " c " 
     172            . "inner join " . getTable("folders") ." f on c.parent = f.id "; 
    173173           
    174174         // $sql .= $sqlWhereHidden; 
     
    177177         
    178178        if (getConfig('rss.config.absoluteordering')) { 
    179             $sql .= " order by f.position asc, c2u.position asc"; 
     179            $sql .= " order by f.position asc, c.position asc"; 
    180180        } else { 
    181             $sql .=" order by f.name asc, c2u.title asc"; 
     181            $sql .=" order by f.name asc, c.title asc"; 
    182182        } 
    183183        $res1=rss_query($sql); 
    184184        while ($readItems->itemCount < $limit && (list($cid) = rss_fetch_row($res1))) { 
    185             $sqlWhere  = " i2u.flgunread=0 and i.cid= $cid"; 
     185            $sqlWhere  = " i2u.flgunread=0 and i.cid= $cid"; 
    186186            $sqlWhere .= " and i.pubdate <= now() "; 
    187187