Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 08-04-2006, 08:08 AM
zellvnn zellvnn is offline
 
Join Date: Jul 2006
Posts: 46
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Plz help me find this hack

there are 2 different hacks
1 PPl are unable to right-click to any media files in ur forum. It happens like u try Right-click on any youtube videos

2 Ppl are unable to do right-click. They can go to " properties". However, the URL dont show the location of the files. So ppl can't steal that files.
For example, normally, 2 years ago, it will be www.yourdomain.com/forum/music.mp3

Now ppl can hide it.. It becomes... www.yourdomain.com/asdfasdfasdfsda/asdfasd (something else to prevent stealing)
Reply With Quote
  #2  
Old 08-04-2006, 09:45 AM
DavutPasha DavutPasha is offline
 
Join Date: Mar 2006
Location: Istanbul
Posts: 40
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

(before it, you can see my website; http://forum.davutpasha.com, ideas is this; "members able to right-click but unregistereds unable to right-cick")

you can do this exactly, here is some examples;

Open your header template, and add this code where do you want;

ADMINS CAN ABLE TO RIGHT-CLICK BUT MEMBERS ARE UNABLE;
PHP Code:
<if condition="$show['admincplink']">
<!-- 
RIGHT-CLICK IS ACTIVATED -->
<else />
<
BODY onselectstart="return false" ondragstart="return false">
<
SCRIPT language=JavaScript>
function 
openWinwindowURLwindowNamewindowFeatures 
{     
window.openwindowURLwindowNamewindowFeatures ) ;     }
</
SCRIPT>
<
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> 
MEMBERS ABLE RIGHT-CLICK BUT UNREGISTEREDS UNABLE;
PHP Code:
<if condition="$show['guest']">
<
BODY onselectstart="return false" ondragstart="return false">
<
SCRIPT language=JavaScript>
function 
openWinwindowURLwindowNamewindowFeatures 
{     
window.openwindowURLwindowNamewindowFeatures ) ;     }
</
SCRIPT>
<
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> 
I hope, you will do this, if you don't you can ask, feel to free.
Caw..
Reply With Quote
  #3  
Old 08-04-2006, 09:05 PM
zellvnn zellvnn is offline
 
Join Date: Jul 2006
Posts: 46
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It would be wonderful if i can hide the URL from source too...........
Reply With Quote
  #4  
Old 08-07-2006, 09:32 PM
Stanley Steamer Stanley Steamer is offline
 
Join Date: Mar 2006
Posts: 29
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This works really good to prevent guests from stealing image bandwidth from the forum members.
How do you script it to disable right hand clicking for users awaiting E-mail confirmation too?
Reply With Quote
  #5  
Old 08-09-2006, 03:49 PM
zellvnn zellvnn is offline
 
Join Date: Jul 2006
Posts: 46
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It worked but.......it's a bit annoying for ppl who want to copy some text.....
Reply With Quote
  #6  
Old 08-10-2006, 12:01 PM
Stanley Steamer Stanley Steamer is offline
 
Join Date: Mar 2006
Posts: 29
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If you paste this under it you will get the little message pop up window, but this disables right hand clicking for everyone including the administrator.
This isn't a good hack to use if you have a long complex password that you copy and paste from your note pad.


<SCRIPT LANGUAGE="JavaScript">
<!--
if (document.layers) {n=1;ie=0}
if (document.all) {n=0;ie=1}

function clickEvent(e) {
if(e.which ==3)
alert("Type your message here.")
return false
}

function click() {
if(event.button ==2)
alert("Type your message here")
}

if (n)
document.onmousedown = clickEvent;
if (ie)
document.onmousedown = click
//-->
</SCRIPT>

</style>
<script language=JavaScript>
<!--
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 11:47 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.03694 seconds
  • Memory Usage 2,231KB
  • Queries Executed 13 (?)
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
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (6)post_thanks_box
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (6)post_thanks_postbit_info
  • (6)postbit
  • (6)postbit_onlinestatus
  • (6)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_postinfo_query
  • fetch_postinfo
  • 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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete