View Full Version : No text select?
Sweet Cheeks
01-07-2003, 09:06 PM
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:
<script language="JavaScript1.2">
//Disable select-text script (IE4+, NS6+)- By Andy Scott
//Exclusive permission granted to Dynamic Drive to feature script
//Visit http://www.dynamicdrive.com 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:
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
Originally posted by NTLDR
Add that javascript to a new template, I'll call it template1, in your phpinclude template add:
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
Originally posted by NTLDR
Add that javascript to a new template, I'll call it template1, in your phpinclude template add:
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
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
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
Boofo
01-09-2003, 12:43 AM
Originally posted by ~*Julie*~
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
* Boofo is LHAO
You sound like you have your work cut out for you then. Have you diable the right mouse click, too, then?
And how do you make your board "backwards"? :)
Originally posted by Boofo
* Boofo is LHAO
You sound like you have your work cut out for you then. Have you diable the right mouse click, too, then?
And how do you make your board "backwards"? :) body {
filter:flipH;
}
DrkFusion
01-09-2003, 01:32 AM
Muwahaha
* DrkFusion gets crazy thoughts
Thanks Mug :)
Boofo
01-09-2003, 05:53 AM
Originally posted by MUG
body {
filter:flipH;
}
How would you add that to a button for the vbcode_buttons?
Sweet Cheeks
01-09-2003, 08:35 PM
:laugh: Hey if you wanna check it out, use this screen name and pass via the link in my sig lol.... I have all of the great helpers here at VB to thank :cool:
:banana:
MenstrualCase
pass: 12345
or here's a screen cap, you'll get the idea ;)
http://www.siggyhosting.com/boards/siggy/trollview.gif
Boofo
01-09-2003, 08:43 PM
* Boofo LMAO at Julie
That's great! Might be fun to mess with someone who is causing problems. I'll have to get with you and you can tell me how you incorporate that for certain users and only in the message. :)
Sweet Cheeks
01-10-2003, 07:05 PM
Sure I will have to get all the different things together, along with the credits to everyone who helped me :cool:
Boofo
01-10-2003, 07:53 PM
I'll be looking forward to it. Thank you. ;)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.