![]() |
Restrict [code] and [php] to registered members only
Hi,
Long time since I release a hack and this was only a little one I brushed up. Still useful nevertheless. What does it do? It allows you to restrict the content of the [ php] and [ code] tags to registered members only. If the user is not registered then they get a 'Sorry you must be registered to view this code.' displayed in the boxes :) Instructions: In admin/functions.php find: PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
In search.php find: PHP Code:
PHP Code:
Enjoy :D! - Dean |
nice job ^^ now fix the bug
|
Already did it ;) ^^
|
Mist does it again
|
Mist - wow.
But have you done it working, so you we can use real workin php code in vB 2 templates? No hack worked for me. How is it with you? |
kind of like vb.org not displaying code boxes to unliscensed members? :)
|
nice and useful mist, thanks
|
Mist, about a hack extremely similar to this?
Making the php & code tags viewable in only certain forums and not viewable in the rest. Is this possible? |
nice hack Dean ^^
no fix the bugs of showing codes in search as posts and quoting msgs :p if you done so, i'll give you the vb2 code we used at vb.org ;) |
Weird issue, null, the owner of the board I am Admin of installed this and it removed the usernames from the postbit. We are using vb 2.3.2 :(
|
All times are GMT. The time now is 11:20 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|