osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 
 

sp2 popups in admin wysiwyg too small

This is a discussion on sp2 popups in admin wysiwyg too small within the osCMax v1.7 General Mods Discussion forums, part of the osCMax v1.7 Forums category; Hi all. Has anyone noticed that after installation of sp2 (wish i hadnt), pop up images cont work. There is ...


Go Back   osCommerce and osCMax shopping cart software forums > osCMax v1.7 Forums > osCMax v1.7 General Mods Discussion

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 10-31-2004, 02:00 PM
Active Member
 
Join Date: May 2004
Location: somewhere above colchester uk
Posts: 147
Thanks: 0
Thanked 1 Time in 1 Post
Rep Power: 0
battleaxe
Default sp2 popups in admin wysiwyg too small

Hi all. Has anyone noticed that after installation of sp2 (wish i hadnt), pop up images cont work. There is a fix for the popups in catalog over on oscommerce contributions. It goes like this:

Popup fix for IE with WinXP_SP2
---------------------------------------------------------------

Original author: Özcan Kaymak <o.kaymak@tiscali.nl>


Step 1. Backup your files first !!
Step 2. Edit the lines indicated below

---------------------------------------------------------------
Open catalog/popup_image.php (standard install 2.2MS2) or catalog/includes/javascript/popup_image.js (BTS)

Search for:

<script language="javascript"><!--
var i=0;
function resize() {
if (navigator.appName == 'Netscape') i=40;
if (document.images[0]) window.resizeTo(document.images[0].width +30, document.images[0].height+60-i);
self.focus();
}
//--></script>

Replace by:

<script language="javascript" type="text/javascript"><!--
var i=0;
var s=0;
function resize() {
if (navigator.appName == 'Netscape') i=40;
if (window.navigator.userAgent.indexOf("SV1") != -1) s=20; //This browser is Internet Explorer in SP2.
if (document.images[0]) window.resizeTo(document.images[0].width +30, document.images[0].height+60-i+s);
self.focus();
}
//--></script>

I am not a programmer, so could anyone work a similar fix for the wysiwyg editor in admin, as we are now unble to access the colour chats in popup windows.
Cheers
Kim
__________________
Google says be nice!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
  #2  
Old 11-06-2004, 09:23 AM
Active Member
 
Join Date: May 2004
Location: somewhere above colchester uk
Posts: 147
Thanks: 0
Thanked 1 Time in 1 Post
Rep Power: 0
battleaxe
Default

sorry to bump guys, but here it is "bump"
__________________
Google says be nice!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #3  
Old 07-24-2005, 08:37 PM
Lurker
 
Join Date: May 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
cbensi
Default

this is most definitely related to windows sp2 internet explorer as it no longer allows windows without the bottom info bar.


As a temporary fix (read -> HACK) for the admin section :
in the files 'admin/htmlarea/editor_advanced.js' and
'admin/htmlarea/editor_basic.js'

search for 'resizable: no;'
and change to 'resizable: yes;'

there are about 11 changes in editor_advanced.js and 6 in editor_basic.js

this will at least let you resize the windows so that you can select all the items.

[optional]
Also if you want to fix the size enter in the quotes before resizable

'dialogHeight: 245px;' to set it to open the window at 245px high

eg
******BEFORE

var newcolor = showModalDialog(_editor_url + "popups/select_color.html", oldcolor, "resizable: no; help: no; status: no; scroll: no;");

*****AFTER

var newcolor = showModalDialog(_editor_url + "popups/select_color.html", oldcolor, "dialogHeight: 220px; resizable: yes; help: no; status: no; scroll: no;");

this is at line 627 and controls both colour selector popup's.


Ps. I will continue to look for a proper fix when i have a chance
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
Various small problems, well sort of small spottedhaggis osCMax v2 Installation issues 2 03-23-2006 09:53 AM
WYSIWYG editor for added pages in catalog section of admin themainebaby osCMax v2 Customization/Mods 6 02-20-2006 12:08 PM
Why don't popups work when products are added through Admin? Shadeau osCMax v1.7 Installation 1 05-28-2005 12:54 PM
small mod mat123slade osCMax v1.7 Installation 1 01-18-2005 08:13 AM
2 small problems i am sure crash3903 osCommerce 2.2 Modification Help 3 07-09-2004 11:18 AM


All times are GMT -8. The time now is 04:03 PM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax