vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   No text select? (https://vborg.vbsupport.ru/showthread.php?t=47480)

Sweet Cheeks 01-07-2003 09:06 PM

No text select?
 
IfI'm not allowed to post code from another site, please accept my apologies and delete this :paranoid:

I have this script from Dynamic Drive and it blocks you from selecting text. Is there any way to apply this on VB per usergroup? Any ideas? Thank for your help :cool:

PHP Code:

<script language="JavaScript1.2">

//Disable select-text script (IE4+, NS6+)- By Andy Scott
//Exclusive permission granted to Dynamic Drive to feature script
//Visit [url]http://www.dynamicdrive.com[/url] for this script

function disableselect(e){
return 
false
}

function 
reEnable(){
return 
true
}

//if IE4+
document.onselectstart=new Function ("return false")

//if NS6
if (window.sidebar){
document.onmousedown=disableselect
document
.onclick=reEnable
}
</
script


DrkFusion 01-07-2003 10:26 PM

How many usergroupids do you not want to apply this to?

Since this would be applied to all pages of vB, then I am guessing it would be put into the phpheadtemplate.

NTLDR 01-07-2003 10:47 PM

That scripts pointless IMHO, there just to easy to disable.

Sweet Cheeks 01-07-2003 10:50 PM

Well I wanted to apply this to 1 user group but I have 4 others (that aren't trolls) I realize there are ways around it, most of our trolls are a few fries short of a Happy Meal and wouldn't know how to get around it :banana:

I guess I could create a new style for them and try to figure out how to make a certain usergroup default to a specified style. hmm maybe I'll try that :D

NTLDR 01-07-2003 10:56 PM

Add that javascript to a new template, I'll call it template1, in your phpinclude template add:

PHP Code:

if ($bbuserinfo[usergroupid]==X) {
    eval (
"\$disableselect = \"".gettemplate("template1")."\";");
} else {
    
$disableselect '';


Change X to the usergroupid and template1 to the template name, and add $disableselect to your headinclude template.

Sweet Cheeks 01-07-2003 11:06 PM

Quote:

Originally posted by NTLDR
Add that javascript to a new template, I'll call it template1, in your phpinclude template add:

PHP Code:

if ($bbuserinfo[usergroupid]==X) {
    eval (
"\$disableselect = \"".gettemplate("template1")."\";");
} else {
    
$disableselect '';


Change X to the usergroupid and template1 to the template name, and add $disableselect to your headinclude template.

:cool: Very cool, I will try that and let you know, thanks a bunch :smoke:

DrkFusion 01-07-2003 11:11 PM

Quote:

Originally posted by NTLDR
Add that javascript to a new template, I'll call it template1, in your phpinclude template add:

PHP Code:

if ($bbuserinfo[usergroupid]==X) {
    eval (
"\$disableselect = \"".gettemplate("template1")."\";");
} else {
    
$disableselect '';


Change X to the usergroupid and template1 to the template name, and add $disableselect to your headinclude template.

You stole my client :rolleyes: :p
I was gonna do something similar, but if it where the other way, as in if it were being applied to many users. But if it weren't that case I would of resulted to that :)

Sweet Cheeks 01-08-2003 05:44 AM

Thanks for your help , it works, too awesome https://vborg.vbsupport.ru/external/2011/01/19.gif

Boofo 01-08-2003 05:53 AM

Quote:

Originally posted by ~*Julie*~
IfI'm not allowed to post code from another site, please accept my apologies and delete this :paranoid:

I have this script from Dynamic Drive and it blocks you from selecting text. Is there any way to apply this on VB per usergroup? Any ideas? Thank for your help :cool:

All they have to do to get the text is do a View > Source in the browser or use HyperSnap and capture the screen, so this won't really stop anything. :)

Sweet Cheeks 01-08-2003 04:47 PM

Quote:

Originally posted by Boofo


All they have to do to get the text is do a View > Source in the browser or use HyperSnap and capture the screen, so this won't really stop anything. :)

Yeah I realize that, most of them are too ignorant to know anyways, plus if they do it this way, they have to work for it :p Seriously, we get some really dumb trolls lol, I have the board flipped backwards for them so they figured to cut n paste the messages, now they have another hurdle to get around lol :D


All times are GMT. The time now is 09:20 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.01112 seconds
  • Memory Usage 1,747KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete