COMMUNITY FORUM
Frontpage edit window size
- Massimo Marchetto
-
Topic Author
- Offline
- Senior Member
I'm looking for the code that defines the layer size... Can you help me?
TNX
Version 2.0 stable of course
Please Log in or Create an account to join the conversation.
- Lex Machina
-
- Offline
- New Member
- Posts: 8
k2community.joomlaworks.gr/forum/topics/frontend-ajax-editor-issue
Please Log in or Create an account to join the conversation.
- Massimo Marchetto
-
Topic Author
- Offline
- Senior Member
It is necessary to change the code in item.php that can be bound in components/com_k2/templates/default
At line 30 you see:
rel="{handler:'iframe',size:{x:900,y:480}}"
Change the x and y values. In my case y:480 is a good solution for clients working with low res and many toolbars in ie.
This kind of situation can be solved in other forms opening a "modal" window.
You just have to search:
handler:'iframe',size:{
in files that are stored in "templates" folder.
Bye,
MM
Please Log in or Create an account to join the conversation.
- Edward A Parker
-
- Offline
- New Member
- Posts: 8
Massimo Marchetto said:Ok, "solved".It is necessary to change the code in item.php that can be bound in components/com_k2/templates/defaultAt line 30 you see:rel="{handler:'iframe',size:{x:900,y:480}}"Change the x and y values. In my case y:480 is a good solution for clients working with low res and many toolbars in ie.This kind of situation can be solved in other forms opening a "modal" window.You just have to search:handler:'iframe',size:{in files that are stored in "templates" folder.Bye,MM
Please Log in or Create an account to join the conversation.
- Edward A Parker
-
- Offline
- New Member
- Posts: 8
With the clues given here, I was able to take this the rest of the way...
First... I had to remember that my Rockettheme Template "Affinity" is made to be used with K2 and as such has it's own K2 files. Therefore, I had to edit the versions of these files that were found in the path:
....../templates/rt_affinity_j15/html/.....
within this path, I made the edit as suggested by MM, which corrected the modal for editing an existing article.
To correct this same problem in the K2 Login Module "Add New Item" I likewise made a similar edit in the file
html/mod_k2_login/userblock.php on line 29.
I also added 2 tags at the end of line 25 to correct an avatar interference issue in that same module. Not elegant, but it works.
Boy do I feel better now!!
Please Log in or Create an account to join the conversation.
- Lex Machina
-
- Offline
- New Member
- Posts: 8
Have either of you tested this fix in Firefox? So far it isn't working for me.
Please Log in or Create an account to join the conversation.
- Massimo Marchetto
-
Topic Author
- Offline
- Senior Member
Lex Machina said:Edward A Parker said:Additional "Solved"
Have either of you tested this fix in Firefox? So far it isn't working for me.
Please Log in or Create an account to join the conversation.
- Sanmathy
-
- Offline
- New Member
- Posts: 3
use this code
rel="{handler:'iframe',size:{x:window.getSize().scrollSize.x-80, y: window.getSize().size.y-80}, onShow:$('sbox-window').setStyles({'padding': 0})}"
Please Log in or Create an account to join the conversation.
- Christina Cherry
-
- Offline
- Junior Member
- Posts: 26
item.php
category_item.php
category.php
Please Log in or Create an account to join the conversation.
- Simon Wells
-
- Offline
- Platinum Member
- Posts: 955
If you are using custom K2 template, then you will need to up the dame Files.
I have written this up in the K2 Mods section of K2 Doc.
Please Log in or Create an account to join the conversation.
- suesbarn
-
- Offline
- Junior Member
- Posts: 23
But, When I copy the table the buttons are in in the form.php file, and paste at the bottom of the page, the cancel button does not work. I don't know enough php to fix this - can anyone help with this?
thanks,
Sue
Please Log in or Create an account to join the conversation.
- suesbarn
-
- Offline
- Junior Member
- Posts: 23
suesbarn said:I am trying to get around this in a different way, by making a copy of the "save" and "cancel" buttons and putting them at the bottom of the edit window. That way the user can just close the window or save from the bottom.But, When I copy the table the buttons are in in the form.php file, and paste at the bottom of the page, the cancel button does not work. I don't know enough php to fix this - can anyone help with this?thanks,Sue
Please Log in or Create an account to join the conversation.
- Jasper Newton
-
- Offline
- Senior Member
- Posts: 58
In the k2 login module, when you click "add new item" the opening modal is too big for the screen, so much so you can not see the top and bottom of it. When I have submitted this request before, I have had suggestions like "try resizing it". As constructive as that is, I have clearly thought of that option. If anybody can resolve this issue, I would be very grateful.
I have changed the following files which ONLY affect the category item and does NOT affect the add new item through k2 login module;
components/com_k2/templates/default/category.php
components/com_k2/templates/default/item.php
components/com_k2/templates/user.php
I have also altered the files in the template folders as well (JA Ores)
I am relatively new to this game but can get by, so if anybody can help, and knows the exact file I need to alter then please tell me where it is
Many thanks
Jasper
Please Log in or Create an account to join the conversation.
- Jasper Newton
-
- Offline
- Senior Member
- Posts: 58
Hopefully this link works:
community.getk2.org/forum/topics/k2-add-new-item-window-resize?xg_source=activity" target="_blank">Discussion
Please Log in or Create an account to join the conversation.
- Christian Matthieas
-
- Offline
- Premium Member
- Posts: 80
making life easier i see.
Please Log in or Create an account to join the conversation.