Keyword

Frontpage edit window size

  • Massimo Marchetto
  • Massimo Marchetto's Avatar Topic Author
  • Offline
  • Senior Member
More
15 years 9 months ago #71185 by Massimo Marchetto
Frontpage edit window size was created by Massimo Marchetto
Sometimes, with some browsers and small-size monitors, the editor window is too large on the frontpage, and it is not possibile to see where the "submit" button is (jce editor, but not only)
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.

More
15 years 9 months ago #71186 by Lex Machina
Replied by Lex Machina on topic Frontpage edit window size
I've been trying to find a fix for this for nearly a week and no luck. Here's the other thread:

k2community.joomlaworks.gr/forum/topics/frontend-ajax-editor-issue

Please Log in or Create an account to join the conversation.

  • Massimo Marchetto
  • Massimo Marchetto's Avatar Topic Author
  • Offline
  • Senior Member
More
15 years 9 months ago #71187 by Massimo Marchetto
Replied by Massimo Marchetto on topic Frontpage edit window size
Ok, "solved".
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.

More
15 years 9 months ago #71188 by Edward A Parker
Replied by Edward A Parker on topic Frontpage edit window size
I undersand what you are saying and I tried this fix, but it does not seem to have any affect on the modal window when a user adds a new article and although I can see the submit button, I cannot see the (X) close button. In other words, the modal does not stand out from the page. Is there an additional code that needs to be edited for this? My site is: www.twintierslive.com -- Thanks

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.

More
15 years 9 months ago #71189 by Edward A Parker
Replied by Edward A Parker on topic Frontpage edit window size
Additional "Solved"
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.

More
15 years 8 months ago #71190 by Lex Machina
Replied by Lex Machina on topic Frontpage edit window size
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.

  • Massimo Marchetto
  • Massimo Marchetto's Avatar Topic Author
  • Offline
  • Senior Member
More
15 years 8 months ago #71191 by Massimo Marchetto
Replied by Massimo Marchetto on topic Frontpage edit window size
Tested on ie8 and firefox 3.5.2 , and it's ok.

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.

More
15 years 6 months ago #71192 by Sanmathy
Replied by Sanmathy on topic Frontpage edit window size
Dont give any size..it may create problem in different resolutions..
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
  • Christina Cherry's Avatar
  • Offline
  • Junior Member
More
15 years 2 months ago #71193 by Christina Cherry
Replied by Christina Cherry on topic Frontpage edit window size
Just looking at this again and have noticed that to make this truly effective you need to edit the following files in components/com_k2/templates/default/
item.php
category_item.php
category.php

Please Log in or Create an account to join the conversation.

More
15 years 2 months ago #71194 by Simon Wells
Replied by Simon Wells on topic Frontpage edit window size
There are other possible instances of this code being used.
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.

More
15 years 2 months ago #71195 by suesbarn
Replied by suesbarn on topic Frontpage edit window size
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.

More
15 years 2 months ago #71196 by suesbarn
Replied by suesbarn on topic Frontpage edit window size
-I mean Javascript

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.

More
14 years 9 months ago #71197 by Jasper Newton
Replied by Jasper Newton on topic Frontpage edit window size
Ok, so now I'm pretty much at the end of my tether with this. It is nothing short of ridiculous that there is no real solution (if there is it's being kept very well hidden). I have finally resolved the issue of the add new item modal size when opened through the category itself. This is the part i can NOT do:
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.

More
14 years 9 months ago #71198 by Jasper Newton
Replied by Jasper Newton on topic Frontpage edit window size
resolved it. started a new discussion as I couldn't fit the answer in the text box :D
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
  • Christian Matthieas's Avatar
  • Offline
  • Premium Member
More
14 years 8 months ago #71199 by Christian Matthieas
Replied by Christian Matthieas on topic Frontpage edit window size
I created a whole darned response with code and this stupid forum doesn't use bbbcode..

making life easier i see.

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum