PHPBB

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
derek barnstorm
Forum Commoner
Posts: 36
Joined: Thu May 18, 2006 11:23 am

PHPBB

Post 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.
User avatar
Weirdan
Moderator
Posts: 5978
Joined: Mon Nov 03, 2003 6:13 pm
Location: Odessa, Ukraine

Post 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
derek barnstorm
Forum Commoner
Posts: 36
Joined: Thu May 18, 2006 11:23 am

Post by derek barnstorm »

Okay, thanks very much.

Des.
Post Reply