Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 01-07-2003, 09:06 PM
Sweet Cheeks's Avatar
Sweet Cheeks Sweet Cheeks is offline
 
Join Date: Mar 2002
Location: Carson City, Nevada
Posts: 173
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default No text select?

IfI'm not allowed to post code from another site, please accept my apologies and delete this aranoid:

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

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
Reply With Quote
  #2  
Old 01-07-2003, 10:26 PM
DrkFusion's Avatar
DrkFusion DrkFusion is offline
 
Join Date: Nov 2001
Posts: 1,926
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #3  
Old 01-07-2003, 10:47 PM
NTLDR's Avatar
NTLDR NTLDR is offline
Coder
 
Join Date: Apr 2002
Location: Bristol, UK
Posts: 3,644
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That scripts pointless IMHO, there just to easy to disable.
Reply With Quote
  #4  
Old 01-07-2003, 10:50 PM
Sweet Cheeks's Avatar
Sweet Cheeks Sweet Cheeks is offline
 
Join Date: Mar 2002
Location: Carson City, Nevada
Posts: 173
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #5  
Old 01-07-2003, 10:56 PM
NTLDR's Avatar
NTLDR NTLDR is offline
Coder
 
Join Date: Apr 2002
Location: Bristol, UK
Posts: 3,644
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #6  
Old 01-07-2003, 11:06 PM
Sweet Cheeks's Avatar
Sweet Cheeks Sweet Cheeks is offline
 
Join Date: Mar 2002
Location: Carson City, Nevada
Posts: 173
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Very cool, I will try that and let you know, thanks a bunch :smoke:
Reply With Quote
  #7  
Old 01-07-2003, 11:11 PM
DrkFusion's Avatar
DrkFusion DrkFusion is offline
 
Join Date: Nov 2001
Posts: 1,926
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
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
Reply With Quote
  #8  
Old 01-08-2003, 05:44 AM
Sweet Cheeks's Avatar
Sweet Cheeks Sweet Cheeks is offline
 
Join Date: Mar 2002
Location: Carson City, Nevada
Posts: 173
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for your help , it works, too awesome
Reply With Quote
  #9  
Old 01-08-2003, 05:53 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

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
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.
Reply With Quote
  #10  
Old 01-08-2003, 04:47 PM
Sweet Cheeks's Avatar
Sweet Cheeks Sweet Cheeks is offline
 
Join Date: Mar 2002
Location: Carson City, Nevada
Posts: 173
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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 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
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 08:51 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05088 seconds
  • Memory Usage 2,268KB
  • Queries Executed 11 (?)
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
  • (4)bbcode_php
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)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