Opening full size image in new window hack not working, permissions wrong?
|
relegated
Joined: 2009-06-29
Posts: 11 |
Posted: Wed, 2009-07-01 15:44
|
|
I am using Gallery 2.3, integrated into Wordpress 2.8 using the WPG2 plugin. I am using the matrix theme and have modified the photo.tpl as described in this url http://soulpass.com/2006/01/24/gallery2-image-resizing-breaking-your-layout/ and I can't get it working the way I want it to or the way it should work. His gallery works fine, for example, I am logged in as a guest, when I view the resized picture I cant click the picture to see the full size but I can click the link above it to download the photo which opens in a new window. http://soulpass.com/blog/gallery/funwithlight/104_0418.JPG.html I'm pretty sure it has to do with uesr permissions but I have messed with them and nothing works. Right now I have everybody set to view all. the download link works but they can open the image in Wordpress which breaks the layout. If I give everybody view item they can't open the full size in Wordpress anymore but they also get "The action you attempted is not permitted." when they open the full size image in a new window. If they have view item and review resized the same thing happens. If they have view item and view original the same problem as view all items happens. This is driving me crazy, and the last thing I need to do before going live. Can someone tell me how to get my gallery to function like this http://soulpass.com/blog/gallery/funwithlight/104_0418.JPG.html where I am the guest, can not open the full size image in wordpress but can click the link above to open it full screen in another window. |
|
| Login or register to post comments |

Posts: 9025
It would help if you posted a link to your site instead of just some other site asking how you can make your site like theirs. Also be aware his hack may not be working because he's using a very old version of Gallery, 2.1.2
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 11
I would rather not post a link to mine, I am still looking for a way to do this, any help would be appreciated.
Posts: 9025
Well not much I can do without seeing what's going on.
Need help? We need info:
FAQ: What information is required when I ask for help in the forums?
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 9025
Try this (untested). Edit your photo.tpl again.
Change the 2 instances of this:
<a href="{g->url arg1="view=core:DownloadItem" arg2="itemId=`$theme.item.id`"}"onclick="window.open(this.href); return false;">to this:
<a href="{g->url arg1="view=core:DownloadItem" arg2="itemId=`$theme.item.id`"}" target="_blank">and this:
<a href="{g->url params=$theme.pageUrl arg1="itemId=`$theme.item.id`" arg2="imageViewsIndex=`$imageViewsLink`"}">to this:
<a href="{g->url arg1="view=core:DownloadItem" arg2="itemId=`$theme.item.id`"}" target="_blank">____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 11
That was exactly what I needed, thank you!
Posts: 23
Excellent post!!
Helped me perfectly... many thanks, especially to nivekiam!!
Thank you.
Jon