Seite 1 von 2

noob braucht hilfe: Probs bei MOD

Verfasst: 06.04.2003 02:02
von Rilli
Hi,


bei einem MOD steht dies:

#
#-----[ ACTION ]------------------------------------------
#
# You will need to add one new field into your users table in your SQL database.

SQL-query:

INSERT INTO config (config_name, config_value) VALUES ('custom_overall_footer', '[YOUR CUSTOM FOOTER HERE]');
INSERT INTO config (config_name, config_value) VALUES ('custom_overall_header', '[YOUR CUSTOM HEADER HERE]');
INSERT INTO config (config_name, config_value) VALUES ('custom_simple_footer', '[YOUR CUSTOM FOOTER HERE]');
INSERT INTO config (config_name, config_value) VALUES ('custom_simple_header', '[YOUR CUSTOM HEADER HERE]');

## If you have a table prefix then put it before config.


was heißt das genau und was muss ich da machen???

bitte um Hilfe :cry:

Verfasst: 06.04.2003 02:03
von SQRT
du musst erstmal phpMyAdmin installieren und dann das ganze dort einfügen! :roll:

Verfasst: 06.04.2003 02:09
von t_lo
Das heisst schlicht und ergreifend, dass du, nach erfolgreicher Installation von phpMyAdmin (oder halt der Konsole) vor das config noch ein Prefix tippern musst.
Wie das aussieht, steht in der config.php:

Code: Alles auswählen

<?php

//
// phpBB 2.x auto-generated config file
// Do not change anything in this file!
//

$dbms = 'mysql';

$dbhost = 'xxx';
$dbname = 'xxx';
$dbuser = 'xxx';
$dbpasswd = 'xxx';

$table_prefix = 'phpbb_';

define('PHPBB_INSTALLED', true);

?>
Der Wert aus $table_prefix (in diesem Fall) phpbb_ muss noch vor das 'config' geschrieben werden, sonst hagelts Fehler!

t'lo

Verfasst: 06.04.2003 02:57
von Rilli
danke schonmal ...


was heißt das: '[YOUR CUSTOM FOOTER HERE]' ???

Verfasst: 06.04.2003 03:13
von t_lo
Wenn du eigene Footer (Sachen beim Copyright-Vermerk) hast, kannst du die dahin schreiben.
In welcher Datei stehts denn?

t'lo

Verfasst: 06.04.2003 03:29
von Rilli
mmmhhh,


