Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Freunde Liste

Empfohlene Antworten

Ich habe eine Freunde List für meine Seite gebaut, nur wenn ich mehr als eine Person in die Liste mit aufnehme wird immer nur einer angezeigt. Worin liegt der Fehler???




<?php 


if ($USER['id']>0) 

$getbuddies=$DB->query("SELECT buddy_friendid FROM ".$db_tab['buddy']." WHERE buddy_userid='".$USER['id']."' ORDER BY buddy_userid"); 

unset($sqlcommand); 

while ($buddy=$DB->fetch_array($getbuddies)) { 

  $buddy_cache[$buddy['buddy_friendid']]=$buddy; 

  if (!$sqlcommand) {$sqlcommand="SELECT user_imoption, user_nick, user_id, user_ghost FROM ".$db_tab['user']." WHERE user_id='".$buddy['buddy_friendid']."'";} 

  else {$sqlcommand.=" OR user_id='".$buddy['buddy_friendid']."'";} 

  } 




if (is_array($buddy_cache)) { 

  $getuserinfo=$DB->query($sqlcommand); 

  while ($userinfo=$DB->fetch_array($getuserinfo)) {$user_cache[$userinfo['user_id']]=$userinfo;} 




foreach($buddy_cache as $buddy) { 

   $userinfo=$user_cache[$buddy['buddy_friendid']]; 

   $row=rowcolor($row); 


   if (isonline($userinfo['user_id'])) eval ("\$info_os= \"".getTemplate("member_os_online_small")."\";"); 

   else eval ("\$info_os= \"".getTemplate("member_os_offline_small")."\";"); 


   if ($userinfo['user_imoption']==1) eval ("\$info_im= \"".getTemplate("member_sendim_iconlink")."\";"); 

   else eval ("\$info_im= \"".getTemplate("member_sendim_nolink")."\";"); 


   eval ("\$info_nick= \"".getTemplate("member_showprofil_textlink")."\";"); 

   eval ("\$buddy_list.= \"".getTemplate("profile_buddy_row")."\";"); 

   } 

  if ($buddy_list!='') {eval ("\$profile_info.= \"".getTemplate("profile_buddy_small")."\";");} 

  } 


if (intval($imstatus_info=imstatus())>0) eval ("\$profile_info.= \"".getTemplate("profile_newim")."\";"); 

$online_time=formattime($USER['logtime']); 




?> 

<?php 

eval ("\$boxlinks[1].= \"".getTemplate("profile_buddy_row")."\";"); 



?> 


$getbuddies=$DB->query("SELECT buddy_friendid FROM ".$db_tab['buddy']." WHERE buddy_userid='".$USER['id']."' ORDER BY buddy_userid");

Du wählst da doch nur einen aus. Wie willst du dann mehrere haben?:confused:

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Konto

Navigation

Suchen

Suchen

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.