Extra Options for ROOT Admins

Forum
Last Post
Threads / Messages

Ashje

Member
Member
Joined
Jan 17, 2009
Messages
179
Points
0
Mysidian Dollar
6,799
On the accounts page I want ROOT Admins to have a link that gives them access to the admin.php page. I have this:
PHP:
if($usersgroup == 1) and ($act == ""){

// Group 1, Root Admins

$article_title = $loggedinname."'s Account";
$article_content = $lang_account_manage."<br><br>
<b><u>Account Settings:</u></b><br><br>
<a href='myadopts.php'>Manage Adoptables</a><br>
<a href='profile.php?user=".$loggedinname."'>View Profile</a><br>
<a href='account.php?act=changeemail'>Change Email Address</a><br>
<a href='account.php?act=changepass'>Change Password</a><br>
<a href='account.php?act=changesettings'>Change Settings and Profile Info</a><br>
<a href='admin.php'>Go to the ACP</a>";
}
else if($act == ""){

// No action specified

$article_title = $loggedinname."'s Account";
$article_content = $lang_account_manage."<br><br>
<b><u>Account Settings:</u></b><br><br>
<a href='myadopts.php'>Manage Adoptables</a><br>
<a href='profile.php?user=".$loggedinname."'>View Profile</a><br>
<a href='account.php?act=changeemail'>Change Email Address</a><br>
<a href='account.php?act=changepass'>Change Password</a><br>
<a href='account.php?act=changesettings'>Change Settings and Profile Info</a>";

}

But it's giving me a:
Code:
Parse error: syntax error, unexpected T_LOGICAL_AND in /home/------/public_html/account.php on line 77

Can someone help me with this please?
 
the error is in the file account.php which we cant see (unless thats just a part of it)

can you either show us all of account.php or line 77 76 and 78?
 
-_-"
The error is the "and" here:
PHP:
if($usersgroup == 1) and ($act == ""){
I know that myself. I just want to know what I can change that to which will have the same effect but without the error.
 
I put mine in my Sidebar function, that way it will be accesible anywhere on the site.
I also put one in the Footer, but thats there for my forum =/

Which reminds, my next forum update will be MUCH, MUCH bigger then the currently released edition.
Thus, the Premium Member Forum that is out right now, will be released to the Non Premium Members. But currently I am not working on the coding, as I need to focus my thoughts to school, which is almost, kinda over =/
 

Similar threads

Users who are viewing this thread

  • Forum Contains New Posts
  • Forum Contains No New Posts

Forum statistics

Threads
4,277
Messages
33,118
Members
1,602
Latest member
BerrieMilk
BETA

Latest Threads

Top