"admins allowed html" Mod => Frage w/ viewtopic
Verfasst: 19.04.2005 15:40
Hallo!
Ich möchte folgenden Mod installieren:
Mod Title: admins allowed html
## Mod Version: 1.0.0
## Author: Adam Ismay (mitsubishi) <admin@boardz.tk> www.boardz.tk
Dabei ist u.a. eine Änderung an der viewtopc.php durchzuführen:
Jedoch sieht die Stelle nicht ganz so aus, sonderen so:
Muss ich nur den ersten Teil ändern und den Rest stehen lassen,
oder einfach den zweiten Teil weglassen und den ersten wie in der Anleitung beschrieben ersetzten?
Ich blicke da leider nicht so ganz durch ... ?
Danke.
Matthias
Ich möchte folgenden Mod installieren:
Mod Title: admins allowed html
## Mod Version: 1.0.0
## Author: Adam Ismay (mitsubishi) <admin@boardz.tk> www.boardz.tk
Dabei ist u.a. eine Änderung an der viewtopc.php durchzuführen:
Code: Alles auswählen
#
# ------ [ FIND ] ----
#
// If the board has HTML off but the post has HTML
// on then we process it, else leave it alone
//
if ( !$board_config['allow_html'] )
#
# ------ [ REPLACE WITH] ----
#
// If the board has HTML off but the post has HTML
// on then we process it, else leave it alone
//
if ( !$board_config['allow_html'] && $postrow[$i]['user_level'] != ADMIN ) Code: Alles auswählen
//
// If the board has HTML off but the post has HTML
// on then we process it, else leave it alone
//
if ( !$board_config['allow_html'] || !$userdata['user_allowhtml'])Code: Alles auswählen
if ( !$board_config['allow_html'] && $postrow[$i]['user_level'] != ADMIN ) || !$userdata['user_allowhtml'])Ich blicke da leider nicht so ganz durch ... ?
Danke.
Matthias