The Arcive of vBulletin Modifications Site. |
|
Admin CP Button Details »»
|
|||||||||||||||||||||||||
I have a question, I don't know PHP so I need to know how to make my Admin CP button invisible to members. Also I want to know how to make my music page on my website only to where Members can access it.
Show Your Support
|
|||||||||||||||||||||||||
| Comments |
|
#2
|
||||
|
||||
|
For your admin button to be invisible do this:
Insert this into the php include area in your style. Code:
//Admin Button only for Admin
if ($bbuserinfo['usergroupid'] == 6) {
//i am admin
$admin_only = "YOUR BUTTON AND LINK HERE";
} else {
//they're not admin
$admin_only = "";
}
|
|
#3
|
||||
|
||||
|
This appeared at the top on my forumhome page
Parse error: parse error in /usr/local/psa/home/vhosts/fflounge.com/httpdocs/board/global.php(302) : eval()'d code on line 10 |
|
#4
|
||||
|
||||
|
you probably did it like this (asuming your using a image):
PHP Code:
PHP Code:
|
|
#5
|
||||
|
||||
|
Exactly as scsa20 said, Vincent. For php every time there is a quotation in the code you need a \ before it.
Except the initial quotes surrounding your code of course. |
|
#6
|
||||
|
||||
|
Thanks, I'll try that in a minute, could I use that for like a non-vb page so that guests can't see that page O_o
|
|
#8
|
||||
|
||||
|
The above way does the exact same thing minus hacking your files. This one is done via templates.
|
![]() |
|
|