Go Back   vb.org Archive > vBulletin Modifications > Archive > Modification Graveyard
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
vBulletin Total Restriction (4 Restriction Features till now) Details »»
vBulletin Total Restriction (4 Restriction Features till now)
Version: 1.0.0, by Omranic Omranic is offline
Developer Last Online: Sep 2021 Show Printable Version Email this Page

Category: Miscellaneous Hacks - Version: 3.5.x Rating:
Released: 01-18-2006 Last Update: Never Installs: 28
Template Edits
Re-useable Code Translations Is in Beta Stage  
No support by the author.

This product is no longer supported!



Discription: This Hack Give You Four Options for Restrict some User and System Preference (Disabling), These four options are:
Disable Image Toolbar script
Disable right mouse click on images
Disable right mouse click totaly with alert
Disable right mouse click totaly without alert

& you Have Two Options To Customise the MSG Alert Displayed for users when any of the 2nd & 3rd options selected.

Disable Image Toolbar script = Disable The Toolbar Appears When The Mouse Moves On Any Image

Disable right mouse click on images = Disable Right Click On Images & Displaying Customised Alert.

Disable right mouse click totaly with alert = Disable Mouse Right Click All Over The Forums Every Where & Displaying Customised Alert.

Disable right mouse click totaly without alert = Disable Mouse Right Click All Over The Forums Every Where Without Displaying Alert.

& you have the Option Not To Disable any Preference = Don't Disable any thing.



Stats:
1 Product Adds 4 Settings, 13 phrase.
Template Edits 2 in one template (headinclude)
  1. Import the Attached Product File.
  2. open headinclude & add before the first line of it the following code:
    HTML Code:
    <if condition="$vboptions[disimagtool]">
    <META HTTP-EQUIV="imagetoolbar" CONTENT="no">
    </if>
  3. open headinclude & after the last line in it add the following code:
    HTML Code:
    <if condition="$vboptions[rightcrmode]==0">
    &nbsp;
    <else />
        <if condition="$vboptions[rightcrmode]==1">
    <script language="JavaScript1.2">
    
    /*
    Disable right click script II (on images)- By Dynamicdrive.com
    For full source, Terms of service, and 100s DTHML scripts
    Visit http://www.dynamicdrive.com
    */
    
    var clickmessage="$vboptions[rmcimagesalert]"
    
    function disableclick(e) {
    if (document.all) {
    if (event.button==2||event.button==3) {
    if (event.srcElement.tagName=="IMG"){
    alert(clickmessage);
    return false;
    }
    }
    }
    else if (document.layers) {
    if (e.which == 3) {
    alert(clickmessage);
    return false;
    }
    }
    else if (document.getElementById){
    if (e.which==3&&e.target.tagName=="IMG"){
    alert(clickmessage)
    return false
    }
    }
    }
    
    function associateimages(){
    for(i=0;i<document.images.length;i++)
    document.images[i].onmousedown=disableclick;
    }
    
    if (document.all)
    document.onmousedown=disableclick
    else if (document.getElementById)
    document.onmouseup=disableclick
    else if (document.layers)
    associateimages()
    </script>
        </if>
    <else />
        <if condition="$vboptions[rightcrmode]==2">
    <script language=JavaScript>
    <!--
    
    //Disable right mouse click Script
    //By Maximus (maximus@nsimail.com) w/ mods by DynamicDrive
    //For full source code, visit http://www.dynamicdrive.com
    
    var message="$vboptions[totalrightcalert]";
    
    ///////////////////////////////////
    function clickIE4(){
    if (event.button==2){
    alert(message);
    return false;
    }
    }
    
    function clickNS4(e){
    if (document.layers||document.getElementById&&!document.all){
    if (e.which==2||e.which==3){
    alert(message);
    return false;
    }
    }
    }
    
    if (document.layers){
    document.captureEvents(Event.MOUSEDOWN);
    document.onmousedown=clickNS4;
    }
    else if (document.all&&!document.getElementById){
    document.onmousedown=clickIE4;
    }
    
    document.oncontextmenu=new Function("alert(message);return false")
    
    // --> 
    </script>
        </if>
    <else />
        <if condition="$vboptions[rightcrmode]==3">
    <script language=JavaScript>
    <!--
    
    //Disable right click script III- By Renigade (renigade@mediaone.net)
    //For full source code, visit http://www.dynamicdrive.com
    
    var message="";
    ///////////////////////////////////
    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>
        </if>
    </if>

Note: all Java Scripts Here Are Submited From www.dynamicdrive.com

This Is the Initial Version with Limited Features So I Hope You All Suggest More Features To Be Added In This Hack.

