Zen Cart Logo
Forums / General Questions / Resize Redirect new Window (Banners)

Resize Redirect new Window (Banners)

Locked

Views: 2,068

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
29 Jul 2006, 3:41 AM
#1
emmdee avatar

emmdee

New Zenner

Join Date:
Nov 2005
Posts:
40
Plugin Contributions:
0

Resize Redirect new Window (Banners)

I want to control the size of the new window that opens when one clicks on a banner. At The moment the new window in Firefox is full size. I want a window about 450 square.......can anyone help????
Regards
EMMDEE

29 Jul 2006, 1:26 PM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Resize Redirect new Window (Banners)

You can try this code and modify to your link and size:

<a href="http://www.some_link.com/" onclick="window.open (this.href, 'child',
'height=400,width=300,scrollbars'); return false">some 
designation</a>

use or not use the scrollbars entry.

Zen-Venom Get Bitten

30 Jul 2006, 5:43 AM
#3
emmdee avatar

emmdee

New Zenner

Join Date:
Nov 2005
Posts:
40
Plugin Contributions:
0

Re: Resize Redirect new Window (Banners)

Thanks Kobra
Will try this and post again later
All the best
Emmdee

31 Jul 2006, 5:03 AM
#4
emmdee avatar

emmdee

New Zenner

Join Date:
Nov 2005
Posts:
40
Plugin Contributions:
0

Re: Resize Redirect new Window (Banners)

Thanks Kobra but I'm still having probs......
Zen 1.2.7
functions/banners.php
Line 154....This is what needs to be altered, but your suggestion doesnt seem to work....errors
{
if ($banner->fields['banners_open_new_windows'] == '1') {
$banner_string = '<a href="' . zen_href_link(FILENAME_REDIRECT, 'action=banner&goto=' . $banner->fields['banners_id']) . '" target="_blank">' . zen_image(DIR_WS_IMAGES . $banner->fields['banners_image'], $banner->fields['banners_title']) . '</a>';
}
regards
emmdee

31 Jul 2006, 7:06 AM
#5
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Resize Redirect new Window (Banners)

What you have posted is php code and what I provided is html code.

I really am terrible at code, especially php.

The code posted is some of that that builds the page dynamically from parts of other files. Some where in these calls there exists some definition of the window size/control.

By my posting back this will bring this back to the top and hope that another with more php expertise can assist.

Zen-Venom Get Bitten

15 Aug 2006, 12:00 AM
#6
kellierice avatar

kellierice

New Zenner

Join Date:
Feb 2006
Posts:
33
Plugin Contributions:
0

Re: Resize Redirect new Window (Banners)

Bump :)
I am wondering how to do this also.