The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Disallow Right-Clicking

+3
Matei
Kiekeboe
Rianna Lauren
7 posters

Go down

Solved Disallow Right-Clicking

Post by Rianna Lauren April 26th 2010, 12:10 pm

Yeah, so I read in the Tips and Tricks section for this, but I think that applies for my WHOLE forum (...right? O_o). How do I disallow right-clicking only on one of my categories? Or one of my forums? Thanks!
Rianna Lauren
Rianna Lauren
Forumember

Female Posts : 288
Reputation : 0
Language : English, Indonesian
Location : INDONESIA

http://belgianreporter.forumotion.com

Back to top Go down

Solved Re: Disallow Right-Clicking

Post by Kiekeboe April 26th 2010, 12:40 pm

Not...
Kiekeboe
Kiekeboe
Forumember

Female Posts : 250
Reputation : -1
Language : Dutch, english, german and a little bit french, guitar chords, html, a bit CSS
Location : Maastricht (Holland)

http://wolfstory.clicboard.com

Back to top Go down

Solved Re: Disallow Right-Clicking

Post by Matei April 26th 2010, 12:55 pm

Administration Panel - General - Disallow Right-Clicking Configuration Forum - Configuration - General - Site description * : Copy the code and Save.
Code :
Code:
<script language=Javascript1.2> function ejs_nodroit() {return(false); } document.oncontextmenu = ejs_nodroit; </script>
Matei
Matei
Hyperactive

Male Posts : 2973
Reputation : 101
Language : Romanian (10), English (8), * CSS Stylessheet | HTML *
Location : Romania | Please do not send me pm`s for support or graphic requests, I just ignore them.

Back to top Go down

Solved Re: Disallow Right-Clicking

Post by Kalliopi April 26th 2010, 1:03 pm

I am also interested in this, but surely that must be for the whole forum Matei? O/P already knows how to do this.
Kalliopi
Kalliopi
Forumember

Posts : 434
Reputation : 30
Language : English

Back to top Go down

Solved Re: Disallow Right-Clicking

Post by Matei April 26th 2010, 1:04 pm

Yes , that code disallow right-click for the whole forum.
Matei
Matei
Hyperactive

Male Posts : 2973
Reputation : 101
Language : Romanian (10), English (8), * CSS Stylessheet | HTML *
Location : Romania | Please do not send me pm`s for support or graphic requests, I just ignore them.

Back to top Go down

Solved Re: Disallow Right-Clicking

Post by Rianna Lauren April 26th 2010, 1:30 pm

...yeah, I was actually asking about disabling it for only ONE category. Or ONE OF my forums. Not the whole forums. >.<
Rianna Lauren
Rianna Lauren
Forumember

Female Posts : 288
Reputation : 0
Language : English, Indonesian
Location : INDONESIA

http://belgianreporter.forumotion.com

Back to top Go down

Solved Re: Disallow Right-Clicking

Post by Matei April 26th 2010, 1:40 pm

Right click on the first page can be disallow all over the board or board.
Matei
Matei
Hyperactive

Male Posts : 2973
Reputation : 101
Language : Romanian (10), English (8), * CSS Stylessheet | HTML *
Location : Romania | Please do not send me pm`s for support or graphic requests, I just ignore them.

Back to top Go down

Solved Re: Disallow Right-Clicking

Post by Rianna Lauren April 26th 2010, 2:03 pm

o.o I uh... Don't get it... ^^;
Rianna Lauren
Rianna Lauren
Forumember

Female Posts : 288
Reputation : 0
Language : English, Indonesian
Location : INDONESIA

http://belgianreporter.forumotion.com

Back to top Go down

Solved Re: Disallow Right-Clicking

Post by Matei April 26th 2010, 2:09 pm

To clarify the issue:
You can disable right-click the entire forum, or you can disable right click only on the first page of the forum. You can set the right click to be disallow only on a certain category.
Matei
Matei
Hyperactive

Male Posts : 2973
Reputation : 101
Language : Romanian (10), English (8), * CSS Stylessheet | HTML *
Location : Romania | Please do not send me pm`s for support or graphic requests, I just ignore them.

Back to top Go down

Solved Re: Disallow Right-Clicking

Post by Rianna Lauren April 26th 2010, 2:21 pm

Matei wrote:To clarify the issue:
You can disable right-click the entire forum, or you can disable right click only on the first page of the forum. You can set the right click to be disallow only on a certain category.

Yes, that part I quote in bold? How do I do that? The tutorial you posted right after the first post was for disabling right click for the whole forums. O_o
Rianna Lauren
Rianna Lauren
Forumember

Female Posts : 288
Reputation : 0
Language : English, Indonesian
Location : INDONESIA

http://belgianreporter.forumotion.com

Back to top Go down

Solved Re: Disallow Right-Clicking

Post by Russel April 26th 2010, 2:24 pm

What forum version are you using? If punbb or phpbb2 so, it is possible to put the disable right click codes in chosen pages by going to templates but be sure to take care of the default content codes posted in the templates.

Hope this suggestion could help.
Russel
Russel
Active Poster

Male Posts : 1407
Reputation : 236
Language : English, Filipino
Location : Philippines

Back to top Go down

Solved Re: Disallow Right-Clicking

Post by Rianna Lauren April 26th 2010, 2:31 pm

I'm using phpBB3.
Rianna Lauren
Rianna Lauren
Forumember

Female Posts : 288
Reputation : 0
Language : English, Indonesian
Location : INDONESIA

http://belgianreporter.forumotion.com

Back to top Go down

Solved Re: Disallow Right-Clicking

Post by Russel April 26th 2010, 2:33 pm

Sad to say its not possible to do.
Russel
Russel
Active Poster

Male Posts : 1407
Reputation : 236
Language : English, Filipino
Location : Philippines

Back to top Go down

Solved Re: Disallow Right-Clicking

Post by Rianna Lauren April 26th 2010, 3:31 pm

Dx uh oh. Are you sure? >.<
Rianna Lauren
Rianna Lauren
Forumember

Female Posts : 288
Reputation : 0
Language : English, Indonesian
Location : INDONESIA

http://belgianreporter.forumotion.com

Back to top Go down

Solved Re: Disallow Right-Clicking

Post by Matei April 26th 2010, 3:41 pm

Rianna Lauren wrote:Dx uh oh. Are you sure? >.<

I am sure by that, I tried several methods and no succes.
Matei
Matei
Hyperactive

Male Posts : 2973
Reputation : 101
Language : Romanian (10), English (8), * CSS Stylessheet | HTML *
Location : Romania | Please do not send me pm`s for support or graphic requests, I just ignore them.

Back to top Go down

Solved Re: Disallow Right-Clicking

Post by Rianna Lauren April 27th 2010, 12:17 am

>_< Maybe the mods can help? Somebody? XD
Rianna Lauren
Rianna Lauren
Forumember

Female Posts : 288
Reputation : 0
Language : English, Indonesian
Location : INDONESIA

http://belgianreporter.forumotion.com

Back to top Go down

Solved Re: Disallow Right-Clicking

Post by Sanket April 27th 2010, 10:09 am

Its not possible. Sorry.
Sanket
Sanket
ForumGuru

Male Posts : 48766
Reputation : 2830
Language : English
Location : Mumbai

Back to top Go down

Solved Re: Disallow Right-Clicking

Post by Rianna Lauren May 1st 2010, 1:33 pm

O_O I was sure I replied to this... Uh... Okay. My problem is that I'm having a points shop and I'm selling avatars. How do I show the members the avatars I sell and prevent them from saving the pictures first? Thank you...
Rianna Lauren
Rianna Lauren
Forumember

Female Posts : 288
Reputation : 0
Language : English, Indonesian
Location : INDONESIA

http://belgianreporter.forumotion.com

Back to top Go down

Solved Re: Disallow Right-Clicking

Post by Sanket May 1st 2010, 4:12 pm

Make it into a single image including small sized images in that single image.
Sanket
Sanket
ForumGuru

Male Posts : 48766
Reputation : 2830
Language : English
Location : Mumbai

Back to top Go down

Solved Re: Disallow Right-Clicking

Post by Agenda May 1st 2010, 4:27 pm

There is actually a basic script to use to disable right-clicking; though I don't recommend it as users won't be able to right-click anything else on your site, and that could be important later (especially for admins and mods).

I would go with what Sanket said. Here are a few tricks to use:

1. Using CSS to position a transparent gif overtop of the image.
Code:
<img src="myimage.gif" width="100" height="50">
<img src="transparent.gif" width="100" height="50" style="position:relative; left:-102px; top:0px;">


2. Using span tag to position a transparent gif overtop of the image.
Code:
<span style="background-image: url(images/my_image.jpg)"><img src="images/transparent.gif" width="200" height="150" border="0" alt="My protected Image."></span>

3. Use the image as a background of a table and fill the cell with a transparent gif.
Code:
<table width="100" height="50">
<tr>
<td background="myimage.gif">
<img src="transparent.gif" width="100" height="50">
</td>
</tr>
</table>

4. Use a watermark over your demonstration images in the store with a simple editing software (paint will do just fine for something like that), and keep the real images to yourself until they purchase them.

I also recommend keeping track of who has purchased an avatar and who has not so you can kick their butt later when need be. Wink

Or, if you are really willing to try the right-click script; add the following script to any HTML page, over_header_new template, site message, announcement, or portal widget (portal pages are great for stores as, with widgets, you have easier control over the store's layout and can include the below script without having to disable right-clicking for your entire site):

Code:
<script type="text/javascript">
function clickIE() {if (document.all) {(message);return false;}}
function clickNS(e) {if
(document.layers||(document.getElementById&&!document.all)) {
if (e.which==2||e.which==3) {(message);return false;}}}
if (document.layers)
{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}
document.oncontextmenu=new Function("return false")
</script>
Agenda
Agenda
Forumember

Male Posts : 172
Reputation : 9
Language : English

Back to top Go down

Solved Re: Disallow Right-Clicking

Post by Rianna Lauren May 1st 2010, 5:58 pm

!!

Portal widgets, of course! Genius. Very Happy So I put that script on the widgets and that'll disable right clicking only for those widgets, right? And I'll also add watermark, just to be safe. I think putting all those images together would just end up in cropping, so I probably won't go with that. XP

Thanks guys! Very Happy Very Happy Very Happy
Rianna Lauren
Rianna Lauren
Forumember

Female Posts : 288
Reputation : 0
Language : English, Indonesian
Location : INDONESIA

http://belgianreporter.forumotion.com

Back to top Go down

Solved Re: Disallow Right-Clicking

Post by Sanket May 1st 2010, 9:03 pm

Nopes, a smaller version of the images will reduce the quality when they enlarge. So its a better way to turn off copiers.
Sanket
Sanket
ForumGuru

Male Posts : 48766
Reputation : 2830
Language : English
Location : Mumbai

Back to top Go down

Solved Re: Disallow Right-Clicking

Post by Rianna Lauren May 2nd 2010, 2:20 am

Ooh. I get it now. XD Thank you!
Rianna Lauren
Rianna Lauren
Forumember

Female Posts : 288
Reputation : 0
Language : English, Indonesian
Location : INDONESIA

http://belgianreporter.forumotion.com

Back to top Go down

Solved Re: Disallow Right-Clicking

Post by Sanket May 2nd 2010, 5:54 am

Since this thread appears to be solved, I will lock this thread and mark it as solved.
Disallow Right-Clicking 2j4t5a8

Sanket Smile
Sanket
Sanket
ForumGuru

Male Posts : 48766
Reputation : 2830
Language : English
Location : Mumbai

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum