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

  #16  
Old 28 Feb 2004, 22:07
cindyd cindyd is offline
 
Join Date: Sep 2002
Boofo, can this hack be used to block replies to a post? I want to have cetain user groups see the first question but not the answers. The user group that has paid for membership will be able to see the answers.

So I need to block text in the replies. I don't have any code to block just text. Will this work on 2.3.0?
Reply With Quote
  #17  
Old 28 Feb 2004, 22:15
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Real name: Rob
This can be modified to work on vB2 fairly easily. As far as blocking text within a message, yes it will. To block part of the text in a message, as it it, no it won't. Again, it can be modified to do so fairly easily I think. Does that help answer your question? If not, pm me with exactly wat you want this to do and we will see about setting it up for you to do that.
Reply With Quote
  #18  
Old 02 Mar 2004, 02:13
coldpride coldpride is offline
 
Join Date: Apr 2003
this works good on vb rc4.. Useful hack for coder forums.
Reply With Quote
  #19  
Old 02 Mar 2004, 02:24
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Real name: Rob
I have an update in the works.
Reply With Quote
  #20  
Old 20 Apr 2004, 23:45
Bulent Tekcan Bulent Tekcan is offline
 
Join Date: Oct 2003
Not work in 3.0.1.....ANy suggestion ?
Reply With Quote
  #21  
Old 21 Apr 2004, 01:32
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Real name: Rob
I'm not running 3.01 yet. What code is different?
Reply With Quote
  #22  
Old 21 Apr 2004, 11:10
Bulent Tekcan Bulent Tekcan is offline
 
Join Date: Oct 2003
I don't know.But when I post any code,unregistered members still see...
Reply With Quote
  #23  
Old 21 Apr 2004, 11:35
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Real name: Rob
Then you must have missed a step somewhere.
Reply With Quote
  #24  
Old 21 Apr 2004, 12:49
Bulent Tekcan Bulent Tekcan is offline
 
Join Date: Oct 2003
I think only templates is different.

This is original temp.....

bbcode_code

[CODE]<div style="margin:20px; margin-top:5px">
<div class="smallfont" style="margin-bottom:2px">$vbphrase
Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


bbcode_html


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


bbcode_php


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Reply With Quote
  #25  
Old 22 Apr 2004, 09:27
Bulent Tekcan Bulent Tekcan is offline
 
Join Date: Oct 2003
Any suggestion ?
Reply With Quote
  #26  
Old 22 Apr 2004, 10:15
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Real name: Rob
All you need to do is add the code I have in the hack around this part of the template:

$code
Reply With Quote
  #27  
Old 22 Apr 2004, 10:28
Beermonster Beermonster is offline
 
Join Date: Dec 2003
Real name: John
Can this be changed so that only above a certain user group can see it, not just unregistered.
on my forum once you have registered you still have to make at least 10 posts before becoming a full member with all it's privileges. as I was fed up of people registering to PM a member with a reply

/me clicks install
__________________
Reply With Quote
  #28  
Old 22 Apr 2004, 11:03
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Real name: Rob
Originally Posted by Beermonster
Can this be changed so that only above a certain user group can see it, not just unregistered.
on my forum once you have registered you still have to make at least 10 posts before becoming a full member with all it's privileges. as I was fed up of people registering to PM a member with a reply

* Beermonster clicks install
Sure. Just change this in the templates for this hack:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

to whatever you want it to be. You could do this:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

and so on.
Reply With Quote
  #29  
Old 22 Apr 2004, 11:29
Beermonster Beermonster is offline
 
Join Date: Dec 2003
Real name: John
Thanks
__________________
Reply With Quote
  #30  
Old 22 Apr 2004, 16:07
Bulent Tekcan Bulent Tekcan is offline
 
Join Date: Oct 2003
Still not working my board,anyone test in 3.0.1 ?

Realy great hack but I cannot use
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 12:39.

Layout Options | Width: Wide Color: