Signature Preview 2
Verfasst: 23.11.2002 13:16
@AWSW:
haste meine PM eigentlich bekommen ?
Was sagste denn dazu ?
haste meine PM eigentlich bekommen ?
Was sagste denn dazu ?
Code: Alles auswählen
#################################################################
## Mod Title: Signature Preview
## Mod Version: 1.0.0
## Author: Dimitri Seitz < http://www.dseitz.de > < dwing@weingarten-net.de >
## Description: This Hack will create a Signature Preview after updating profile
##
## Installation Level: easy
## Installation Time: 2 minutes
## Files To Edit: 3
## Included Files: n/a
#################################################################
## Security Disclaimer: This MOD Cannot Be Posted To Or Added At Any Non-Official phpBB Sites without the direct permission of the author
#################################################################
##
## Author Note: To Get more Hacks and Mods visit
http://www.dseitz.de
http://www.phpBBHacks.com
http://www.phpBB.de
##
#################################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
#################################################################
#
#-----[ OPEN ]------------------------------------------
#
index.php
#
#-----[ FIND ]------------------------------------------
#
//
// Start output of page
//
$page_title = $lang['Index'];
include($phpbb_root_path . 'includes/page_header.'.$phpEx);
#
#-----[ REPLACE WITH ]------------------------------------------
#
//
// Start output of page
//
$page_title = $lang['Index'];
if($view == 'sig')
{
$template->assign_vars(array(
"META" => '<meta http-equiv="refresh" content="5;url=' . append_sid("index.php") . '">')
);
}
include($phpbb_root_path . 'includes/page_header.'.$phpEx);
include_once($phpbb_root_path . 'includes/bbcode.'.$phpEx);
if($view == 'sig')
{
$bbcode_uid = ( $bbcode_on ) ? make_bbcode_uid() : '';
$user_sig = ( $userdata['user_sig'] != '' && $board_config['allow_sig'] ) ? $userdata['user_sig'] : '';
// $user_sig = $signature;
load_bbcode_template();
if( $user_sig != '' )
{
$user_sig = bbencode_second_pass($user_sig, $userdata['user_sig_bbcode_uid']);
$user_sig = bbencode_first_pass($user_sig, $userdata['user_sig_bbcode_uid']);
$user_sig = make_clickable($user_sig);
$user_sig = smilies_pass($user_sig);
$user_sig = '_________________<br />' . $user_sig;
$user_sig = nl2br($user_sig);
}
else
{
$user_sig = 'empty';
}
message_die(GENERAL_MESSAGE,'<br /><br /><b>New Signature:</b><hr>' . $user_sig . '<hr>');
}
#
#-----[ OPEN ]------------------------------------------
#
includes/usercp_register.php
#
#-----[ FIND ]------------------------------------------
#
$message = $lang['Profile_updated'] . '<br /><br />' . sprintf($lang['Click_return_index'], '<a href="' . append_sid("index.$phpEx") . '">', '</a>');
#
#-----[ REPLACE WITH ]------------------------------------------
#
$message = $lang['Profile_updated'] . '<br /><br />' . sprintf($lang['Click_return_index'], '<a href="' . append_sid("index.$phpEx?view=sig") . '">', '</a>');
#
#-----[ FIND ]------------------------------------------
#
$template->assign_vars(array(
"META" => '<meta http-equiv="refresh" content="5;url=' . append_sid("index.php") . '">')
);
#
#-----[ REPLACE WITH ]------------------------------------------
#
$template->assign_vars(array(
"META" => '<meta http-equiv="refresh" content="5;url=' . append_sid("index.php?view=sig") . '">')
);
#
#-----[ FIND ]------------------------------------------
#
message_die(GENERAL_MESSAGE, $message);
}
else
{
$sql = "SELECT MAX(user_id) AS total
FROM " . USERS_TABLE;
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not obtain next user_id information', '', __LINE__, __FILE__, $sql);
}
#
#-----[ REPLACE WITH ]------------------------------------------
#
include_once($phpbb_root_path . 'includes/bbcode.'.$phpEx);
$bbcode_uid = ( $bbcode_on ) ? make_bbcode_uid() : '';
$user_sig = ( $userdata['user_sig'] != '' && $board_config['allow_sig'] ) ? $userdata['user_sig'] : '';
// $user_sig = $signature;
load_bbcode_template();
//$user_sig = $signature;
if( $user_sig != '' )
{
$user_sig = bbencode_second_pass($user_sig, $userdata['user_sig_bbcode_uid']);
$user_sig = bbencode_first_pass($user_sig, $userdata['user_sig_bbcode_uid']);
$user_sig = make_clickable($user_sig);
$user_sig = smilies_pass($user_sig);
$user_sig = '_________________<br />' . $user_sig;
$user_sig = nl2br($user_sig);
}
else
{
$user_sig = 'empty';
}
message_die(GENERAL_MESSAGE, $message . '<br /><br /><b>Old Signature:</b><hr>' . $user_sig . '<hr>');
}
else
{
$sql = "SELECT MAX(user_id) AS total
FROM " . USERS_TABLE;
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not obtain next user_id information', '', __LINE__, __FILE__, $sql);
}
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
#EoM
Hi,Dwing hat geschrieben:@AWSW:
haste meine PM eigentlich bekommen ?
Was sagste denn dazu ?
http://www.awsw.de/Forum/Intro.php:: Version 2.0.1 :: SubSilver :: © 2001, 2002 :: Installierte MODs auf www.awsw.de :: Impressum ::
Microsoft, Windows, Access und Visual Basic sind entweder eingetragene Marken oder Marken der Microsoft Corporation in den USA und/oder anderen Ländern.
Weitere auf dieser Homepage aufgeführten Produkt- und Firmennamen können geschützte Marken ihrer jeweiligen Inhaber sein.
Sorry aber das war keinerlei Absicht ! Das muss ich durch das kopieren von einer footer Datei in die nächste übertragen haben<a href="http://www.phpbb.com/" target="_blank"><img src="http://www.awsw.de/Seite/phpBB_88a.gif" width="88" height="31" alt="Powered by phpBB2" title="Powered by phpBB2" border="0" /></a><br>:: Version {PHPBB_VERSION} ::
Im Statistics Hack war ein (c) und im Rules Hack.AWSW hat geschrieben: Und wo sollten bitte die anderen gestanden haben ???
Mehr finde ich in der Statistik.tpl leider nicht. Sag mir bitte wo das gestanden haben soll und ich korrigiere das so schnell es mir möglich ist. Komischer Weise finde ich auch auf den separat installierten Test-Boards keinen solchen Hinweis in der Statistik, wenn ich die aufrufe und da hab ich nix verändert ?!?<!-- BEGIN main_bottom -->
<!--
This copyright information must be displayed as per the liscence you agree to by using this modification!
-->
<center><span class="copyright">{VERSION_INFO}<br>
{INSTALL_INFO}<br>
{VIEWED_INFO}</span></center>
<!-- END main_bottom -->