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.
The forum of the forums
+2
ArChKnIgHt
nikko
6 posters

    Right Click Code Question

    avatar
    nikko
    Forumember


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

    Solved Right Click Code Question

    Post by nikko Sat 30 Jul - 3: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?
    ArChKnIgHt
    ArChKnIgHt
    Forumember


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

    Solved Re: Right Click Code Question

    Post by ArChKnIgHt Sat 30 Jul - 8: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
    avatar
    nikko
    Forumember


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

    Solved Re: Right Click Code Question

    Post by nikko Sat 30 Jul - 9: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
    abbas haider05
    Forumember


    Posts : 131
    Reputation : 0
    Language : urdu

    Solved Re: Right Click Code Question

    Post by abbas haider05 Sat 30 Jul - 10:59

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


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

    Solved Re: Right Click Code Question

    Post by nikko Sun 31 Jul - 10:37

    bump
    avatar
    nikko
    Forumember


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

    Solved Re: Right Click Code Question

    Post by nikko Mon 8 Aug - 6:44

    bump
    kirk
    kirk
    Forumaster


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

    Solved Re: Right Click Code Question

    Post by kirk Mon 8 Aug - 7: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.
    avatar
    nikko
    Forumember


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

    Solved Re: Right Click Code Question

    Post by nikko Tue 9 Aug - 9:25

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


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

    Solved Re: Right Click Code Question

    Post by kirk Tue 9 Aug - 18: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.
    hoodedwarbler12
    hoodedwarbler12
    Forumember


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

    Solved Re: Right Click Code Question

    Post by hoodedwarbler12 Tue 9 Aug - 18: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.
    avatar
    nikko
    Forumember


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

    Solved Re: Right Click Code Question

    Post by nikko Wed 10 Aug - 0: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!
    Jophy
    Jophy
    ForumGuru


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

    Solved Re: Right Click Code Question

    Post by Jophy Wed 10 Aug - 0: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

      Current date/time is Sun 22 Sep - 20:31