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 |
#62
|
||||
|
||||
Hi Boofo
I have a question, if I also want to block the Spoiler Code, how do I do it with this Hack or I have to do something else? See Ya |
#63
|
||||
|
||||
this hack is not working for me.
i am using vb 3.0 I just want to disable the php code tag and rest leave enabled. i have just modified the bbcode_php template and left the rest as it is. its not working for me. where can be the prob ?? this is the test thread. http://207.58.143.178/forums/showthr...2928#post32928 and also the doubleclick php box to copy to clipboard not working. would prefer to remove that. is there any way to change this hack and enable it for displaying contents in this code tags for users with 20+ posts only. Thnx. Sandy... |
#64
|
||||
|
||||
Quote:
need some help thnx. |
#65
|
||||
|
||||
It looks to me like you forgot to edit the includes/functions_bbcodeparse.php. Post the bbcode_php template here and let me see it. We'll get you going.
|
#66
|
||||
|
||||
are the templates upto date yet?
|
#67
|
||||
|
||||
Quote:
|
#68
|
||||
|
||||
nice one, i was worried as i removed the javascript from the boxes then thought, darn these might be the old templates lol
|
#69
|
||||
|
||||
Quote:
thnx for ur time this is the template i am using vb 3.0 and want to hide the code only for only for PHP tag. can u possibly also tell me, to make this work only for users who have more then 25 posts. only users above 25 posts should be able to read the content under hidden tags Code:
<div style="margin:20px; margin-top:5px"> <div class="smallfont" style="margin-bottom:2px"> <table cellpadding="0" cellspacing="0" border="0" width="$stylevar[codeblockwidth]"> <tr> <if condition="$bbuserinfo['userid']"> <td class="smallfont" align="left" nowrap="nowrap"> $vbphrase[php_code]: </td> <td class="smallfont" align="right" nowrap="nowrap"> (Double-click PHP box to copy code to clipboard) </td> </tr> </table> </div> <a ondblclick='javascript:window.clipboardData.setData("Text", this.innerText); alert("PHP code copied to the clipboard. You can paste it now.");'><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></a> <else /> <td class="smallfont" align="left"> $vbphrase[php_code]: </td> </tr> </table> </div> <div class="alt2" style="margin:0px; padding:$stylevar[cellpadding]px; border:1px inset"> <code style="white-space:nowrap"> <!-- php buffer start -->$vbphrase[bf2_block_php]<!-- php buffer end --> </code> </div> </if> </div> Sandy... |
#70
|
||||
|
||||
want to be using the vb3 tabless code instead?
bbcode_code HTML 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"> <if condition="$bbuserinfo['userid']">$code<else />$vbphrase[bf2_block_code]</if> </pre> </div> 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"> <if condition="$bbuserinfo['userid']">$code<else />$vbphrase[bf2_block_html]</if> </pre> </div> HTML Code:
<div style="margin:20px; margin-top:5px"> <div class="smallfont" style="margin-bottom:2px"> $vbphrase[php_code]: </div> <pre class="alt2" style="margin:0px; padding:$stylevar[cellpadding]px; border:1px inset; width:$stylevar[codeblockwidth]; height:{$blockheight}px; overflow:auto"> <if condition="$bbuserinfo['userid']"><!-- php buffer start -->$code<!-- php buffer end --><else /><!-- php buffer start -->$vbphrase[bf2_block_php]<!-- php buffer end --></if> </pre> </div> |
#71
|
|||
|
|||
HTML code still viewing.....How can I hide it ?
|
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|