- Posts: 15
COMMUNITY FORUM
[SOLVED] Image upload problems in frontend editor
- Diego Schmidt
- Topic Author
- Offline
- New Member
Less
More
10 years 3 months ago #129219
by Diego Schmidt
Replied by Diego Schmidt on topic k2 image tab frontend upload
So there is nothing i can do about it? If i turn on JCE there is no problem in uploading from the frontend but i like the k2 image tab more.
Please Log in or Create an account to join the conversation.
- Lefteris
- Offline
- Moderator
Less
More
- Posts: 8743
10 years 3 months ago #129220
by Lefteris
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by Lefteris on topic Re: k2 image tab frontend upload
JCE is a different extension. K2 media manager is always set to read-only mode when used in front-end.
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Diego Schmidt
- Topic Author
- Offline
- New Member
Less
More
- Posts: 15
10 years 3 months ago #129221
by Diego Schmidt
Replied by Diego Schmidt on topic Re: k2 image tab frontend upload
Ok then, that makes the k2 image tab totally useless in front end. Thanks for the support.
Please Log in or Create an account to join the conversation.
- Lefteris
- Offline
- Moderator
Less
More
- Posts: 8743
10 years 3 months ago #129222
by Lefteris
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by Lefteris on topic Re: k2 image tab frontend upload
You are welcome.
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- MessageDJ
- Offline
- New Member
Less
More
- Posts: 15
9 years 11 months ago #129223
by MessageDJ
Replied by MessageDJ on topic Re: Image upload problems in frontend editor
if you really like to add this feature (like i did)
open file:
/administrator/components/com_k2/controllers/media.php
search for: (around line 71)
change to:
Remember, this is a hack, i have not checked anything in safety and security, use it for your own risk.
open file:
/administrator/components/com_k2/controllers/media.php
search for: (around line 71)
// Read only access for front-end. Full access for administration section.
switch($attr)
{
case 'read' :
return true;
break;
case 'write' :
return ($mainframe->isSite()) ? false : true;
break;
case 'locked' :
return ($mainframe->isSite()) ? true : false;
break;
case 'hidden' :
return false;
break;
}
}
if ($mainframe->isAdmin())
{
$permissions = array(
'read' => true,
'write' => true
);
}
else
{
$permissions = array(
'read' => true,
'write' => false
);
change to:
// Read only access for front-end. Full access for administration section.
switch($attr)
{
case 'read' :
return true;
break;
case 'write' :
return ($mainframe->isSite()) ? true : true;
break;
case 'locked' :
return ($mainframe->isSite()) ? true : true;
break;
case 'hidden' :
return false;
break;
}
}
if ($mainframe->isAdmin())
{
$permissions = array(
'read' => true,
'write' => true
);
}
else
{
$permissions = array(
'read' => true,
'write' => true
);
Remember, this is a hack, i have not checked anything in safety and security, use it for your own risk.
Please Log in or Create an account to join the conversation.