Page 8 of 11

Re: Wetterbox auf dem Portal (mit User Postleitzahl)

Posted: 11. August 2009 16:08
by KaptnIGLO
Kevin wrote:Update - siehe ersten Beitrag.
  • den Code aus der portal.php in eine eigene Datei ausgelagert
Wo muss den dort der code rein und welcher? Wenn ich den code vom additional _portal ins portal schreibe, gibts ne Fehlermeldung.

Code: Select all

General Error
SQL ERROR [ mysql4 ]

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 'LIMIT 1' at line 4 [1064]

An sql error occurred while fetching this page. Please contact an administrator if this problem persists.
Habe den GeoMap Mod drin, der funzt und vorher hatte ich auch mal folgende Fehlermeldung. Ihrgendwie findet der die wetter.php wohl nicht.:

Code: Select all

Warning: main(portal/block/wetter.) [function.main]: failed to open stream: No such file or directory in /kunden/xxx/webseiten/phpBB3/portal.php on line 17

Warning: main(portal/block/wetter.) [function.main]: failed to open stream: No such file or directory in /kunden/xxx/webseiten/phpBB3/portal.php on line 17

Warning: main() [function.include]: Failed opening 'portal/block/wetter.' for inclusion (include_path='.:/usr/local/lib/php') in /kunden/xxx/webseiten/phpBB3/portal.php on line 17
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4006: Cannot modify header information - headers already sent by (output started at /portal.php:17)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4008: Cannot modify header information - headers already sent by (output started at /portal.php:17)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4009: Cannot modify header information - headers already sent by (output started at /portal.php:17)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4010: Cannot modify header information - headers already sent by (output started at /portal.php:17)
Ich kann keinen Rechtschreibfehler sehen, was nun falsch wäre, jamnd einen Tip?

Re: [DE] Wetterbox auf dem Portal (mit User Postleitzahl)

Posted: 24. August 2009 18:06
by Lara
Hallo, ich würde die Wetter-Box auch gerne einbauen. Da sich mein Forum aber auf eine bestimmte Stadt bezieht, würde es mir reichen wenn alle die gleiche Stadt sehen. Kann ich da einfach die Änderung im Profil weglassen und funktionierts dann trotzdem oder was muss ich da beachten?

Re: [DE] Wetterbox auf dem Portal (mit User Postleitzahl)

Posted: 24. August 2009 23:24
by scwfan06
Hallo,
ich denke, dass du das Profilfeld PLZ einfach deaktivieren kannst.

Re: [DE] Wetterbox auf dem Portal (mit User Postleitzahl)

Posted: 25. August 2009 15:03
by Lara
Ja, aber ich muss doch sicherlich auch noch etwas in der wetter.php verändern damit es funktioniert oder?

Re: [DE] Wetterbox auf dem Portal (mit User Postleitzahl)

Posted: 25. August 2009 16:43
by scwfan06
Nein das musst du nicht.
Probiers doch einfach mal aus.
Denn durch diesen Abschnitt

Code: Select all

$template->assign_vars(array(
        'WETTER_PLZ'     => (!empty($plz)) ? $plz : '20099', // Ändere 20099 in die gewünschte Standard Postleizzahl
    )); 
wird erreicht, dass bei keiner Eingabe (oder durch Deaktivierung des Feldes) die Standardpostleitzahl (hier: 20099) benutzt wird.

Re: [DE] Wetterbox auf dem Portal (mit User Postleitzahl)

Posted: 25. August 2009 23:25
by Lara
Na toll jetzt erhalte ich folgenden Fehler: Unknown column 'pf_plz' in 'field list' [1054]

Re: [DE] Wetterbox auf dem Portal (mit User Postleitzahl)

Posted: 26. August 2009 00:08
by Lara
Also habe das Feld jetzt trotzdem eingebaut und deaktivert dann funktionierts. Wenn man es allerdings ganz löscht funktioniert es nicht mehr.

Re: [DE] Wetterbox auf dem Portal (mit User Postleitzahl)

