Seite 2 von 3

intro.php

Verfasst: 20.04.2003 16:28
von EMUGurke
Die intro.php ist unverändert gem. dem Mod von AWSW...
also:

Code: Alles auswählen

<?php
/***************************************************************************
 *                                    Intro
 *                          ------------------------
 *   Version              : Version 1.00 - 01.01.2003
 *   copyright            : (C) 2003 AWSW
 *   URL                  : http://www.awsw.de
 *   email			  : awsw@awsw.de
 *
 *   $Id: intro.php,v 1.00 2003/01/01 AWSW Exp $
 *
 ***************************************************************************/

/***************************************************************************
 *
 *   This program is free software; you can redistribute it and/or modify
 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation; either version 2 of the License, or
 *   (at your option) any later version.
 *
 ***************************************************************************/

define('IN_PHPBB', true); 

$phpbb_root_path = './';  
include($phpbb_root_path . 'extension.inc'); 
include($phpbb_root_path . 'common.'.$phpEx); 


$userdata = session_pagestart($user_ip, PAGE_INDEX); 
init_userprefs($userdata); 

include($phpbb_root_path . 'includes/page_header.'.$phpEx); 

include($phpbb_root_path . 'glance.'.$phpEx);


// Check For Anonymous User
if ($userdata['user_id'] != '-1')
{
$name_link = $userdata['username'];
}
else
{
$name_link = $lang['Guest'];
}

$template->assign_vars(array(
'U_NAME_LINK' => $name_link,
'AVATAR_IMG' => $avatar_img,
'IntroPortaltext1' => $lang['IntroPortaltext1'],
'IntroPortaltext2' => $lang['IntroPortaltext2'],
'IntroPortaltext3' => $lang['IntroPortaltext3'],
'IntroPortaltext4' => $lang['IntroPortaltext4'],
'IntroPortaltext5' => $lang['IntroPortaltext5'],
'IntroPortaltext6' => $lang['IntroPortaltext6'],
'IntroPortaltext7' => $lang['IntroPortaltext7'],
'IntroPortaltext8' => $lang['IntroPortaltext8'],
'IntroPortaltext9' => $lang['IntroPortaltext9'],
'IntroPortaltext10' => $lang['IntroPortaltext10'],
'IntroPortaltext11' => $lang['IntroPortaltext11'],
'IntroPortaltext12' => $lang['IntroPortaltext12'],
'IntroPortaltext13' => $lang['IntroPortaltext13'],
'IntroPortaltext14' => $lang['IntroPortaltext14'],
'IntroPortaltext15' => $lang['IntroPortaltext15'],
'IntroPortaltext16' => $lang['IntroPortaltext16'],
'IntroPortaltext17' => $lang['IntroPortaltext17'],
'IntroPortaltext18' => $lang['IntroPortaltext18'],
'IntroPortaltext19' => $lang['IntroPortaltext19'],
'IntroPortaltext20' => $lang['IntroPortaltext20'],
'IntroPortaltext21' => $lang['IntroPortaltext21'],
'IntroPortaltext22' => $lang['IntroPortaltext22'],
'IntroPortaltext23' => $lang['IntroPortaltext23'],
'IntroPortaltext24' => $lang['IntroPortaltext24'],
'IntroPortaltext25' => $lang['IntroPortaltext25'],
'IntroPortaltext26' => $lang['IntroPortaltext26'],
'IntroPortaltext27' => $lang['IntroPortaltext27'],
'IntroPortaltext28' => $lang['IntroPortaltext28'],
'L_SEND_PASSWORD' => $lang['Forgotten_password'],
'U_SEND_PASSWORD' => append_sid("profile.$phpEx?mode=sendpassword")
) 
);

$template->set_filenames(array( 
'body' => '../intro_body.tpl') 
); 

$template->pparse('body'); 
include($phpbb_root_path . 'includes/page_tail.'.$phpEx); 
?>

Verfasst: 20.04.2003 19:56
von saerdnaer
füg mal zwischen

Code: Alles auswählen

include($phpbb_root_path . 'includes/page_header.'.$phpEx); 
und

Code: Alles auswählen

include($phpbb_root_path . 'glance.'.$phpEx); 
folgende zeile ein

Code: Alles auswählen

echo '------';
und sag mir dann ob die fehlermeldung vor oder nach den strichen kommt...

ah

Verfasst: 20.04.2003 21:07
von EMUGurke
So siehts aus:

------
Warning: mysql_free_result(): 13 is not a valid MySQL result resource in f:\wampp13cs\htdocs\phpbb2\db\mysql4.php on line 318

also eindeutig nach den Strichen :wink:

Verfasst: 21.04.2003 14:12
von saerdnaer
okay.. das heißt das der fehler in der glance.php liegt... poste doch mal den quelltext dieser datei... ( aber bitte als link! )

ah

Verfasst: 21.04.2003 14:21
von EMUGurke
OkiDoki

hier der Link

Verfasst: 21.04.2003 15:23
von saerdnaer
kommentieren mal alle

Code: Alles auswählen

$db->sql_freeresult($result);
nacheinander aus und schau dann jeweils nach wenn die fehlermedlung verschwindet...

Verfasst: 21.04.2003 15:40
von EMUGurke
ok - hab ich von oben nach unten mal praktiziert.

Die meldung verschwindet wenn ich die Zeile 171 rausnehme. also Direkt über

Code: Alles auswählen

// Änderung Sticky ENDE
Die von uns gesetzten Striche stehen dann allein und verlassen da :wink:

Verfasst: 21.04.2003 15:48
von saerdnaer
aja dann haben wir ja den fehler:

Code: Alles auswählen

$db->sql_freeresult($result); 
// Änderung Sticky ENDE

		$db->sql_freeresult($result);
man sollte das ding nur einmal für eine query ausführen... unter mysql3 macht das anscheinend nichts aber unter mysql4... als lösche eins von beiden und schon ist das problem gelöst...

@awsw: die änderung solltest du standartmäßig mit einbauen...

achja jetzt kannst du die striche die wir eingefügt haben wieder löschen...

ah

Verfasst: 21.04.2003 15:59
von EMUGurke
Alles kloar - vielen Dank für Deine Hilfe - nu löppt es :lol:

Verfasst: 22.04.2003 08:48
von Gast
danke, das gleiche Problem hatte ich auch :)