Page 1 of 1

PHPBB

Posted: Thu Jul 06, 2006 9:35 am
by derek barnstorm
Sorry to throw a PHPBB question at you, but they don't seem to helpful over at their own forum.
I am trying to install a MOD, but I don't really understand PHP. All I have to do is add some code to the PHP script.
Here is a section of from the installation guide:

Code: Select all

#-----[ FIND ]------------------------------------------
#
# around line 710
#
'MESSAGE' => $preview_message,
#
#-----[ IN-LINE FIND ]------------------------------------------
#
=>
#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
#
'<mwthree style="display:none"></mwthree>' .
Would that mean that I would have to do this:

Code: Select all

'MESSAGE' =>
'<mwthree style="display:none"></mwthree>'
$preview_message
or is that totally wrong? Only I keep getting a syntax error.

Thanks,

Des.

Posted: Thu Jul 06, 2006 9:44 am
by Weirdan

Code: Select all

'MESSAGE' => '<mwthree style="display:none"></mwthree>' . $preview_message,
notice the dot in the mod source and trailing comma in the file source
Btw, there are exist tools like EasyMOD to apply mods automatically

Posted: Thu Jul 06, 2006 9:47 am
by derek barnstorm
Okay, thanks very much.

Des.