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
  #72  
Old 01-16-2005, 12:56 PM
Ruffneck Ruffneck is offline
 
Join Date: Oct 2002
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can i use this hack also only for the code: [URL] ?
Reply With Quote
  #73  
Old 01-16-2005, 01:52 PM
Ruffneck Ruffneck is offline
 
Join Date: Oct 2002
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Other question can i use this hack only on the forum id: 36 ?
Reply With Quote
  #74  
Old 01-16-2005, 05:54 PM
ogetbilo ogetbilo is offline
 
Join Date: Mar 2004
Posts: 63
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is this working on 3.0.5 ?
Reply With Quote
  #75  
Old 02-11-2005, 01:57 PM
H2k H2k is offline
 
Join Date: Apr 2004
Posts: 177
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ogetbilo
Is this working on 3.0.5 ?
For some reson this mod dose not work with me i use 3.0.6 and ihave many mod and hack installing in my board..

i try this one and it dont work .. the php and html and code.. is stillshowing .. any idea why this ..

i know that u are going to ask me .. i do not modify the php code.. in the bbcode.. but this code i have use it in 3.0..5 and it was work then after upgtade to the new v.. of vb 3.0.6 and i installing alot of mod hack then i try to install this one .. and it dont work with me .. everything is howing.

i have installing

ushop
Warn system
/you bbcode
and there is many other as well so i dont no if this is the reson or not..

thankyou
Reply With Quote
  #76  
Old 02-13-2005, 05:07 AM
H2k H2k is offline
 
Join Date: Apr 2004
Posts: 177
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by H2k
For some reson this mod dose not work with me i use 3.0.6 and ihave many mod and hack installing in my board..

i try this one and it dont work .. the php and html and code.. is stillshowing .. any idea why this ..

i know that u are going to ask me .. i do not modify the php code.. in the bbcode.. but this code i have use it in 3.0..5 and it was work then after upgtade to the new v.. of vb 3.0.6 and i installing alot of mod hack then i try to install this one .. and it dont work with me .. everything is howing.

i have installing

ushop
Warn system
/you bbcode
and there is many other as well so i dont no if this is the reson or not..

thankyou
Something is really wrong i have install this hack in the localhost.. and it work great.

when i upload the file .. it dont work .. i can view all the code php or html etc..

and know i dont no what wrong .. even i'am login . wiht my username. and it tel me unregisiter user can't view this .. anyidea about this erro r?

thankyou
Reply With Quote
  #77  
Old 03-03-2005, 02:58 PM
arsec arsec is offline
 
Join Date: Oct 2004
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

how can i get it to work in 3.0.7???
Reply With Quote
  #78  
Old 04-18-2005, 11:28 AM
T3MEDIA T3MEDIA is offline
 
Join Date: Dec 2004
Posts: 944
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I find sometimes the code gets blocked even if your logged in. SOME TIMES not all the time.
Reply With Quote
  #79  
Old 07-21-2005, 12:50 AM
King Kovifor's Avatar
King Kovifor King Kovifor is offline
 
Join Date: Nov 2004
Location: PA
Posts: 3,872
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I got this error:

Quote:
Parse error: parse error, unexpected T_STRING in /home/mytho4/public_html/vbrenegades/includes/functions_bbcodeparse.php on line 55
Line 55 is this:

PHP Code:
    $bbcodes = array 
Unless I counted Wrong.

EDIT: About to do a revert so that the board is viewable and I'll redo the hack tomorrow.
Reply With Quote
  #80  
Old 10-02-2005, 12:12 AM
Crazy Serb Crazy Serb is offline
 
Join Date: Mar 2005
Posts: 119
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

is there a new version of this for vbulletin 3.5?!! pleasssseeee!!!
Reply With Quote
  #81  
Old 11-12-2005, 10:06 PM
vakvak vakvak is offline
 
Join Date: Mar 2005
Location: T?rkiye
Posts: 87
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks..
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 02:21 PM.


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.06104 seconds
  • Memory Usage 2,309KB
  • 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)bbcode_php
  • (3)bbcode_quote
  • (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