<?php
/*-------------------------------------------------------+
| PHPFusion Content Management System
| Copyright (C) 2002 - 2008 Nick Jones
| http://www.php-fusion.co.uk/
+--------------------------------------------------------+
| Filename: grouponly_bbcode_include.php
| Author: MarcusG
+--------------------------------------------------------+
| This program is released as free software under the
| Affero GPL license. You can redistribute it and/or
| modify it under the terms of this license which you
| can read by viewing the included agpl.txt or online
| at www.gnu.org/licenses/agpl.html. Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+--------------------------------------------------------*/
if (!defined("IN_FUSION")) { die("Access Denied"); }
if ($group_name =abc) {
$text = preg_replace('#\[grouponly\](.*?)\[/grouponly\]#si', '<br /><div><strong>'.$locale['bb_grouponly'].'</strong><br />\1</div>', $text);
} else {
$text = preg_replace('#\[grouponly\](.*?)\[/grouponly\]#si', '<br /><span style=\'color:red;font-weight:bold\'>'.$locale['bb_grouponly_01'].'</span>', $text);
}
?>
<?php
/*-------------------------------------------------------+
| PHPFusion Content Management System
| Copyright (C) 2002 - 2008 Nick Jones
| http://www.php-fusion.co.uk/
+--------------------------------------------------------+
| Filename: grouponly_bbcode_include_var.php
| Author: MarcusG
+--------------------------------------------------------+
| This program is released as free software under the
| Affero GPL license. You can redistribute it and/or
| modify it under the terms of this license which you
| can read by viewing the included agpl.txt or online
| at www.gnu.org/licenses/agpl.html. Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+--------------------------------------------------------*/
if (!defined("IN_FUSION")) { die("Access Denied"); }
$__BBCODE__[] =
array(
"description" => $locale["bb_grouponly_description"],
"value" => "grouponly",
"bbcode_start" => "[grouponly]",
"bbcode_end" => "[/grouponly]",
"usage" => "[grouponly]".$locale["bb_grouponly_usage"]."[/grouponly]"
);
?>
<?php
/*-------------------------------------------------------+
| PHPFusion Content Management System
| Copyright (C) 2002 - 2008 Nick Jones
| http://www.php-fusion.co.uk/
+--------------------------------------------------------+
| Filename: grouponly_bbcode_include.php
| Author: MarcusG
+--------------------------------------------------------+
| This program is released as free software under the
| Affero GPL license. You can redistribute it and/or
| modify it under the terms of this license which you
| can read by viewing the included agpl.txt or online
| at http://www.gnu.org/licenses/agpl.html. Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+--------------------------------------------------------*/
if (!defined("IN_FUSION")) { die("Access Denied"); }
if (!checkgroup(group_id_here)) {
$text = preg_replace('#\[grouponly\](.*?)\[/grouponly\]#si', '<br /><div><strong>'.$locale['bb_grouponly'].'</strong><br />\1</div>', $text);
} else {
$text = preg_replace('#\[grouponly\](.*?)\[/grouponly\]#si', '<br /><span style=\'color:red;font-weight:bold\'>'.$locale['bb_grouponly_01'].'</span>', $text);
}
?>
<?php
/*-------------------------------------------------------+
| PHPFusion Content Management System
| Copyright (C) 2002 - 2008 Nick Jones
| http://www.php-fusion.co.uk/
+--------------------------------------------------------+
| Filename: grouponly_bbcode_include_var.php
| Author: MarcusG
+--------------------------------------------------------+
| This program is released as free software under the
| Affero GPL license. You can redistribute it and/or
| modify it under the terms of this license which you
| can read by viewing the included agpl.txt or online
| at http://www.gnu.org/licenses/agpl.html. Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+--------------------------------------------------------*/
if (!defined("IN_FUSION")) { die("Access Denied"); }
if (!checkgroup(group_id_here)) {
$__BBCODE__[] =
array(
"description" => $locale["bb_grouponly_description"],
"value" => "grouponly",
"bbcode_start" => "[grouponly]",
"bbcode_end" => "[/grouponly]",
"usage" => "[grouponly]".$locale["bb_grouponly_usage"]."[/grouponly]"
);
}
?>
Category Forum
Modifications and Requests - 8Labels
None yet
Statistics
2 participants
Notifications
You are not receiving notifications from this thread.
Related Questions