############################################################## 
## MOD Title: You BBCode
## MOD Author: wGEric < eric@egcnetwork.com > (Eric) http://eric.best-1.biz
## MOD Description: Adds a BBCode that puts the username of the person viewing the
##                  post where you add [you] to your post.
## MOD Version: 1.0.1
## 
## Installation Level: (Easy) 
## Installation Time: 5 Minutes
## Files To Edit: - includes/bbcode.php
##                - templates/subSilver/bbcode.tpl
## Included Files: n/a
############################################################## 
## 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: 
##   You must have Multiple BBCode MOD installed for this to work.
##      Get it here: http://www.phpbb.com/phpBB/viewtopic.php?t=74705
##
##      example:
##  'Hi [you]' will display 'Hi Eric' or 'Hi Bob'.  It depends on who
##      is viewing the topic.
## 
############################################################## 
## MOD History: 
##
##   2003-10-06 - Version 1.0.1
##              - Fixes a bug
##
##   2003-09-17 - Version 1.0.0
##      - First Release
## 
############################################################## 
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD 
############################################################## 

#
#-----[ OPEN ]------------------------------------------
#
includes/bbcode.php

#
#-----[ FIND ]------------------------------------------
#
$bbcode_tpl['email'] = str_replace('{EMAIL}', '\\1', $bbcode_tpl['email']);
#
#-----[ AFTER, ADD ]------------------------------------------
#

  global $userdata;
  $bbcode_tpl['you'] = str_replace('{YOU}', "'" . $userdata['username'] . "'", $bbcode_tpl['you']);
#
#-----[ FIND ]------------------------------------------
#
$replacements[] = $bbcode_tpl['email'];
#
#-----[ AFTER, ADD ]------------------------------------------
#

// [you] - inserts the name of the person viewing the post
$patterns[] = "#\[you\]#ise";
$replacements[] = $bbcode_tpl['you'];
#
#-----[ OPEN ]------------------------------------------ 
#
templates/subSilver/bbcode.tpl
    
#
#-----[ FIND ]------------------------------------------ 
#
<!-- BEGIN email --><a href="mailto:{EMAIL}">{EMAIL}</A><!-- END email -->
#
#-----[ AFTER, ADD ]------------------------------------------ 
#

<!-- BEGIN you -->{YOU}<!-- END you -->
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------ 
#
# EoM