Go Back   vb.org Archive > vBulletin Modifications > Archive > Modification Graveyard
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Block PHP, CODE, HTML and QUOTES from Guests for vB3.7 Details »»
Block PHP, CODE, HTML and QUOTES from Guests for vB3.7
Version: 1.0.2, by Boofo Boofo is offline
Developer Last Online: Jun 2012 Show Printable Version Email this Page

Category: Miscellaneous Hacks - Version: 3.7.0 Rating:
Released: 05-04-2008 Last Update: 05-04-2008 Installs: 52
Auto-Templates
 
No support by the author.

Block PHP, CODE, HTML and QUOTES from Guests for vB3.7
Version 1.0.2
(By Boofo)

What does this product do?
This is a long-overdue update of my block code hack for vB3.0, now as a product, with no file or template edits. This will block all php, code and html code from all unregistered users. Any code between those tags will be replaced will a line telling them they are not allowed to view the code and to please register. (You can change the messages to whatever you like.) Included is also an option for the QUOTE boxes. I don't use the QUOTE boxes bypass on my board, but I have the option ready in case someone decides to quote code, php or html code to try and bypass this hack. Anything between the code, php or html tags will be parsed out, even quote tags, as long as it is between one of the other tags within the quote itself. If someone just puts QUOTE tags around the code itself, then it will show as normal (unless you enable the quote option). It works in the archive, as well as the showpost and printable post. This product should work on prior versions of vB as the hooks that are used are common hooks. It also has the ability to copy the contents of the boxes to the clipboard. This works fine is IE and Opera. To enable the javascript Copy to Clipboard in Firefox or Mozilla, please read below:

"By default these javascript Copy to Clipboard buttons work perfectly on Internet Explorer and Opera browser. If Firefox or Mozilla is used, it is possible to select text and press Ctrl+C (or choose Copy from Edit menu). To enable these javascript Copy to Clipboard buttons in Firefox or Mozilla follow the guide."

For more...

http://www.febooti.com/support/websi...clipboard.html

Version Information:
Version 1.0.1 --Initial release for vB3.7
Version 1.0.2 --Fixed register.php links

Installation overview:
Templates to edit: 0
Products to Install: (1)

Installation Instructions:
1. Go to your Admin CP
Scroll down to 'Plugin System'
Click 'Manage Products'
Click 'Add/Import Product'
Click the 'Browse' button, and locate the product-boofo_bbcode.xml file on your computer

2. Go to your Admin CP
Go to your Admin CP -> vBulletin Options -> Boofo's Enhanced BBCode for Guests and set the following option:
Disable QUOTES for Guests -> Do you want to disable the viewing of quotes in messages for guests?

NOTE: The default setting is NO, which enables the viewing of QUOTES to guests.

Done!
Enjoy!

NOTE: If you do not click install, you do not need support.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 05-05-2008, 12:55 PM
veenuisthebest's Avatar
veenuisthebest veenuisthebest is offline
 
Join Date: Mar 2008
Location: India
Posts: 1,416
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

woww.. this works perfect for me !! without setting Post's cache lifespan to 0.

one thing sir..

Code:
Guests are not allowed to view code. To enable the
viewing of code, please click 'here' to register.
the link to here is pointing to register.php$session%5Bsessionurl_q%5D instead of register.php?session%5Bsessionurl_q%5D

thank you.
Reply With Quote
  #13  
Old 05-05-2008, 12:58 PM
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 veenuisthebest View Post
woww.. this works perfect for me !! without setting Post's cache lifespan to 0.

one thing sir..

Code:
Guests are not allowed to view code. To enable the
viewing of code, please click 'here' to register.
the link to here is pointing to register.php$session%5Bsessionurl_q%5D instead of register.php?session%5Bsessionurl_q%5D

thank you.
Looks the same to me. It takes you to the register page.
Reply With Quote
  #14  
Old 05-05-2008, 01:03 PM
veenuisthebest's Avatar
veenuisthebest veenuisthebest is offline
 
Join Date: Mar 2008
Location: India
Posts: 1,416
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i think it should be ? instead of $ , coz its taking me to the Page not found error !!

register.php$session[sessionurl_q]

register.php?session[sessionurl_q]
Reply With Quote
  #15  
Old 05-05-2008, 01:16 PM
veenuisthebest's Avatar
veenuisthebest veenuisthebest is offline
 
Join Date: Mar 2008
Location: India
Posts: 1,416
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i have corrected it in the .XML..

also.. this ain't working for me ..
(Double-click CODE box to copy code to clipboard)

no alert pops up neither it gets copied !!

thank you
Reply With Quote
  #16  
Old 05-05-2008, 01:21 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Are you using IE?
Reply With Quote
  #17  
Old 05-05-2008, 01:25 PM
veenuisthebest's Avatar
veenuisthebest veenuisthebest is offline
 
Join Date: Mar 2008
Location: India
Posts: 1,416
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

no only firefox !!
Reply With Quote
  #18  
Old 05-05-2008, 01:28 PM
veenuisthebest's Avatar
veenuisthebest veenuisthebest is offline
 
Join Date: Mar 2008
Location: India
Posts: 1,416
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

by the way, can you plz tell me sir, whats the difference between

file.php$session[sessionurl_q]

file.php?$session[sessionurl]
Reply With Quote
  #19  
Old 05-05-2008, 01:32 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is what some of the vb templates use.

register.php$session[sessionurl_q]

I am fixing it now. The reason your code doesn't click is it is only for IE until I can find code that will work with other browsers.
Reply With Quote
  #20  
Old 05-05-2008, 01:32 PM
veenuisthebest's Avatar
veenuisthebest veenuisthebest is offline
 
Join Date: Mar 2008
Location: India
Posts: 1,416
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

oh yess I see..

the code copy feature is working fine in IE

also ? instead of $ is working fine in both IE and firefox
Reply With Quote
  #21  
Old 05-06-2008, 02:34 AM
veenuisthebest's Avatar
veenuisthebest veenuisthebest is offline
 
Join Date: Mar 2008
Location: India
Posts: 1,416
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks for this cool mod sir.. really useful for me !!

i hope you'll soon add up feature to hide links as well..
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: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.04778 seconds
  • Memory Usage 2,311KB
  • Queries Executed 25 (?)
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
  • (2)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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