AWSW Intro+Portal-MOD-->Intro Erweiterung (mysql4)

Du hast Probleme beim Einbau oder bei der Benutzung eines Mods? In diesem Forum bist du richtig.
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.
EMUGurke

intro.php

Beitrag 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); 
?>
Benutzeravatar
saerdnaer
Ehemaliges Teammitglied
Beiträge: 4268
Registriert: 21.04.2001 02:00

Beitrag 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
EMUGurke

Beitrag 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:
Benutzeravatar
saerdnaer
Ehemaliges Teammitglied
Beiträge: 4268
Registriert: 21.04.2001 02:00

Beitrag 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
EMUGurke

Beitrag von EMUGurke »

OkiDoki

hier der Link
Benutzeravatar
saerdnaer
Ehemaliges Teammitglied
Beiträge: 4268
Registriert: 21.04.2001 02:00

Beitrag von saerdnaer »

kommentieren mal alle

Code: Alles auswählen

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

Beitrag 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:
Benutzeravatar
saerdnaer
Ehemaliges Teammitglied
Beiträge: 4268
Registriert: 21.04.2001 02:00

Beitrag 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
EMUGurke

Beitrag von EMUGurke »

Alles kloar - vielen Dank für Deine Hilfe - nu löppt es :lol:
Gast

Beitrag von Gast »

danke, das gleiche Problem hatte ich auch :)
Antworten

Zurück zu „phpBB 2.0: Mod Support“