remove pop up on images

broon

Avatar: broon

2007-03-21 20:12

Hi is there a quick way of getting the large image on photo list to show on the same page
( preferably with next and back buttons. ) I want to remove the pop up window completely.

Thanks
Elaine

» Quick.Cms v1.x

broon

treewood (OpenSolution)

Avatar: treewood

2007-03-22 10:21

broon - edit templates/pages_show_photos_1.tpl and change

<a href="javascript:windowNew( '$config[index]?p=galleryGalleryShow&amp;iContentGallery=$iContent&amp;iPhoto=$aList[iPhot o]', 710, 550, 'Gallery' );">

to

<a href="?p=galleryGalleryShow&amp;iContentGallery=$iContent&amp;iPhoto=$aList[iPhoto]" >

cgan

Avatar: cgan

2007-04-25 23:42

I tried this but it didn't work so good. It open up in the same window but the window shrinks to the size of the gallery. It doesn't show the large image on the same page as the small image

Runar

treewood (OpenSolution)

Avatar: treewood

2007-04-26 08:43

cgan - could You send screen shot to give me answer what You want get?

cgan

Avatar: cgan

2007-04-26 12:00

This is what I want. No pop up.
See screenshots here.
http://img2.freeimagehosting.net/image.php?67ddd6c813.jpg
http://img2.freeimagehosting.net/image.php?1efd100206.jpg

The code from your answer 2007-03-22 didn't work like that.

cgan

treewood (OpenSolution)

Avatar: treewood

2007-04-26 12:15

cgan - thanks now i understand all. Hm.. this will be hard to do and i can't give You few steps to do this because it is much work. We can do it but it will cost :/
If You are interested then contact us via email using contact form

broon

Avatar: broon

2007-05-03 19:29

has anyone managed to do this?
thanks

onid

No avatar

2007-05-04 10:17

Hi
Here is an idea you can play with.
This will open the gallery inside the page using javascript.

1. comment out auto resize in gallery.tpl

//reSizeToImage( );

2. change function name in pages_show_photos_1.tpl

from: onclick="javascript:windowNew( '?p=galleryGallerySh...
to: onclick="javascript:showGalleryInFrame( '?p=galleryGallerySh...

3. paste the following into Full Description of page where the thumbs are in admin area.

<script type="text/javascript" >
function showGalleryInFrame(whichPage){
document.getElementById("galleryFrame").className= "showFrame";
galleryFrame.document.location.href = whichPage ;
}
</script>
<style>
.hideFrame{display:none;}
.showFrame{display:block;height:400px;width:500px;}
</style>
<iframe name="galleryFrame" id="galleryFrame" class="hideFrame" src="" frameborder="0" scrolling="no">
</iframe>

4. change the .showFrame styles to suit, idealy the styles should be in style sheet but they will work where they are for testing purposes.

cgan

Avatar: cgan

2007-05-04 11:25

broon- try this.
1. edit as treewood tells 2007-03-22.

2. Then edit the file templates/gallery.tpl like this:
Change this line: <a href="javascript:window.close()">$lang[Close_window]</a> to this:
<a href="?p=p_$aList[iPage]&amp;sName=$aList[sNameUrl]">&#171; $lang['operation_go_back']</a>
Then remove this line in same file: reSizeToImage( );

At least it's a little bit on the way.

cgan

broon

Avatar: broon

2007-05-11 18:55

Thank you for this..
I can now get this to do most of what I need.
The only thing remaining - I can't seem to get menus to appear.
does anyone know how to get menu 1 and 2 to appear on the gallery page ( with no pop up using the above method)
I can easily add any visuals but the functionality of the menus is beyond me...
Any more help really appreciated.
Many thanks

Back to top
about us | contact