Photo copyright

General Forum
Alchimix
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 13 Jan 2011, 21:33

Photo copyright

Post by Alchimix »

Hello,

I just started to use your component, congratulation for a good job.

I just need a basic information here.

Let me start by saying that I KNOW that if people wants to download a pic and go around settings to avoid it, they will.
But let's be honnest, 10% of Internet at the most know how to do that.

A right click can be done by a monkey.

So, I want to apply this really easy code : <body oncontextmenu="return false">

I did it to my /template/index.php so it works for the thumbails.

My question is :

If I want it to be work also in the actual box (when I click on a pic) where in the directory of your component can I apply this code ? Which php or html ?

Thank a lot in advance,
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Photo copyright

Post by Jan »

Hi, if you want to modify the body tag, you need to modify your template. Components does not procude body tag, they render their code inside the template html.

Jan
If you find Phoca extensions useful, please support the project
Alchimix
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 13 Jan 2011, 21:33

Re: Photo copyright

Post by Alchimix »

Thnaks you for your answer Jan.

But, we agree that the pop up from Phocagallery is a template from Phoca, no ?

That's where I want to enter my code for the right click.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Photo copyright

Post by Jan »

Hi the popup if it is an iframe is still styled by your template, the body is set by your template.

Jan
If you find Phoca extensions useful, please support the project
Alchimix
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 13 Jan 2011, 21:33

Re: Photo copyright

Post by Alchimix »

Thanks for youtr answer Jan.

I will try to work it out.

Thanks,
Post Reply