id != "" && $my->id != 0) {//we got a valid and logged on user so we can go on //debug ("Yippie, we got in!! up#39"); //What should we do? if($do=="show") {//show it is.. if (!$sbConfig['cb_profile']) { //first we gather some information about this person $database->setQuery("SELECT * FROM #__sb_users LEFT JOIN #__users on #__users.id=#__sb_users.userid WHERE userid=$my->id"); $userDetails=$database->loadObjectList(); //Mambo userids are unique, so we don't worry about that //fill the variables needed later foreach($userDetails as $user) { $prefview = $user->view ; $signature = $user->signature; $username = $user->name ; $moderator = $user->moderator; $sbavatar = $user->avatar; $ordering = $user->ordering; list($avWidth, $avHeight) = @getimagesize($avatar); //that's it we got now; later the 'future_use' columns can be used.. } //use mypms pro avatar if configured if ($sbConfig['avatar_src']=="pmspro") { $database->setQuery("SELECT picture FROM #__mypms_profiles WHERE name='$username'"); $avatar=$database->loadResult(); } elseif ($sbConfig['avatar_src']=="cb") { $database->setQuery("SELECT avatar FROM #__comprofiler WHERE user_id='$my->id'"); $avatar=$database->loadResult(); } else { $avatar = $sbavatar; } } //get all subscriptions for this user $database->setQuery("select thread from #__sb_subscriptions where userid=$my->id"); $subslist=$database->loadObjectList(); $csubslist=count($subslist); //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 #__sb_moderation.catid,#__sb_categories.name from #__sb_moderation left join #__sb_categories on #__sb_categories.id=#__sb_moderation.catid where #__sb_moderation.userid=$my->id"); $modslist=$database->loadObjectList(); $cmodslist=count($modslist); } //here we go: ?>
| ' ._FORUM_IS_OFFLINE. '' : ' ' ;?> |
| '.$enum.': '.$sub->subject.' - ' ._GEN_BY. ' ' .$sub->name; echo ' | ' ._THREAD_UNSUBSCRIBE. ''; echo " |
| '._USER_NOSUBSCRIPTIONS.' | |
| : | |
| '.$enum.': '.$mods->name.' | '; echo "|
| "._USER_MODERATOR_NONE." | |
| "._USER_MODERATOR_ADMIN." | |
SB001-up-02NoDOSB001-up-01NLO