Seite 1 von 2

Hiilfeee-BACKUP?

Verfasst: 10.12.2005 15:14
von LadyDana
Also Leute, ich glaube ich nerve langsam mit meinen Fragen :oops:

Aber ich lerne ja noch!Darum hoffe ich auf ein paar gute antworten von euch! :D

Naja....auf jesden Fall habe ich es geschafft mein Forum "abzuschiessen"!Habe natürlich vorher ein Backup gemacht.Das Backup ist eine .txt datei.Soviel wie ich weiss muss ich die auf meine DB laden, oder bin ich schon wieder falsch?

Ich erkläre eben was ich gemacht habe:

Ich habe die Backup datei in MyAmdmin bzw in meine Db imprtiert.Dann kommt aber folgender Fehler!

SQL-Befehl:

#
# phpBB Backup Script
# Dump of tables for DB
#
# DATE : 10-12-2005 13:29:59 GMT
#
#
# TABLE: phpbb_auth_access
#
DROP TABLE IF EXISTS phpbb_auth_access
MySQL meldet:

#1046 - No Database Selected

muss ich jetzt die phpbb_auth_access datei löschen, ersetzten oder so????????????

Oh Gott *schäm*

Ich weiss es nicht und bracuhe aber gaaaanzzz dringend HILFE!!!Sonst kann ich mein Forum SCHON WIEDER von neuem installieren usw......da habe ich gar keinen bock mehr drauf :cry:

Bitte erklärt es mir für DUMMIES ja???*ganzliebguck*

Verfasst: 10.12.2005 15:17
von hagily
Ja was hast du genau gemacht bevor der fehler gekommen ist?

Update, Mod eingebaut oder etwas anderes?
Und wie hast du das backup hochgeladen über ACP oder myphpadmin?

Verfasst: 10.12.2005 15:19
von LadyDana
Hallo,

nunja ich habe in der index.php versucht ein Mod einzubauen!Da hat wohl irgendwas nicht geklappt.

Die Backup datei wollte ich mit PhpMyAdmin importieren, bzw hab es auch gemacht.Aber ich kenne mich GAR nicht aus.Bzw weiss ich gar nicht wie man als erstes vorgeht wenn man ein Backup machen möchte.

Vielleicht kannst du mir helfen? :grin:

Verfasst: 10.12.2005 15:22
von hagily
Hallo!

Also wenn du an einer datei was falsch gemacht hast nutzt kein datenbank backup über myphpadmin, weil man durch ein Backup nur seine Datenbank wiederherstellt aber nicht die dateien.

Was für ein Mod wolltest du in Die index.php einbauen? Poste mal bitte die Anleitung dazu und zu allen anderen Mods die du eingebaut hast.

Verfasst: 10.12.2005 15:33
von LadyDana
ojeeeeeeeee..............das ist nen richtige kuddelmuddel..............

naja ich versuchs mal

ERFOLGREICH eingebaut habe ich die Navi!Anleitung:


##############################################################
## MOD Title: Navigationsmenü + Wer ist Online? Zusatsbox
## MOD Author: fanrpg < alexanderschumacher@gmx.de > (Alexander Schumacher) www.inet-forum.de.be
## MOD Description: Fügt ein kleinen Navigationsmenü mit Wer ist Online Box
## links neben den Foren hinzu
## MOD Version: 1.2.0
##
## Installation Level: Easy
## Installation Time: 10 min
## Files To Edit: 4
## index.php
## language/lang_english/lang_main.php
## language/lang_german/lang_main.php
## templates/subSilver/index_body.tpl
## Included Files: n/a
##############################################################
## For Security Purposes, Please Check: http://www.phpbb.com/mods/downloads/ for the
## latest version of this MOD. Downloading this MOD from other sites could cause malicious code
## to enter into your phpBB Forum. As such, phpBB will not offer support for MODs not offered
## in our MOD-Database, located at: http://www.phpbb.com/mods/downloads/
##############################################################
## MOD History:
##
##
## Version 0.0.1
## - Release
##
## Version 0.1.0
## - Quellcode optimiert
##
## Version 0.5.0
## - Bugs beseitigt
## - Sprachvariabeln hinzugefügt
##
## Version 1.0.0
## - Erster Offizieler Release
## - Bugs beseitigt
## - Unnötige Sprachvariabeln entfernt
##
## Version 1.1.0
## - Quellcode optimiert und verbessert
## - Wer ist Online Box hinzugefügt
##
## Version 1.2.0
## - Quellcode optimiert und verbessert
## - Suchbox hinzugefügt
##
## Version 1.2.1
## - Einige Bugfixes
##
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/index_body.tpl
#
#-----[ FIND ]------------------------------------------
#
<a href="{U_SEARCH_UNANSWERED}" class="gensmall">{L_SEARCH_UNANSWERED}</a></td>

