We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

following plugin | Forum

deep rolling
deep rolling Oct 11 '18

Hello guys 


  im trying to make a following plugin because there is only

 followers plugin any help ?

 

how i can get the followers instead of followers ?




public function findFollowList($feedId, $first, $count) {
        $sql = "SELECT f.userId FROM " . NEWSFEED_BOL_FollowDao::getInstance()->getTableName() . " f                  JOIN " . BOL_UserDao::getInstance()->getTableName() . " u                    ON u.id = f.userId                 WHERE feedType = 'user' AND feedId = $feedId                  LIMIT $first , $count";
        return OW::getDbo()->queryForColumnList($sql);    }
    public function findFollowCount($feedId) {        $sql = "SELECT COUNT(f.userId) FROM " . NEWSFEED_BOL_FollowDao::getInstance()->getTableName() . " f                  JOIN " . BOL_UserDao::getInstance()->getTableName() . " u                    ON u.id = f.userId                 WHERE feedType = 'user' AND feedId = $feedId";
        return (int) OW::getDbo()->queryForColumn($sql);    }



Thank you ^^

AppXprt
AppXprt Oct 11 '18
The followers count? What exactly are you wanting?
deep rolling
deep rolling Oct 12 '18
there is only a followers plugin want to make a following plugin 

like in instagram 


Following   Followers 

deep rolling
deep rolling Oct 14 '18

Any suggestions !!!!

deep rolling
deep rolling Oct 15 '18
Plzzzz