Keyword

Frontpage edit window size

  • Massimo Marchetto
  • Massimo Marchetto's Avatar Topic Author
  • Offline
  • Senior Member
More
15 years 1 month 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 1 month 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 1 month 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 4 weeks 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 4 weeks 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 3 weeks 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 3 weeks 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
14 years 10 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
14 years 6 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
14 years 6 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.


Powered by Kunena Forum