simpele mid installeren lukt niet

Status
Niet open voor verdere reacties.

michelmathers

Gebruiker
Lid geworden
19 dec 2002
Berichten
377
ik gebruik phpbb 2.0.4
dit is de mod:


PHP:
############################################################## 
## MOD Title:advanced /me /you mod
## MOD Author: Bonobo < [email]bonobo@dolfijn.nl[/email] >  [url]http://www.tempzone.nl[/url] 
## MOD Description: This mod replaces /me by username and /you bij the readers name.. feature.. in quotes is keeps the name of the original reader.... 
## MOD Version: 1.0
## 
## Installation Level: easy 
## Installation Time: 1 Minutes 
## Files To Edit: viewtopic.php
## Included Files: n/a 
############################################################## 
## Author Notes: 
## 
############################################################## 
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD 
############################################################## 

Put this in the "bbcode-section" of your viewtopic.php 
(maybe not the best place to set it, but it works!) 
/note/ it will only be seen in the submitted message, not in the preview /note/ 

Code: 

{ 
$message = str_replace("/me ","<font color=\"orange\"> " .$poster. "</font> ",$message); 
} 
{ 
$message = str_replace("/you ","<font color=\"violet\"> " .$userdata['username']. "</font> ",$message); 
} 
 


Then, to prevent the wrong names show up in eventually quotes, put this in your posting.php 

FIND 
Code: 

if ( !empty($orig_word) ) 
         { 
            $subject = ( !empty($subject) ) ? preg_replace($orig_word, $replace_word, $subject) : ''; 
            $message = ( !empty($message) ) ? preg_replace($orig_word, $replace_word, $message) : ''; 
         } 
 


and place above this the following code: 
Code: 

{ 
$message = str_replace("/me "," $quote_username ",$message); 
                  }




maar waar zet ik de code neer, ik krijg nu alleen maar error. ik snap niet wat ze bedoelen met bbcode
 
Status
Niet open voor verdere reacties.
Terug
Bovenaan Onderaan