Seite 10 von 12

Re: Chat für phpbb3

Verfasst: 16.02.2009 19:18
von roman-1

Code: Alles auswählen

hier ist ein hilfe forum für phpbb3, kein empfehlungs dingends für server, da bist in der falschen rubrick
Hallo Ups,
da hast du recht, hatte nur nicht daran gedacht, sorry.
werde mir den tufat mal anschauen.
Danke und Gruß
Roman

Re:

Verfasst: 10.06.2009 15:11
von ralf-isi
ich erlaube mit das mal hervorzuholen
habe den X7-Chat eingebaut ganz nach vorschrift (inkl an phpBB angebunden) und es funktioniert einwandfrei bis auf das folgende:
würde gerne die aktiven chatter anzeigen lassen und habe deshalb die anleitung von Jonnsn genommen. (danke dafür!). doch da bekomme ich eine fehlermeldung:
[phpBB Debug] PHP Notice: in file /whosonline-chat.php on line 21: mysql_fetch_row(): supplied argument is not a valid MySQL result resource
[phpBB Debug] PHP Notice: in file /whosonline-chat.php on line 21: mysql_fetch_row(): supplied argument is not a valid MySQL result resource
zeile 21 ist aus dem folgenden skript:
Jonnsn hat geschrieben:

Code: Alles auswählen

<?
	function who_is_in_chat(){
		// MySql Information
		$user = "db_user";			// Your MySql username
		$dbhost = 'localhost';			// My SQL Host
		$pass = "db_password";			// Your MySql password
		$db = "db_name";			// Your MySql Database
		$prefix = "x7chat_";		// Your table prefix
		$expire_time = 240;	// The amount of seconds that users can be idle before they are considered offline
							// This value is setable in the X7 Chat admin panel, you must also set it here.
							// If the values do not match then the scripts may be inaccurate.
		// No more editing required

		mysql_connect($dbhost,$user,$pass);
		mysql_select_db($db);
	
		$exp_time = time()-$expire_time;
		$q = mysql_query("DELETE FROM {$prefix}online WHERE time<'$exp_time'");
		$q = mysql_query("SELECT name FROM {$prefix}online");
		$results = array();
		while($row = mysql_fetch_row($q))
			$results[] = $row[0];
		return $results;
	}
	
	function list_totals(){
		return count(who_is_in_chat());
	}
	
	function list_members($sep=", "){
		$online = who_is_in_chat();
		return implode($sep,$online);
	}
?>
mit dem da:
while($row = mysql_fetch_row($q))
was stimmt nicht? kann mir schwer vorstellen, dass es bei allen geht und ich der erste bin wo das nicht funktionieren sollte.

danke für die hilfe.

Re: Chat für phpbb3

Verfasst: 13.06.2009 13:13
von ralf-isi
mal nach oben schiebe ... weil ich mir kaum vorstellen kann, dass niemand weiss weshalb das script den fehler hat / anzeigt - resp. was am code nicht stimmt. und was geändert werden müsste.

danke für die hilfe
ralf

Re: Chat für phpbb3

Verfasst: 13.06.2009 22:44
von 4seven
mit dem da:
while($row = mysql_fetch_row($q))
was stimmt nicht?
da stimmt allerdings was nicht :lol:
supplied argument is not a valid MySQL result resource

sagt eigentlich schon alles.

das
gelieferte argument: mysql_fetch_row ist keine valide MySQL ergebnis ressource
da es nämlich mysql_fetchrow heißt :wink:

Re: Chat für phpbb3

Verfasst: 20.06.2009 15:52
von ralf-isi
hallo 4seven
vielen dank für deine hilfe - nur hat es leider auch damit nicht geklappt. hab mal schnell zu einer notlösung gegriffen (nicht das gelbste vom ei). setze mich mal dahinter, wenn ich ein bisschen luft habe.

schönes wochenende
ralf

Re: Chat für phpbb3

Verfasst: 04.07.2009 17:55
von Jonnsn
4seven hat geschrieben:da es nämlich mysql_fetchrow heißt :wink:
aha...
http://de3.php.net/mysql_fetch_row :wink:

@ralf-isi : hab lange nicht mehr reingeschaut... hast du dein problem schon behoben?
Bei mir funktioniert das skript noch einwandfrei. Sicher das die DB-Daten korrekt sind?

Re: Chat für phpbb3

Verfasst: 04.07.2009 18:30
von 4seven
huch, war wohl doch schon ein wenig spät den tag :lol:

Re: Chat für phpbb3

Verfasst: 03.08.2009 13:00
von talk-pla.net
Hallo,

habe das selbe Problem wie ralf und leider absolut nicht genug Ahnung, um da irgendwas selbst kurz umzubauen... wäre super, wenn mir jemand helfen könnte. :oops:

Danke!

Re: Chat für phpbb3

Verfasst: 03.08.2009 13:06
von ups
guten tag erstmal,

und was für fehler??????

beschreib mal was nicht geht, fehlermeldung usw...

EDIT: seh gerade den fehler:

Code: Alles auswählen

Error 404!

/x7chat/index.php 
File Not Found
warscheinlich hast du ihn nicht im root drin oder der pfad zum chat ist falsch...entscheide dich

gruß

Re: Chat für phpbb3

Verfasst: 03.08.2009 13:18
von talk-pla.net
Also der gesamte Fehler ist folgender:

Code: Alles auswählen

[phpBB Debug] PHP Notice: in file /whosonline.php on line 21: mysql_fetch_row(): supplied argument is not a valid MySQL result resource
[phpBB Debug] PHP Notice: in file /whosonline.php on line 21: mysql_fetch_row(): supplied argument is not a valid MySQL result resource
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3537: Cannot modify header information - headers already sent by (output started at /whosonline.php:1)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3539: Cannot modify header information - headers already sent by (output started at /whosonline.php:1)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3540: Cannot modify header information - headers already sent by (output started at /whosonline.php:1)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3541: Cannot modify header information - headers already sent by (output started at /whosonline.php:1)
Mir ging es gerade aber um die ersten beiden Punkte mit der whosonline.php, den Fehler hatte ralf weiter oben ja genauso. Wer für die unteren Fehler Hilfe weiß, wär natürlich auch super. :)

Danke!