also habe diese ganzen Sachen nun gemacht, jedoch geht das nicht wirklich :-((

(muss man irgendwas ändern oder umbennen? - habe alles genau so übernommen wie es da steht

Code: Alles auswählen

# 
#-----[ ACTION ]------------------------------------------ 
# 
#  You will need to add one new field into your users table in your SQL database. 

SQL-query: 

INSERT INTO config (config_name, config_value) VALUES ('custom_overall_footer', '[YOUR CUSTOM FOOTER HERE]');
INSERT INTO config (config_name, config_value) VALUES ('custom_overall_header', '[YOUR CUSTOM HEADER HERE]');
INSERT INTO config (config_name, config_value) VALUES ('custom_simple_footer', '[YOUR CUSTOM FOOTER HERE]');
INSERT INTO config (config_name, config_value) VALUES ('custom_simple_header', '[YOUR CUSTOM HEADER HERE]');

##	If you have a table prefix then put it before config.

# 
#-----[ OPEN ]------------------------------------------ 
# 

   language/lang_xxx/lang_admin.php

# 
#-----[ FIND ]------------------------------------------ 
# 

$lang['Cookie_settings'] = "Cookie settings";

# 
#-----[ BEFORE, ADD ]------------------------------------------ 
# 

$lang['Custom_Footer_and_Header_settings'] = "Custom Footer and Header Setings";
$lang['Custom_Overall_Header'] = "Custom Overall Header";
$lang['Custom_Overall_Footer'] = "Custom Overall Footer";
$lang['Custom_Simple_Header'] = "Custom Simple Header";
$lang['Custom_Simple_Footer'] = "Custom Simple Footer";

# 
#-----[ OPEN ]------------------------------------------ 
# 

   admin/admin_board.php 

# 
#-----[ FIND ]------------------------------------------ 
# 

	"L_COOKIE_SETTINGS" => $lang['Cookie_settings'],

# 
#-----[ BEFORE, ADD ]------------------------------------------ 
# 
	
	"L_CUSTOM_FOOTER_AND_HEADER_SETTINGS" => $lang['Custom_Footer_and_Header_settings'],
	"L_CUSTOM_OVERALL_HEADER" => $lang['Custom_Overall_Header'],
	"L_CUSTOM_OVERALL_FOOTER" => $lang['Custom_Overall_Footer'],
	"L_CUSTOM_SIMPLE_HEADER" => $lang['Custom_Simple_Header'],
	"L_CUSTOM_SIMPLE_FOOTER" => $lang['Custom_Simple_Footer'],

# 
#-----[ FIND ]------------------------------------------ 
# 

	"COOKIE_DOMAIN" => $new['cookie_domain'],

# 
#-----[ BEFORE, ADD ]------------------------------------------ 
# 

	"CUSTOM_OVERALL_HEADER" => $new['custom_overall_header'],
	"CUSTOM_OVERALL_FOOTER" => $new['custom_overall_footer'],
	"CUSTOM_SIMPLE_HEADER" => $new['custom_simple_header'],
	"CUSTOM_SIMPLE_FOOTER" => $new['custom_simple_footer'],

# 
#-----[ OPEN ]------------------------------------------ 
# 

   includes/page_header.php

# 
#-----[ FIND ]------------------------------------------ 
# 

        'PAGE_TITLE' => $page_title,

# 
#-----[ AFTER, ADD ]------------------------------------------ 
# 

       	'CUSTOM_OVERALL_HEADER' => $board_config['custom_overall_header'],
	'CUSTOM_OVERALL_FOOTER' => $board_config['custom_overall_footer'],
	'CUSTOM_SIMPLE_HEADER' => $board_config['custom_simple_header'],
	'CUSTOM_SIMPLE_FOOTER' => $board_config['custom_simple_footer'],

# 
#-----[ OPEN ]------------------------------------------ 
# 

   templates/xxx/admin/board_config_body.tpl 

# 
#-----[ FIND ]------------------------------------------ 
# 

        <tr>
                <th class="thHead" colspan="2">{L_COOKIE_SETTINGS}</th>
        </tr>

# 
#-----[ BEFORE, ADD ]------------------------------------------ 
# 

        <tr>
                <th class="thHead" colspan="2">{L_CUSTOM_FOOTER_AND_HEADER_SETTINGS}</th>
        </tr>
        <tr>
                <td class="row1">{L_CUSTOM_OVERALL_HEADER}</td>
                <td class="row2"><textarea name="custom_overall_header" rows="5" cols="30">{CUSTOM_OVERALL_HEADER}</textarea></td>
        </tr>
        <tr>
                <td class="row1">{L_CUSTOM_OVERALL_FOOTER}</td>
                <td class="row2"><textarea name="custom_overall_footer" rows="5" cols="30">{CUSTOM_OVERALL_FOOTER}</textarea></td>
        </tr>
        <tr>
                <td class="row1">{L_CUSTOM_SIMPLE_HEADER}</td>
                <td class="row2"><textarea name="custom_simple_header" rows="5" cols="30">{CUSTOM_SIMPLE_HEADER}</textarea></td>
        </tr>
        <tr>
                <td class="row1">{L_CUSTOM_SIMPLE_FOOTER}</td>
                <td class="row2"><textarea name="custom_simple_header" rows="5" cols="30">{CUSTOM_SIMPLE_HEADER}</textarea></td>
        </tr>

# 
#-----[ OPEN ]------------------------------------------ 
# 

   templates/xxx/overall_footer.tpl

# 
#-----[ FIND ]------------------------------------------ 
# 

<div align="center"><span class="copyright"><br />{ADMIN_LINK}<br />

# 
#-----[ BEFORE, ADD ]------------------------------------------ 
# 

<!-- Custom Header and Footer MOD | Begin //-->
<div align="center">
	{CUSTOM_OVERALL_FOOTER}
</div>
<!-- Custom Header and Footer MOD | Finish //-->

# 
#-----[ OPEN ]------------------------------------------ 
# 

   templates/xxx/overall_header.tpl

# 
#-----[ FIND (line 253 - end of file) ]------------------------------------------ 
# 

                <br />

# 
#-----[ AFTER, ADD ]------------------------------------------ 
# 

                <!-- Custom Header and Footer MOD | Begin //-->
                <div align="center">
                	{CUSTOM_OVERALL_HEADER}
                </div>
                <!-- Custom Header and Footer MOD | Finish //-->

# 
#-----[ OPEN ]------------------------------------------ 
# 

   templates/xxx/simple_footer.tpl

# 
#-----[ FIND ]------------------------------------------ 
# 

<div align="center"><span class="copyright"><br /> 

# 
#-----[ BEFORE, ADD ]------------------------------------------ 
# 

<!-- Custom Header and Footer MOD | Begin //-->
<div align="center">
	{CUSTOM_SIMPLE_FOOTER}
</div>
<!-- Custom Header and Footer MOD | Finish //-->

# 
#-----[ OPEN ]------------------------------------------ 
# 

   templates/xxx/simple_header.tpl

# 
#-----[ FIND ]------------------------------------------ 
# 

<span class="gen"><a name="top"></a></span>

# 
#-----[ AFTER, ADD ]------------------------------------------ 
# 

<!-- Custom Header and Footer MOD | Begin //-->
<div align="center">
	{CUSTOM_SIMPLE_HEADER}
</div>
<!-- Custom Header and Footer MOD | Finish //-->

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

Verfasst: 06.04.2003 03:51
von Rilli
irgendwie taucht bei mir im Admin-Menü auch keine Einstellmöglichkeit auf ...

Verfasst: 06.04.2003 09:57
von saerdnaer
hast du die entsprechende admin_xxx.php auch in den admin ordner kopiert und hochgeladen?

Verfasst: 06.04.2003 14:51
von Rilli
ja hab ich ...


was genau muss denn nu in der SQL eingestellt sein (anstatt dem [YOUR CUSTOM OVERALL HEADER HERE]) ???

Verfasst: 06.04.2003 15:17
von t_lo
Ich glaub, du schmeisst da bissl was durcheinander.
Der Header hat mit der Datenbank so ziemlich null am Hut.

t'lo