Delete group; Delete profile photo via admin

Hi all,

Again I am with a problem. some people join and create spam group. Also they upload a profile photo, that is not allowed. I don't use Profile Photos PreModeration to approve photos, they go to profile instantly.

But I want to delete that bad photos from member profile and keep other profile photos for that member.

Also I want to delete a gropu - but can't find any way to do that! I don't want to delete whole category! just group. there is some "suspend" only link, no delete.

Please don't tell me that I need to do all via phpmyadmin to delete group or profile photo, because that will be stupid and a big flaw of Dolphin.

Quote · 10 Sep 2008

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 ope 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 · 4 Mar 2009
 
 
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.