Seite 1 von 2

MySQL Dump für Intro/Portal ?

Verfasst: 13.03.2004 21:28
von manne
Hallo,
ich bin neu hier und möchte alle grüssen.

Beim MOD Intro/Portal Version von Heute 13.03.2004 funktioniert die intr_portal_mod_db_install.php bei mir einfach nicht.
Ich fand nirgends einen MySQL Dump um es von Hand einzuspielen.

Den Dump aus der intro_portal_mod_db_install.php rauszuziehen hab`ich nicht geschafft. Gab immer Fehler mit phpmyadmin.
Vielleicht hat jemand den Dump parat (Struktur und Daten) und möchte den hier posten.
Bitte bitte.

mein Versuch die intro_portal_mod_db_install.php zum dump umzufunktionieren folgt FUNKTIONIERT aber SO leider nicht:

# phpMyAdmin SQL Dump
# version 2.5.5-pl1
# http://www.phpmyadmin.net
#
# Host: localhost
# Erstellungszeit: 13. März 2004 um 19:35
# Server Version: 4.0.17
# PHP-Version: 4.3.4
#
# Datenbank: `xxx`
#
#
# Tabellenstruktur für Tabelle `phpbb_categories`
#

CREATE TABLE `steineintroportalmod` (
`config_name` varchar(255) NOT NULL default '',
`config_value` text NOT NULL,
PRIMARY KEY (`config_name`)
) TYPE=MyISAM;

INSERT INTO `steineintroportalmod` VALUES ('config_id', '1'),
INSERT INTO `steineintroportalmod` VALUES ('modversion', '1.50a'),
INSERT INTO `steineintroportalmod` VALUES ('introportalmod_disable', '0'),
INSERT INTO `steineintroportalmod` VALUES ('intro_disable', '0'),
INSERT INTO `steineintroportalmod` VALUES ('intro_disable_msg', 'Intro derzeit deaktiviert'),
INSERT INTO `steineintroportalmod` VALUES ('introlasttopics_active', '1'),
INSERT INTO `steineintroportalmod` VALUES ('introlasttopics_limit', '10'),
INSERT INTO `steineintroportalmod` VALUES ('lasttopics_length_intro', '25'),
INSERT INTO `steineintroportalmod` VALUES ('portal_disable', '0'),
INSERT INTO `steineintroportalmod` VALUES ('portal_disable_msg', 'Portal derzeit deaktiviert'),
INSERT INTO `steineintroportalmod` VALUES ('navigation_active', '1'),
INSERT INTO `steineintroportalmod` VALUES ('navigationquote_active', '1'),
INSERT INTO `steineintroportalmod` VALUES ('lastnewmembers_active', '1'),
INSERT INTO `steineintroportalmod` VALUES ('lastnewmembers_limit', '5'),
INSERT INTO `steineintroportalmod` VALUES ('topposter_active', '1'),
INSERT INTO `steineintroportalmod` VALUES ('topposter_limit', '5'),
INSERT INTO `steineintroportalmod` VALUES ('topposts_active', '1'),
INSERT INTO `steineintroportalmod` VALUES ('topposts_limit', '5'),
INSERT INTO `steineintroportalmod` VALUES ('searchtopics_active', '1'),
INSERT INTO `steineintroportalmod` VALUES ('pollbox_active', '0'),
INSERT INTO `steineintroportalmod` VALUES ('pollbox_forums', '1,2,3,4,5'),
INSERT INTO `steineintroportalmod` VALUES ('forumview_active', '1'),
INSERT INTO `steineintroportalmod` VALUES ('lasttopics_active', '1'),
INSERT INTO `steineintroportalmod` VALUES ('lasttopics_limit', '10'),
INSERT INTO `steineintroportalmod` VALUES ('lasttopics_length_portal', '25'),
INSERT INTO `steineintroportalmod` VALUES ('freenet_active', '0'),
INSERT INTO `steineintroportalmod` VALUES ('heise_active', '0'),
INSERT INTO `steineintroportalmod` VALUES ('whoisonline_active', '1'),
INSERT INTO `steineintroportalmod` VALUES ('webmaster_active', '1'),
INSERT INTO `steineintroportalmod` VALUES ('partners_active', '1'),
INSERT INTO `steineintroportalmod` VALUES ('Partnersitelinks', ''),
INSERT INTO `steineintroportalmod` VALUES ('google_active', '1'),
INSERT INTO `steineintroportalmod` VALUES ('left_active', '1'),
INSERT INTO `steineintroportalmod` VALUES ('center_active', '1'),
INSERT INTO `steineintroportalmod` VALUES ('right_active', '1'),
INSERT INTO `steineintroportalmod` VALUES ('border_active', '1'),
INSERT INTO `steineintroportalmod` VALUES ('fpost_active', '1'),
INSERT INTO `steineintroportalmod` VALUES ('fpost_numofnews', '3'),
INSERT INTO `steineintroportalmod` VALUES ('fpost_forums', '1,2,3,4,5'),
INSERT INTO `steineintroportalmod` VALUES ('fpost_newslength', '250'),
INSERT INTO `steineintroportalmod` VALUES ('loginform_active', '1'),
INSERT INTO `steineintroportalmod` VALUES ('welcomeuser_active', '0'),
INSERT INTO `steineintroportalmod` VALUES ('forumlegend_active', '1'),
INSERT INTO `steineintroportalmod` VALUES ('userpostcount_active', '1'),
INSERT INTO `steineintroportalmod` VALUES ('birthdaymod_active', '0'),
INSERT INTO `steineintroportalmod` VALUES ('lastvisitmod_active', '0'),
INSERT INTO `steineintroportalmod` VALUES ('chatboxmod_active', '0'),
INSERT INTO `steineintroportalmod` VALUES ('globalannouncemod_active', '0'),

CREATE TABLE `steineintroportalmodnav` (
`link_active` tinyint(1) NOT NULL default '1',
`link_id` mediumint(5) NOT NULL default '0',
`link_cat` mediumint(5) NOT NULL default '0',
`link_sub` mediumint(5) NOT NULL default '0',
`link_name` varchar(60) NOT NULL default '',
`link_url` varchar(100) NOT NULL default '',
`link_level` tinyint(1) NOT NULL default '0',
`link_level_type` tinyint(1) NOT NULL default '0',
KEY `link_id` (`link_id`),
KEY `link_cat` (`link_cat`),
KEY `link_sub` (`link_sub`))
TYPE=MyISAM;

INSERT INTO `steineintroportalmodnav` VALUES (1, 0, 0, 0, 'Navigation', '', -1, 2),
INSERT INTO `steineintroportalmodnav` VALUES (1, 0, 0, 1, 'Forum', '', -1, 2),
INSERT INTO `steineintroportalmodnav` VALUES (1, 1, 0, 1, '\$lang[\'IntroPortalMOD1\']', 'intro.php', -1, 2),
INSERT INTO `steineintroportalmodnav` VALUES (1, 2, 0, 1, '\$lang[\'IntroPortalMOD2\']', 'portal.php', -1, 2),
INSERT INTO `steineintroportalmodnav` VALUES (1, 3, 0, 1, '\$lang[\'IntroPortalMOD3\']', 'index.php', -1, 2),
INSERT INTO `steineintroportalmodnav` VALUES (1, 0, 0, 2, '\$lang[\'Registered_users\']', '', -1, 2),
INSERT INTO `steineintroportalmodnav` VALUES (1, 4, 0, 3, '\$lang[\'Register\']', 'profile.php?mode=register', -1, 0),
INSERT INTO `steineintroportalmodnav` VALUES (1, 5, 0, 2, '\$lang[\'Profile\']', 'profile.php?mode=editprofile', 0, 2),
INSERT INTO `steineintroportalmodnav` VALUES (1, 6, 0, 2, '\$lang[\'Search\']', 'search.php', 0, 2),
INSERT INTO `steineintroportalmodnav` VALUES (1, 7, 0, 2, '\$lang[\'Memberlist\']', 'memberlist.php', 0, 2),
INSERT INTO `steineintroportalmodnav` VALUES (1, 8, 0, 2, '\$lang[\'FAQ\']', 'faq.php', 0, 2),
INSERT INTO `steineintroportalmodnav` VALUES (1, 9, 0, 2, '\$lang[\'Usergroups\']', 'groupcp.php', 0, 2),
INSERT INTO `steineintroportalmodnav` VALUES (1, 10, 0, 2, '\$lang[\'Private_Messages\']', 'privmsg.php', 0, 2),
INSERT INTO `steineintroportalmodnav` VALUES (1, 11, 0, 2, '\$lang[\'Who_is_Online\']', 'viewonline.php', 0, 2),
INSERT INTO `steineintroportalmodnav` VALUES (1, 0, 0, 4, '\$lang[\'IntroPortalMOD6\']', '', -1, 2),
INSERT INTO `steineintroportalmodnav` VALUES (1, 12, 0, 4, '\$lang[\'IntroPortalMOD4\']', 'http://www.phpbb.de', -1, 2),
INSERT INTO `steineintroportalmodnav` VALUES (1, 0, 0, 3, '\$lang[\'Guest\']', '', -1, 2)
);

Ich hoffe das Posting ist nicht zu lang.
Grüsse
manfred

Verfasst: 13.03.2004 21:32
von Markus67
hallo manne ..

welche fehlermeldungen bekommst du denn wenn du die install laufen lässt ?

bist du beim aufruf der install auch als admin angemeldet ?

markus

Verfasst: 13.03.2004 21:36
von manne
Ich krieg keine Fehlermeldung.
Nach Aufruf der ...._install muss ich mich einloggen.
Dann kommt ein Link mit dem vermutlich die Tabellen in die DB geschrieben werden. Wenn ich den Klicke geht er wieder zurück zur login.

manne

Verfasst: 13.03.2004 21:40
von Markus67
...log dich mal voerher als admin ein ....

hast du im acp was verändert `?
- cookies
- skriptpfad
- domain


markus

Verfasst: 13.03.2004 21:46
von manne
Danke fuer die schnelle Rückantwort.

Ich dachte ich bin der admin.
Habe phpbb erst installiert.

Ich habe es mit easy mod installer installiert.
Allerdings hat er die ....._install nicht ins root kopiert, was er wohl tun sollte. Die anderen Dateien hat er richtig reinkopiert, wenn ich nicht irre.
Ich habe die install dann per ftp reingestellt. Müsste aber eigentlich funktionieren auch wenn ich`s von Hand versucht hätte. Die install liegt im richtigen Verzeichniss, hat die richtigen Daten der configure aber in die DB macht er nix rein.

was acp ist weiss ich noch nicht.
Ich denke wenn die Tabellen in der DB wären wuerde es funktionieren.

manne

Verfasst: 13.03.2004 21:49
von Markus67
falsch kopiert ?

in welches root hat er sie reinkopiert ?

in den forumroot .... also zb. phpbb2

oder in den root deiner domain ?

die install muss in den forumroot .... also da wo auch z.b. die config.php oder index.php liegen ....



markus

Verfasst: 13.03.2004 21:52
von manne
Bei mir ist der forum root der domain root. Also das gleiche Verzeichniss wie die config.
Ich habe sie selbst da reingestellt, da er sie nicht reinkopiert hat. Die anderen die dazugehören hat er meines Erachtens in die richtigen Verzeichnisse kopiert.

manne

Verfasst: 13.03.2004 21:57
von Markus67
ansonsten läuft das forum schon ?
du wolltest nur den mod installieren ?
und das funzt nicht ?

markus

Verfasst: 13.03.2004 22:01
von manne
Läuft alles super, auch fuer mich als php Laie.
Der DB Zugriff sonst funkt. auch perfekt.
Tolle Arbeit.
Dank an die Entwickler, Die Forums Admins hier und alle die das Projekt am Laufen halten.

Aber ohne MySQL Dump läufts halt bei mir nicht.
Die install müstte ja auch alleine funktionieren ohne die restl. IntroPortal Dateien. Es kommt auch keine SQL Fehlermeldung.

manne

Verfasst: 13.03.2004 22:07
von Markus67
welche versionsnummer steht bei dir in der install drin ?

wenn ich das richtig vorhin gelesen habe hast du die version 1.5a runtergeladen ....

ich hab noch eine install von der version 1.5

versuch die mal

Code: Alles auswählen

<?php
define('IN_PHPBB', 1);
$phpbb_root_path = './';
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'config.'.$phpEx);
include($phpbb_root_path . 'common.'.$phpEx);
include($phpbb_root_path . 'includes/constants.'.$phpEx);
include($phpbb_root_path . 'includes/db.'.$phpEx);


// Start session management
$userdata = session_pagestart($user_ip, PAGE_INDEX);
init_userprefs($userdata);
// End session management


// Start Restrict to members
if( !$userdata['session_logged_in'] )
{
header("Location: " . append_sid("login.$phpEx?redirect=intro_portal_mod_db_install.$phpEx", true));
exit;
}
// End Restrict to members


// Start User is Admin ?
if ( $userdata['user_level'] == ADMIN )
{
}
else
{
message_die(GENERAL_MESSAGE, $lang['Not_Authorised'], $lang['Not_Authorised']);
exit;
}
// End User is Admin ?


echo '<html>
<head>
<title>SQL-DB-Installer - Intro + Portal MOD</title>
</head>
<body>
<h1>SQL-DB-Installer - Intro + Portal MOD</h1>
<hr />';
if (!isset($HTTP_GET_VARS['install'])) {
echo '<a href="?install=1">Please click here | Bitte hier klicken</a>';
}
else {
$queries = array(

// "DROP TABLE " . $table_prefix . "introportalmod",

"CREATE TABLE " . $table_prefix . "introportalmod (
  config_name varchar(255) NOT NULL default '',
  config_value text NOT NULL,
  PRIMARY KEY (config_name)
) TYPE=MyISAM;",

"INSERT INTO " . $table_prefix . "introportalmod VALUES ('config_id', '1')",
"INSERT INTO " . $table_prefix . "introportalmod VALUES ('modversion', '1.50')",
"INSERT INTO " . $table_prefix . "introportalmod VALUES ('introportalmod_disable', '0')",
"INSERT INTO " . $table_prefix . "introportalmod VALUES ('intro_disable', '0')",
"INSERT INTO " . $table_prefix . "introportalmod VALUES ('intro_disable_msg', 'Intro derzeit deaktiviert')",
"INSERT INTO " . $table_prefix . "introportalmod VALUES ('introlasttopics_active', '1')",
"INSERT INTO " . $table_prefix . "introportalmod VALUES ('introlasttopics_limit', '10')",
"INSERT INTO " . $table_prefix . "introportalmod VALUES ('lasttopics_length_intro', '25')",
"INSERT INTO " . $table_prefix . "introportalmod VALUES ('portal_disable', '0')",
"INSERT INTO " . $table_prefix . "introportalmod VALUES ('portal_disable_msg', 'Portal derzeit deaktiviert')",
"INSERT INTO " . $table_prefix . "introportalmod VALUES ('navigation_active', '1')",
"INSERT INTO " . $table_prefix . "introportalmod VALUES ('navigationquote_active', '1')",
"INSERT INTO " . $table_prefix . "introportalmod VALUES ('lastnewmembers_active', '1')",
"INSERT INTO " . $table_prefix . "introportalmod VALUES ('lastnewmembers_limit', '5')",
"INSERT INTO " . $table_prefix . "introportalmod VALUES ('topposter_active', '1')",
"INSERT INTO " . $table_prefix . "introportalmod VALUES ('topposter_limit', '5')",
"INSERT INTO " . $table_prefix . "introportalmod VALUES ('topposts_active', '1')",
"INSERT INTO " . $table_prefix . "introportalmod VALUES ('topposts_limit', '5')",
"INSERT INTO " . $table_prefix . "introportalmod VALUES ('searchtopics_active', '1')",
"INSERT INTO " . $table_prefix . "introportalmod VALUES ('pollbox_active', '0')",
"INSERT INTO " . $table_prefix . "introportalmod VALUES ('pollbox_forums', '1,2,3,4,5')",
"INSERT INTO " . $table_prefix . "introportalmod VALUES ('forumview_active', '1')",
"INSERT INTO " . $table_prefix . "introportalmod VALUES ('lasttopics_active', '1')",
"INSERT INTO " . $table_prefix . "introportalmod VALUES ('lasttopics_limit', '10')",
"INSERT INTO " . $table_prefix . "introportalmod VALUES ('lasttopics_length_portal', '25')",
"INSERT INTO " . $table_prefix . "introportalmod VALUES ('freenet_active', '0')",
"INSERT INTO " . $table_prefix . "introportalmod VALUES ('heise_active', '0')",
"INSERT INTO " . $table_prefix . "introportalmod VALUES ('whoisonline_active', '1')",
"INSERT INTO " . $table_prefix . "introportalmod VALUES ('webmaster_active', '1')",
"INSERT INTO " . $table_prefix . "introportalmod VALUES ('partners_active', '1')",
"INSERT INTO " . $table_prefix . "introportalmod VALUES ('Partnersitelinks', 'http://www.partner1.de\r\nhttp://www.partner2.de\r\nhttp://www.partner3.de\r\nhttp://www.partner4.de\r\nhttp://www.partner5.de')",
"INSERT INTO " . $table_prefix . "introportalmod VALUES ('google_active', '1')",
"INSERT INTO " . $table_prefix . "introportalmod VALUES ('calendar_active', '0')",
"INSERT INTO " . $table_prefix . "introportalmod VALUES ('calendar_nbc', 'EEEEEE')",
"INSERT INTO " . $table_prefix . "introportalmod VALUES ('calendar_mbc', 'EEBBBB')",
"INSERT INTO " . $table_prefix . "introportalmod VALUES ('calendar_tfc', 'CF0000')",
"INSERT INTO " . $table_prefix . "introportalmod VALUES ('left_active', '1')",
"INSERT INTO " . $table_prefix . "introportalmod VALUES ('center_active', '1')",
"INSERT INTO " . $table_prefix . "introportalmod VALUES ('right_active', '1')",
"INSERT INTO " . $table_prefix . "introportalmod VALUES ('border_active', '1')",
"INSERT INTO " . $table_prefix . "introportalmod VALUES ('fpost_active', '1')",
"INSERT INTO " . $table_prefix . "introportalmod VALUES ('fpost_numofnews', '3')",
"INSERT INTO " . $table_prefix . "introportalmod VALUES ('fpost_forums', '1,2,3,4,5')",
"INSERT INTO " . $table_prefix . "introportalmod VALUES ('fpost_newslength', '250')",
"INSERT INTO " . $table_prefix . "introportalmod VALUES ('loginform_active', '1')",
"INSERT INTO " . $table_prefix . "introportalmod VALUES ('welcomeuser_active', '0')",
"INSERT INTO " . $table_prefix . "introportalmod VALUES ('forumlegend_active', '1')",
"INSERT INTO " . $table_prefix . "introportalmod VALUES ('userpostcount_active', '1')",
"INSERT INTO " . $table_prefix . "introportalmod VALUES ('birthdaymod_active', '0')",
"INSERT INTO " . $table_prefix . "introportalmod VALUES ('lastvisitmod_active', '0')",
"INSERT INTO " . $table_prefix . "introportalmod VALUES ('chatboxmod_active', '0')",
"INSERT INTO " . $table_prefix . "introportalmod VALUES ('globalannouncemod_active', '0')",

// "DROP TABLE " . $table_prefix . "introportalmodnav",

"CREATE TABLE " . $table_prefix . "introportalmodnav
(link_active tinyint(1) NOT NULL default '1',
link_id mediumint(5) NOT NULL default '0',
link_cat mediumint(5) NOT NULL default '0',
link_sub mediumint(5) NOT NULL default '0',
link_name varchar(60) NOT NULL default '',
link_url varchar(100) NOT NULL default '',
link_level tinyint(1) NOT NULL default '0',
link_level_type tinyint(1) NOT NULL default '0',
KEY link_id (link_id), KEY link_cat (link_cat),
KEY link_sub (link_sub))
TYPE=MyISAM;",

"INSERT INTO " . $table_prefix . "introportalmodnav VALUES (1, 0, 0, 0, 'Navigation', '', -1, 2)",
"INSERT INTO " . $table_prefix . "introportalmodnav VALUES (1, 0, 0, 1, 'Forum', '', -1, 2)",
"INSERT INTO " . $table_prefix . "introportalmodnav VALUES (1, 1, 0, 1, '\$lang[\'IntroPortalMOD1\']', 'intro.php', -1, 2)",
"INSERT INTO " . $table_prefix . "introportalmodnav VALUES (1, 2, 0, 1, '\$lang[\'IntroPortalMOD2\']', 'portal.php', -1, 2)",
"INSERT INTO " . $table_prefix . "introportalmodnav VALUES (1, 3, 0, 1, '\$lang[\'IntroPortalMOD3\']', 'index.php', -1, 2)",
"INSERT INTO " . $table_prefix . "introportalmodnav VALUES (1, 0, 0, 2, '\$lang[\'Registered_users\']', '', -1, 2)",
"INSERT INTO " . $table_prefix . "introportalmodnav VALUES (1, 4, 0, 3, '\$lang[\'Register\']', 'profile.php?mode=register', -1, 0)",
"INSERT INTO " . $table_prefix . "introportalmodnav VALUES (1, 5, 0, 2, '\$lang[\'Profile\']', 'profile.php?mode=editprofile', 0, 2)",
"INSERT INTO " . $table_prefix . "introportalmodnav VALUES (1, 6, 0, 2, '\$lang[\'Search\']', 'search.php', 0, 2)",
"INSERT INTO " . $table_prefix . "introportalmodnav VALUES (1, 7, 0, 2, '\$lang[\'Memberlist\']', 'memberlist.php', 0, 2)",
"INSERT INTO " . $table_prefix . "introportalmodnav VALUES (1, 8, 0, 2, '\$lang[\'FAQ\']', 'faq.php', 0, 2)",
"INSERT INTO " . $table_prefix . "introportalmodnav VALUES (1, 9, 0, 2, '\$lang[\'Usergroups\']', 'groupcp.php', 0, 2)",
"INSERT INTO " . $table_prefix . "introportalmodnav VALUES (1, 10, 0, 2, '\$lang[\'Private_Messages\']', 'privmsg.php', 0, 2)",
"INSERT INTO " . $table_prefix . "introportalmodnav VALUES (1, 11, 0, 2, '\$lang[\'Who_is_Online\']', 'viewonline.php', 0, 2)",
"INSERT INTO " . $table_prefix . "introportalmodnav VALUES (1, 0, 0, 4, '\$lang[\'IntroPortalMOD6\']', '', -1, 2)",
"INSERT INTO " . $table_prefix . "introportalmodnav VALUES (1, 12, 0, 4, '\$lang[\'IntroPortalMOD4\']', 'http://www.phpbb.de', -1, 2)",
"INSERT INTO " . $table_prefix . "introportalmodnav VALUES (1, 0, 0, 3, '\$lang[\'Guest\']', '', -1, 2)"

);

$success = true;
foreach($queries as $query) {
if (!$db->sql_query($query)) {
echo '<font color="red">An error occurred ! Changes have not been entered successfully !<br /><br />Es Fehler ist aufgetreten ! Änderung nicht erfolgreich eingetragen !</font><br /><br />';
echo mysql_error();
$success = false;
break;
}
}
if ($success) {
echo '<font color="green">DB-Changes have been entered successfully. You should delete this SQL-DB-Installer as soon as possible !<br /><br />DB-Änderung wurde erfolgreich ausgeführt. Du solltest diesen SQL-DB-Installer sobald wie möglich löschen !';
}
}
?>
markus