Does it work for Manager account

This simple plugin will prevent joomla admin session expiration

Does it work for Manager account

New postby rainman » Mon Aug 29, 2011 5:33 am

Hi,

I would like to know if this plugin will also keep the "Manager" backend account logged in as well. We need this functionality as well.

Thx
rainman
 
Posts: 1
Joined: Mon Aug 29, 2011 5:29 am

Re: Does it work for Manager account

New postby Edvard » Tue Aug 30, 2011 4:00 pm

It works for any user who is authorized to manage Banners from default com_banners component.
Regards,

Edvard Ananyan - 2GLux Team

Please post a review at the Joomla Extensions Directory. It is very important for us!
Edvard
Site Admin
 
Posts: 1836
Joined: Mon Jun 28, 2010 1:54 pm
Location: Yerevan, Armenia

Re: Does it work for Manager account

New postby [email protected] » Thu Jan 05, 2012 1:03 am

I see nothing in the banners component to change the right for type of users.

I really need that for Authors in front end...

Even if I have to Hack...
[email protected]
 
Posts: 2
Joined: Thu Jan 05, 2012 12:59 am

Re: Does it work for Manager account

New postby Edvard » Thu Jan 05, 2012 1:06 am

You can check the source code and change it appropriately. It should be easy if you know little PHP.

plugins/system/admin8.php
Regards,

Edvard Ananyan - 2GLux Team

Please post a review at the Joomla Extensions Directory. It is very important for us!
Edvard
Site Admin
 
Posts: 1836
Joined: Mon Jun 28, 2010 1:54 pm
Location: Yerevan, Armenia

Re: Does it work for Manager account

New postby [email protected] » Thu Jan 05, 2012 2:59 am

Probably have to change
Code: Select all
if(!$user->authorize('com_banners', 'manage'))


But not to sure about it?

I Find that...
Code: Select all
$user =& JFactory::getUser();

if($user->usertype == "Super Administrator" || $user->usertype == "Administrator"){
echo 'You are an Administrator';
{
else{
echo 'You are just an ordinary user';
}


Still not to sure... I need Super Admin, Admin and Author

That will work in frontend to?
[email protected]
 
Posts: 2
Joined: Thu Jan 05, 2012 12:59 am


Return to Admin Forever

Who is online

Users browsing this forum: No registered users and 0 guests

cron