The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
vB3 Block PHP, CODE and HTML from unregistered users Details »» | |||||||||||||||||||||||||||
vB3 Block PHP, CODE and HTML from unregistered users
Developer Last Online: Jun 2012
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
|
Comments |
#22
|
||||
|
||||
I'm not running 3.01 yet. What code is different?
|
#23
|
|||
|
|||
I don't know.But when I post any code,unregistered members still see...
|
#24
|
||||
|
||||
Then you must have missed a step somewhere.
|
#25
|
|||
|
|||
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 Code:
:</div> <pre class="alt2" style="margin:0px; padding:$stylevar[cellpadding]px; border:1px inset; width:$stylevar[codeblockwidth]; height:{$blockheight}px; overflow:auto">$code</pre> </div> bbcode_html Code:
<div style="margin:20px; margin-top:5px"> <div class="smallfont" style="margin-bottom:2px">$vbphrase[html_code]:</div> <pre class="alt2" style="margin:0px; padding:$stylevar[cellpadding]px; border:1px inset; width:$stylevar[codeblockwidth]; height:{$blockheight}px; overflow:auto">$code</pre> </div> bbcode_php Code:
<div style="margin:20px; margin-top:5px"> <div class="smallfont" style="margin-bottom:2px">$vbphrase[php_code]:</div> <div class="alt2" style="margin:0px; padding:$stylevar[cellpadding]px; border:1px inset; width:$stylevar[codeblockwidth]; height:{$blockheight}px; overflow:auto"> <code style="white-space:nowrap"> <!-- php buffer start -->$code<!-- php buffer end --> </code> </div> </div> |
#26
|
|||
|
|||
Any suggestion ?
|
#27
|
||||
|
||||
All you need to do is add the code I have in the hack around this part of the template:
$code |
#28
|
|||
|
|||
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 [high]* Beermonster clicks install [/high] |
#29
|
||||
|
||||
Quote:
HTML Code:
<if condition="$bbuserinfo['userid']">
HTML Code:
<if condition="$bbuserinfo['usergroupid']==6 OR $bbuserinfo['usergroupid']==5">
|
#30
|
|||
|
|||
Thanks
|
#31
|
|||
|
|||
Still not working my board,anyone test in 3.0.1 ?
Realy great hack but I cannot use |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|