#################################################################
## Mod Title: Signature Editor/Preview Deluxe ;)
## Mod Version: 1.1
## Author: EGO2000
## Description: This mod adds a really cool Signature Editor to
## your Board, included Preview & Save & BBCodes
##
## Installation Level: Very Easy
## Installation Time: 2-5 Minutes
##
## Files To Edit: 4
## * profile.php
## * language/xxx/lang_main.php
## * includes/usercp_register.php
## * templates/xxx/profil_add_body.tpl
##
## Included Files: 2
## * includes/usercp_signature.php
## * templates/xxx/profil_signature.tpl
##
#################################################################
## Before Adding This MOD To Your Forum, You Should Back Up All
## Files Related To This MOD
#################################################################
#
#-----[ UPLOAD ]------------------------------------------
#
usercp_signature.php => /phpBB/includes
profil_signature => /phpBB/templates/xxx
#
#-----[ OPEN ]---------------------------------------------
#
profile.php
#
#-----[ FIND ]---------------------------------------------
#
include($phpbb_root_path . 'includes/usercp_register.'.$phpEx);
exit;
}
#
#-----[ AFTER, ADD ]--------------------------------------
#
else if ( $mode == 'signature' )
{
if ( !$userdata['session_logged_in'] && $mode == 'signature' )
{
$header_location = ( @preg_match("/Microsoft|WebSTAR|Xitami/", getenv("SERVER_SOFTWARE")) ) ? "Refresh: 0; URL=" : "Location: ";
header($header_location . append_sid("login.$phpEx?redirect=profile.$phpEx&mode=signature", true));
exit;
}
include($phpbb_root_path . 'includes/usercp_signature.'.$phpEx);
exit;
}
#
#-----[ OPEN ]---------------------------------------------
#
language/lang_english/lang_main.php
#
#-----[ FIND ]---------------------------------------------
#
//
// That's all Folks!
// -------------------------------------------------
?>
#
#-----[ BEFORE, ADD ]--------------------------------------
#
//signature editor
$lang['sig_description'] = "Edit Signature (Preview included)";
$lang['sig_edit'] = "Edit Signature";
$lang['sig_current'] = "Current Signature";
$lang['sig_preview'] = "Preview";
$lang['sig_none'] = "No Signature available";
$lang['sig_save'] = "Save";
$lang['sig_save_message'] = "Signature saved successful !
Click on \"Current Signature\" to see or check it again.";
#
#-----[ OPEN ]---------------------------------------------
#
language/lang_german/lang_main.php
#
#-----[ FIND ]---------------------------------------------
#
//
// That's all Folks!
// -------------------------------------------------
?>
#
#-----[ BEFORE, ADD ]--------------------------------------
#
//signature editor
$lang['sig_description'] = "Signatur bearbeiten (inklusive Vorschau)";
$lang['sig_edit'] = "Signatur bearbeiten";
$lang['sig_current'] = "Aktuelle Signatur";
$lang['sig_preview'] = "Vorschau";
$lang['sig_none'] = "Keine Signatur vorhanden";
$lang['sig_save'] = "Speichern";
$lang['sig_save_message'] = "Signatur erfolgreich gespeichert !
Klicke auf \"Aktuelle Signatur\" um sie noch einmal zu überprüfen.";
#
#-----[ OPEN ]---------------------------------------------
#
includes/usercp_register.php
#
#-----[ FIND ]---------------------------------------------
#
$sql = "UPDATE " . USERS_TABLE . "
SET " . $username_sql . $passwd_sql .
#
#-----[ IN LINE FIND & REMOVE ]---------------------------------------------
#
, user_sig = '" . str_replace("\'", "''", $signature) . "', user_sig_bbcode_uid = '$signature_bbcode_uid'
#
#-----[ FIND ]---------------------------------------------
#
$template->assign_vars(array(
'USERNAME' => $username,
'CUR_PASSWORD' => $cur_password,
'NEW_PASSWORD' => $new_password,
'PASSWORD_CONFIRM' => $password_confirm,
'EMAIL' => $email,
#
#-----[ AFTER, ADD ]--------------------------------------
#
//signature editor
'SIG_EDIT_LINK' => append_sid("profile.$phpEx?mode=signature"),
'SIG_DESC' => $lang['sig_description'],
'SIG_BUTTON_DESC' => $lang['sig_edit'],
//signature editor
#
#-----[ OPEN ]---------------------------------------------
#
templates/xxx/profil_add_body.tpl
#
#-----[ FIND ]---------------------------------------------
#