PDA

View Full Version : admincplink & modcplink where are they set?


PanelCrafters
08-02-2005, 09:13 PM
I've been looking all over, and I can't find where Admincplink & Modcplink are set. I'd rather unset them, than modify the code. But, if I must, so be it. Any ideas?

TIA,
....jc

Andreas
08-02-2005, 09:18 PM
In config.php

PanelCrafters
08-02-2005, 09:28 PM
In config.php
Kirby,
Thanks for the tip, but unfortunately I don't see anything in it that will do the trick. There is an option for changing the directories for these guys, but nothing else.
Are these something that must be changed in a file vs. online via the Admincp?

TIA,
....jc

Zachery
08-02-2005, 09:38 PM
Kirby,
Thanks for the tip, but unfortunately I don't see anything in it that will do the trick. There is an option for changing the directories for these guys, but nothing else.
Are these something that must be changed in a file vs. online via the Admincp?

TIA,
....jc

What do you mean unset them? you mean remove them from the forums? You are aware that ONLY moderators and ONLY administrators can see those links period.

PanelCrafters
08-02-2005, 10:00 PM
What do you mean unset them? you mean remove them from the forums? You are aware that ONLY moderators and ONLY administrators can see those links period.
Thanks Zachery, I just figured that out! That's what you get when you are looking at things from an admin perspective! Anyway, for anyone else that ends up looking for these guys, they are set in Global.php.

Thanks again,
....jc

Andreas
08-02-2005, 10:03 PM
They are "set" nowhere except config.php, m8.

global.php just sets a flag if they should be shown or not.

PanelCrafters
08-02-2005, 10:51 PM
They are "set" nowhere except config.php, m8.
global.php just sets a flag if they should be shown or not.
Maybe there is more than 1 config.php, but in mine, all there is, is a few variables being set. Now, in my global.php, this statement:
$show['admincplink'] = iif($permissions['adminpermissions'] & CANCONTROLPANEL, true, false);
is indeed 'setting' the item 'admincplink' in the $show array. Maybe our terminologies are a bit different! :speechless:
....jc

Andreas
08-02-2005, 11:08 PM
Well ... yes, it sets the Flag.
But the link gets set in config.php ;)