Posted: 27. August 2009 08:38
by Kevin
Lara, dadurch das du das Profilfeld nicht angelegt hast, läuft das Script natürlich auf einen Fehler, wenn es versucht es aus der Datenbank auszulesen.
Die Lösung: den SQL Query aus dem Script entfernen und die Postleitzahl einfach festlegen. So sieht das dann aus:

Code: Select all

<?php

if (!defined('IN_PHPBB'))
{
   exit;
}

if (!defined('IN_PORTAL'))
{
   exit;
}

	$template->assign_vars(array(
		'WETTER_PLZ'     => '20099', // Ändere 20099 in die gewünschte Standard Postleizzahl
	));

?>
So sollte es klappen, ohne das Profilfeld anzulegen. ;)

Gruß

Kevin

Re: [DE] Wetterbox auf dem Portal (mit User Postleitzahl)

Posted: 30. August 2009 17:44
by MeSsIaH
Hallo,

hab die Wetter Box inzwischen in der Portal Ansicht und der Index (Foren-Übersicht) drin.
Wird auch beides korrekt angezeigt.

Allerdings erscheint die Wetter Box (ohne Inhalt) im Viewtopic.

Kann mir jemand da weiterhelfen, wie ich das aus der Viewtopic raus bekomme ?

Hab lediglich die wetter.php in der index.php included.

Danke vorab.
Gruß
Jürgen

Re: [DE] Wetterbox auf dem Portal (mit User Postleitzahl)

Posted: 13. October 2009 12:07
by MeSsIaH
Update..

Hallo,
wollte mal in die Runde Fragen ob schon jemand Erfahrung mit dem Wetter Block
und dem Board 3 Portal 1.0.4 mit PortalView Mod 1.0.0.RC2 gemacht hat.

Da ich den Wetter Block in 1.0.3 mit RC1 drin hatte, kommt es hier zu einer weißen leeren
Foren-Übersichtsseite, wenn ich die root\portal\block\wetter.php in der root\index.php includiere.

Danke vorab...
Gruß
Jürgen

Re: [DE] Wetterbox auf dem Portal (mit User Postleitzahl)

Posted: 5. November 2009 20:35
by MeSsIaH
Nabend...
kann mir hier keiner nen Tip geben zu meinem Problem(chen) :?:
:(

Re: [DE] Wetterbox auf dem Portal (mit User Postleitzahl)

Posted: 22. November 2009 17:46
by gamingboard
Ich hab auch diese Fehlermeldung:

Code: Select all

[phpBB Debug] PHP Notice: in file /portal/block/additional_blocks.php on line 26: include() [function.include]: Unable to access ./portal/block/wetter.php
[phpBB Debug] PHP Notice: in file /portal/block/additional_blocks.php on line 26: include(./portal/block/wetter.php) [function.include]: failed to open stream: No such file or directory
[phpBB Debug] PHP Notice: in file /portal/block/additional_blocks.php on line 26: include() [function.include]: Failed opening './portal/block/wetter.php' for inclusion (include_path='.:')
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3892: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3257)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3894: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3257)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3895: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3257)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3896: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3257)
Hab alles versucht nur das will nicht funktionieren.

Re: [DE] Wetterbox auf dem Portal (mit User Postleitzahl)

Posted: 21. December 2009 10:40
by snuffi
Moin,
bei mir geht seit paar Tagen der Wetterblock nicht mehr. Habe schon alle Dateien überprüft, die in Frage kommen. Hat sich da was am Code geändert??

Re: [DE] Wetterbox auf dem Portal (mit User Postleitzahl)

Posted: 21. December 2009 10:46
by HEADLINE
Bei mir funktioniert es auch seit 2 Tagen nicht mehr! :(

Re: [DE] Wetterbox auf dem Portal (mit User Postleitzahl)

Posted: 21. December 2009 11:12
by snuffi
:D :D sorry, funzt alles wieder :o

wünsche schöne Feiertage u. guten Rutsch