Content Management System - CMS : eXV2 
Home
News
Forum
Downloads
Download Module
Sitemap
Partnerseiten
RSS News
Kontakt/Info
Sprache
EnglishFrench
Suchen
Login
Nickname
Passwort

Registrieren?
Passwort?
Navigation
 Home News  Forum Neueste Beiträge  Downloads Download Module eXV² Themes  Weblinks Tutorial Changelog 2.3.1 Jobcenter Gebrauchtmarkt OSMap  Sponsor Kalendersystem Sitemap Partnerseiten RSS News Kontakt/Info Webseiten Wetter
Willkommen im Free Web CMS : eXV² Forum!
  Forenarchiv
     eXV2 Module
  Wer ist Online ?

Forum : eXV2 Module

Titel : Wer ist Online ?

© 2004-2012 www.exv2.de
http://www.exv2.de

URL dieser Diskussion
http://www.exv2.de/modules/newbb_plus/viewtopic.php?topic_id=2202&forum=7


 Gast :

31.01.2005 15:50
 Ich habe im hauptmenue vom We ist online ? zwei neue sublinks weiblich und männlich erstellt.

Dan habe ich im index.php zwei case switch erstellt mit namen female und male damit der sublink weiblich und männlich das es auch zeigt.

female:

Code:

case "female":
include_once(XOOPS_ROOT_PATH.'/header.php');
$cont_online = count_whosonline(array("l.uid > 0", "l.online = 1", "u.user_geschl = '".$xoopsUser->user_geschl()."' "));
$online = whosonline(array("l.uid > 0", "l.online = 1", "u.user_geschl = '".$xoopsUser->user_geschl()."' "), $limit, $start, "u.last_login");
if ($cont_online == 1){
$anzeige_user = _WIO_MEMBERSONLINE1a.$cont_online._WIO_MEMBERSONLINE2a;
}else{
$anzeige_user = _WIO_MEMBERSONLINE1.$cont_online._WIO_MEMBERSONLINE2;
}
$anzeige_user .= _WIO_F.$xoopsUser->user_geschl();
if (!defined("WIO_TABLE_INCLUDED")) {include(WIO_INCL_PATH."/wio_table.php");}
include_once(XOOPS_ROOT_PATH.'/footer.php');
break;


und

male:

Code:

case "male":
include_once(XOOPS_ROOT_PATH.'/header.php');
$cont_online = count_whosonline(array("l.uid > 0", "l.online = 1", "u.user_geschl = '".$xoopsUser->user_geschl()."' "));
$online = whosonline(array("l.uid > 0", "l.online = 1", "u.user_geschl = '".$xoopsUser->user_geschl()."' "), $limit, $start, "u.last_login");
if ($cont_online == 1){
$anzeige_user = _WIO_MEMBERSONLINE1a.$cont_online._WIO_MEMBERSONLINE2a;
}else{
$anzeige_user = _WIO_MEMBERSONLINE1.$cont_online._WIO_MEMBERSONLINE2;
}
$anzeige_user .= _WIO_M.$xoopsUser->user_geschl();
if (!defined("WIO_TABLE_INCLUDED")) {include(WIO_INCL_PATH."/wio_table.php");}
include_once(XOOPS_ROOT_PATH.'/footer.php');
break;


ich habe irgendetwas falsch und ich bekomme non-objec .

Ich habe schwierigkeit da sortierung =0 weiblich und =1 männlich zu ausgeben.

Kann mir jemand da weiterhelfen ?

Danke

 Gast :

01.02.2005 19:50
 Kann keine mir helfen können ? Sad

 bama :

03.02.2005 16:45
 probier es mal hiermit

Code:
case "male":
include_once(XOOPS_ROOT_PATH.'/header.php');
$cont_online = count_whosonline(array("l.uid > 0", "l.online = 1", "u.user_geschl = '1' "));
$online = whosonline(array("l.uid > 0", "l.online = 1", "u.user_geschl = '1' "), $limit, $start, "u.last_login");
if ($cont_online == 1){
$anzeige_user = _WIO_MEMBERSONLINE1a.$cont_online._WIO_MEMBERSONLINE2a;
}else{
$anzeige_user = _WIO_MEMBERSONLINE1.$cont_online._WIO_MEMBERSONLINE2;
}
$anzeige_user .= " ("._WIO_M.")";
if (!defined("WIO_TABLE_INCLUDED")) {include(WIO_INCL_PATH."/wio_table.php");}
include_once(XOOPS_ROOT_PATH.'/footer.php');
break;

case "female":
include_once(XOOPS_ROOT_PATH.'/header.php');
$cont_online = count_whosonline(array("l.uid > 0", "l.online = 1", "u.user_geschl = '0' "));
$online = whosonline(array("l.uid > 0", "l.online = 1", "u.user_geschl = '0' "), $limit, $start, "u.last_login");
if ($cont_online == 1){
$anzeige_user = _WIO_MEMBERSONLINE1a.$cont_online._WIO_MEMBERSONLINE2a;
}else{
$anzeige_user = _WIO_MEMBERSONLINE1.$cont_online._WIO_MEMBERSONLINE2;
}
$anzeige_user .= " ("._WIO_F.")";
if (!defined("WIO_TABLE_INCLUDED")) {include(WIO_INCL_PATH."/wio_table.php");}
include_once(XOOPS_ROOT_PATH.'/footer.php');
break;


oben bei männlich hat sich ein Fehler eingeschlichen, muss immer user_geschl =1 sein

[ Geändert von bama am 03.02.2005 17:22 ]

 Gast :

03.02.2005 17:21
 Super bama es läüft sehr gut ich habe es probiert habe meine geschlecht geändert und es hat beanwortet. Vielmals danke
Partnerseiten
http://www.en.exv2.eu/

Vote für eXV2
php
Kontakt/Info
  Kontakt
  Impressum
  Link zu uns
  AGB
  Datenschutzhinweis
Downloads
  eXV² Core
  Core Sprachfiles
eXV² Filecenter
  Downloads
  Download Module
  eXV² Themes
  Multilanguage Module
  Sprachfiles eXV² Module
eXV² Support
  France