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 |
#32
|
||||
|
||||
I can't believe it has changed that much where it won't work in 3.0.1. Carefully go through the hack again and make sure you didn't miss anything. Then, let me know and we will see what needs to be done to get it working for you.
|
#33
|
|||
|
|||
Boofo, I think people are having problems with 3.0.1 because the hacks templates are out of date.
I added the lines needed into the default vB 3.0.1 BBcode templates so it will work with the latest versions. I have tested this on an vB 3.0.1 board. 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"><if condition="$bbuserinfo['userid']">$code<else />$vbphrase[bf2_block_code]</if></pre> </div> 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> 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 --><if condition="$bbuserinfo['userid']">$code<else />$vbphrase[bf2_block_php]</if><!-- php buffer end --> </code> </div> </div> Code:
<div style="margin:20px; margin-top:5px; <if condition="$show['iewidthfix']">width: 100%;</if>"> <div class="smallfont" style="margin-bottom:2px">$vbphrase[quote]:</div> <table cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="100%"> <if condition="$bbuserinfo['userid']"> <tr> <td class="alt2" style="border:1px inset"> <if condition="$show['username']"> <div><phrase 1="$username">$vbphrase[originally_posted_by_x]</phrase></div> <div style="font-style:italic">$message</div> <else /> $message </if> <else />$vbphrase[bf2_block_quote] </if> </td> </tr> </table> </div> Also, could you provide a way to make it so guests can't see the code in the threads archive? |
#34
|
|||
|
|||
Did you different change in functions_bbcodeparse.php ? Because my board still not work.
|
#35
|
|||
|
|||
Quote:
|
#36
|
||||
|
||||
Quote:
|
#37
|
|||
|
|||
How can i use it with the url-tag? I would like to make Links hidden to guests.
|
#38
|
|||
|
|||
Quote:
Heres the .txt you requested |
#39
|
||||
|
||||
what about bbcode for links?
IE: [url] tags? |
#40
|
|||
|
|||
Quote:
|
#41
|
||||
|
||||
This would hide the links to unreg'd?
Code:
<if condition="$bbuserinfo[userid]"> <if condition="$show['url_bbcode']"> <td><div class="imagebutton" id="cmd_wrap0_code"><img src="$stylevar[imgdir_editor]/code.gif" alt="$vbphrase[wrap_code_tags]" width="21" height="20" /></div></td> </if> <else /> <td><img src="$stylevar[imgdir_editor]/mustreg.gif" alt="Must be registered to use these BB codes" width="92" height="20" /></td> </if> |
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|