Smilies nicht anzeigen, wenn nicht erlaubt
Verfasst: 13.08.2004 13:14
Beschreibung: Wenn im Adminbereich keine Smilies erlaubt sind, werden diese weiterhin auf der Posting-Seite angezeigt. Dieses Snippet ändert das.
Version: phpBB 2.0.x23.10.2004 - Änderung für privmsg.php hinzugefügt
Version: phpBB 2.0.x
Code: Alles auswählen
#
#-----[ OPEN ]------------------------------------------
#
includes/functions_post.php
#
#-----[ FIND ]------------------------------------------
#
function generate_smilies($mode, $page_id)
{
#
#-----[ BEFORE, ADD ]------------------------------------------
#
if ( $board_config['allow_smilies'] )
{
#
#-----[ FIND ]------------------------------------------
#
'S_SMILIES_COLSPAN' => $s_colspan)
);
}
}
#
#-----[ AFTER, ADD ]------------------------------------------
#
}
#
#-----[ OPEN ]------------------------------------------
#
posting.php
#
#-----[ FIND ]------------------------------------------
#
else if ( $mode == 'smilies' )
{
#
#-----[ REPLACE, WITH ]------------------------------------------
#
else if ( $mode == 'smilies' && $board_config['allow_smilies'] )
{
#
#-----[ FIND ]------------------------------------------
#
// Generate smilies listing for page output
generate_smilies('inline', PAGE_POSTING);
#
#-----[ REPLACE, WITH ]------------------------------------------
#
// Generate smilies listing for page output
if ( $board_config['allow_smilies'] )
{
generate_smilies('inline', PAGE_POSTING);
}
#
#-----[ OPEN ]------------------------------------------
#
privmsg.php
#
#-----[ FIND ]------------------------------------------
#
// Send smilies to template
//
generate_smilies('inline', PAGE_PRIVMSGS);
#
#-----[ REPLACE, WITH ]------------------------------------------
#
// Send smilies to template
//
if ( $board_config['allow_smilies'] )
{
generate_smilies('inline', PAGE_PRIVMSGS);
}
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoF