- Posts: 58
COMMUNITY FORUM
K2 Add new item window resize
- Jasper Newton
-
Topic Author
- Offline
- Senior Member
modernmagic said:Jasper Newton Did you workaround this issue with your iframe / modal hack?
Please Log in or Create an account to join the conversation.
- Odin Mayland
-
- Offline
- Platinum Member
- Posts: 404
Maybe the activity on this topic will become "annoying" and someone can figure out how to fix this "annoyance"; so that my client doesn't get "annoyed" with my choice in K2 (which otherwise is a great extension).
Please Log in or Create an account to join the conversation.
- Jasper Newton
-
Topic Author
- Offline
- Senior Member
- Posts: 58
modernmagic said:thanks for the reply.
Maybe the activity on this topic will become "annoying" and someone can figure out how to fix this "annoyance"; so that my client doesn't get "annoyed" with my choice in K2 (which otherwise is a great extension).
Please Log in or Create an account to join the conversation.
- Odin Mayland
-
- Offline
- Platinum Member
- Posts: 404
Please Log in or Create an account to join the conversation.
- Odin Mayland
-
- Offline
- Platinum Member
- Posts: 404
I'm just surprised that there are apparently thousands of people using K2 but no one is complaining about this BUG.
Please Log in or Create an account to join the conversation.
- Christian Matthieas
-
- Offline
- Premium Member
- Posts: 80
modernmagic said:Considering I follow joomlaworks (which I assume is Fotis Evangelou) on twitter, I have noticed a different attitude than other developers.I'm just surprised that there are apparently thousands of people using K2 but no one is complaining about this BUG.
Please Log in or Create an account to join the conversation.
- Odin Mayland
-
- Offline
- Platinum Member
- Posts: 404
Please Log in or Create an account to join the conversation.
- Odin Mayland
-
- Offline
- Platinum Member
- Posts: 404
(Why would a dev decide to NOT make the front end and back end Save and Cancel buttons function the same?)
Please Log in or Create an account to join the conversation.
- Jasper Newton
-
Topic Author
- Offline
- Senior Member
- Posts: 58
Here is the link to another discussion relating to the save/close button (the one I referred to earlier, where I have brought this issue to K2's attention);
community.getk2.org/forum/topics/k2-cancel-add-new-item-from?commentId=3536014%3AComment%3A95083&xg_source=msg_com_forum
There has just been a post with a possible solution. not had chance to try it myself.
Hope this helps
modernmagic said:Its weird because all the back end Save and Cancel buttons also "Close", why would the front end buttons not function the same.
(Why would a dev decide to NOT make the front end and back end Save and Cancel buttons function the same?)
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.
- 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.
- Carlos Salas
-
- Offline
- Junior Member
- Posts: 22
After string 35: "submitform( pressbutton );"
You can add:
36: parent.$('sbox-window').close(); /* To close modalbox */
37: alert( ' Send ! ' ); /* To view a message */
Info by BFL found here: community.getk2.org/forum/topics/close-modalbox-on-frontend
modernmagic said:I have discovered that if you login and click "My Page" and then click "Post a new item" the "K2 Add Item" screen appears on a popup and everything works fine.
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.
- Peter Clarke
-
- Offline
- New Member
- Posts: 4
simon.getk2.org/tips-and-tricks/item/277-front-side-editor-iframe-adjustment
Cheers!
Please Log in or Create an account to join the conversation.
- John Willis
-
- Offline
- New Member
- Posts: 9
I love K2 and will continue working with it, and have faith that this will be addressed in the future.
Please Log in or Create an account to join the conversation.
- Peter Clarke
-
- Offline
- New Member
- Posts: 4
John Willis said:
As i work through this (increasingly long) thread i also am hopeful that the front end editing size will be fixed. At the moment though, i tell my clients to pres F11 to get the browser tools out of the way. Some have a lot of stuff up there, which makes their window even smaller than normal.
I love K2 and will continue working with it, and have faith that this will be addressed in the future.
Please Log in or Create an account to join the conversation.
- John Willis
-
- Offline
- New Member
- Posts: 9
href="<?php echo $this->addLink; ?>"> <?php echo JText::_('Post a new item'); ?>
Please Log in or Create an account to join the conversation.
- Peter Clarke
-
- Offline
- New Member
- Posts: 4
Good Luck!
Peter
John Willis said:
Thanks Peter, I see two instances of this line in the components/com_k2/templates/user.php file. The example mentions href="/"> at the end of the lines,and i have this after the href="/"> Do i need to remove this part?
href="<?php echo $this->addLink; ?>"> <?php echo JText::_('Post a new item'); ?>
Please Log in or Create an account to join the conversation.
- Andy Connell
-
- Offline
- Senior Member
- Posts: 54
Carlos Salas said:
Hi Petri!
You can disable the lightbox by removing the class and the rel.
Before:
class="modal" rel="{handler:'iframe',size:{x:window.getSize().scrollSize.x-80, y: window.getSize().size.y-80}, onShow:$('sbox-window').setStyles({'padding': 0})}" h r e f=" < ?php echo $user->profile->addLink; ?> " > < ?php echo JText::_('Add new item'); ? >< /a>
After:
h r e f="< ? php echo $user->profile->addLink; ?> " >
This way you will get a "normal" link to open in a same window or in a new tab.
Just remember remove the class="modal" because if you don't it will display a worst lightbox
P.S. I had to separate the code because it wont let me place a php code =/ sorry man
Greets.
Please Log in or Create an account to join the conversation.
- Andy Connell
-
- Offline
- Senior Member
- Posts: 54
Please Log in or Create an account to join the conversation.
- Hanny
-
- Offline
- Senior Member
- Posts: 48
To resolve this bug - it will be something going on with the code behind the 'save' button. I've read that the authors of this component have chosen not to fix this bug - which is unfortunate. It's the single thing keeping me from being completely satisfied with this!
I personally don't know enough to go in tinkering around with the code behind the 'save' button - but was hoping these forums would provide some assistance.
So far, no luck.
Please Log in or Create an account to join the conversation.