vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Miscellaneous Hacks - Block PHP, CODE, HTML and QUOTES from Guests for vB3.7 (https://vborg.vbsupport.ru/showthread.php?t=178176)

Boofo 05-04-2008 10:00 PM

Block PHP, CODE, HTML and QUOTES from Guests for vB3.7
 
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.

projectego 05-05-2008 11:06 AM

[high]* projectego clicks install :)[/high]

Thanks!

Boofo 05-05-2008 11:09 AM

Let me know how it goes. I think I caught everything for it. Also, I will be adding links and images to block also here in the near future.

Barakat 05-05-2008 12:15 PM

thanks a lot

Kaleem 05-05-2008 12:18 PM

Looks good but cant u add more options like selecting which quotes should be included and which not.

Like Enable it for every quote Code, HTML, PHP.

Boofo 05-05-2008 12:25 PM

It was written to block the code from guests so they would be more inclined to register to unblock the code. You can disable quote blocking.

veenuisthebest 05-05-2008 12:26 PM

but sir, how does it differ from the inbuilt BB Code settings in vBulletin Options.. If i'm not mistaken.. php, html and code can be shown to specific usergroups from within vB. I think it only does not show custom messages.

but i'm unable to get it to work .. the code still shows up !! do I have to change Post's Cache Lifespan to 0 ??

Kaleem 05-05-2008 12:46 PM

Quote:

Originally Posted by Boofo (Post 1509213)
It was written to block the code from guests so they would be more inclined to register to unblock the code. You can disable quote blocking.

Yea it enables all the quote my suggestion was if u can add options to enable or disable on CODE, HTML, and PHP individually.

Boofo 05-05-2008 12:49 PM

Quote:

Originally Posted by veenuisthebest (Post 1509216)
but sir, how does it differ from the inbuilt BB Code settings in vBulletin Options.. If i'm not mistaken.. php, html and code can be shown to specific usergroups from within vB. I think it only does not show custom messages.

but i'm unable to get it to work .. the code still shows up !! do I have to change Post's Cache Lifespan to 0 ??

Yes.

Boofo 05-05-2008 12:51 PM

Quote:

Originally Posted by LightInClouds (Post 1509228)
Yea it enables all the quote my suggestion was if u can add options to enable or disable on CODE, HTML, and PHP individually.

That is something I may add later on but it wasn't added for the reason I stated, this is for guest blocking. And mainly for sites that use a lot of code.

veenuisthebest 05-05-2008 12:55 PM

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.

Boofo 05-05-2008 12:58 PM

Quote:

Originally Posted by veenuisthebest (Post 1509240)
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. ;)

veenuisthebest 05-05-2008 01:03 PM

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]

veenuisthebest 05-05-2008 01:16 PM

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

Boofo 05-05-2008 01:21 PM

Are you using IE?

veenuisthebest 05-05-2008 01:25 PM

no only firefox !!

veenuisthebest 05-05-2008 01:28 PM

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

file.php$session[sessionurl_q]

file.php?$session[sessionurl]

veenuisthebest 05-05-2008 01:32 PM

oh yess I see..

the code copy feature is working fine in IE

also ? instead of $ is working fine in both IE and firefox

Boofo 05-05-2008 01:32 PM

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.

veenuisthebest 05-06-2008 02:34 AM

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

i hope you'll soon add up feature to hide links as well.. :)

Goomzee 05-06-2008 04:00 AM

let me try

Icy 05-06-2008 04:43 AM

Not installed :rolleyes:

Boofo 05-06-2008 07:54 AM

Quote:

Originally Posted by Icy (Post 1510058)
Not installed :rolleyes:

This version is different than the one you have. I moved things around a bit.

shadowevil 05-06-2008 08:21 AM

it's a great mod but it only can run well on default exist tags bbcode of VBB, can't run well on tags bbcode which have editted, such as BBcode Manager mod (click here), You can update to next version for run well when use BBcode Manager

Boofo 05-06-2008 08:29 AM

That would be hard to do as it might be different for many forums. There are other hacks out there that also change the bbcode templates. It would be a little hard to stay up with all of them. Since the code's blocked for guests, it really doesn't matter if the edited templates are showing since they can see anything, anyway.

Icy 05-06-2008 09:14 AM

Quote:

Originally Posted by Boofo (Post 1510158)
This version is different than the one you have. I moved things around a bit.

So which one I should use?

-=Leb=- 05-06-2008 09:39 AM

Thx boofo for you awesome products <3

Boofo 05-06-2008 10:19 AM

Quote:

Originally Posted by Icy (Post 1510206)
So which one I should use?

The one posted here. Yours was a test version that I never heard back about. ;)

veenuisthebest 05-06-2008 02:10 PM

hello sir.. pleaseee add up the feature to hide links as well !!

Mike-D 05-08-2008 06:00 PM

That what I've been searched for a long time. Exactly what I need. Installed and works perfect as always, Bob :up: Thank you sooo much, Sir ;)

Boofo 05-08-2008 06:26 PM

You're welcome, sir. I am in the process of adding URL and IMG tag blocking, also. I have already added settings for the code block width in the forums and PM areas.

Mike-D 05-08-2008 06:59 PM

Perfect!!! Keep up to good work and your great ideas to share with us. Keep in touch, Bob ;) -Mike

DiverTree 05-11-2008 03:36 AM

Quote:

Originally Posted by Boofo (Post 1512941)
You're welcome, sir. I am in the process of adding URL and IMG tag blocking, also. I have already added settings for the code block width in the forums and PM areas.

that would be sweet.

Boofo 05-11-2008 03:44 AM

Already done. Just tweaking the reg-exes and doing the testing phase.

DiverTree 05-11-2008 01:19 PM

Quote:

Originally Posted by Boofo (Post 1515565)
Already done. Just tweaking the reg-exes and doing the testing phase.

patiently waiting. :)

neoxi 05-11-2008 08:15 PM

thanks

zikuta 05-14-2008 05:12 PM

Nice mod!!! It will be appreciated if you can choose what BBCodes you want to be blocked individually: PHP, CODE, HTML, CUSTOMIZED ONES, etc...

Regards!

Boofo 05-14-2008 05:22 PM

I thought of that but why would you want some code to be shown and other code not? There is a separate setting for blocking quotes.

zikuta 05-14-2008 05:53 PM

Boofo,

for example I create a custom BBCode called [MU], here my users enter the download links for MegaUpload, I just want that registered members can see those links and Guests show a custom message or picture inviting them to register.

Is that posible?

Regards!

veenuisthebest 05-14-2008 06:22 PM

Quote:

here my users enter the download links for MegaUpload
If its a link.. then he's already working on it !!


All times are GMT. The time now is 06:23 PM.

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.01265 seconds
  • Memory Usage 1,818KB
  • 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
  • (2)bbcode_code_printable
  • (10)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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