Delete Group in D6.1.6

I am using D6.1.6. I noticed that we have an Admin approval option for Blogs, but I don't see one for Groups. Therefore, someone created a Group on my site which is not appropriate, but I could not see where to disable it or delete it.

I'd appreciate any inpute you can provide. Thank you.

-AJ

Quote · 26 Jan 2010

hi, there are people selling mods for this at stupid prices..so here's my present to u.

here is the answer

create a file called delgroup.php and insert the following into it -

<?php
require_once( '../inc/header.inc.php' );
require_once( BX_DIRECTORY_PATH_INC . 'design.inc.php' );
require_once( BX_DIRECTORY_PATH_INC . 'admin_design.inc.php' );
require_once( BX_DIRECTORY_PATH_INC . 'utils.inc.php' );
require_once( BX_DIRECTORY_PATH_CLASSES . 'BxDolGroups.php' );
$ID=$_REQUEST["ID"];
$cat=$_REQUEST["cat"];
db_res( "DELETE FROM `Groups` WHERE `ID`=$ID" );
header("location:groups.php?view_cat=$cat");
?>

------------------------------------------------------------------------------

put this into your admin root folder

next open admin/groups.php and do the following -

2: Search in groups.php this Code (Line 240):
$aRowTmpl['group_name'] = "<a href=\"{$site['url']}group.php?ID={$arrGroup['ID']}\">".htmlspecialchars_adv( $arrGroup['Name'] )."</a>

3: Replace with this Code:
$aRowTmpl['group_name'] = "<a href=\"{$site['url']}group.php?ID={$arrGroup['ID']}\">".htmlspecialchars_adv( $arrGroup['Name'] )."</a> - <a href=\"delgroup.php?cat=$cat&ID={$arrGroup['ID']}\">Delete</a>";

========================================

Go to your Adminmenu and under Content/Groups you can delete the Groups.

u can thank me all anytime..;)

Dean

Quote · 26 Jan 2010
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.