- Posts: 1
COMMUNITY FORUM
Frontend Permissions Notice
- Carlos Barco
-
Topic Author
- Offline
- New Member
Less
More
11 years 1 month ago - 11 years 1 month ago #126120
by Carlos Barco
Frontend Permissions Notice was created by Carlos Barco
Hello
update the new version of K2 2.6.8
and now when I edit a message appears on the front end:
K2_YOU_ARE_ALLOWED_TO Add items, Edit own items, Allow editing of already published items
I do not like
I want to disable
where disable
tks for your help
update the new version of K2 2.6.8
and now when I edit a message appears on the front end:
K2_YOU_ARE_ALLOWED_TO Add items, Edit own items, Allow editing of already published items
I do not like
I want to disable
where disable
tks for your help
Please Log in or Create an account to join the conversation.
- Mark Law
-
- Offline
- New Member
11 years 1 month ago #126121
by Mark Law
digital solutions for sentient bipeds
Replied by Mark Law on topic Re: Frontend Permissions Notice
Hi, I have exactly the same issue since I upgraded to 2.6.8
Additionally if I try to 'save' I get an error message, then if I close the editor it crashes Chrome - and amazingly the changes are saved.
I'll try to submit a bug report, meanwhile let me know if there is a fix for this...
Additionally if I try to 'save' I get an error message
Item must have a title
I'll try to submit a bug report, meanwhile let me know if there is a fix for this...
digital solutions for sentient bipeds
Please Log in or Create an account to join the conversation.
- Lefteris
-
- Offline
- Moderator
Less
More
- Posts: 8743
11 years 1 month ago #126122
by Lefteris
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by Lefteris on topic Re: Frontend Permissions Notice
@Carlos Barco
You need to make a template override to itemform.php in order to remove it. Or you hide it with CSS.
@Mark Law
I tested under Chrome and everything works fine for me. The message you are getting is quite self explainable i think. You must provide a title to the item. After you close the window the item is not saved for me. And also cannot be saved for you without a title.
You need to make a template override to itemform.php in order to remove it. Or you hide it with CSS.
@Mark Law
I tested under Chrome and everything works fine for me. The message you are getting is quite self explainable i think. You must provide a title to the item. After you close the window the item is not saved for me. And also cannot be saved for you without a title.
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Douglas Musgrove
-
- Offline
- New Member
Less
More
- Posts: 7
11 years 1 month ago #126123
by Douglas Musgrove
Replied by Douglas Musgrove on topic Re: Frontend Permissions Notice
Wouldn't have to overide it in the template if the admin users where logged into K2 when they logged into Joomla. Carlos if you look at your users within K2 you will see that you are not logged in. Basically you are a normal user according to K2. So you get the errors within the editing page. Don't edit your css just wait for K2 to fix the bug.
Please Log in or Create an account to join the conversation.
- Mark Law
-
- Offline
- New Member
11 years 1 month ago #126124
by Mark Law
digital solutions for sentient bipeds
Replied by Mark Law on topic Re: Frontend Permissions Notice
Thanks Lefteris and Douglas, the K2 Iems have had titles for nearly two years and have always worked fine until the upgrades.
I'll hide the error message for now with CSS, but that isn't really a good way to fix things ;)
I'll hide the error message for now with CSS, but that isn't really a good way to fix things ;)
digital solutions for sentient bipeds
Please Log in or Create an account to join the conversation.
- Lefteris
-
- Offline
- Moderator
Less
More
- Posts: 8743
11 years 1 month ago #126125
by Lefteris
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by Lefteris on topic Re: Frontend Permissions Notice
@Douglas Musgrove
Hello again ( 4th time today with the same message to 4 different topics. You are going for a world record... ). There is no bug regarding this. K2 just displays a message regarding K2 permissions. Logged in users should belong to a K2 user group with the appropriate permissions in order to be able to use front-end editing.
Hello again ( 4th time today with the same message to 4 different topics. You are going for a world record... ). There is no bug regarding this. K2 just displays a message regarding K2 permissions. Logged in users should belong to a K2 user group with the appropriate permissions in order to be able to use front-end editing.
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- James Garrett
-
- Offline
- New Member
Less
More
- Posts: 2
11 years 1 month ago #126126
by James Garrett
Replied by James Garrett on topic Re: Frontend Permissions Notice
Re the 'item must have a title' error
this is caused by the submit button function being triggered as the modal popup closes and opens when the title has no value - this can be changed or removed in the itemform.php template override.
$document->addScriptDeclaration("
Joomla.submitbutton = function(pressbutton){
if (pressbutton == 'cancel') {
submitform( pressbutton );
return;
}
if (pressbutton == 'save') { // HERE is the extra condition that I wrapped the offending condition in
if (\$K2.trim(\$K2('#title').val()) == '') {
alert( '".JText::_('K2_ITEM_MUST_HAVE_A_TITLE', true)."' );
}
else if (\$K2.trim(\$K2('#catid').val()) == '0') {
alert( '".JText::_('K2_PLEASE_SELECT_A_CATEGORY', true)."' );
}
else {
syncExtraFieldsEditor();
\$K2('#selectedTags option').attr('selected', 'selected');
submitform( pressbutton );
}
} // obviously close the extra if statement
}
");
this is caused by the submit button function being triggered as the modal popup closes and opens when the title has no value - this can be changed or removed in the itemform.php template override.
$document->addScriptDeclaration("
Joomla.submitbutton = function(pressbutton){
if (pressbutton == 'cancel') {
submitform( pressbutton );
return;
}
if (pressbutton == 'save') { // HERE is the extra condition that I wrapped the offending condition in
if (\$K2.trim(\$K2('#title').val()) == '') {
alert( '".JText::_('K2_ITEM_MUST_HAVE_A_TITLE', true)."' );
}
else if (\$K2.trim(\$K2('#catid').val()) == '0') {
alert( '".JText::_('K2_PLEASE_SELECT_A_CATEGORY', true)."' );
}
else {
syncExtraFieldsEditor();
\$K2('#selectedTags option').attr('selected', 'selected');
submitform( pressbutton );
}
} // obviously close the extra if statement
}
");
Please Log in or Create an account to join the conversation.
- Lefteris
-
- Offline
- Moderator
Less
More
- Posts: 8743
11 years 1 month ago #126127
by Lefteris
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by Lefteris on topic Re: Frontend Permissions Notice
@James Garrett
You don't need the extra if statement since the function returns if action is cancel. The current itemform.php is github.com/joomlaworks/k2/blob/master/components/com_k2/templates/default/itemform.php and it works fine for me. Just tested under Joomla! 2.5/3.2 and i don't get the extra message. Which browser are you using? Joomla! version?
You don't need the extra if statement since the function returns if action is cancel. The current itemform.php is github.com/joomlaworks/k2/blob/master/components/com_k2/templates/default/itemform.php and it works fine for me. Just tested under Joomla! 2.5/3.2 and i don't get the extra message. Which browser are you using? Joomla! version?
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Roberto
-
- Offline
- New Member
Less
More
- Posts: 2
11 years 4 days ago #126128
by Roberto
Replied by Roberto on topic Re: Frontend Permissions Notice
NOT SOLVED FOR ME
github.com/joomlaworks/k2/blob/master/components/com_k2/templates/default/itemform.php
I keep saying the item should have a title.
ANY IDEA?
github.com/joomlaworks/k2/blob/master/components/com_k2/templates/default/itemform.php
I keep saying the item should have a title.
ANY IDEA?
Please Log in or Create an account to join the conversation.
- Lefteris
-
- Offline
- Moderator
Less
More
- Posts: 8743
11 years 4 days ago #126129
by Lefteris
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by Lefteris on topic Re: Frontend Permissions Notice
@Roberto
Joomla! / K2 versions? Try to look at the page source of the page which displays the form. You should see the script tags as defined at github.com/joomlaworks/k2/blob/master/components/com_k2/templates/default/itemform.php.
Joomla! / K2 versions? Try to look at the page source of the page which displays the form. You should see the script tags as defined at github.com/joomlaworks/k2/blob/master/components/com_k2/templates/default/itemform.php.
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.