Seite 1 von 1

Birthday Mod /erledigt

Verfasst: 01.05.2005 15:57
von Ramona_FP
Kann mir jemand helfen?

Sobald ich jetzt aufs "aktualiserte, also geb.tag eingegeben" Profil klicke (aber nur oben auf dem index) kommt das:

Parse error: parse error, unexpected ';', expecting ')' in /home/www/web133/html/phpBB2/includes/usercp_register.php on line 155

Also wie gesagt wenn ich direkt bei den usern ins profil klicke indem ich auf die namen gehe ist allet ok aber wenn ich oben auf dem index auf mein profil gehe nachdem ich einen geburtstag angegeben habe kommt die Fehlermeldung..

Hier mal die Zeilen 135 bis 157..

Code: Alles auswählen

// Start add - Birthday MOD
if ($birthday!=999999)
{
   $b_day = realdate('j', $birthday);
   $b_md = realdate('n', $birthday);
   $b_year = realdate('Y', $birthday);
   $birthday = realdate($lang['Submit_date_format'], $birthday);
} else
{
   $b_day = '';
   $b_md = '';
   $b_year = '';
   $birthday = '';
}
// End add - Birthday MOD

   if ( $error )
   {
      $template->set_filenames(array(
        // Run some validation on the optional fields. These are pass-by-ref, so they'll be changed to
        // empty strings if they fail.
        validate_optional_fields($icq, $aim, $msn, $yim, $website, $location, $occupation, $interests, $signature);
Ich finde die Stelle nicht wo da ein Fehler sein soll :cry: hab ich Tomaten auf den Augen? :oops:

/edit; *kreisch* und regsitrieren kann sich auch keiner mehr - hab jetzt erstmal die Originale wieder hochgeladen :-?

Verfasst: 01.05.2005 16:44
von Leuchte
Einmal die usercp_register.php als .txt-Datei bitte
KB:datei

Verfasst: 01.05.2005 16:48
von Ramona_FP

Verfasst: 01.05.2005 17:29
von Supersonic
suche (Zeile 135)

Code: Alles auswählen

// Start add - Birthday MOD
if ($birthday!=999999)
{
   $b_day = realdate('j', $birthday);
   $b_md = realdate('n', $birthday);
   $b_year = realdate('Y', $birthday);
   $birthday = realdate($lang['Submit_date_format'], $birthday);
} else
{
   $b_day = '';
   $b_md = '';
   $b_year = '';
   $birthday = '';
}
// End add - Birthday MOD
ersetze mit

Code: Alles auswählen

// Start add - Birthday MOD
	if (isset($HTTP_POST_VARS['birthday']) )
	{
		$birthday = intval ($HTTP_POST_VARS['birthday']);
		if ($birthday!=999999)
		{
			$b_day = realdate('j',$birthday); 
			$b_md = realdate('n',$birthday); 
			$b_year = realdate('Y',$birthday);
		}
	} else
	{
		$b_day = ( isset($HTTP_POST_VARS['b_day']) ) ? intval ($HTTP_POST_VARS['b_day']) : 0;
		$b_md = ( isset($HTTP_POST_VARS['b_md']) ) ? intval ($HTTP_POST_VARS['b_md']) : 0;
		$b_year = ( isset($HTTP_POST_VARS['b_year']) ) ? intval ($HTTP_POST_VARS['b_year']) : 0;
		if ($b_day && $b_md && $b_year)
		{
			$birthday = mkrealdate($b_day,$b_md,$b_year);
		} else
		{
			$birthday = 999999;
		}
	}
// End add - Birthday MOD
suche

Code: Alles auswählen

 }// Start add - Birthday MOD
ersetze mit

Code: Alles auswählen

 }
  // Start add - Birthday MOD

Verfasst: 01.05.2005 17:37
von Ramona_FP
Parse error: parse error, unexpected ';', expecting ')' in /home/www/web133/html/phpBB2/includes/usercp_register.php on line 164

:(

http://www.fruehchen-portal.de/phpBB2/u ... terneu.txt

Verfasst: 01.05.2005 17:52
von Supersonic
finde und lösche (Zeile 159-161)

Code: Alles auswählen

if ( $error )
   {
      $template->set_filenames(array(

Verfasst: 01.05.2005 18:03
von Ramona_FP
pppuhh :D ok also ins profil komme ich..aber sobald ich dann mein geb.datum eingegeben hab und absende:

Could not update users table

DEBUG MODE

SQL Error : 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 'user_sig = 'Liebe Grüße Ramona [url=http://www.fruehchen-port


Line : 587
File : usercp_register.php





/edit; habe Database Maintenance drüberlaufen lassen waren auch einige Fehler die sind aber wieder behoben - bekomme aber trotzdem noch die Meldung

Verfasst: 01.05.2005 18:34
von Ramona_FP
Könnte mir jemand aus

http://www.fruehchen-portal.de/phpBB2/db_update.txt

die "reinen" SQL-Befehle sagen/posten damit ich sie direkt in die DB eingeben kann? Offensichtlich legt er keine Tabellen an obwohl ich den Installer hab laufen lassen und er mir im Anschluß auch ein ok gegeben hat..(und ich sie danach auch direkt gelöscht hab-also die installer-datei)

Verfasst: 01.05.2005 20:59
von Ramona_FP
ich habe nun ALLES wieder rückgängig gemacht - jetzt kann ich nicht mehr editieren

Es wurde keine Beitrags-ID angegeben.


und die smilies werden nicht mehr angezeigt (nur die codes)

hilfeee :cry: :cry: :cry: (die anderen drölfundneunzig fehler habe ich schon weg indem ich die originaldateien wieder hochgeladen habe dafür funzen bestimmt demnächst andere mods nicht mehr)

/edit; hab die vietopic.php einfach neu hochgeladen..nun muss ich nur kucken ob die anderen MODs diese "brauchten" und das ggfls wieder einfügen

und der birthd. mod bleibt wech :evil: ich gebs auf :roll: