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 July 30th 2011, 3:45 am

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 July 30th 2011, 8:30 am

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 July 30th 2011, 9:32 am

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 July 30th 2011, 10:59 am

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 July 31st 2011, 10:37 am

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 August 8th 2011, 6:44 am

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 August 8th 2011, 7:02 am

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 August 9th 2011, 9:25 am

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 August 9th 2011, 6:25 pm

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 August 9th 2011, 6:27 pm

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 August 10th 2011, 12:33 am

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 August 10th 2011, 12:42 am

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