X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=inline;f=mod%2Fvideos.php;h=e5a0887bb9f3a2e6e22c1ade3fe262977d94886f;hb=7c9a0ec4594fa6d45cc615f8bde914bcc131226d;hp=607c900eb5cbccadf7a2be326a9105e884f5d0b2;hpb=83697cf3e561ceaf0365cd2b4e56fb4bcd00d1fa;p=friendica.git diff --git a/mod/videos.php b/mod/videos.php index 607c900eb5..e5a0887bb9 100644 --- a/mod/videos.php +++ b/mod/videos.php @@ -15,23 +15,38 @@ function videos_init(&$a) { return; } + nav_set_selected('home'); + $o = ''; if($a->argc > 1) { $nick = $a->argv[1]; - $r = q("SELECT * FROM `user` WHERE `nickname` = '%s' AND `blocked` = 0 LIMIT 1", + $user = q("SELECT * FROM `user` WHERE `nickname` = '%s' AND `blocked` = 0 LIMIT 1", dbesc($nick) ); - if(! count($r)) + if(! count($user)) return; - $a->data['user'] = $r[0]; + $a->data['user'] = $user[0]; + $a->profile_uid = $user[0]['uid']; + + $profile = get_profiledata_by_nick($nick, $a->profile_uid); + + if((intval($profile['page-flags']) == PAGE_COMMUNITY) || (intval($profile['page-flags']) == PAGE_PRVGROUP)) + $account_type = t('Forum'); + else + $account_type = ""; - $o .= '