also ich habe einen Mod gefunden, der, wenn ich es richtig verstanden habe, den Namen des Lesers einsetzt (z.B.: Hallo XXX und weiter im Text - xxx ist entweder Gast oder immer der jeweilige Registrierte Leser)
Nur bekomme ich diesen Mod nicht in Griff, entweder bin ich zu dusselig oder wie auch immer. Kann auch sein, dass der Mod nicht im phpBB 2.0.3 funzt. Oder ich verwende den falschen Code, um das zu benutzen.
Hier mal der Mod:
Vielleich habe ich ja auch nur nicht den richtigen Platz für die ersten zwei einzufügenden Zeilen gefunden.##############################################################
## MOD Title:advanced /me /you mod
## MOD Author: Bonobo < bonobo@dolfijn.nl > http://www.tempzone.nl
## 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/
#
#----- [FINDE] ------------------
#
$message = make_clickable($message);
#
#----- [DANACH EINFÜGEN] ------------------
#
$message = str_replace("/you","<font color=\"violet\"> " .$userdata['username']. "</font> ",$message);
$message = str_replace("/me","<font color=\"orange\"> " .$poster. "</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);
Über Eure Hilfe und Tipps würde ich mich riesig freuen.
MfG,
Max