The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Disable Right Click on your Forum Details »» | |||||||||||||||||||||||||
This disables right clicking on all images only or everything and text selection.
With Usergroup Permission and specified forums. Although its not 100% proof it will discourage people from trying to steal your images and site content. Hopefully. I know there are many ways to get around this but its a start. You must have javascript enable! Uninstall any other Right CLick Hacks/Mods. Import the product via the ACP. Go to vbulletin Options -->> BAJI26 - Disable Right Click and adjust your settings. Setting the FORUMID to 0 will disable the entire forum. Time: 30 secs - Updated: Disable Right Click for images and total right click disabled. - Update: Added options to turn the hack on/off from vb options. - Update: Added disable per usergroup option. - Update: Added option to custom alert messages. - Update: Added option to disable text selection per usergroup. - Update: Added option to apply hack to certain forums, and users. CLICK INSTALL Show Your Support
|
Comments |
#32
|
|||
|
|||
install, thanks pal..
|
#33
|
|||
|
|||
how can we change the message? also next release can we have an option..when people and try to right click it logs them out?
|
#34
|
||||
|
||||
Quote:
Find PHP Code:
To add that option is a thought and I'll look into it. |
#35
|
|||
|
|||
MANY THANKS!!!
|
#36
|
|||
|
|||
oops..where do i find this? product manager?
|
#37
|
||||
|
||||
That is in the zip that you downloaded, the xml file.
|
#38
|
|||
|
|||
Code:
<?xml version="1.0" encoding="ISO-8859-1"?> <product productid="Disable_Right_Click" active="1"> <title>Disable_Right_Click</title> <description>Disabling The Use Of Right Click 3.0.0</description> <version>3.00</version> <url><![CDATA[https://vborg.vbsupport.ru/misc.php?do=producthelp&pid=rightclick_disable-Mastar]]></url> <versioncheckurl><![CDATA[https://vborg.vbsupport.ru/misc.php?do=productcheck&pid=rightclick_disable-Mastar]]></versioncheckurl> <dependencies> </dependencies> <codes> </codes> <templates> <template name="DisableAll" templatetype="template" date="0" username="Mastar" version=""><![CDATA[<if condition="$vboptions[DisableAllcode1]"> <if condition="!is_member_of($bbuserinfo, 5, 6, 7)"> <script language=JavaScript> 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> ]]></template> <template name="DisableImage" templatetype="template" date="0" username="Mastar" version=""><![CDATA[ <if condition="$vboptions[DisableImagecode2]"> <if condition="!is_member_of($bbuserinfo, 5, 6, 7)"> <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="Right click disabled on images! If you need an image please contact the Site Owner." 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> </if> ]]></template> </templates> <plugins> <plugin active="1" executionorder="5"> <title>Disable_Right_Click</title> <hookname>cache_templates</hookname> <phpcode><![CDATA[$globaltemplates = array_merge($globaltemplates, array('DisableImage')); ]]></phpcode> </plugin> <plugin active="1" executionorder="5"> <title>Disable_Right_Click</title> <hookname>cache_templates</hookname> <phpcode><![CDATA[$globaltemplates = array_merge($globaltemplates, array('DisableAll')); ]]></phpcode> </plugin> <plugin active="1" executionorder="5"> <title>Right Click Disabled on Images</title> <hookname>global_start</hookname> <phpcode><![CDATA[$search_text = '<!-- Do not remove this copyright notice -->'; $vbulletin->templatecache['footer'] = str_replace($search_text, $search_text.fetch_template('DisableImage'),$vbulletin->templatecache['footer']); ]]></phpcode> </plugin> <plugin active="1" executionorder="5"> <title>Disable_Right_Click</title> <hookname>global_start</hookname> <phpcode><![CDATA[$search_text = '<!-- /logo -->'; $vbulletin->templatecache['header'] = str_replace($search_text, $search_text.fetch_template('DisableAll'),$vbulletin->templatecache['header']); ]]></phpcode> </plugin> </plugins> <phrases> <phrasetype name="vBulletin Settings" fieldname="vbsettings"> <phrase name="setting_DisableAllcode1_desc" date="0" username="Mastar" version="3.0.0"><![CDATA[ Yes to enable / No to disable]]></phrase> <phrase name="setting_DisableAllcode1_title" date="0" username="Mastar" version="3.0.0"><![CDATA[ Prevent Right Click On Everything?]]></phrase> <phrase name="setting_DisableImagecode2_desc" date="0" username="Mastar" version="3.0.0"><![CDATA[ Yes to enable / No to disable]]></phrase> <phrase name="setting_DisableImagecode2_title" date="0" username="Mastar" version="3.0.0"><![CDATA[ Prevent Right Click On Images?]]></phrase> <phrase name="settinggroup_Allgroup" date="0" username="Mastar" version="3.0.0"><![CDATA[ Disable Right Click by Mastar aka BAJI26]]></phrase> </phrasetype> </phrases> <options> <settinggroup name="Allgroup" displayorder="8904"> <setting varname="DisableAllcode1" displayorder="20"> <datatype>boolean</datatype> <optioncode>yesno</optioncode> <defaultvalue>1</defaultvalue> </setting> <setting varname="DisableImagecode2" displayorder="30"> <datatype>boolean</datatype> <optioncode>yesno</optioncode> <defaultvalue>1</defaultvalue> </setting> </settinggroup> </options> <helptopics> </helptopics> <cronentries> </cronentries> <faqentries> </faqentries> </product> |
#39
|
||||
|
||||
Quote:
Here: PHP Code:
|
#40
|
|||
|
|||
is possible to add <if> condition for forum based application on/off?
(<if condition="!is_forumdisplay.php?($f=X, X, X)"> or something to that effect so that this would not apply to certain selected forums? |
#41
|
||||
|
||||
Gonna work on that, thatnks!
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|