- Posts: 58
COMMUNITY FORUM
K2 - Cancel 'add new item' from frontend
- Jasper Newton
-
- Offline
- Senior Member
Jasper
Olivier Nolbert said:Hi Jasper,
I've tested on a k2 V2.2, V2.3 and no problem on 'cancel button'.
Could you give me access to your website to test it ?
Olivier
Jasper Newton said:Is anybody able to answer this problem? I'm having the same problem on all my K2 sites. When i click "add new item" from login module, It opens a new window which you cannot see the top and bottom of. I fill the details out on the form and click save (Big button next to cancel) and nothing happens. The page refreshes and the form is reset. This gives the impression that it has not saved the item. Clicking cancel infact shows it has saved the item but the window will not close by pressing save. This cannot be a good thing. I have installed latest version of k2 (2.3) and still have the same problem. If anybody knows a solution, it would be most welcomed. My site (The drawing board) is www.tdb.frenchholidayweb.com if anybody wants to give it a go to see what I mean. Thanks in advance.
Jasper
Please Log in or Create an account to join the conversation.
- Jiliko.net
-
- Offline
- Platinum Member
- Posts: 567
I've just created an account but can't find where to add/edit article...
Olivier
Please Log in or Create an account to join the conversation.
- william white
-
- Offline
- Platinum Member
- Posts: 3722
currently registared users cannot add items.
Please Log in or Create an account to join the conversation.
- Jasper Newton
-
- Offline
- Senior Member
- Posts: 58
Olivier Nolbert said:Sorry Jasper for the confusion on the button, I've just created an account but can't find where to add/edit article...
Olivier
Please Log in or Create an account to join the conversation.
- Jasper Newton
-
- Offline
- Senior Member
- Posts: 58
Thanks for you response tho.
William White said:You need to set the premissions for the user group registared if you want someone who has registared to add content. currently registared users cannot add items.
Please Log in or Create an account to join the conversation.
- Jiliko.net
-
- Offline
- Platinum Member
- Posts: 567
I've added a new unpublished item in 'Style / romanesque' without any problem.
I'm on MAC with FF 3.6.6 & Chrome 5.0
Have you modified some K2 core css ? Do you have a screenshot of the modal window ?
Olivier
Please Log in or Create an account to join the conversation.
- Jasper Newton
-
- Offline
- Senior Member
- Posts: 58
Many thanks, I am glad to see you had no trouble uploading to my site, I have not altered any css, I am a complete beginner and have built my site based on tutorials etc. It is a breath of fresh air to find somebody as willing to help as you have been thus far, for that I am most grateful. I do have a screen shot I have taken which shows that on ff 3.6.6 (and previous versions as well as internet explorer) I cannot see the top and bottom of the window. I am aware, if it helps that if you click "save" and then cancel" there is no issue, but this is not good for prospective users of my sight.
Thanks again. Jasper
Olivier Nolbert said:Jasper,
I've added a new unpublished item in 'Style / romanesque' without any problem.
I'm on MAC with FF 3.6.6 & Chrome 5.0
Have you modified some K2 core css ? Do you have a screenshot of the modal window ?
Olivier
Please Log in or Create an account to join the conversation.
- Jiliko.net
-
- Offline
- Platinum Member
- Posts: 567
When you click on the "save" button, have you previously entered a title & description and selected a category ?
If you haven't, the item can not be saved and there's a warning message that may be you can not see because of you window size problem...
Olivier
Please Log in or Create an account to join the conversation.
- Jasper Newton
-
- Offline
- Senior Member
- Posts: 58
HI, yes all the text fields have been filled out, images uploaded and extra fields etc. On one of my sites I am using the K2 Store plugin, and have the same problem. Like I say, technically it isn't "broken", it just operates in a way which could put a lot of people off. For example if you were to go onto a well known site named after a river, and you tried to order a product, and instead of it clearly showing you that your transaction was successful, nothing happened, I feel allot of people would give up and go elsewhere. This is what I fear on my sites. I hate over complicated sites, and i strive for simplicity for users. I could put an explanation module telling people how to go round the problem, but that is akin to saying "yes, our site works, not that well, here's how you get round it," doesn't instill confidence. I know K2 are aware as they say the bug is fixed in 2.3, which it clearly is not.
I appreciate your input, just hope K2 has a solution
Jasper
Olivier Nolbert said:Very strange, indeed...
When you click on the "save" button, have you previously entered a title & description and selected a category ?
If you haven't, the item can not be saved and there's a warning message that may be you can not see because of you window size problem...
Olivier
Please Log in or Create an account to join the conversation.
- Jasper Newton
-
- Offline
- Senior Member
- Posts: 58
I have resolved one of the two issues, thanks in the main to:
simon.getk2.org/index.php (simon says...)
The issue I have now resolved relates ONLY to the size of the new item window. (Previously when clicking add new item in K2, the window that opened was far too big for my screen resolution and therefore missed the top and bottom of it off.
Go to:
components/com.k2/templates/default/category.php
and find the line; (usually near the top, line 46 on mine, might be different for you)
change the "Y" value from 650 to 450. Thats it. solved it for me....
This does NOT work for k2 2.3 and stops the add new item window w...
Please Log in or Create an account to join the conversation.
- Chatchai
-
- Offline
- New Member
- Posts: 2
The solution is to add onclick event directly to cancel button (located in components/com_k2/views/item/tmpl/form.php line~255) like this
Sorry for my bad english :)
Hope this help
Chatchai Waewviriya
Please Log in or Create an account to join the conversation.
- Odin Mayland
-
- Offline
- Platinum Member
- Posts: 404
This confirms that the issue/bug is only when you click "Add New Item" in the K2 login module.
Please Log in or Create an account to join the conversation.
- Antonia Waren
-
- Offline
- New Member
- Posts: 7
Please Log in or Create an account to join the conversation.
- Odin Mayland
-
- Offline
- Platinum Member
- Posts: 404
/**
if(K2HelperPermissions::canAddItem())
$profile->addLink = JRoute::_('index.php?option=com_k2&view=item&task=add&tmpl=component');
*/
Now all I have to do is have a meeting with the client and all his staff and tell them that you have to login, click" My page", then click "Post a new item".
Please Log in or Create an account to join the conversation.
- Bernard R.
-
- Offline
- New Member
- Posts: 3
Not sure if this would work with everyone. It worked like a charm on my site.
(REMEMBER TO BACKUP YOUR FORM.PHP FILE BEFORE PROCEEDING WITH THIS FIX)
I added the following line of code to line 36 on form.php (located: components/com_k2_views/item/tmpl)
parent.$('sbox-window').close();
Please Log in or Create an account to join the conversation.
- prophat prophat
-
- Offline
- New Member
- Posts: 1
One module that doesn't work for me was mod_googleWeather.
And Bernard R., that doesn't work properly. Sure it closes the window, but it leaves the content item checked out. You need to check the file in before calling .close()
Please Log in or Create an account to join the conversation.