Daarom onderstaande mod geprobeerd en hij lijkt perfect te werken alleen veranderd er niets aan mijn berichten.
## MOD Title: Retroactive Signature
## MOD Version: 1.0.2
## Author: ErDrRon < ErDrRon@aol.com >
##
## Description: Allows users, when they edit their profile, to attach their signature to
## their previous posts when adding or changing their current signature.
## Currently, signature updates are applied only to future posts by
## default in phpBB.
##
## Installation Level: easy
## Installation Time: 10 minutes
## Files To Edit(3): /includes/usercp_register.php
## /language/lang_english/lang_main.php
## /templates/subSilver/profile_add_body.tpl
##
## Included Files(3): retro_sig_install_102.txt
## update_100_to_102.txt
## update_101_to_102.txt
Code: Selecteer alles
#
#-----[ OPEN ]--------------------------------------------
#
/includes/usercp_register.php
#
#-----[ FIND ]--------------------------------------------
#
# (around line 135)
#
else
{
$attachsig = ( isset($HTTP_POST_VARS['attachsig']) ) ? ( ($HTTP_POST_VARS['attachsig']) ? TRUE : 0 ) : 0;
#
#-----[ AFTER, ADD ]--------------------------------------
#
$retrosig = ( isset($HTTP_POST_VARS['retrosig']) ) ? ( ($HTTP_POST_VARS['retrosig']) ? TRUE : 0 ) : 0;
#
#-----[ FIND ]--------------------------------------------
#
# (around line 441)
#
message_die(GENERAL_ERROR, 'Could not update users table', '', __LINE__, __FILE__, $sql);
}
#
#-----[ AFTER, ADD ]--------------------------------------
#
// Retroactive Signature MOD
if ( $retrosig )
{
$sql = "UPDATE " . POSTS_TABLE .
" SET enable_sig = 1" .
" WHERE poster_id = $user_id";
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not update users table (Retro Sig)', '', __LINE__, __FILE__, $sql);
}
}
// End Retro Sig MOD
#
#-----[ FIND ]--------------------------------------------
#
# (around line 874)
#
'L_HIDE_USER' => $lang['Hide_user'],
'L_ALWAYS_ADD_SIGNATURE' => $lang['Always_add_sig'],
#
#-----[ AFTER, ADD ]--------------------------------------
#
// Retroactive Signature MOD
'L_RETRO_SIG' => $lang['Retro_sig'],
'L_RETRO_SIG_EXPLAIN' => $lang['Retro_sig_explain'],
'L_RETRO_SIG_CHECKBOX' => $lang['Retro_sig_checkbox'],
// End Retro Sig MOD
#
#-----[ OPEN ]--------------------------------------------
#
/language/lang_english/lang_main.php
#
#-----[ FIND ]--------------------------------------------
#
# (around line 1004)
#
//
// That's all Folks!
// -------------------------------------------------
#
#-----[ BEFORE, ADD ]-----------------------------------
#
// Retroactive Signature MOD
$lang['Retro_sig'] = 'Attach my signature to my prior posts';
$lang['Retro_sig_explain'] = 'If adding/editing your signature, phpBB normally applies this only to future posts';
$lang['Retro_sig_checkbox'] = 'Check here to attach your signature to your previous posts as well';
// End Retro Sig MOD
#
#-----[ OPEN ]--------------------------------------------
#
/templates/subSilver/profile_add_body.tpl
#
#-----[ FIND ]--------------------------------------------
#
# (around line 165)
#
<input type="radio" name="attachsig" value="0" {ALWAYS_ADD_SIGNATURE_NO} />
<span class="gen">{L_NO}</span></td>
</tr>
#
#-----[ AFTER, ADD ]--------------------------------------
#
<tr>
<td class="row1"><span class="gen">{L_RETRO_SIG}:</span><br /><span class="gensmall">{L_RETRO_SIG_EXPLAIN}</span></td>
<td class="row2">
<input type="checkbox" name="retrosig" />
<span class="gensmall">{L_RETRO_SIG_CHECKBOX}</span></td>
</tr>
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM