Fussball Tippspiel MOD (BETA)

In diesem Forum können Mod-Autoren ihre Mods vorstellen, die sich noch im Entwicklungsstatus befinden. Der Einbau in Foren im produktiven Betrieb wird nicht empfohlen.
Forumsregeln
phpBB 2.0 hat das Ende seiner Lebenszeit überschritten
phpBB 2.0 wird nicht mehr aktiv unterstützt. Insbesondere werden - auch bei Sicherheitslücken - keine Patches mehr bereitgestellt. Der Einsatz von phpBB 2.0 erfolgt daher auf eigene Gefahr. Wir empfehlen einen Umstieg auf phpBB 3.0, welches aktiv weiterentwickelt wird und für welches regelmäßig Updates zur Verfügung gestellt werden.
Benutzeravatar
Patch
Mitglied
Beiträge: 242
Registriert: 12.06.2006 17:26
Kontaktdaten:

Beitrag von Patch »

gib mal genau, diese sql anweisung

Code: Alles auswählen

select count(hilfe.vereine) as vereinsanzahl from (SELECT distinct heim as Vereine FROM tippspiel_usertips u, tippspiel_spieltage s WHERE u.userid = '2' and u.spielid = s.spielid and u.tabelle=1) hilfe, (SELECT distinct auswarts as Vereine FROM tippspiel_usertips u, tippspiel_spieltage s WHERE u.userid = '2' and u.spielid = s.spielid and u.tabelle=1) hilfe2 where hilfe.vereine=hilfe2.vereine

im mysqladmin unter sql ein. da müßte er dir eigentlich einen wert zurückgeben.
bei mir vereinsanzahl = 18
Yamatoo
Mitglied
Beiträge: 1
Registriert: 05.11.2006 12:27

Datenbank-Fehler bei erweiterter Benutzerstatistik-Addon

Beitrag von Yamatoo »

Habe nach der Installation folgende Fehlermeldung:

SQL Error : 1054 Unknown column 'ts.heim' in 'on clause'

SQL Statement:

Code: Alles auswählen

 SELECT ts.heim, (
sum( bewertet ) + auspunkte
) AS punkte, Siege AS Sieg, (
Siege / ( Siege + Unentschieden + Niederlage ) *100
) AS Siegepro, Unentschieden, (
Unentschieden / ( Siege + Unentschieden + Niederlage ) *100
) AS Unentschiedenpro, Niederlage, (
Niederlage / ( Siege + Unentschieden + Niederlage ) *100
) AS Niederlagepro, (
Siege + Unentschieden + Niederlage
) AS Spieletipps
FROM tippspiel_spieltage ts, tippspiel_usertips ut
LEFT JOIN phpbb_users u ON ut.userid = u.user_id, (

SELECT ts.auswarts, sum( bewertet ) AS auspunkte
FROM tippspiel_spieltage ts, tippspiel_usertips ut
LEFT JOIN phpbb_users u ON ut.userid = u.user_id
WHERE ut.spielid = ts.spielid
AND ut.userid = '3'
AND ut.tabelle =1
GROUP BY ts.auswarts
)hilfe
LEFT JOIN (

SELECT name AS team, ( 0 + fuer2 ) AS Siege
FROM tippspiel_tabelle, (

SELECT name AS auswarts, 0 AS fuer2
FROM tippspiel_tabelle
WHERE name NOT
IN (

SELECT ts.auswarts AS team
FROM tippspiel_usertips ut
LEFT JOIN tippspiel_spieltage ts ON ut.spielid = ts.spielid
WHERE (
auswartstipp - heimtipp
) >0
AND ut.userid = '3'
AND ut.tabelle =1
GROUP BY ts.auswarts
)
UNION SELECT ts.auswarts AS team, (
count( auswartstipp - heimtipp )
) AS fuer2
FROM tippspiel_usertips ut
LEFT JOIN tippspiel_spieltage ts ON ut.spielid = ts.spielid
WHERE (
auswartstipp - heimtipp
) >0
AND ut.userid = '3'
AND ut.tabelle =1
GROUP BY ts.auswarts
)hilfe
WHERE name NOT
IN (

SELECT ts.heim AS team
FROM tippspiel_usertips ut
LEFT JOIN tippspiel_spieltage ts ON ut.spielid = ts.spielid
WHERE (
heimtipp - auswartstipp
) >0
AND ut.userid = '3'
AND ut.tabelle =1
GROUP BY ts.heim
)
AND name = hilfe.auswarts
UNION SELECT ts.heim AS team, (
(
count( heimtipp - auswartstipp )
) + fuer2
) AS Niderlage
FROM tippspiel_usertips ut
LEFT JOIN tippspiel_spieltage ts ON ut.spielid = ts.spielid, (

SELECT name AS auswarts, 0 AS fuer2
FROM tippspiel_tabelle
WHERE name NOT
IN (

SELECT ts.auswarts AS team
FROM tippspiel_usertips ut
LEFT JOIN tippspiel_spieltage ts ON ut.spielid = ts.spielid
WHERE (
auswartstipp - heimtipp
) >0
AND ut.userid = '3'
AND ut.tabelle =1
GROUP BY ts.auswarts
)
UNION SELECT ts.auswarts AS team, (
count( auswartstipp - heimtipp )
) AS fuer2
FROM tippspiel_usertips ut
LEFT JOIN tippspiel_spieltage ts ON ut.spielid = ts.spielid
WHERE (
auswartstipp - heimtipp
) >0
AND ut.userid = '3'
AND ut.tabelle =1
GROUP BY ts.auswarts
)hilfe
WHERE (
heimtipp - auswartstipp
) >0
AND ut.userid = '3'
AND ts.heim = hilfe.auswarts
AND ut.tabelle =1
GROUP BY team
)Siege ON ts.heim = Siege.team
LEFT JOIN (

SELECT name AS team, ( 0 + fuer2 ) AS Unentschieden
FROM tippspiel_tabelle, (

SELECT name AS auswarts, 0 AS fuer2
FROM tippspiel_tabelle
WHERE name NOT
IN (

SELECT ts.auswarts AS team
FROM tippspiel_usertips ut
LEFT JOIN tippspiel_spieltage ts ON ut.spielid = ts.spielid
WHERE (
auswartstipp - heimtipp
) =0
AND ut.userid = '3'
AND ut.tabelle =1
GROUP BY ts.auswarts
)
UNION SELECT ts.auswarts AS team, (
count( auswartstipp - heimtipp )
) AS fuer2
FROM tippspiel_usertips ut
LEFT JOIN tippspiel_spieltage ts ON ut.spielid = ts.spielid
WHERE (
auswartstipp - heimtipp
) =0
AND ut.userid = '3'
AND ut.tabelle =1
GROUP BY ts.auswarts
)hilfe
WHERE name NOT
IN (

SELECT ts.heim AS team
FROM tippspiel_usertips ut
LEFT JOIN tippspiel_spieltage ts ON ut.spielid = ts.spielid
WHERE (
heimtipp - auswartstipp
) =0
AND ut.userid = '3'
AND ut.tabelle =1
GROUP BY ts.heim
)
AND name = hilfe.auswarts
UNION SELECT ts.heim AS team, (
(
count( heimtipp - auswartstipp )
) + fuer2
) AS Niderlage
FROM tippspiel_usertips ut
LEFT JOIN tippspiel_spieltage ts ON ut.spielid = ts.spielid, (

SELECT name AS auswarts, 0 AS fuer2
FROM tippspiel_tabelle
WHERE name NOT
IN (

SELECT ts.auswarts AS team
FROM tippspiel_usertips ut
LEFT JOIN tippspiel_spieltage ts ON ut.spielid = ts.spielid
WHERE (
auswartstipp - heimtipp
) =0
AND ut.userid = '3'
AND ut.tabelle =1
GROUP BY ts.auswarts
)
UNION SELECT ts.auswarts AS team, (
count( auswartstipp - heimtipp )
) AS fuer2
FROM tippspiel_usertips ut
LEFT JOIN tippspiel_spieltage ts ON ut.spielid = ts.spielid
WHERE (
auswartstipp - heimtipp
) =0
AND ut.userid = '3'
AND ut.tabelle =1
GROUP BY ts.auswarts
)hilfe
WHERE (
heimtipp - auswartstipp
) =0
AND ut.userid = '3'
AND ts.heim = hilfe.auswarts
AND ut.tabelle =1
GROUP BY team
)Unentschieden ON ts.heim = Unentschieden.team
LEFT JOIN (

SELECT name AS team, ( 0 + fuer2 ) AS Niederlage
FROM tippspiel_tabelle, (

SELECT name AS auswarts, 0 AS fuer2
FROM tippspiel_tabelle
WHERE name NOT
IN (

SELECT ts.auswarts AS team
FROM tippspiel_usertips ut
LEFT JOIN tippspiel_spieltage ts ON ut.spielid = ts.spielid
WHERE (
auswartstipp - heimtipp
) <0
AND ut.userid = '3'
AND ut.tabelle =1
GROUP BY ts.auswarts
)
UNION SELECT ts.auswarts AS team, (
count( auswartstipp - heimtipp )
) AS fuer2
FROM tippspiel_usertips ut
LEFT JOIN tippspiel_spieltage ts ON ut.spielid = ts.spielid
WHERE (
auswartstipp - heimtipp
) <0
AND ut.userid = '3'
AND ut.tabelle =1
GROUP BY ts.auswarts
)hilfe
WHERE name NOT
IN (

SELECT ts.heim AS team
FROM tippspiel_usertips ut
LEFT JOIN tippspiel_spieltage ts ON ut.spielid = ts.spielid
WHERE (
heimtipp - auswartstipp
) <0
AND ut.userid = '3'
AND ut.tabelle =1
GROUP BY ts.heim
)
AND name = hilfe.auswarts
UNION SELECT ts.heim AS team, (
(
count( heimtipp - auswartstipp )
) + fuer2
) AS Niderlage
FROM tippspiel_usertips ut
LEFT JOIN tippspiel_spieltage ts ON ut.spielid = ts.spielid, (

SELECT name AS auswarts, 0 AS fuer2
FROM tippspiel_tabelle
WHERE name NOT
IN (

SELECT ts.auswarts AS team
FROM tippspiel_usertips ut
LEFT JOIN tippspiel_spieltage ts ON ut.spielid = ts.spielid
WHERE (
auswartstipp - heimtipp
) <0
AND ut.userid = '3'
AND ut.tabelle =1
GROUP BY ts.auswarts
)
UNION SELECT ts.auswarts AS team, (
count( auswartstipp - heimtipp )
) AS fuer2
FROM tippspiel_usertips ut
LEFT JOIN tippspiel_spieltage ts ON ut.spielid = ts.spielid
WHERE (
auswartstipp - heimtipp
) <0
AND ut.userid = '3'
AND ut.tabelle =1
GROUP BY ts.auswarts
)hilfe
WHERE (
heimtipp - auswartstipp
) <0
AND ut.userid = '3'
AND ts.heim = hilfe.auswarts
AND ut.tabelle =1
GROUP BY team
)Niederlage ON ts.heim = Niederlage.team
WHERE ut.spielid = ts.spielid
AND hilfe.auswarts = ts.heim
AND ut.userid = '3'
AND ut.tabelle =1
GROUP BY ts.heim
ORDER BY punkte DESC
LIMIT 0 , 30 
Line : 1354
File : userstatistik.php

Wer hat eine Idee? Ich habe mySQL 5.0.21 installiert!
wolfman24
Mitglied
Beiträge: 892
Registriert: 25.09.2005 13:17

Beitrag von wolfman24 »

Patch hat geschrieben:gib mal genau, diese sql anweisung

Code: Alles auswählen

select count(hilfe.vereine) as vereinsanzahl from (SELECT distinct heim as Vereine FROM tippspiel_usertips u, tippspiel_spieltage s WHERE u.userid = '2' and u.spielid = s.spielid and u.tabelle=1) hilfe, (SELECT distinct auswarts as Vereine FROM tippspiel_usertips u, tippspiel_spieltage s WHERE u.userid = '2' and u.spielid = s.spielid and u.tabelle=1) hilfe2 where hilfe.vereine=hilfe2.vereine

im mysqladmin unter sql ein. da müßte er dir eigentlich einen wert zurückgeben.
bei mir vereinsanzahl = 18
Geht leider nicht, ergibt bei mir und mySQL 4.0.27

Code: Alles auswählen

 MySQL said: Documentation
#1064 - You have an error in your SQL syntax.  Check the manual that corresponds to your MySQL server version for the right syntax to use near 'SELECT distinct heim as Vereine FROM tippspiel_usertips u , tip 
@Yamatoo: Das deckt sich ja im Prinzip mit meinem Fehler.
Benutzeravatar
Patch
Mitglied
Beiträge: 242
Registriert: 12.06.2006 17:26
Kontaktdaten:

Beitrag von Patch »

ich selbst hab die version MySQL - 4.1.14
kann mir aber nicht vorstellen, dass siebei der 5er ein paar funktion gestrichen hätten..
Benutzeravatar
ronson
Mitglied
Beiträge: 301
Registriert: 14.04.2005 20:28
Wohnort: Darmstadt

Beitrag von ronson »

Also ich habe 2 Fragen:

1. Weiß jemand ob funpic.de die cronjobs unterstützt ?

2. Ich benutze den Style justfooty mit folgender .css
original .css

und hab sie so geändert
geänderte .css


Leider ist aber trotzdem nichts in grün usw.

Kann mir jemand helfen ?
Danke im voraus !
Benutzeravatar
plACEbo
Mitglied
Beiträge: 538
Registriert: 16.12.2003 12:22

Beitrag von plACEbo »

schau ob deine overall_header.tpl einen css-Teil hat und bau den Code dann dort ein. Vermutlich ist deine .css nicht aktiviert.

mfg
Vorwärts immer, Rückwärts nimmer!
cornell
Mitglied
Beiträge: 41
Registriert: 28.04.2005 22:33

Beitrag von cornell »

Patch hat geschrieben:ist ja eigenartig. hast du alles richti eingebaut. kann di eventuell mal die userstatisitk.tpl und die userstatistik.php hier posten (gepackt per zip oder dergelichen) ich guck mir das dann mal an. aber sieht fast so aus, als ob du was vergessen hättest!? denn spielanzahl steht ja auch nicht mit da...
Hallo Patch,

hier sind die Dateien:

userstatistik.tpl
userstatistik.php

Gruß
Cornell
Benutzeravatar
Patch
Mitglied
Beiträge: 242
Registriert: 12.06.2006 17:26
Kontaktdaten:

Beitrag von Patch »

also richtig eingebaut hast du es. hab die templates testweise mal bei mir eingebaut und er zeigte einen punkteschnitt an.
kann mir das aber auch nicht recht erklären...

am besten du schmeist diese tabelle aus deiner userstatistik.tpl wieder raus. dann wundert sich keiner


es ist aber auch verdammt schwierig auf fehlersuche zu gehen wenn bei mir alles funzt. selbst im query analyzer von meinem sql server funzt alles super... :cry:
Benutzeravatar
cYbercOsmOnauT
Ehemaliges Teammitglied
Beiträge: 3820
Registriert: 18.02.2004 23:02
Wohnort: Göttingen
Kontaktdaten:

Beitrag von cYbercOsmOnauT »

Eure processtipp.php ist voller echo's. Sieht für meine Augen nicht wirklich schön aus, wenn die Meldungen nicht in der üblichen phpBB Messagebox erscheinen. Ich hab mir (für einen Auftraggeber) die Mühe gemacht Eure ganzen Meldungen via message_die auszugeben. Meine veränderte Datei stelle ich Euch natürlich zur Verfügung falls ihr sie verwenden wollt.

http://www.cybercosmonaut.de/files/processtipp.zip

Viele Grüße,
Tekin
• prof. phpbb-Installation, Reparatur, Rettung nach Hackattacken, sowie PHP/JS Programmierung aller Art
Zend Certified Engineer, Linux Administrator und die Sicherheit von 34 Jahren Programmiererfahrung
• Interesse? Kontakt unter t.birduezen@web-coding.eu
Benutzeravatar
Patch
Mitglied
Beiträge: 242
Registriert: 12.06.2006 17:26
Kontaktdaten:

Beitrag von Patch »

HUGOOO hat geschrieben:Ich weiß nicht, ob andere auch das Problem haben, aber bei mir werden nach der Ergebnisseingabe keine Mails mehr versendet. (wer wie viele Punkte gemacht hat usw.)

Kann mir dabei jemand helfen?

bei mir kommen beim versenden der email fehler alá

Code: Alles auswählen

Fatal error: Cannot redeclare class emailer in /www/htdocs/..../forum/includes/emailer.php on line 28
ich vermut mal das hängt damit zusammen, oder ?
Antworten

Zurück zu „phpBB 2.0: Mods in Entwicklung“