Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
vB3 Block PHP, CODE and HTML from unregistered users Details »
vB3 Block PHP, CODE and HTML from unregistered users
Mod Version: 1.00, by Boofo (R.I.P.) Boofo is offline
Developer Last Online: Jun 2012 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 3.0.0 Rating: (2 votes - 4.50 average) Installs: 42
Released: 04 Jan 2004 Last Update: Never Downloads: 81
Not Supported  

vB3 Block PHP, CODE and HTML from unregistered visitors v1.1
(By Boofo)

What does this hack do?
This will block all php, code and html code from all unregistered users. Any code bewteen 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 the code 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 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 add the quote bypass below).

Version Information:
Version 1.0 --Initial release
Version 1.1 --Updated to now work in the archive. Also added the ability to double-click the code box to copy the code to the clipboard. Only works in IE so far. Will be adding the double-clicking ability for other browers as I find what will work with them.

Installation overview:
Files to edit: (2)
--includes/functions_bbcodeparse.php
--archive/index.php
Templates to edit: 3 (Optional: 2)
--bbcode_code
--bbcode_html
--bbcode_php
(Optional)
--bbcode_sql
--bbcode_quote
Phrases to add: 3 (Optional: 2)
--bf2_block_code
--bf2_block_html
--bf2_block_php
(Optional)
--bf2_sql_code
--bbcode_quote

If you find this hack useful, please click the install button.

Download Now

Only licensed members can download files, Click Here for more information.

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • If you like this modification support the author by donating.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
Miscellaneous Hacks Block PHP, CODE, HTML and QUOTES from Guests for vB3.7 Boofo Modification Graveyard 127 28 Jun 2008 15:28

Comments
  #2  
Old 04 Jan 2004, 14:32
Dean C's Avatar
Dean C Dean C is offline
 
Join Date: Jan 2002
Real name: Dean Clatworthy
Hehe you beat me to porting it. Good to see you back again Bob
__________________
Dean Clatworthy - Web Developer/Designer
Reply With Quote
  #3  
Old 04 Jan 2004, 14:47
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Real name: Rob
I could never get this to work right before the Gamma. The template conditionals make it so easy now. Would have done it all that way except the global doesn't work in templates (at least I couldn't get it to work there).
Reply With Quote
  #4  
Old 04 Jan 2004, 17:35
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Real name: Rob
I run RC1 and it works fine for me. Go through the hack again and make sure you added the stuff to the file.
Reply With Quote
  #5  
Old 04 Jan 2004, 17:39
Koutaru's Avatar
Koutaru Koutaru is offline
 
Join Date: Feb 2003
Real name: Julie
Neat I'll definately try this one.
Reply With Quote
  #6  
Old 04 Jan 2004, 19:21
Chroder's Avatar
Chroder Chroder is offline
 
Join Date: Sep 2003
Real name: Christopher Nadeau
Ah, sweet stuff Boofo I'm ginna add this to my board too.

*install
Reply With Quote
  #7  
Old 04 Jan 2004, 19:27
cirisme cirisme is offline
 
Join Date: Jan 2003
Does this work with post caching?
__________________
Reply With Quote
  #8  
Old 04 Jan 2004, 19:56
Chroder's Avatar
Chroder Chroder is offline
 
Join Date: Sep 2003
Real name: Christopher Nadeau
Seems to work fine

Last edited by Chroder; 04 Jan 2004 at 20:11.
Reply With Quote
  #9  
Old 04 Jan 2004, 20:52
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Real name: Rob
Thank you, Chroder, for verifying that. I don't have post caching enabled but I thought it should work with it.

Don't forget the install button, guys.
Reply With Quote
  #10  
Old 04 Jan 2004, 21:02
MindTrix's Avatar
MindTrix MindTrix is offline
 
Join Date: Apr 2002
Real name: Liam Hawkins
Can this be edited for other bbcode? For example the spoiler one that was recently released, can it be edited along with this so that unregistered users cannot see it?
__________________
Hacks Made :
Store 3.0 Color Name Add On.
Last 5 Attachments On Forum Home
Rap Battle System -=RBS=-

Tutorials Made :
The Basics Of PHP For Beginners and The Basics Of PHP [Part 2]

Running away from that Thousand Post Mark
Reply With Quote
  #11  
Old 04 Jan 2004, 21:08
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Real name: Rob
I don't think this hack will work with that. Just do an if conditon for the bbuserinfo['userid'] before the spoiler in the postbit (if that's where it is, I haven't looked at the hack).
Reply With Quote
  #12  
Old 04 Jan 2004, 22:00
cirisme cirisme is offline
 
Join Date: Jan 2003
Cool. That surpises me considering how the templates, etc work... I tried something similar in b7 so things must have changed with gamma/rc1.

I will definately check it out
__________________
Reply With Quote
  #13  
Old 04 Jan 2004, 22:16
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Real name: Rob
Then click the button, my man!
Reply With Quote
  #14  
Old 07 Jan 2004, 13:21
Repec Repec is offline
 
Join Date: Oct 2002
Real name: Randell
very nice addition Boofo

/me does the infamous lick of the install button
Reply With Quote
  #15  
Old 19 Jan 2004, 06:40
Ronin Ronin is offline
 
Join Date: Dec 2003
Real name: JAson
Nice Job.. I'l be using this one as well! Thanks!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

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


New To Site? Need Help?

All times are GMT. The time now is 09:43.

Layout Options | Width: Wide Color: