Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
vB3 Block PHP, CODE and HTML from unregistered users Details »»
vB3 Block PHP, CODE and HTML from unregistered users
Version: 1.00, by Boofo Boofo is offline
Developer Last Online: Jun 2012 Show Printable Version Email this Page

Version: 3.0.0 Rating:
Released: 01-03-2004 Last Update: Never Installs: 42
 
No support by the author.

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.

Show Your Support

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

Comments
  #12  
Old 01-04-2004, 07:08 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
  #13  
Old 01-04-2004, 08:00 PM
cirisme cirisme is offline
 
Join Date: Jan 2003
Posts: 136
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
  #14  
Old 01-04-2004, 08:16 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Then click the button, my man!
Reply With Quote
  #15  
Old 01-07-2004, 11:21 AM
Repec Repec is offline
 
Join Date: Oct 2002
Location: Holland
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

very nice addition Boofo

[high]* Repec does the infamous lick of the install button [/high]
Reply With Quote
  #16  
Old 01-19-2004, 04:40 AM
Ronin Ronin is offline
 
Join Date: Dec 2003
Location: Calgary
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice Job.. I'l be using this one as well! Thanks!
Reply With Quote
  #17  
Old 02-28-2004, 08:07 PM
cindyd cindyd is offline
 
Join Date: Sep 2002
Posts: 157
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
  #18  
Old 02-28-2004, 08:15 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 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
  #19  
Old 03-02-2004, 12:13 AM
coldpride coldpride is offline
 
Join Date: Apr 2003
Location: USA
Posts: 55
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

this works good on vb rc4.. Useful hack for coder forums.
Reply With Quote
  #20  
Old 03-02-2004, 12:24 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have an update in the works.
Reply With Quote
  #21  
Old 04-20-2004, 09:45 PM
Bulent Tekcan Bulent Tekcan is offline
 
Join Date: Oct 2003
Location: TURKEY - Istanbul
Posts: 437
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Not work in 3.0.1.....ANy suggestion ?
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 09:05 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.06870 seconds
  • Memory Usage 2,302KB
  • 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
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (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