id) { //we got a valid and logged on user so we can go on //What should we do? if ($do == "show") { //show it is.. if (!$fbConfig['cb_profile']) { //first we gather some information about this person - bypass if (s)he is a guest unset($user); $database->setQuery("SELECT * FROM #__fb_users as su " . "\nLEFT JOIN #__users as u on u.id=su.userid WHERE su.userid={$my->id}"); $database->loadObject($user); $prefview = $user->view; $signature = $user->signature; $username = $user->name; $moderator = $user->moderator; $fbavatar = $user->avatar; $ordering = $user->ordering; list($avWidth, $avHeight) = @getimagesize($avatar); //use mypms pro avatar if configured if ($fbConfig['avatar_src'] == "pmspro") { $database->setQuery("SELECT picture FROM #__mypms_profiles WHERE name='$username'"); $avatar = $database->loadResult(); } elseif ($fbConfig['avatar_src'] == "cb") { $database->setQuery("SELECT avatar FROM #__comprofiler WHERE user_id='$my->id'"); $avatar = $database->loadResult(); } else { $avatar = $fbavatar; } } //get all subscriptions for this user $database->setQuery("select thread from #__fb_subscriptions where userid=$my->id"); $subslist = $database->loadObjectList(); $csubslist = count($subslist); //get all favorites for this user $database->setQuery("select thread from #__fb_favorites where userid=$my->id"); $favslist = $database->loadObjectList(); $cfavslist = count($favslist); //get all forums for which this user is assigned as moderator, BUT only if the user isn't an admin //since these are moderators for all forums (regardless if a forum is set to be moderated) if (!$is_admin) { $database->setQuery("select #__fb_moderation.catid,#__fb_categories.name from #__fb_moderation left join #__fb_categories on #__fb_categories.id=#__fb_moderation.catid where #__fb_moderation.userid=$my->id"); $modslist = $database->loadObjectList(); $cmodslist = count($modslist); } //here we go: include(JB_ABSSOURCESPATH . 'fb_bb.js.php'); if (file_exists(JB_ABSTMPLTPATH . '/fb_pathway.php')) { require_once(JB_ABSTMPLTPATH . '/fb_pathway.php'); } else { require_once(JB_ABSPATH . '/template/default/fb_pathway.php'); } ?>
|
|
---|---|
' . $enum. ': ' . $sub->subject . ' - ' . _GEN_BY . ' ' . $sub->name .' | '; echo '' . _THREAD_UNSUBSCRIBE . ' | '; echo "
' . _USER_NOSUBSCRIPTIONS . ' |
|
|
---|---|
' . $enum . ': ' . $fav->subject . ' - ' . _GEN_BY . ' ' . $fav->name .' | '; echo '' . _THREAD_UNFAVORITE . ' | '; echo "
' . _USER_NOFAVORITES . ' |
:
|
---|
' . $enum . ': ' . $mods->name . ' | '; echo "
" . _USER_MODERATOR_NONE . " |
" . _USER_MODERATOR_ADMIN . " |
fb001-up-02NoDO
fb001-up-01NLO