mirror of https://github.com/BOINC/boinc.git
Added function to project.inc, project_forum_post_rules() which returns
additional project specific posting rules. svn path=/trunk/boinc/; revision=14315
This commit is contained in:
parent
a3657b0ad8
commit
2ca04c07e0
|
@ -670,6 +670,11 @@ function check_banished($user) {
|
|||
}
|
||||
|
||||
function post_rules() {
|
||||
if (function_exists("project_forum_post_rules")) {
|
||||
$project_rules=project_forum_post_rules();
|
||||
} else {
|
||||
$project_rules="";
|
||||
}
|
||||
return "
|
||||
<ul>
|
||||
<li> Posts must be 'kid friendly': they may not contain
|
||||
|
@ -683,6 +688,7 @@ function post_rules() {
|
|||
<li> No messages that are deliberately hostile or insulting.
|
||||
<li> No abusive comments involving race, religion,
|
||||
nationality, gender, class or sexuality.
|
||||
".$project_rules."
|
||||
</ul>
|
||||
";
|
||||
}
|
||||
|
|
|
@ -87,4 +87,10 @@ function project_user_credit($user){
|
|||
//echo "Whatever is here is added to the private account page";
|
||||
}
|
||||
|
||||
function project_forum_post_rules() {
|
||||
// Add <li> entries for additional forum post rules
|
||||
return "
|
||||
";
|
||||
}
|
||||
|
||||
?>
|
||||
|
|
Loading…
Reference in New Issue