mein User Code http://www.phpbb.de/moddb/download.php?id=300 will noch immer nicht funktionieren. Trotz des neuen Links funktioniert das ganze nicht. Es ist ja nur der Text
Code: Alles auswählen
##############################################################
## MOD Title: BBCode User
## MOD Author: Sebastian Ruhleder < ruhleder@my-mail.ch > (Sebastian R.)
## MOD Description: Fügt einen [user] BBCode hinzu!
## MOD Version: 1.0.0
##
## Installation Level: Easy
## Installation Time: 5 minutes
## Files To Edit: includes/bbcode.php
## Included Files: icon_profile_small.gif
## Generator: MOD Studio 3.0 Beta 2 [mod functions 0.4.1818.26949]
##############################################################
## For Security Purposes, Please Check: http://www.phpbb.com/mods/ for the
## latest version of this MOD. Downloading this MOD from other sites could cause malicious code
## to enter into your phpBB Forum. As such, phpBB will not offer support for MOD's not offered
## in our MOD-Database, located at: http://www.phpbb.com/mods/
##############################################################
## Author Notes: Danke an Saerdnaer für den neuen make_user_link()-Code!
##############################################################
## MOD History:
##
## 2005-04-14 - Version 1.0.0
##
## - First Stable release. Version 1.0.0 of a MOD is always it's first stable release.
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
#
#-----[ COPY ]------------------------------------------
#
copy icon_profile_small.gif to /images/icon_profile_small.gif
#
#-----[ OPEN ]------------------------------------------
#
includes/bbcode.php
#
#-----[ FIND ]------------------------------------------
#
// [i] and [/i] for italicizing text.
$text = str_replace("[i:$uid]", $bbcode_tpl['i_open'], $text);
$text = str_replace("[/i:$uid]", $bbcode_tpl['i_close'], $text);
#
#-----[ AFTER, ADD ]------------------------------------------
#
// User code start
$text = preg_replace("#\[user:$uid\](.*?)\[/user:$uid\]#sie", "make_user_link('\\1')", $text);
// User code end
#
#-----[ FIND ]------------------------------------------
#
$text = preg_replace("#\[i\](.*?)\[/i\]#si", "[i:$uid]\\1[/i:$uid]", $text);
#
#-----[ AFTER, ADD ]------------------------------------------
#
$text = preg_replace("#\[user\](.*?)\[/user\]#si", "[user:$uid]\\1[/user:$uid]", $text);
#
#-----[ FIND ]------------------------------------------
#
?>
#
#-----[ BEFORE, ADD ]------------------------------------------
#
function make_user_link($user)
{
return '<img src="./images/icon_profile_small.gif" border="0" /><a href="' . append_sid("profile.php?mode=viewprofile&" . POST_USER_URL ."=" . urlencode($user)) . '">$user</a>';
}
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM