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> {L_SEARCH} </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} [ {L_WHOSONLINE_ADMIN} ] [ {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 . ' <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'] . ' ';
$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! 