|
Re:Private Forums: I am writing native support. 2 Months, 3 Weeks ago
|
|
|
Dannymh wrote:
1: Create or modify a forum
2: select the option where it says "Private Forum" you should set this for the Lowest level of membership that will be allowed in this private forum and should be at least "Registered or All Registered"
I don't see the option for Private Forum - I installed the final one modified for J 1.5 by another user - I uploaded the files and overwrote the older ones.
I do see a restricted forums link in the menu that does not display any forums though (As I haven't been able to add them)
Any help is appreciated.
Thanks & God Bless
|
|
string (User)
Junior Boarder
Posts: 35
|
Logged
|
|
|
|
|
|
|
|
|
Re:Completed: Private/Restricted Forums (Native) 2 Months ago
|
|
Have added the 10.4 script working well  nice one! however i dont have the option to set forums as private!! and when i go to add users to restricted forums it says added user successfully but is not showing a list of restricted users i have added ? any ideas
|
|
alan27 (User)
Fresh Boarder
Posts: 3
|
Logged
|
|
|
|
|
|
Re:Completed: Private/Restricted Forums (Native) 1 Month, 2 Weeks ago
|
|
Ok for those who have the problem seeing all the restricted users in the list i have come up with a dirty hack to allow me to see the full list of users.
I went to and changed 10 to 100 I guess if you have more than 100 make it 1000
$limit = $mainframe->getUserStateFromRequest("viewlistlimit", 'limit', 10);
look in admin.fireboard.php for and change the above line.
function editrestrictedUser($option, $id)
{
global $database, $mainframe;
global $mosConfig_lang;
$limit = $mainframe->getUserStateFromRequest("viewlistlimit", 'limit', 10);
$limitstart = $mainframe->getUserStateFromRequest("view{$option}limitstart", 'limitstart', 0);
$levellimit = $mainframe->getUserStateFromRequest("view{$option}limit", 'levellimit', 10);
please note this will not really fix anything only allow you to see everyone one one page.
|
|
jasonrhl (User)
Junior Boarder
Posts: 53
|
Logged
|
|
|
Last Edit: 2008/11/25 09:41 By jasonrhl.
Reason: did some codeing :o
|
|
|
|
|
|
Re:Completed: Private/Restricted Forums (Native) 2 Weeks, 4 Days ago
|
|
Hi all !
so it works now with Fireboard 1.0.5 RC2 and J! 1.5.8
i make a zip file where there is all the modifiate files and also the new files
i make also a mod file who describe the list modification, if you already make modification of your concern files you will have to do manually.
| Code: |
##############################################################
## MOD Title: Restricted User For Fireboard
## MOD Author (Original For Fireboard 1.0.3, 1.0.4 and J!1.0): Dannymh http://www.bestofjoomla.com/component/option,com_fireboard/func,fbprofile/task,showprf/Itemid,38/userid,10458/
## MOD Author (Upgrade For Fireboard 1.0.4 and J!1.5): Roland http://www.bestofjoomla.com/component/option,com_fireboard/func,fbprofile/task,showprf/Itemid,38/userid,12343/
## MOD Author (Upgrade For Fireboard 1.0.5 RC2 and J!1.5): Baboon http://www.bestofjoomla.com/component/option,com_fireboard/func,fbprofile/task,showprf/Itemid,38/userid,13316/
## MOD Description: Allow restricted access for user to specific category forum using a backend admin selection.
## MOD Version: 1.4
## Installation Level: Intermediate
## Installation Time: 15 Minutes
## Files To Edit: 9
## administrator/components/com_fireboard/admin.fireboard.html.php
## administrator/components/com_fireboard/admin.fireboard.php
## administrator/components/com_fireboard/fb_cpanel.php
## administrator/components/com_fireboard/toolbar.fireboard.html.php
## administrator/components/com_fireboard/toolbar.fireboard.php
## administrator/components/com_fireboard/language/english.php
## components/com_fireboard/fireboard.php
## components/com_fireboard/sources/fb_auth.php
## components/com_fireboard/sources/fb_permissions.php
## Included Files: 5
## administrator/components/com_fireboard/jquery-1.2.1.pack.js
## administrator/components/com_fireboard/rpc.php
## administrator/components/com_fireboard/images/restrict.png
## administrator/components/com_fireboard/images/upArrow.png
## components/com_fireboard/sources/fb_restrict.php
##############################################################
## For Security Purposes, Please Check: http://www.bestofjoomla.com/component/option,com_fireboard/Itemid,38/func,view/catid,68/id,34011/
## For the latest version of this MOD. Downloading this MOD from other sites could cause malicious code to enter into your Fireboard Forum.
##############################################################
## Author Notes:
##
## I have tested this MOD whit Fireboard 1.0.5 RC2, Joomla 1.5.8 and MySQL Database 5.0.27, Php 5.2.0
##
## All the files join are already modifiate so you can copy them with no need to modifiate by yourself,
## but if you hard code your own file you have to do yourself the modification list above.
##
###############################################################
## IMPORTANT !!!!! Before Adding This MOD To Your Forum, You Should Back Up you DATABASE and All Files Related To This MOD
##############################################################
## Instructions after modifiate file and upload:
## 1: Create or modify a forum
## 2: Select the option where it says "Private Forum" you should set this for the Lowest level of membership
## that will be allowed in this private forum and should be at least "Registered or All Registered"
## 3: Go to "Restricted Forums"
## 4: Select the forum you want to give a user access to
## 5: Click "Add Users"
## 6: Start typing the members name (You can add as many as you want to the list from here)
## 7: Hit save
##
## The way that this all works is a simple concept which basically first checks whether the forum is a standard Fireboard Private forum(core functionality).
## It then checks if there are "Restricted Users" if there are then the forum is ONLY SHOWN TO THOSE USERS ASSIGNED TO IT.
## (I had to shout that, because this means the forum is even hidden from other Administrators and Moderaters unless they are assigned to it.
## This is how I designed it because my needs are specific forums for specific people).
## That's basically it, all part of the core and all private as private can be.
## If there are no users assigned to the forum, then it reverts back to the coe functionality of Joomla Group level access.
##
## This MOD is released under the GPL License.
## Intellectual Property is retained by the MOD Author(s) listed above
## Copyright: ©2008 Restricted User For Fireboard 1.3
##############################################################
## MOD History:
##
## 2008-01-08 - Version 1.0
## - First Version Public For Fireboard 1.0.3; J! 1.0
## http://www.bestofjoomla.com/component/option,com_fireboard/Itemid,38/func,view/id,34011/catid,68/limit,10/limitstart,20/#37835
## 2008-01-09 - Version 1.1
## - Version Public For Fireboard 1.0.4; J! 1.0
## http://www.bestofjoomla.com/component/option,com_fireboard/Itemid,38/func,view/id,34011/catid,68/limit,10/limitstart,30/#38018
## 2008-03-05 - Version 1.2
## - Version Public For Fireboard 1.0.4; J! 1.5
## http://www.bestofjoomla.com/component/option,com_fireboard/Itemid,38/func,view/id,34011/catid,68/limit,10/limitstart,180/#46284
## 2008-03-28 - Version 1.3
## - Version Public For Fireboard 1.0.4; J! 1.5 and ACL Joomla support
## http://www.bestofjoomla.com/component/option,com_fireboard/Itemid,38/func,view/id,34011/catid,68/limit,10/limitstart,220/#47908
## 2008-12-21 - Version 1.4
## - Version Public For Fireboard 1.0.5 RC2; J! 1.5
## http://www.bestofjoomla.com/component/option,com_fireboard/Itemid,38/func,view/catid,68/id,34011/limit,10/limitstart,250/#63103
##############################################################
## IMPORTANT !!!!! Before Adding This MOD To Your Forum, You Should Back Up you DATABASE and All Files Related To This MOD
##############################################################
#
#-----[ SQL ]------------------------------------------
#
# If you make the sql modification for the 1.3 version you can remove it now, Fireboard 1.05 RC2 works now with Joomla 1.5 ACL
#
# If you don't do this you can pass the base modification, if you don't remenber you can do it it's safe you will just have a error result
#
# If you don't use mysql, you'll have to edit these queries accordingly
#
# If you have a different table prefix then change this command accordingly.
# I have used the default table prefix!
#
ALTER TABLE jos_core_acl_aro_groups DROP group_id;
#
#-----[ Open ]------------------------------------------
#
administrator/components/com_fireboard/admin.fireboard.html.php
#
#-----[ FIND near line 139]------------------------------------------
#
<a class="fbmainmenu" href = "index2.php?option=com_fireboard&task=showAdministration"><?php echo _COM_C_FORUM; ?></a>
#
#-----[ AFTER, ADD ]------------------------------------------
#
<!-- Restricted User -->
<a class="fbmainmenu" href = "index2.php?option=com_fireboard&task=restrictedUser"><?php echo _FB_C_RESTRICT; ?></a>
<!-- Restricted User -->
#
#-----[ FIND near line 3576]------------------------------------------
#
}//end function newrank
#
#-----[ AFTER, ADD ]------------------------------------------
#
##############Restricted User###################
function showRestrictedForums( $rows,$pageNavSP, $option, $mosConfig_lang )
{
global $database, $mainframe, $total;
?>
<div class="fbfunctitle"><?php echo _FB_CATFOR;?></div>
<form action="index2.php" method="POST" name="adminForm">
<table class="adminheading" cellpadding="4" cellspacing="0" border="0" width="100%">
<tr>
</tr>
</table>
<table class="adminlist" border=0 cellspacing=0 cellpadding=3 width="100%" >
<tr>
<th width="20" align="center">#</th>
<th align="left"><input type="checkbox" name="toggle" value="" onclick="checkAll(<?php echo count($rows); ?>);"/></th>
<th align="left" ><?php echo _FB_CATFOR;?></th>
</tr>
<?php
$k=0;
$i = 0; foreach ($rows as $id=>$row) {
$k = 1-$k;
?>
<tr class="row<?php echo $k;?>">
<td width="20" align="center"><?php echo ($id+$pageNavSP->limitstart+1);?></td>
<td width="20" align="center"><input type="checkbox" id="cb<?php echo $id;?>" name="id" value="<?php echo $row->id; ?>" onClick="isChecked(this.checked);"></td>
<td width="100%"><a href = "#edit" onclick = "return listItemTask('cb<?php echo $id; ?>','editrestrictedUser')"><?php echo $row->name; ?></a></td>
</tr>
<?php } ?>
<input type="hidden" name="option" value="<?php echo $option; ?>">
<input type="hidden" name="boxchecked" value="0">
<input type="hidden" name="task" value="editrestrictedUser">
<tr>
<th align="center" colspan="7"><?php echo $pageNavSP->writePagesLinks(); ?></th>
</tr>
<tr>
<td align="center" colspan="7"><?php echo $pageNavSP->writePagesCounter(); ?></td>
</tr>
</table>
</form>
<?php } //end function showRestricted
function editRestrictedForums( $rows,$pageNavSP, $option, $id )
{
global $database, $mainframe, $total;
?>
<div class="fbfunctitle"><?php echo "Allowed Users";?></div>
<table class="adminheading" cellpadding="4" cellspacing="0" border="0" width="100%">
<tr>
</tr>
</table>
<table class="adminlist" border=0 cellspacing=0 cellpadding=3 width="100%" >
<tr>
<th width="20" align="center">#</th>
<th align="left"><input type="checkbox" name="toggle" value="" onclick="checkAll(<?php echo count($rows); ?>);"/></th>
<th align="left" ><?php echo "Allowed Users";?></th>
</tr>
<form action="index2.php" method="post" name="adminForm" id="adminForm">
<?php
$k=0;
$i = 0; foreach ($rows as $ids=>$row) {
$k = 1-$k;
?>
<tr class="row<?php echo $k;?>">
<td width="20" align="center"><?php echo ($ids+$pageNavSP->limitstart+1);?></td>
<td width="20" align="center"><input type="checkbox" id="cb<?php echo $ids;?>" name="id" value="<?php echo $row->user_id; ?>" onClick="isChecked(this.checked);"></td>
<td width="100%"><a href = "#delete" onclick = "return listItemTask('cb<?php echo $ids; ?>','removerestrictedUser')"><?php echo $row->uname; ?></a></td>
</tr>
<?php } ?>
<input type="hidden" name="forum_id" id="forum_id" value="<?php echo $id; ?>">
<input type="hidden" name="option" value="<?php echo $option; ?>">
<input type="hidden" name="task" value="removerestrictedUser">
<input type="hidden" name="boxchecked" value="0">
</form>
<tr>
<th align="center" colspan="7"><?php echo $pageNavSP->writePagesLinks(); ?></th>
</tr>
<tr>
<td align="center" colspan="7"><?php echo $pageNavSP->writePagesCounter(); ?></td>
</tr>
</table>
<?php } //end function showRestricted
function showUsers($id, $option)
{
?>
<script type="text/javascript" src="components/com_fireboard/jquery-1.2.1.pack.js"></script>
<script type="text/javascript">
function lookup(inputString) {
if(inputString.length == 0) {
// Hide the suggestion box.
$('#suggestions').hide();
} else {
$.post("components/com_fireboard/rpc.php", {queryString: ""+inputString+""}, function(data){
if(data.length >0) {
$('#suggestions').show();
$('#autoSuggestionsList').html(data);
}
});
}
} // lookup
function fill(thisValue) {
$('#thefbuser').val(thisValue);
setTimeout("$('#suggestions').hide();", 200);
}
function fillme(thisValue) {
$('#userid').val(thisValue);
setTimeout("$('#suggestions').hide();", 200);
}
function addOption(selectbox,text,value )
{
var optn = document.createElement("OPTION");
optn.text = text;
optn.value = value;
selectbox.options.add(optn);
selectAll(selectbox, true);
}
function removeOptions(selectbox)
{
var i;
for(i=selectbox.options.length-1;i>=0;i--)
{
if(selectbox.options[i].selected)
selectbox.remove(i);
}
selectAll(selectbox, true);
}
function selectAll(selectBox,selectAll) {
// have we been passed an ID
if (typeof selectBox == "string") {
selectBox = document.getElementById(selectBox);
}
// is the select box a multiple select box?
if (selectBox.type == "select-multiple") {
for (var i = 0; i < selectBox.options.length; i++) {
selectBox.options[i].selected = selectAll;
}
}
}
</script>
<style type="text/css">
body {
font-family: Helvetica;
font-size: 11px;
color: #000;
}
h3 {
margin: 0px;
padding: 0px;
}
.suggestionsBox {
position: relative;
left: 30px;
margin: 10px 0px 0px 0px;
width: 200px;
background-color: #212427;
-moz-border-radius: 7px;
-webkit-border-radius: 7px;
border: 2px solid #000;
color: #fff;
}
.suggestionList {
margin: 0px;
padding: 0px;
}
.suggestionList li {
margin: 0px 0px 3px 0px;
padding: 3px;
cursor: pointer;
}
.suggestionList li:hover {
background-color: #659CD8;
}
</style>
<div>
<form action="index2.php" method="post" name="adminForm" id="adminForm">
<div>
Start Typing a Username:
<br />
<input type="text" size="30" value="" id="thefbuser" name="thefbuser" onkeyup="lookup(this.value);" onblur="fill();" />
<div class="suggestionsBox" id="suggestions" style="display: none;">
<img src="components/com_fireboard/images/upArrow.png" style="position: relative; top: -12px; left: 30px;" alt="upArrow" />
<div class="suggestionList" id="autoSuggestionsList">
</div>
</div>
<input type="hidden" size="30" value="" id="userid" name="userid" onkeyup="lookup(this.value);" onblur="fill2();" />
</div>
<input type="hidden" size="30" value="<?php echo $id; ?>" id="forumid" name="forumid" />
<br/>
Add These Users<br/>
<select id="user_list" name="user_list[]" multiple>
</select>
<input type=button onClick="removeOptions(user_list)"; value='Remove Selected'>
<input type="hidden" name="option" value="<?php echo $option; ?>">
<input type="hidden" name="task" value="saveRestrictedUser">
<input type="hidden" name="id" value="<?php echo $id; ?>">
<input type="hidden" name="boxchecked" value="0">
</form>
</div>
<?php
} // End function Show User
######################END RESTRICTED USER#########################
#
#-----[ Open ]------------------------------------------
#
administrator/components/com_fireboard/admin.fireboard.php
#
#-----[ FIND near line 49]------------------------------------------
#
if (!is_array($uid)) {
$uid = array ( $uid );
}
#
#-----[ AFTER, ADD ]------------------------------------------
#
/** FB Private hack for J! 1.5 */
$id = mosGetParam($_REQUEST, 'id');
/** FB Private hack for J! 1.5 */
#
#-----[ FIND near line 315]------------------------------------------
#
case "newRank":
newRank($option);
break;
#
#-----[ AFTER, ADD ]------------------------------------------
#
######Restricted Forums#######
case "restrictedUser":
restrictedUser($option, $id);
break;
case "editrestrictedUser":
editrestrictedUser($option, $id);
break;
case "newRestrictUser":
newRestrictUser($option, $_POST["forum_id"]);
break;
case "saveRestrictedUser":
saveRestrictedUser($option, $id);
break;
case "removerestrictedUser";
removerestrictedUser($option, $id, $_POST["forum_id"]);
break;
####### End Restricted Forums #######
#
#-----[ FIND near line 2153]------------------------------------------
#
if (function_exists('gd_info')) {
$ver_info = gd_info();
preg_match('/d/', $ver_info['GD Version'], $match);
$gd_ver = $match[0];
return $match[0];
} else {
return;
}
}
#
#-----[ AFTER, ADD ]------------------------------------------
#
//===============================
// Restricted Forum Administration
//===============================
//Dan Hewes - Restricted forums management
function restrictedUser($option)
{
global $database, $mainframe;
global $mosConfig_lang;
//
// First check if the table exists and create it if it doesn't
//
$restSQL = "CREATE TABLE IF NOT EXISTS `#__fb_private_users` (
`user_id` int(11) NULL default '0',
`forum_id` int(11) NULL default '0')";
$database->setQuery($restSQL);
if (!$database->query())
{
echo $database->stderr();
return false;
}
$limit = $mainframe->getUserStateFromRequest("viewlistlimit", 'limit', 10);
$limitstart = $mainframe->getUserStateFromRequest("view{$option}limitstart", 'limitstart', 0);
$levellimit = $mainframe->getUserStateFromRequest("view{$option}limit", 'levellimit', 10);
/*
* danial
*/
// $database->setQuery("SELECT * FROM #__fb_categories where pub_access > 1 LIMIT $limitstart,$limit");
$database->setQuery("SELECT * "
. "nFROM #__fb_categories"
. "nwhere pub_access>0");
$rows = $database->loadObjectList();
if ($database->getErrorNum())
{
echo $database->stderr();
return false;
}
// establish the hierarchy of the categories
$children = array ();
// first pass - collect children
// second pass - get an indent list of the items
//$list = fbTreeRecurse(0, '', array (), $children, max(0, $levellimit - 1));
$total = count($rows);
require_once ($GLOBALS['mosConfig_absolute_path'] . '/administrator/includes/pageNavigation.php');
$pageNav = new mosPageNav($total, $limitstart, $limit);
$levellist = mosHTML::integerSelectList(1, 20, 1, 'levellimit', 'size="1" onchange="document.adminForm.submit();"', $levellimit);
// slice out elements based on limits
$list = array_slice($rows, $pageNav->limitstart, $pageNav->limit);
/**
*@end
*/
HTML_SIMPLEBOARD::showRestrictedForums($list, $pageNav, $option,$mosConfig_lang);
}
function editrestrictedUser($option, $id)
{
global $database, $mainframe;
global $mosConfig_lang;
$limit = $mainframe->getUserStateFromRequest("viewlistlimit", 'limit', 200);
$limitstart = $mainframe->getUserStateFromRequest("view{$option}limitstart", 'limitstart', 0);
$levellimit = $mainframe->getUserStateFromRequest("view{$option}limit", 'levellimit', 10);
$database->setQuery("SELECT a.*, b.name as uname"
. "nFROM #__fb_private_users a"
. "nJoin #__users b on b.id = a.user_id"
. "nwhere forum_id=$id");
$rows = $database->loadObjectList();
if ($database->getErrorNum())
{
echo $database->stderr();
return false;
}
// establish the hierarchy of the categories
$children = array ();
// first pass - collect children
// second pass - get an indent list of the items
//$list = fbTreeRecurse(0, '', array (), $children, max(0, $levellimit - 1));
$total = count($rows);
require_once ($GLOBALS['mosConfig_absolute_path'] . '/administrator/includes/pageNavigation.php');
$pageNav = new mosPageNav($total, $limitstart, $limit);
$levellist = mosHTML::integerSelectList(1, 20, 1, 'levellimit', 'size="1" onchange="document.adminForm.submit();"', $levellimit);
// slice out elements based on limits
$list = array_slice($rows, $pageNav->limitstart, $pageNav->limit);
/**
*@end
*/
HTML_SIMPLEBOARD::editRestrictedForums($list, $pageNav, $option, $id);
}
function newRestrictUser($option, $id)
{
// As far as i can see we need to have a holder in place just to get the function pumping
// we are parsing the forum ID to make sure we have it for saving the user against it.
HTML_SIMPLEBOARD::showUsers($id, $option);
}
function saveRestrictedUser($option, $id)
{
global $database;
foreach($_POST["user_list"] as $user_list)
{
$database->setQuery("select count(*) from #__fb_private_users where forum_id=".$id." and user_id=".$user_list."");
$res = $database->loadResult();
if (!$res>0)
{
$database->setQuery("INSERT INTO #__fb_private_users set forum_id=".$id.", user_id=".$user_list);
if (!$database->query())
{
}
}
}
mosRedirect("index2.php?option=com_fireboard&task=restrictedUser", "Users Added to Private Forum");
}
function removerestrictedUser($option, $id, $forum_id)
{
global $database;
$database->setQuery("Delete From #__fb_private_users where forum_id=".$forum_id." and user_id=".$id);
if (!$database->query())
{
echo $database->stderr();
return false;
}
else
{
mosRedirect("index2.php?option=com_fireboard&task=editrestrictedUser&id=".$forum_id, "User Removed from Private Forum");
}
}
########## END Restricted Forums Code ####################
#
#-----[ OPEN ]------------------------------------------
#
administrator/components/com_fireboard/fb_cpanel.php
#
#-----[ FIND near line 147]------------------------------------------
#
<div style = "float:left;">
<div class = "icon"> <a href = "index2.php?option=com_fireboard&task=ranks" style = "text-decoration:none;" title = "<?php echo _FB_RANKS_MANAGE;?>"> <img src = "components/com_fireboard/images/fbranks.png" align = "middle" border = "0"/> <span> <?php echo _FB_RANKS_MANAGE; ?> </a> </div>
</div>
#
#-----[ AFTER, ADD ]------------------------------------------
#
<!-- Restricted User -->
<div style = "float:left;">
<div class = "icon"> <a href = "index2.php?option=com_fireboard&task=restrictedUser" style = "text-decoration:none;" title = "<?php echo _FB_ADMIN_CONFIG_RESTRICTED_USERS;?>"> <img src = "components/com_fireboard/images/restrict.png" align = "middle" border = "0"/> <span> <?php echo _FB_C_RESTRICT; ?> </a> </div>
</div>
<!-- Restricted User -->
#
#-----[ OPEN ]------------------------------------------
#
administrator/components/com_fireboard/toolbar.fireboard.html.php
#
#-----[ FIND near line 214]------------------------------------------
#
mosMenuBar::endTable();
}
#
#-----[ AFTER, ADD ]------------------------------------------
#
###########Restricted User##############
function _SHOWRESTRICT_MENU()
{
mosMenuBar::startTable();
mosMenuBar::spacer();
mosMenuBar::custom('editrestrictedUser', 'edit.png', 'edit_f2.png', 'Edit');
mosMenuBar::spacer();
mosMenuBar::back();
mosMenuBar::endTable();
}
function _SHOWRESTRICTUSER_MENU()
{
mosMenuBar::startTable();
mosMenuBar::spacer();
mosMenuBar::addNew('newRestrictUser', 'Add Users');
mosMenuBar::spacer();
mosMenuBar::deleteList('', 'removerestrictedUser', 'Delete');
mosMenuBar::spacer();
mosMenuBar::back();
mosMenuBar::endTable();
}
function _ADDRESTRICTEDUSER_MENU()
{
mosMenuBar::startTable();
mosMenuBar::spacer();
mosMenuBar::save('saveRestrictedUser');
mosMenuBar::spacer();
mosMenuBar::back();
mosMenuBar::endTable();
}
#############End Restricted User##########
#
#-----[ OPEN ]------------------------------------------
#
administrator/components/com_fireboard/toolbar.fireboard.php
#
#-----[ FIND near line 108]------------------------------------------
#
case "newRank":
TOOLBAR_simpleBoard::_NEWRANK_MENU();
break;
#
#-----[ AFTER, ADD ]------------------------------------------
#
################Restricted User#######################
case "restrictedUser":
TOOLBAR_simpleBoard::_SHOWRESTRICT_MENU();
break;
case "editrestrictedUser":
TOOLBAR_simpleBoard::_SHOWRESTRICTUSER_MENU();
break;
case "newRestrictUser";
TOOLBAR_simpleBoard::_ADDRESTRICTEDUSER_MENU();
break;
#################End Restricted User###################
#
#-----[ OPEN ]------------------------------------------
#
administrator/components/com_fireboard/language/english.php
#
#-----[ FIND near line 1437]------------------------------------------
#
define('_FB_NEW_RANK', 'New Rank');
#
#-----[ AFTER, ADD ]------------------------------------------
#
//Restricted forum/user management
DEFINE('_FB_ADMIN_CONFIG_RESTRICTED_USERS','Manage restricted Forum users');
DEFINE('_FB_C_RESTRICT','Restricted Forums');
#
#-----[ OPEN ]------------------------------------------
#
components/com_fireboard/fireboard.php
#
#-----[ FIND near line 196]------------------------------------------
#
require_once (JB_ABSSOURCESPATH . 'fb_permissions.php');
#
#-----[ AFTER, ADD ]------------------------------------------
#
########Restricted User##############
require_once (JB_ABSSOURCESPATH . 'fb_restrict.php');
########## End Restrict ###############
#
#-----[ OPEN ]------------------------------------------
#
components/com_fireboard/sources/fb_auth.php
#
#-----[ FIND near line 36]------------------------------------------
#
else
{
$admin_recurse = "NO_RECURSE";
}
#
#-----[ AFTER, ADD ]------------------------------------------
#
//Restricted User
if(fb_is_private_has_access($forum->id, $my->id)==0)
{
//If the user is allowed to access this forum
return 0;
}
else
//Restricted User
#
#-----[ OPEN ]------------------------------------------
#
components/com_fireboard/sources/fb_permissions.php
#
#-----[ FIND near line 100]------------------------------------------
#
else
$admin_recurse="NO_RECURSE";
#
#-----[ AFTER, ADD ]------------------------------------------
#
//Restricted User
if(fb_is_private_has_access($obj_fbcat->id)==0)
{
//If the user is allowed to access this forum
return 0;
}
else
//Restricted User
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
|
|
|
baboon (User)
Junior Boarder
Posts: 41
|
Logged
|
|
|
Last Edit: 2008/12/21 18:09 By baboon.
Reason: correction
|
|
|
|
|
|
Re:Completed: Private/Restricted Forums (Native) 2 Weeks, 3 Days ago
|
|
|
- Version Public For Fireboard 1.0.5 RC2; J! 1.5
Is there a copy of this for J! 1.0? I am running FB 105 RC2 and J1.0 and CB RC4....
This would help me a ton to stop thinking about going to another forum component, I need private forums like this and a poll system...
|
|
SBS_JR (User)
Fresh Boarder
Posts: 8
|
Logged
|
|
|
|
|
|