Some modifications please guide

saadbassi

Joined: 2009-10-13
Posts: 7
Posted: Fri, 2009-11-06 17:40

I want to do some modifications.Please help and tell me which are modules who will help me in doing that.Although these are easier ones.but i am unable to sort out them.

Below is the address of my gallery
www.pkdigest.com/gallery
I want an image zoom button below the image.Through wich user can increase the size of image.The current location of image resize button is not so prominent so every user says that how i can zoom out the image.
Moreover gallery makes three sizes of my images.Is there possible that gallery don't do this.For example in the below page
http://www.pkdigest.com/gallery/main.php?g2_itemId=8105
there are two versions which gallery is making.One is 673*423 and the second one is the size i uploaded.And gallery shows the lower dimension version of the image.

The last one is i dont want user to save the images.Is there any module with which i can do this.e.g disabling right click.there are javascripts available on net for this purpose.but i don't know where to inssert them.I am currently using MatrixAd theme.I tried to insert the javascript in the google-analytics file.But it didn't work

Login or register to post comments
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 9281
Posted: Thu, 2009-11-12 19:13

It's not possible to disable right-clicking or prevent users from download/copying photos. Watermarking your photos is the only real option. If I can see or hear it, I can copy it, period.

For the zoom, I'm not sure exactly what you're asking for, maybe something here will help:
http://www.google.com/search?domains=gallery.menalto.com&sitesearch=gallery.menalto.com&q=zoom&op=Search+with+Google

As for the resized versions. Best I've seen or done with G2 is to make the resized version the same size as the size you upload, or you can remove the permission to view the Resized versions so they can only see the thumbnail and original.

To insert Javascript into the smarty templates you need to wrap the javascript with the {literal} tag. Example:

{literal}
JAVASCRIPT HERE
{/literal}

But you didn't say which file you're trying to edit so I don't know for sure. I'm presuming /themes/matrix/templates/local/theme.tpl (this way the analytics code is on every page)
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

Login or register to post comments
saadbassi

Joined: 2009-10-13
Posts: 7
Posted: Thu, 2009-11-12 21:11

Thanx alot for your help nive kiam.I am asking how to stop gallery to resize images in to two versions.I want gallery to show the image which i uploaded.If you see the following page
http://www.pkdigest.com/gallery/main.php?g2_itemId=8105
you will see there are two versions of the image
1st is 973x643
and the second one is 640*423
Q1-now the question is can i stop gallery to make this 640*423 version.Or to force gallery to show the 973*423 version by default.At this time gallery is showing the 640*423 version by default.

Quote:
you can remove the permission to view the Resized versions so they can only see the thumbnail and origina

Where i can do this?
If there is a solution to Q1 then please skip Q2.
Q-2I am talking about that zoom button which is the drop down list with which user selects the different image sizes.Can i make it prominent by some way?Because of ads it z not prominent so every1 asks how to zoom the image.In other words i am asking about a button which performs the same function as clicking on the image.
Q3-My #3rd question was about adding javascript.I am using matrix-ad theme.There are various javascripts available on web to stop right clicking on a page.I am still unable to find the body(<body>) tag in theme templates.So please tell me where it is.So i can add the javascript to it.If you look at flickr,then photos which are not allowed to save are overlayered with an image called spaceball.gif.I hope i have cleared it.Waiting for ur responce

P.S i have attached the screenshot for better understanding

AttachmentSize
screenshot.jpg354.86 KB
Login or register to post comments
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 9281
Posted: Thu, 2009-11-12 21:31
Quote:
Where i can do this?

Click on Edit Permissions. Then for the Everybody group in the drop down select

See the attached screenshot.

If visitors don't have multiple options of what they can view it will get rid of the drop down menu for selecting sizes. Or you could go the other way if you don't want them to have access to the original files and make the resized version the same size as the original files and remove the permission to view the original files.

Quote:
There are various javascripts available on web to stop right clicking on a page.

I'm very opinionated about this subject. It's pointless, useless, a waste of your time and breaks people's browsing experience. Same goes for the sites that popup a copyright claim. You already have copyright on your works the instant you create them. If someone is going to violate them, reminding them that the works are copyrighted won't do a bit of good.

Not a single one of the scripts to disable right-click menus work, they are all fundamentally broken and the idea to even do this is flawed at the core. All I have to do is visit a page with javascript disabled or use Firefox and not allow the right-click menu to be disabled. If you really want to go through the pointless process of doing extra work for no gains and pissing off your visitors search the forums, there are people who have posted pointless and useless hacks for attempting to break functionality of their visitors browsers (right-click menu).

Again, if I can see or hear it, I can copy it. There is absolutely nothing nobody can do to stop that, period.

/themes/matrix/templates/theme.tpl is the main page template and contains the <body> tag. Create a local directory and copy that file in there to make changes so your changes are not overwritten if you need to restore the default files for some reason.
http://codex.gallery2.org/Gallery2:Editing_Templates
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

AttachmentSize
G2_remove_resized_permission.gif5.69 KB
Login or register to post comments
saadbassi

Joined: 2009-10-13
Posts: 7
Posted: Fri, 2009-11-13 07:52

I am unable to find the location which you specified in screenshot.What i am getting in my groups tab is just editing the name of group.Under the groups tab in site admin?Or is there a specific module to activate group permissions?

AttachmentSize
gallery.JPG49.16 KB
Login or register to post comments
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 9281
Posted: Fri, 2009-11-13 14:34

Go to your main Gallery page and click on Edit Permissions.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

Login or register to post comments