</tr>
</table>
#
#-----[ AFTER, ADD ]------------------------------------------
#
<!-- Start Add - Navigation Mod by fanrpg -->
<table width="20%" cellspacing="0" cellpadding="2" border="0" align="left">
<tr>
<td> <table width="98%" cellspacing="0" cellpadding="2" border="0" align="left" class="forumline">
<tr>
<th>{L_NAVI_TH}</th>
</tr>
<tr>
<td class="row1" nowrap="nowrap"><a href="{U_FAQ}" class="mainmenu">{L_FAQ}</a></td>
</tr>
<tr>
<td class="row1" nowrap="nowrap"><a href="{U_SEARCH}" class="mainmenu">{L_SEARCH}</a></td>
</tr>
<tr>
<td class="row1" nowrap="nowrap"><a href="{U_MEMBERLIST}" class="mainmenu">{L_MEMBERLIST}</a></td>
</tr>
<tr>
<td class="row1" nowrap="nowrap"><a href="{U_GROUP_CP}" class="mainmenu">{L_USERGROUPS}</a></td>
</tr>
<tr>
<td class="row1" nowrap="nowrap"><a href="{U_PROFILE}" class="mainmenu">{L_PROFILE}</a></td>
</tr>
<tr>
<td class="row1" nowrap="nowrap"> <a href="{U_REGISTER}" class="mainmenu">{L_REGISTER}</a></td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<table width="98%" cellspacing="1" cellpadding="3" border="0" align="left" class="forumline">
<tr>
<th>{L_WHO_IS_ONLINE}</th>
</tr>
<tr>
<td class="row1"><center><img src="templates/subSilver/images/whosonline.gif"></center></td>
</tr>
<tr>
<td class="row1"><span class="gensmall">{TOTAL_POSTS}<br>{TOTAL_USERS}<br>{NEWEST_USER}</span></td>
</tr>
<tr>
<td class="row1"><span class="gensmall">{TOTAL_USERS_ONLINE}<br>[ {L_WHOSONLINE_ADMIN} ] <br> [ {L_WHOSONLINE_MOD} ]<br> {LOGGED_IN_USER_LIST}</span></td>
</tr>
<tr>
<td class="row1"><span class="gensmall">{RECORD_USERS}</span></td>
</tr>
<tr>
<td class="row1"><span class="gensmall">{L_ONLINE_EXPLAIN}</span></td>
</tr>
</table>
</td>
</tr>
<tr>
<td><script type="text/javascript">
<!--
function checkSearch()
{
if (document.search_block.search_engine.value == 'google')
{
window.open('http://www.google.com/search?q=' + document.search_block.search_keywords.value, '_google', '');
return false;
}
else
{
return true;
}
}
//-->
</script>
<form name="search_block" method="post" action="{U_SEARCH}" onsubmit="return checkSearch()">
<table width="98%" cellpadding="4" cellspacing="1" class="forumline">
<tr>
<th>&nbsp;{L_SEARCH}&nbsp;</th>
</tr>
<tr>
<td align="center" class="row1"><table border="0" cellspacing="0" cellpadding="2">
<tr>
<td align="center"><input class="post" type="text" name="search_keywords" size="15" /></td>
</tr>
<tr>
<td align="center"><select class="post" name="search_engine">
<option value="site">{L_FORUM}</option>
<option value="google">Google</option>
</select></td>
</tr>
<tr>
<td align="center"><input class="mainoption" type="submit" value="{L_SEARCH}" /></form></td>
</tr>
</table>
</table>
</td>
</tr>
</table>
<!-- End Add - Navigation Mod by fanrpg -->
#
#-----[ FIND ]------------------------------------------
#
<table width="100%" cellpadding="3" cellspacing="1" border="0" class="forumline">
<tr>
<td class="catHead" colspan="2" height="28"><span class="cattitle"><a href="{U_VIEWONLINE}" class="cattitle">{L_WHO_IS_ONLINE}</a></span></td>
</tr>
<tr>
<td class="row1" align="center" valign="middle" rowspan="2"><img src="templates/subSilver/images/whosonline.gif" alt="{L_WHO_IS_ONLINE}" /></td>
<td class="row1" align="left" width="100%"><span class="gensmall">{TOTAL_POSTS}<br />{TOTAL_USERS}<br />{NEWEST_USER}</span>
</td>
</tr>
<tr>
<td class="row1" align="left"><span class="gensmall">{TOTAL_USERS_ONLINE} &nbsp; [ {L_WHOSONLINE_ADMIN} ] &nbsp; [ {L_WHOSONLINE_MOD} ]<br />{RECORD_USERS}<br />{LOGGED_IN_USER_LIST}</span></td>
</tr>
</table>

<table width="100%" cellpadding="1" cellspacing="1" border="0">
<tr>
<td align="left" valign="top"><span class="gensmall">{L_ONLINE_EXPLAIN}</span></td>
</tr>
</table>
#
#-----[ REPLACE WITH ]------------------------------------------
#
<!-- Standard-Modul "Wer ist Online?" entfernt by Mavigation Mod by fanrpg -->

#
#-----[ OPEN ]------------------------------------------
#
index.php
#
#-----[ FIND ]------------------------------------------
#
'L_FORUM' => $lang['Forum'],
#
#-----[ BEFORE, ADD ]------------------------------------------
#
//Start Add - Navigationsmenü
'L_NAVI_TH' => $lang['Navi_Th'],
//End Add - Navigationsmenü
#
#-----[ OPEN ]------------------------------------------
#
language/lang_english/lang_main.php
#
#-----[ FIND ]------------------------------------------
#
?>
#
#-----[ BEFORE, ADD ]------------------------------------------
#
//Start Add - Navigationsmenü
$lang['Navi_Th'] = 'Navigation menu';
//End Add - Navigationsmenü
#
#-----[ OPEN ]------------------------------------------
#
# Only for german
#
language/lang_german/lang_main.php

#
#-----[ FIND ]------------------------------------------
#
?>
#
#-----[ BEFORE, ADD ]------------------------------------------
#
//Start Add - Navigationsmenü
$lang['Navi_Th'] = 'Navigationsmenü';
//End Add - Navigationsmenü
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
#

Ja und dann habe ich versucht LastPostTopic einzubauen!!!Nach dem hoch laden kam dann der fehler das irgendwas in der Zeile 498 in der index.php nicht stimmte.

HIer die anleitung:

##############################################################
## Mod Title: shows topic of last made post on index
## Mod Version: 1.4.0
## Author: e-sven <sven@e-sven.net> http://www.e-sven.net
## Description: -adds lasts post topic to each forum on
## the index page (based on read-access)
## -word censorship is used
## -topic title with more then 27 chars are cut off
## -mouseover info displays the full title
##
## Installation Level: easy
## Installation Time: 2-5 Minutes
## Files To Edit: index.php
## Included Files: index.php (pre-modded)
##############################################################
## History:
## 0.9 not released beta
## 1.0 first working release
## 1.1 optimized db access
## 1.2 made implementation easier
## (only two replaces have to be made)
## 1.2a just a minor bug (thanks to Acid)
## 1.3 empty forums where not displayed correctly
## 1.4 optimized db-query
##############################################################
## Before Adding This MOD To Your Forum,
## You Should Back Up All Files Related To This MOD
##############################################################

#
#-----[ OPEN ]----------------------[phpBB 2.0.5]--------------------------
#
index.php

#
#-----[ ACTION Find ]---------------[phpBB 2.0.5]--------------------------
#

default:
$sql = "SELECT f.*, p.post_time, p.post_username, u.username, u.user_id
FROM (( " . FORUMS_TABLE . " f
LEFT JOIN " . POSTS_TABLE . " p ON p.post_id = f.forum_last_post_id )
LEFT JOIN " . USERS_TABLE . " u ON u.user_id = p.poster_id )
ORDER BY f.cat_id, f.forum_order";
break;
}
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not query forums information', '', __LINE__, __FILE__, $sql);
}