Note:
All Features Tested & Works Perfectly on IE (InterNet Explorer)
All Features Tested on Firfox but there is one Feature Hasn't Effect (Disabling Image Tool Bar) & The second Feature Doesn't work Perfectly (Disable Right Click on Images) It displays the alert but after you submit the alert it opens the drop down menu for the right click.
Not Tested On other Explorers.

Don't Forget To Click INSTALL

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #22  
Old 01-20-2006, 03:33 PM
hoangminh hoangminh is offline
 
Join Date: Jan 2005
Posts: 65
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by mentalrz
we need a screenshot
Screenshot is a ... right click ?
Reply With Quote
  #23  
Old 01-20-2006, 04:02 PM
Developer's Avatar
Developer Developer is offline
 
Join Date: Sep 2005
Location: EgYpT
Posts: 662
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by SolidSnake@GTI
Developer ===> Who Is Mohammed ?!
All Features Tested & Works Perfectly on IE (InterNet Explorer)
All Features Tested on Firfox but there is one Feature Hasn't Effect (Disabling Image Tool Bar) & The second Feature Doesn't work Perfectly (Disable Right Click on Images) It displays the alert but after you submit the alert it opens the drop down menu for the right click.
Not Tested On other Explorers.
sorry abd el rahman معلش دى فترة امتحانات عندى و دماغى ضايعة
Reply With Quote
  #24  
Old 01-21-2006, 04:26 AM
Omranic's Avatar
Omranic Omranic is offline
 
Join Date: Jan 2005
Location: Egypt
Posts: 536
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Diggazz ===> I'll Do my best To improve this hack & to make it work with opera & FireFox as soon I have time for that, thanks.

hoangminh ===> Exactly

Developer ===> god bless you
Reply With Quote
  #25  
Old 02-02-2006, 07:32 PM
Mudvayne's Avatar
Mudvayne Mudvayne is offline
 
Join Date: Dec 2005
Location: /dev/null/
Posts: 393
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

if this hack is a extension.. Then which file should I upload via ftp?
Reply With Quote
  #26  
Old 02-03-2006, 03:39 AM
hiiped hiiped is offline
 
Join Date: Jan 2006
Posts: 151
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Vizionz
i got a suggestion slap the people asking for a screenshot of a right click script :P

common sence
ya right click = it dont work.
an alert = some text that says you cant right click or whatever ya put in it.

it's not like when you right click a amazing window of freshness is gonna unfold the user who right clicked with flowing waterfalls of freshness and naked girls giving out lollipops

by-the-way nice hack i will try it out later tonight
^^^^^ with him...


suggestion


disable DRAG on image
( because people can somehow DRAG an image and drop it on a downloadmanager dropspot and still get the file )

they can even DRAG the image to the Address bar and then save it
Reply With Quote
  #27  
Old 02-03-2006, 03:41 AM
hiiped hiiped is offline
 
Join Date: Jan 2006
Posts: 151
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Shuvo
Import the Attached Product File.
1: Import the Attached Product File.

using the plugin manager thingie


NO FTP is used
Reply With Quote
  #28  
Old 02-06-2006, 07:37 PM
Omranic's Avatar
Omranic Omranic is offline
 
Join Date: Jan 2005
Location: Egypt
Posts: 536
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by hiiped
^^^^^ with him...


suggestion


disable DRAG on image
( because people can somehow DRAG an image and drop it on a downloadmanager dropspot and still get the file )

they can even DRAG the image to the Address bar and then save it
I Don't think that there is something like that (can you post any example plz)

Quote:
Originally Posted by Shuvo
Then which file should
No File Editing / No File Uploading So No FTP using
Only template edits + Product Import
Reply With Quote
  #29  
Old 02-07-2006, 05:00 AM
Mudvayne's Avatar
Mudvayne Mudvayne is offline
 
Join Date: Dec 2005
Location: /dev/null/
Posts: 393
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by SolidSnake@GTI
No File Editing / No File Uploading So No FTP using
Only template edits + Product Import
I meant.. Ur hack is on vBulletin.org Forum > vB3.5 Modifications > vB3.5 Extensions > vBulletin Total Restriction (4 Restriction Features till now).. The hack should b in either template modification section or plugins section.. Coz thr is no file to upload..
Reply With Quote
  #30  
Old 02-07-2006, 05:24 AM
Omranic's Avatar
Omranic Omranic is offline
 
Join Date: Jan 2005
Location: Egypt
Posts: 536
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I hesitated before posting it for that issue but I thought that since it contains a product file it goes to vB3.5 Extensions

Hope i was right
Reply With Quote
  #31  
Old 02-08-2006, 04:29 PM
Zia's Avatar
Zia Zia is offline
 
Join Date: Dec 2005
Location: golpo.net
Posts: 931
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

seemd if image hosted on imageshack/photobucket then its not working on the image......
what to do now?
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:55 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04651 seconds
  • Memory Usage 2,324KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_html
  • (7)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete