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.

Right Click Code Question

+2
ArChKnIgHt
nikko
6 posters

Go down

Solved Right Click Code Question

Post by nikko Sat 30 Jul 2011, 02:45

Code:
<script language=Javascript1.2> function ejs_nodroit() { alert('Text Here');
    return(false); } document.oncontextmenu = ejs_nodroit; </script>

That is the code to disable the right click text, but is there any way to disable right click just for guests? So that all members can access it?
avatar
nikko
Forumember

Male Posts : 110
Reputation : 0
Language : English
Location : Colorado

http://mcmlgaming.forumotion.com/forum

Back to top Go down

Solved Re: Right Click Code Question

Post by ArChKnIgHt Sat 30 Jul 2011, 07:30

Hi,
Sure Just Use This Code
Code:
<!-- BEGIN switch_user_logged_out -->
    <script language=Javascript1.2> function ejs_nodroit() { alert('Text Here');
        return(false); } document.oncontextmenu = ejs_nodroit; </script>
<!-- END switch_user_logged_out -->

This Way You Have Disabled Right Click For Guests Only, Btw I Tested It and Worked For Me
Hope That Help, ArChKnIgHt
ArChKnIgHt
ArChKnIgHt
Forumember

Male Posts : 134
Reputation : -1
Language : Arabic | English | French | CSS | HTML | JS
Location : Egypt

http://ultragamerz.forumotion.net/

Back to top Go down

Solved Re: Right Click Code Question

Post by nikko Sat 30 Jul 2011, 08:32

Thanks! Where do i put that code?

Update:
I tried putting it in the site description (where the original one was suppose to go) and it didn't work
I tried putting it in the java management and still didnt work

When i say it didnt work, i mean Im still logged in a getting that message.
avatar
nikko
Forumember

Male Posts : 110
Reputation : 0
Language : English
Location : Colorado

http://mcmlgaming.forumotion.com/forum

Back to top Go down

Solved Re: Right Click Code Question

Post by abbas haider05 Sat 30 Jul 2011, 09:59

plz tell me where i can put this code???
avatar
abbas haider05
Forumember

Posts : 131
Reputation : 0
Language : urdu

Back to top Go down

Solved Re: Right Click Code Question

Post by nikko Sun 31 Jul 2011, 09:37

bump
avatar
nikko
Forumember

Male Posts : 110
Reputation : 0
Language : English
Location : Colorado

http://mcmlgaming.forumotion.com/forum

Back to top Go down

Solved Re: Right Click Code Question

Post by nikko Mon 08 Aug 2011, 05:44

bump
avatar
nikko
Forumember

Male Posts : 110
Reputation : 0
Language : English
Location : Colorado

http://mcmlgaming.forumotion.com/forum

Back to top Go down

Solved Re: Right Click Code Question

Post by kirk Mon 08 Aug 2011, 06:02

no that code dont seem to be working for guest only?
It blocks right click but for both guest and if your logged in???

Anyway for phpbb3 you would want to place it in your forums description or general announcement in messages and email options,

actually i think ArChKnIgHt may have it in a template, so i can test that too and if it's working for him it's probably because he has it there like that.

However you can not edit templates in phpbb3 so i think we would need a different code all together.
kirk
kirk
Forumaster

Male Posts : 11037
Reputation : 653
Language : English,Vulcan,Klingon, Romulan,& Gorn

Back to top Go down

Solved Re: Right Click Code Question

Post by nikko Tue 09 Aug 2011, 08:25

yup, the code is activated even if your logged in..
avatar
nikko
Forumember

Male Posts : 110
Reputation : 0
Language : English
Location : Colorado

http://mcmlgaming.forumotion.com/forum

Back to top Go down

Solved Re: Right Click Code Question

Post by kirk Tue 09 Aug 2011, 17:25

right thats the thing, when you do it it's for everyone.
Although i have seen a code to do what yous are asking before.. but have no idea where it was... it was a while ago.
You should try Google it and i will check some of my older test forums to see if i have it there.
kirk
kirk
Forumaster

Male Posts : 11037
Reputation : 653
Language : English,Vulcan,Klingon, Romulan,& Gorn

Back to top Go down

Solved Re: Right Click Code Question

Post by hoodedwarbler12 Tue 09 Aug 2011, 17:27

You could try putting the code in a widget, and making that widget only available to guests. that's how I got my Hellobar for guests.
hoodedwarbler12
hoodedwarbler12
Forumember

Male Posts : 521
Reputation : 117
Language : English, Latin, HTML, JavaScript
Location : Tennessee, USA

http://www.webkinznation.com

Back to top Go down

Solved Re: Right Click Code Question

Post by nikko Tue 09 Aug 2011, 23:33

kirk wrote:right thats the thing, when you do it it's for everyone.
Although i have seen a code to do what yous are asking before.. but have no idea where it was... it was a while ago.
You should try Google it and i will check some of my older test forums to see if i have it there.
Thanks kirk!
avatar
nikko
Forumember

Male Posts : 110
Reputation : 0
Language : English
Location : Colorado

http://mcmlgaming.forumotion.com/forum

Back to top Go down

Solved Re: Right Click Code Question

Post by Jophy Tue 09 Aug 2011, 23:42

Right Click Code Question Solved10Since this thread appears to be solved, I will lock this thread and mark it as solved now.

Important: You can also help the moderators to know if your topic/problem is solved by EDITING your first post and marking the topic as solved. Thank you.

~ Joph25
Jophy
Jophy
ForumGuru

Male Posts : 17922
Reputation : 836
Language : English
Location : Somewhere

Back to top Go down

Back to top

- Similar topics

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