Cannot Delete Groups

Hi Everyone

 

Just been trying out the groups feature and im coming across this problem when i try to delete them through the admin panel.

 

Warning: main(/home/sites/quackchat.com/public_html//inc/groups.inc.php) [function.main]: failed to open stream: No such file or directory in /home/sites/quackchat.com/public_html/admin/delgroup.php on line 6

Fatal error: main() [function.require]: Failed opening required '/home/sites/quackchat.com/public_html//inc/groups.inc.php' (include_path='.:/usr/share/pear') in /home/sites/quackchat.com/public_html/admin/delgroup.php on line 6

as you can see it is saying the file doesnt exist. This is a new install fresh from boonex so is anyone else missing this? Ive done a search of all the website and the file doesnt exist anywhere in any directory.

Regards

James

Quote · 19 Jul 2008

delgroup.php  is not standard dolphin file

seems this is just someone modification

PS as default - dolphin haven`t such functional to Delete Group, possible only suspend group

Quote · 21 Jul 2008

6.1.1 deletes through the /admin/groups.php file obviously as /admin/groups.php?action=del_cat&cat=35

as an example.

 

 

Quote · 21 Jul 2008

Just open

admin\groups.php

case 'del_cat':
$catID = (int)$_GET['cat'];
if( $catID ) {
db_res( "DELETE FROM `GroupsCateg` WHERE `ID`=$catID" );
if( mysql_affected_rows() )
$actionMsg .= 'Deleted succesfully';
else
$actionMsg .= 'Couldn\'t delete';
}
break;

here no any calling bad-named (not by rules of Code Convention ) file 'delgroup.php'

Quote · 21 Jul 2008

hi thanks. It was a mod i found to add on to delete groups but it doesnt work. I had just forgot i done it.

 

Many Thanks

James

Quote · 22 Jul 2008

possible this functional will added in future version

Quote · 22 Jul 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

"here is the answer

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

u can thank me all anytime..;)

Dean"

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

Dean,

Thanks a million! I'm greener than green, newer than a newbie and I was able to follow your instructions without fail. I wish all instructions were as straightforward resulting in success! Some of those groups were not appropriate for my site. And they are now gone!

Enjoy a lovely weekend!

Jhazzzzzzzzzi

Quote · 16 May 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.