Seite 1 von 1

Impressum

Verfasst: 14.03.2004 16:00
von KevinD
Also ich habe den Impressum Mod aus der Mod Datenank von hier eingebaut, die Adressen und alles richtig eingestellt, habe aber noch ein Problem.

Bei dem Link das man mir eine Email schreiben kann, steht nur mailto: und keine Emailadresse...

Was muss ich da noch ändern?

Kevin

Verfasst: 14.03.2004 16:10
von Leuchte
Kannst du einen Link zum Impressum posten?
Normalerweise sollte der EMail-Button zu deinem Profil führen.
Aber du könntest auch in der impressum_body.tpl anstelle von
<a href="profile.php?mode=email&u=2">{EMAIL_IMG}</a>
direkt deine Mailadresse eintragen:
<a href="mailto:deine-mail@adres.se">{EMAIL_IMG}</a>

Verfasst: 14.03.2004 16:14
von KevinD
www.baumschueler.de/forum/impressum.php

auch wenn ich meine Emailadresse direkt eingebe passiert nichts...

Kevin

Verfasst: 14.03.2004 16:26
von Leuchte
KevinD hat geschrieben:auch wenn ich meine Emailadresse direkt eingebe passiert nichts...
Kann ich mir irgendwie nicht vorstellen ;)
Hast du denn etwas an den Dateien verändert? Lad vielleicht noch einmal die impressum.php und die dazugehörige *.tpl Datei auf den Server

Verfasst: 14.03.2004 16:32
von KevinD
Habe jetzt die impressum.php und die impressum_body.tpl neu hochgeladen und immernochnichts...

Auszug aus der impressum_body.tpl

Code: Alles auswählen

.......
<br> 
{Impressumtext12} 
<br>
<a href="profile.php?mode=email&u=2">{EMAIL_IMG}</a>&nbsp;<a href="privmsg.php?mode=post&u=2">{PM_IMG}</a>
<br><br> 

<b>{Impressumtext13}</b>
{Impressumtext5}
......
impressum.php

Code: Alles auswählen

define('IN_PHPBB', true); 

$phpbb_root_path = './'; 
include($phpbb_root_path . 'extension.inc'); 
include($phpbb_root_path . 'common.'.$phpEx); 

$userdata = session_pagestart($user_ip, PAGE_IMPRESSUM); 
init_userprefs($userdata); 

// Load the appropriate impressum language file START
if( isset($HTTP_GET_VARS['mode']) )
{
	switch( $HTTP_GET_VARS['mode'] )
	{
		      default:
			$lang_file = 'lang_impressum';
			$l_title = $lang['impressum'];
			break;
	}
}
else
{
	$lang_file = 'lang_impressum';
	$l_title = $lang['impressum'];
}
include($phpbb_root_path . 'language/lang_' . $board_config['default_lang'] . '/' . $lang_file . '.' . $phpEx);
// Load the appropriate impressum language file ENDE


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


// EMAIL and PM Images:
$email_uri = ( $board_config['board_email_form'] ) ? append_sid("profile.$phpEx?mode=email&" . POST_USERS_URL .'=2') : 'mailto:' . $profiledata['user_email'];
$email_img = '<a href="' . $email_uri . '"><img src="' . $images['icon_email'] . '" alt="' . $lang['Send_email'] . '" title="' . $lang['Send_email'] . '" border="0" /></a>';
$email = '<a href="' . $email_uri . '">' . $lang['Send_email'] . '</a>';
$pm_img = '<img src="' . $images['icon_pm'] . '" alt="' . $lang['Send_private_message'] . '" title="' . $lang['Send_private_message'] . '" border="0" />';
$pm = '<a href="' . $temp_url . '">' . $lang['Send_private_message'] . '</a>';


include($phpbb_root_path . 'includes/page_header.'.$phpEx); 

$template->assign_vars(array( 
'Impressumtext1' => $lang['Impressumtext1'],
'Impressumtext2' => $lang['Impressumtext2'],
'Impressumtext3' => $lang['Impressumtext3'],
'Impressumtext4' => $lang['Impressumtext4'],
'Impressumtext5' => $lang['Impressumtext5'],
'Impressumtext6' => $lang['Impressumtext6'],
'Impressumtext7' => $lang['Impressumtext7'],
'Impressumtext8' => $lang['Impressumtext8'],
'Impressumtext9' => $lang['Impressumtext9'],
'Impressumtext10' => $lang['Impressumtext10'],
'Impressumtext11' => $lang['Impressumtext11'],
'Impressumtext12' => $lang['Impressumtext12'],
'Impressumtext13' => $lang['Impressumtext13'],
'Impressumtext14' => $lang['Impressumtext14'],
'Impressumtext15' => $lang['Impressumtext15'],
'Impressumtext16' => $lang['Impressumtext16'],
'Impressumtext17' => $lang['Impressumtext17'],
'Impressumtext18' => $lang['Impressumtext18'],
'Impressumtext19' => $lang['Impressumtext19'],
'Impressumtext20' => $lang['Impressumtext20'],
'Impressumtext21' => $lang['Impressumtext21'],
'Impressumtext22' => $lang['Impressumtext22'],
'Impressumtext23' => $lang['Impressumtext23'],
'Impressumtext24' => $lang['Impressumtext24'],
'Impressumtext25' => $lang['Impressumtext25'],
'Impressumtext26' => $lang['Impressumtext26'],
'Impressumtext27' => $lang['Impressumtext27'],
'EMAIL_IMG' => $email_img,
'EMAIL' => $email,
'PM_IMG' => $pm_img,
'PM' => $pm,
'L_EMAIL_ADDRESS' => $lang['Email_address'],
'L_EMAIL' => $lang['Email'])
); 

$template->set_filenames(array( 
'body' => 'impressum_body.tpl') 
); 

$template->pparse('body'); 

include($phpbb_root_path . 'includes/page_tail.'.$phpEx); 
?>

Kevin

Verfasst: 14.03.2004 16:39
von Leuchte
Sieht bei mir auch so aus. Da fällt mir im Moment nur das wieder ein
Leuchte hat geschrieben:Aber du könntest auch in der impressum_body.tpl anstelle von
<a href="profile.php?mode=email&u=2">{EMAIL_IMG}</a>
direkt deine Mailadresse eintragen:
<a href="mailto:deine-mail@adres.se">{EMAIL_IMG}</a>

Verfasst: 14.03.2004 16:41
von KevinD
und das hatten wir schonmal...
naja... ich werd mal schauen das ich den progger kriege

Verfasst: 14.03.2004 17:20
von KevinD
ich habe die impressum.php bearbeitet, jetz dürfte eigentlich alles gehen, ist aber eigentlich nur die notfall-lösung