BBcode Private Msg - ver 0.1.0
Ok, I decided to start this based on this request here
Basically what this MOD will <hopefully> do, is to allow members to post messages to their friends/team mates (might be good for rpg) through actual posts on the forums.
Right now I'm using [priv] [/priv] as the tag names, but that might change

Only people specified will be able to read the message, i.e.
if you put [priv="bob"]text goes here[/priv] then only bob will be able to read the message.
So far I have the BBcode button created. I've modelled part of it on the phpBB 'quote' function, as will see on my demo boards.
Check the demo board for the code so far


Code: Select all
##############################################################
## MOD Title: Private Message BBcode
## MOD Author: Cherokee Red < cherokeered@blueyonder.co.uk > (Kenny Cameron) http://cherokeered.mrikasu.com/forums/
##
## MOD Description: This MOD will add a new BBcode that can effectively hide a message in a post to another user using [priv] [/priv] - Any text within these tage will only be visible to the user specified. ie. by doing this [priv="username"] "text" [/priv]
##
## MOD Version: 0.1.0
##
## Installation Level: Easy
## Installation Time: ~10 Minute
## Files to edit: 6
## includes/bbcode.php
## posting.php
## privmsg.php
## language/lang_english/lang_main.php
## templates/subSilver/bbcode.tpl
## templates/subSilver/posting_body.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:
##
## If you have additional bbcodes installed you will need to increase the
## addbbcodeXX (part in posting_body.tpl) accordingly and be sure that you don´t use
## same letters and digits for two different bbcodes.
## The colspan value in posting_body.tpl (3x after bbcodes) should be changed too
## (it depends on how many bbcodes you have installed).
##
##############################################################
## MOD History:
##
## 2005-01-21 - Version 0.0.1
## - BBcode button created - no support for usernames or hidden text yet
##
## - Version 0.1.0
## - updated - now has support of username displaying and a message stating part of the post if a private message. No hidden value yet
##
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
clickify

*Demo Board*
clickify

*Progress*
- create BBcode button [100%]
- allow username output from button (i.e. [priv="username"] text [/priv]) [100%]
- formatting of outputted text [50%] (I want to wait for more user input before I finalise this
)
hide message to specific user id [0%]
optionals / extras - allow multiple usernames to be selected in the one tag - i.e [priv="user1;user2;user3"] text [/priv]
- ACP option to allow admins/mods to view all hidden messages