global mod prob!!!!

Du suchst einen bestimmten Mod, weißt aber nicht genau wo bzw. ob er überhaupt existiert? Wenn dir dieser Artikel nicht weiterhilft, kannst du hier den von dir gewünschten/gesuchten Mod beschreiben ...
Falls ein Mod-Autor eine der Anfragen hier aufnimmt um einen neuen Mod zu entwicklen, geht's in phpBB 2.0: Mods in Entwicklung weiter.
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.
Antworten
Risk27
Mitglied
Beiträge: 15
Registriert: 20.03.2006 16:59

global mod prob!!!!

Beitrag von Risk27 »

Hi,


ein bekannter hat versucht im Board den Global mod einzubauen aber er hat es nicht geschafft er hat vorher eine sicherung der datei gemacht so wie er mir das geschrieben hat da das ja net funzte hat er die sicherung wieder eingebaut jetzt funzt zwar das Board wieder nur jetzt kommt man net mehr in den Admin berreich es kommt diese Nachricht:


$lang['Topic_global_topic']='Globales Topic:'; $lang['Post_global_topic'] = 'Globales Topic'; $lang['Globaltopic'] ='Globales Topic'; $lang['Hidden_gt_forums'] = 'Zeige Globale Topics nicht in diesen Foren'; $lang['Hidden_gt_forums_explain'] = 'Gib hier die Foren-IDs (durch ein Komma getrennt) an, in denen Globale Topics nicht angezeigt werden sollen. Gib 0 ein, um diese Funktion zu deaktivieren.';


Kann mir das einer mal erklären wie man das wieder rückgängig macht so das man wieder rein kommt.



mfg Risk27
Benutzeravatar
hagily
Mitglied
Beiträge: 1139
Registriert: 25.08.2005 22:05
Wohnort: Schweinfurt
Kontaktdaten:

Beitrag von hagily »

Hi.
Leider hilft diese Fehlermeldung nicht viel weiter.
Ein screen vom Fehler und ein link zur Anleitung des Mods würden ungemein helfen.

Felix
Risk27
Mitglied
Beiträge: 15
Registriert: 20.03.2006 16:59

Beitrag von Risk27 »

PiC:

[ externes Bild ]


So und hier die Anleitung:

##############################################################
## MOD Title: Global topic
## MOD Author: OXPUS < webmaster@oxpus.de > (Karsten Ude) http://www.oxpus.de
## MOD Description: This mod, makes it possible to post global topics viewable in all forums.
## Part 1: Required base part for the mod.
## MOD Version: 1.1.2
##
## Installation Level: Intermediate
## Installation Time: 10 Minutes
## Files To Edit: 13
## modcp.php
## posting.php
## search.php
## admin/admin_board.php
## includes/auth.php
## includes/constants.php
## language/lang_english/lang_admin.php
## language/lang_german/lang_admin.php
## language/lang_english/lang_main.php
## language/lang_german/lang_main.php
## templates/subSilver/subSilver.cfg
## templates/subSilver/viewforum_body.tpl
## templates/subSilver/admin/board_config_body.tpl
##
## Included Files: 3
## templates/subSilver/images/folder_global_topic.gif
## templates/subSilver/images/folder_global_topic_new.gif
##
##############################################################
## For Security Purposes, Please Check: http://www.phpbb.com/mods/ 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 MOD's not offered
## in our MOD-Database, located at: http://www.phpbb.com/mods/
##############################################################
## Author Notes:
##
## SQL
## ---
## Upload the file
## db_update.php
## to your phpbb root directory and run this with your browser.
## This file will do all nessassary changes in the database for you.
## After using this file, please delete it to avoid errors.
##
##
## Special Thanks
## --------------
## This MOD based on the original Global Announcement Mod by Niels (http://mods.db9.dk).
## At this point a big thanks to Niels for the great Mod!
##
##############################################################
## MOD History:
##
## 2005-11-02 - Version 1.1.2
## - ADD Compliance to phpBB 2.0.18
##
## 2005-01-22 - Version 1.1.1
## For update look into the folder updates.
##
## 2004-12-17 - Version 1.1.0
## - FIX Set topic type on post preview for global topics
## - ADD Hide global topics on choosen forums
## For update look into the folder updates.
##
## 2004-12-11 - Version 1.0.0
## - First Release
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################

