[Fixed] Link issue on index

This add-on will allow you to give "moderators" access to manage users, and theire permissions, admin accounts are protected

Moderator: Moderators

Forum rules
The content in this forum is dated Dec. 21 2005 and can be used as Archive only. This Forum is LOCKED and READ ONLY !

[Fixed] Link issue on index

Postby jay007 on Mon 06. Oct, 2003 22:34

Hi,

I just installed the MOD but now on the index page the "go to admin control panel" link is displayed even before anyone logs in...And there's only one line to change :lol: (i'm using version 2.06 is that the problem?)

Anyways, I need help here cause all I did was that:

Code: Select all
#
#-----[ OPEN ]------------------------------------------
#
includes/page_tail

#
#-----[ FIND ]------------------------------------------
#
$admin_link = ( $userdata['user_level'] == ADMIN ) ? '<a href="admin/index.' . $phpEx . '?sid=' . $userdata['session_id'] . '">' . $lang['Admin_panel'] . '</a><br /><br />' : '';

#
#-----[ REPLACE BY ]------------------------------------------
#

$admin_link = ( $userdata['user_level'] == ADMIN ) ? '<a href="admin/index.' . $phpEx . '?sid=' . $userdata['session_id'] . '">' . $lang['Admin_panel'] . '</a><br /><br />' : (( $userdata['user_level'] == MOD ) ? '<a href="modcp/index.' . $phpEx . '?sid=' . $userdata['session_id'] . '">' . $lang['Mod_CP'] . '</a><br /><br />' : '');
jay007
Poster
Poster
 
Posts: 9
Joined: Wed 01. Oct, 2003 09:05

Re: Link issue on index

Postby kooky on Mon 06. Oct, 2003 22:51

jay007 wrote:(i'm using version 2.06 is that the problem?)

No,
all users report to me it works on 2.0.6, i will update it soon to 2.0.6 (to be sure)

Are you sure simple users can view the admin link "go to ACP" ?
very strange

Do you have other mod installed ? like Super Mod, etc... ?

i assumed the how to is correct for 2.0.5 and 2.0.6, and will work
ADMIN -> "Go to ACP"
MOD -> "Go to Mod CP"
Users -> "nothing"
kooky
brilliant supporter
 
Posts: 1329
Joined: Tue 31. Dec, 2002 17:52
Location: Au pays des rêves

Postby jay007 on Mon 06. Oct, 2003 22:55

Never mind......I repasted the whole thing and now it seems to be find...Might have been the semi colon at the end...Thanks anyway :wink:

The easiest things are the hardest to get! :P
jay007
Poster
Poster
 
Posts: 9
Joined: Wed 01. Oct, 2003 09:05


Return to Moderator CP [2.0.17/EM]

Who is online

Users browsing this forum: No registered users and 1 guest

cron