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 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 |

Posts: 9281
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
Posts: 7
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.
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
Posts: 9281
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.
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
Posts: 7
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?
Posts: 9281
Go to your main Gallery page and click on Edit Permissions.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here