#
#-----[ COPY ]------------------------------------------------
#
copy templates/subSilver/images/folder_global_topic.gif to templates/subSilver/images/folder_global_topic.gif
copy templates/subSilver/images/folder_global_topic_new.gif to templates/subSilver/images/folder_global_topic_new.gif

#
#-----[ OPEN ]------------------------------------------------
#
modcp.php

#
#-----[ FIND ]------------------------------------------------
#
else if ( $row['topic_type'] == POST_ANNOUNCE )
{
$folder_img = $images['folder_announce'];
$folder_alt = $lang['Topic_Announcement'];
}

#
#-----[ AFTER, ADD ]-----------------------------------------
#
else if ( $row['topic_type'] == POST_GLOBAL_TOPIC )
{
$folder_img = $images['folder_global_topic'];
$folder_alt = $lang['Global_topic'];
}


#
#-----[ FIND ]------------------------------------------------
#
if ( $topic_type == POST_ANNOUNCE )
{
$topic_type = $lang['Topic_Announcement'] . ' ';
}

#
#-----[ AFTER, ADD ]-----------------------------------------
#
else if ( $topic_type == POST_GLOBAL_TOPIC )
{
$topic_type = $lang['Topic_global_topic'] . ' ';
}

#
#-----[ OPEN ]------------------------------------------------
#
posting.php

#
#-----[ FIND ]------------------------------------------------
#
$topic_type = ( in_array($topic_type, array(POST_NORMAL, POST_STICKY, POST_ANNOUNCE)) ) ? $topic_type : POST_NORMAL;

#
#-----[ IN-LINE FIND ]------------------------------------------------
#
POST_ANNOUNCE

#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------------
#
, POST_GLOBAL_TOPIC

#
#-----[ FIND ]------------------------------------------------
#
if ( $topic_type == POST_ANNOUNCE )
{
$is_auth_type = 'auth_announce';
}

#
#-----[ AFTER, ADD ]-----------------------------------------
#
else if ( $topic_type == POST_GLOBAL_TOPIC )
{
$is_auth_type = 'auth_globaltopic';
}


#
#-----[ FIND ]------------------------------------------------
#
$topic_type = ( $topic_type != $post_data['topic_type'] && !$is_auth['auth_sticky'] && !$is_auth['auth_announce'] ) ? $post_data['topic_type'] : $topic_type;

#
#-----[ IN-LINE FIND ]----------------------------------------
#
)

#
#-----[ IN-LINE BEFORE, ADD ]---------------------------------
#
&& !$is_auth['auth_globaltopic']

#
#-----[ FIND ]------------------------------------------------
#
$topic_type_toggle .= ' /> ' . $lang['Post_Announcement'] . '&nbsp;&nbsp;';
}

#
#-----[ AFTER, ADD ]------------------------------------------
#
if( $is_auth['auth_globaltopic'] )
{
$topic_type_toggle .= '<input type="radio" name="topictype" value="' . POST_GLOBAL_TOPIC . '"';
if ( $post_data['topic_type'] == POST_GLOBAL_TOPIC || $topic_type == POST_GLOBAL_TOPIC )
{
$topic_type_toggle .= ' checked="checked"';
}
$topic_type_toggle .= ' /> ' . $lang['Post_global_topic'] . '&nbsp;&nbsp;';
}

#
#-----[ OPEN ]------------------------------------------------
#
search.php

#
#-----[ FIND ]------------------------------------------------
#
if ($topic_type == POST_ANNOUNCE)
{
$topic_type = $lang['Topic_Announcement'] . ' ';
}

#
#-----[ AFTER, ADD ]-----------------------------------------
#
else if($topic_type == POST_GLOBAL_TOPIC )
{
$topic_type = $lang['Topic_global_topic'] . " ";
}