$forum_data = array();
while( $row = $db->sql_fetchrow($result) )
{
$forum_data[] = $row;
}

if ( !($total_forums = count($forum_data)) )
{
message_die(GENERAL_MESSAGE, $lang['No_forums']);
}

//
// Obtain a list of topic ids which contain

#
#-----[ REPLACE WITH ]----------------------------------------
#

default:
$sql = "SELECT f.*, p.post_time, p.post_username, u.username, u.user_id, t.topic_title, t.topic_last_post_id " .
" FROM ((( " . FORUMS_TABLE . " f " .
" LEFT JOIN " . POSTS_TABLE . " p ON p.post_id = f.forum_last_post_id )" .
" LEFT JOIN " . USERS_TABLE . " u ON u.user_id = p.poster_id ) " .
" LEFT JOIN " . TOPICS_TABLE . " t ON t.topic_last_post_id = p.post_id ) " .
" ORDER BY f.cat_id, f.forum_order";
break;
}
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not query forums information', '', __LINE__, __FILE__, $sql);
}

$forum_data = array();
$topic_last_ary = array();
$i=0;
while( $row = $db->sql_fetchrow($result) )
{
if (!in_array($row['topic_last_post_id'], $topic_last_ary) || $row['topic_last_post_id']==0) {
$topic_last_ary=$row['topic_last_post_id'];
$i++;
$forum_data[] = $row;
}
}
unset($topic_last_ary);
if ( !($total_forums = count($forum_data)) )
{
message_die(GENERAL_MESSAGE, $lang['No_forums']);
}

//
// Filter topic_title not allowed to read
//
if ( !($userdata['user_level'] == ADMIN && $userdata['session_logged_in']) ) {
$auth_read_all = array();
$auth_read_all=auth(AUTH_READ, AUTH_LIST_ALL, $userdata, $forum_data);
$auth_data = '';
for($i=0; $i<count($forum_data); $i++)
{
if (!$auth_read_all[$forum_data[$i]['forum_id']]['auth_read']) {
$forum_data[$i]['topic_title']='';
}
}
}

//
// Define censored word matches
//
$orig_word = array();
$replacement_word = array();
obtain_word_list($orig_word, $replacement_word);

//
// Obtain a list of topic ids which contain


#
#-----[ ACTION Find ]------------------[phpBB 2.0.5]-----------------------
#
if ( $forum_data[$j]['forum_last_post_id'] )
{
$last_post_time = create_date($board_config['default_dateformat'], $forum_data[$j]['post_time'], $board_config['board_timezone']);

$last_post = $last_post_time . '<br />';

$last_post .= ( $forum_data[$j]['user_id'] == ANONYMOUS ) ? ( ($forum_data[$j]['post_username'] != '' ) ? $forum_data[$j]['post_username'] . ' ' : $lang['Guest'] . ' ' ) : '<a href="' . append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . '=' . $forum_data[$j]['user_id']) . '">' . $forum_data[$j]['username'] . '</a> ';

$last_post .= '<a href="' . append_sid("viewtopic.$phpEx?" . POST_POST_URL . '=' . $forum_data[$j]['forum_last_post_id']) . '#' . $forum_data[$j]['forum_last_post_id'] . '"><img src="' . $images['icon_latest_reply'] . '" border="0" alt="' . $lang['View_latest_post'] . '" title="' . $lang['View_latest_post'] . '" /></a>';
}
#
#-----[ ACTION Replace With ]---------------------------------
#
if ( $forum_data[$j]['forum_last_post_id'] )
{
$topic_title = $forum_data[$j]['topic_title'];
$topic_title2 = $forum_data[$j]['topic_title'];

//
// Censor topic title
//
if ( count($orig_word) )
{
$topic_title = preg_replace($orig_word, $replacement_word, $topic_title);
$topic_title2 = preg_replace($orig_word, $replacement_word, $topic_title2);
}

if (strlen($topic_title)>27) {
$topic_title = substr($topic_title,0,24) . '...';
}

$last_post_time = create_date($board_config['default_dateformat'], $forum_data[$j]['post_time'], $board_config['board_timezone']);
$last_post = '<a href="' . append_sid("viewtopic.$phpEx?" . POST_POST_URL . '=' . $forum_data[$j]['forum_last_post_id']) . '#' . $forum_data[$j]['forum_last_post_id'] . '" title="' . $topic_title2 . '">' . $topic_title . '</a><br>';
$last_post .= $last_post_time . '&nbsp;<a href="' . append_sid("viewtopic.$phpEx?" . POST_POST_URL . '=' . $forum_data[$j]['forum_last_post_id']) . '#' . $forum_data[$j]['forum_last_post_id'] . '"><img src="' . $images['icon_latest_reply'] . '" border="0" alt="' . $lang['View_latest_post'] . '" title="' . $lang['View_latest_post'] . '"></a><br>' . $lang['by'] . '&nbsp;';
$last_post .= ( $forum_data[$j]['user_id'] == ANONYMOUS ) ? ( ($forum_data[$j]['post_username'] != '' ) ? $forum_data[$j]['post_username'] . ' ' : $lang['Guest'] . ' ' ) : '<a href="' . append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . '=' . $forum_data[$j]['user_id']) . '">' . $forum_data[$j]['username'] . '</a> ';
}

#
#-----[ SAVE/CLOSE ALL FILES ]----------------------------------
#


Da ich gestern mit eine Kopie von der index.php gemacht habe, dachte ich mir, wenns nicht klappt dann lade ich die wieder hoch und dann müsste es ja wieder funktionieren! Tja von wegen.Wenn ich jetzt mein Forum aufrufe dann kommen diese Fehler hier:


Warning: main(./../extension.inc): failed to open stream: No such file or directory in /home/httpd/vhosts/kugelrund-online.de/httpdocs/phpBB2/index.php on line 30

Warning: main(./../extension.inc): failed to open stream: No such file or directory in /home/httpd/vhosts/kugelrund-online.de/httpdocs/phpBB2/index.php on line 30

Fatal error: main(): Failed opening required './../extension.inc' (include_path='.:') in /home/httpd/vhosts/kugelrund-online.de/httpdocs/phpBB2/index.php on line 30

Ich glaueb ich habe da wieder MIST gebaut un dkann alles wieder von vorne installieren! :cry:

Verfasst: 10.12.2005 15:51
von BB-BF-BM
du hättest die Datei lieber verlinken sollen..

was meinst du mit
ERFOLGREICH eingebaut habe ich die Navi!Anleitung:
Soll das heißen, du hast die einfach in die Datei kopiert? :o

Hoffentlich nicht;
du meinst hoffentlich damit, dass du die Anweisungen in der Anleitung befolgt hast...


Du müsstest sowieso alle geänderten Files vorher sichern und nicht nur die index.php :o

EDIT:
Da merkt man mal, warum man nicht vollständige Dateien kopieren sollte...
Hab doch glatt übersehen, dass du einen zweiten MOD einbauen wolltest...

Verfasst: 10.12.2005 15:59
von LadyDana
Na also mit erfolgreiche meinte ich schon das ich die anleitung befolgt habe!!!!!!!!!!!!!!!!!!!!!! :D

Hat auch alles gut geklappt!

War dann ganz mutg und wollte es mit noch einem Mod ausprobieren!Und das hat dann wieder nicht geklappt! :o

Nur nebenbei bemerk, vielleicht hast du es ja überlesen:
Ich habe die Index.php ja kopiert!!!!!!!!!!!!!!Das war ja die einzige, die ich geändert habe!!!!!!Nur war das gestern abend, aber ich war der meinung das dass damit klappen müsste.

Also sagt mir jetzt bitte einer ob ich von vorne anfagen soll, oder kann man mein schlamassel doch Retten?????????? :-?

Verfasst: 10.12.2005 16:12
von hagily
Man kann alles wieder retten. Nur ist es manchmal aufwendiger als alles neu zu insallieren.

Ich würde dir vorschlagen, dass du eine original index.php hochlädst, und dann wieder die ganzen Mods (nur) in die index.php einbaust (in den anderen Dateien ist der Mod ja schon eingebaut).

Viel erfolg

Verfasst: 10.12.2005 16:16
von LadyDana
Okay, dann bracuhe ich janur noch eine originale index.php! :lol:

Verfasst: 10.12.2005 16:20
von hagily