Page 1 of 1

Moderating by MANAGER

Posted: 21 Aug 2008, 23:47
by MooMoo
Hello!
How can MANAGER (not Superadministrator)
moderate phoca guestbook in frontend?

P.S. It's very good component? but I need this function.

Thank you.

Re: Moderating by MANAGER

Posted: 21 Aug 2008, 23:59
by Jan
Hi, only administrator or super administrator can delete or unpublish messages in the front... for moderator the php code must me changed...

Jan

Re: Moderating by MANAGER

Posted: 22 Aug 2008, 00:08
by MooMoo
Hello!
I try to do this.
I made new user (administrator (not superadministrator))
but he can't moderating in frontend.

Sorry for my bad English ))

Re: Moderating by MANAGER

Posted: 22 Aug 2008, 00:24
by Jan
both, admin and super admin should be able to delete or unpublish files in the front ???

Code: Select all

if (strtolower($user->usertype) == strtolower('super administrator') || $user->usertype == strtolower('administrator')) {
			...
}

Re: Moderating by MANAGER

Posted: 22 Aug 2008, 00:28
by MooMoo
Sorry? but can You tell me? in what file can I find these rows?

Re: Moderating by MANAGER

Posted: 22 Aug 2008, 00:41
by MooMoo
I found these strings in folder controllers/phocaguestbook.php? but I also can't moderatig by ADMINISTRATOR (((

Code: Select all

{
		global $mainframe;
		$user 		=& JFactory::getUser();
		$cid 		= JRequest::getVar( 'mid', null, '', 'int' );
		$id 		= JRequest::getVar( 'id', null, '', 'int' );
		$itemid 	= JRequest::getVar( 'Itemid', null, '', 'int' );
		$limitstart = JRequest::getVar( 'limitstart', null, '', 'int' );
		$model 		= $this->getModel('phocaguestbook');
	
		if (strtolower($user->usertype) == strtolower('super administrator') || $user->usertype == strtolower('administrator')) {

			if (count( $cid ) < 1) {
				JError::raiseError(500, JText::_( 'Select an item to delete' ) );
			}
			if(!$model->delete($cid))

Re: Moderating by MANAGER

Posted: 22 Aug 2008, 00:47
by Jan
???