#
#-----[ FIND ]------------------------------------------------
#
if ( $searchset[$i]['topic_type'] == POST_ANNOUNCE )
{
$folder = $images['folder_announce'];
$folder_new = $images['folder_announce_new'];
}

#
#-----[ AFTER, ADD ]-----------------------------------------
#
else if ( $searchset[$i]['topic_type'] == POST_GLOBAL_TOPIC )
{
$folder = $images['folder_global_topic'];
$folder_new = $images['folder_global_topic_new'];
}

#
#-----[ OPEN ]------------------------------------------
#
admin/admin_board.php

#
#-----[ FIND ]------------------------------------------
#
"L_RESET" => $lang['Reset'],

#
#-----[ AFTER, ADD ]------------------------------------------
#
"L_HIDDEN_GT_FORUMS" => $lang['Hidden_gt_forums'],
"L_HIDDEN_GT_FORUMS_EXPLAIN" => $lang['Hidden_gt_forums_explain'],
"HIDDEN_GT_FORUMS" => $new['hidden_gt_forums'],

#
#-----[ OPEN ]------------------------------------------------
#
includes/auth.php

#
#-----[ FIND ]------------------------------------------------
#
case AUTH_ALL:
$a_sql = '

#
#-----[ IN-LINE FIND ]----------------------------------------
#
';

#
#-----[ IN-LINE BEFORE, ADD ]---------------------------------
#
, a.auth_globaltopic

#
#-----[ FIND ]------------------------------------------------
#
$auth_fields = array(

#
#-----[ IN-LINE FIND ]----------------------------------------
#
);

#
#-----[ IN-LINE BEFORE, ADD ]---------------------------------
#
, 'auth_globaltopic'

#
#-----[ FIND ]------------------------------------------------
#
default:
break;

#
#-----[ BEFORE, ADD ]-----------------------------------------
#
case AUTH_GLOBALTOPIC:
$a_sql = 'a.auth_globaltopic';
$auth_fields = array('auth_globaltopic');
break;

#
#-----[ OPEN ]------------------------------------------------
#
includes/constants.php

#
#-----[ FIND ]------------------------------------------------
#
define('POST_ANNOUNCE', 2);

#
#-----[ AFTER, ADD ]------------------------------------------
#
define('POST_GLOBAL_TOPIC', 10);

#
#-----[ FIND ]------------------------------------------------
#
define('AUTH_ATTACH', 11);

#
#-----[ AFTER, ADD ]------------------------------------------
#
define('AUTH_GLOBALTOPIC', 13);

#
#-----[ OPEN ]------------------------------------------------
#
language/lang_english/lang_admin.php

#
#-----[ FIND ]------------------------------------------------
#
?>

#
#-----[ BEFORE, ADD ]-----------------------------------------
#
$lang['Globaltopic'] ='Global Topic';
$lang['Hidden_gt_forums'] = 'Global topics not shown on these forums';
$lang['Hidden_gt_forums_explain'] = 'Enter here all forum IDs (separated by a comma) in which global topics will be hidden on. Enter 0 to diable this feature.';

#
#-----[ OPEN ]------------------------------------------------
#
language/lang_german/lang_admin.php

#
#-----[ FIND ]------------------------------------------------
#
?>

#
#-----[ BEFORE, ADD ]-----------------------------------------
#
$lang['Globaltopic'] ='Globales Topic';
$lang['Hidden_gt_forums'] = 'Zeige Globale Topics nicht in diesen Foren';
$lang['Hidden_gt_forums_explain'] = 'Gib hier die Foren-IDs (durch ein Komma getrennt) an, in denen Globale Topics nicht angezeigt werden sollen. Gib 0 ein, um diese Funktion zu deaktivieren.';

#
#-----[ OPEN ]------------------------------------------------
#
language/lang_english/lang_main.php

#
#-----[ FIND ]------------------------------------------------
#
?>

#
#-----[ BEFORE, ADD ]-----------------------------------------
#
$lang['Topic_global_topic']='<b>Global Topic:</b>';
$lang['Post_global_topic'] = 'Global Topic';

#
#-----[ OPEN ]------------------------------------------------
#
language/lang_german/lang_main.php

