Quote:
Originally Posted by muscle-mustangs
Yeah, I have installed 1.5 and got everything working. Where in the template or file would I find the stuff to edit the warnings at for the PM's for 1.5?
|
In Warn.php, find:
PHP Code:
// Send PM!! =D
$messageb="You have been warned for one of your posts: [url={$vboptions[bburl]}/showthread.php?p={$_POST['post']}]click here to see it[/url]. Your warning level is now: {$level}. Click on the [b]Quick Links[/b] menu above and select [b]View Your Warnings[/b], to see details about all the warnings you have received. The person who warned you, entered this comment: [i]{$_POST['comment']}[/i]. Please reply back if you have a dispute.";
$messageb=ParseInput($messageb);
Replace that, with:
PHP Code:
eval('$messageb .= "' . fetch_template('warn_pm') . '";');
$title="You have been warned";
$to=$user['userid'];
$from=$bbuserinfo['userid'];
SendPM($messageb,$title,$to,$from);
You need a template called "warn_pm", which should have the followings:
HTML Code:
Dear $user[username],
You have been warned for one of your posts, which violated the Forums Rules.
The reason you have been warned is because [b][i] $warn_type[warn_desc] [/i][/b](Warning Type = $warn_type[warn_name]), for which you have been given [b] $warn_type[warn_points] [/b] point(s).
The post for which you are warned can be seen [URL="$vboptions[bburl]/showthread.php?p=$_POST[post]"]here[/URL].
The admin/moderator who warned you, entered this comment:
=======================================
[i]$_POST[comment][/i]
=======================================
Your total Warning Level at the moment is: [b] $level [/b] point(s).
If you reach the maximum of [b]$warn_options[points_before_banned][/b], you will be banned from the Forums, for [b]$warn_options[banned_limit][/b] days.
To see details about all the warnings you have received, until now, please click [URL="$vboptions[bburl]/Warn.php?do=ViewMyWarnings"]here[/URL].
Please reply back if you have a dispute.
It should work. Although, if you just upgrade to my version, you will have a lot more functionality (but also a lot of work to figure out for yourself).
Rgds
---------
John