The Arcive of vBulletin Modifications Site. |
|
Restrict [code] and [php] to registered members only Details »»
|
|||||||||||||||||||||||||||
|
Restrict [code] and [php] to registered members only
Developer Last Online: Nov 2023
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 !- Dean Show Your Support
|
|||||||||||||||||||||||||||
| Comments |
|
#2
|
||||
|
||||
|
nice job ^^ now fix the bug
|
|
#3
|
||||
|
||||
|
Already did it
^^
|
|
#4
|
||||
|
||||
|
Mist does it again
|
|
#5
|
||||
|
||||
|
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? |
|
#6
|
|||
|
|||
|
kind of like vb.org not displaying code boxes to unliscensed members?
|
|
#7
|
||||
|
||||
|
nice and useful mist, thanks
|
|
#8
|
|||
|
|||
|
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? |
|
#9
|
||||
|
||||
|
nice hack Dean ^^
no fix the bugs of showing codes in search as posts and quoting msgs ![]() if you done so, i'll give you the vb2 code we used at vb.org
|
|
#10
|
|||
|
|||
|
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
|
![]() |
|
|