#
#-----[ FIND ]------------------------------------------------
#
?>

#
#-----[ BEFORE, ADD ]-----------------------------------------
#
$lang['Topic_global_topic']='<b>Globales Topic:</b>';
$lang['Post_global_topic'] = 'Globales Topic';

#
#-----[ OPEN ]------------------------------------------------
#
#
templates/subSilver/subSilver.cfg

#
#-----[ FIND ]------------------------------------------------
#
$images['folder_announce_new'] = "$current_template_images/folder_announce_new.gif";

#
#-----[ AFTER, ADD ]------------------------------------------
#
$images['folder_global_topic'] = "$current_template_images/folder_global_topic.gif";
$images['folder_global_topic_new'] = "$current_template_images/folder_global_topic_new.gif";

#
#-----[ OPEN ]------------------------------------------------
#
#
templates/subSilver/viewforum_body.tpl

#
#-----[ FIND ]------------------------------------------------
#
<td width="20" align="center"><img src="{FOLDER_ANNOUNCE_IMG}" alt="{L_ANNOUNCEMENT}" width="19" height="18" /></td>
<td class="gensmall">{L_ANNOUNCEMENT}</td>

#
#-----[ REPLACE WITH ]----------------------------------------
#
<td width="20" align="center"><img src="{FOLDER_GLOBAL_TOPIC_IMG}" alt="{L_GLOBAL_TOPIC}" width="19" height="18" /></td>
<td class="gensmall">{L_GLOBAL_TOPIC}</td>

#
#-----[ FIND ]------------------------------------------------
#
<td width="20" align="center"><img src="{FOLDER_STICKY_IMG}" alt="{L_STICKY}" width="19" height="18" /></td>
<td class="gensmall">{L_STICKY}</td>

#
#-----[ REPLACE WITH ]----------------------------------------
#
<td width="20" align="center"><img src="{FOLDER_ANNOUNCE_IMG}" alt="{L_ANNOUNCEMENT}" width="19" height="18" /></td>
<td class="gensmall">{L_ANNOUNCEMENT}</td>

#
#-----[ FIND ]------------------------------------------------
#
<td class="gensmall"><img src="{FOLDER_LOCKED_IMG}"
<td class="gensmall">{L_NO_NEW_POSTS_LOCKED}</td>

#
#-----[ AFTER, ADD ]------------------------------------------
#
<td>&nbsp;&nbsp;</td>
<td width="20" align="center"><img src="{FOLDER_STICKY_IMG}" alt="{L_STICKY}" width="19" height="18" /></td>
<td class="gensmall">{L_STICKY}</td>

#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/admin/board_config_body.tpl

#
#-----[ FIND ]------------------------------------------
#
<tr>
<td class="row1">{L_ENABLE_PRUNE}</td>
<td class="row2"><input type="radio" name="prune_enable" value="1" {PRUNE_YES} /> {L_YES}&nbsp;&nbsp;<input type="radio" name="prune_enable" value="0" {PRUNE_NO} /> {L_NO}</td>
</tr>

#
#-----[ AFTER, ADD ]------------------------------------------
#
<tr>
<td class="row1">
<span class="genmed">{L_HIDDEN_GT_FORUMS}</span><br />
<span class="gensmall">{L_HIDDEN_GT_FORUMS_EXPLAIN}</span><br />
</td>
<td class="row2"><input type="text" class="post" name="hidden_gt_forums" size="10" maxlength="50" value="{HIDDEN_GT_FORUMS}" /></td>
</tr>


#
#-----[ SAVE/CLOSE ALL FILES ]--------------------------------
#
# EoM
Benutzeravatar
hagily
Mitglied
Beiträge: 1139
Registriert: 25.08.2005 22:05
Wohnort: Schweinfurt
Kontaktdaten:

Beitrag von hagily »

Verlinke mal folgende dateien:
admin/admin_board.php
lang_admin.php
KB:datei
Risk27
Mitglied
Beiträge: 15
Registriert: 20.03.2006 16:59

Beitrag von Risk27 »

Antworten

Zurück zu „phpBB 2.0: Mod Suche/Anfragen“