The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Right Click Code Question

View previous topic View next topic Go down

Solved Right Click Code Question

Post by nikko on 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?

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

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

plz tell me where i can put this code???

abbas haider05
Forumember

Posts : 131
Reputation : 0
Language : urdu

Back to top Go down

Solved Re: Right Click Code Question

Post by nikko on July 31st 2011, 10:37 am

bump

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

bump

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

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

Back to top Go down

Solved Re: Right Click Code Question

Post by nikko on August 9th 2011, 9:25 am

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

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

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

Back to top Go down

Solved Re: Right Click Code Question

Post by hoodedwarbler12 on 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
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 on 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!

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

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

Male Posts : 17924
Reputation : 835
Language : English
Location : Somewhere

Back to top Go down

View previous topic View next topic Back to top


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