From: Darren G. <dg...@tu...> - 2004-04-08 14:46:23
|
The check seems to be for modules that have both an administrator interface and a user interface. The modules that have a setting for admin=FALSE are comments, language, layout, notes, and users. I believe notes should probably be set to TRUE, since it only has one view. But, for each of the others there are two interfaces and since you are a deity that boosted the module you probably would like to see the administrator view and the extra line in Boost provides the correct module link. Darren > Hey everyone, > Don and I have never taken the time to see why the Go to Module link doesn't work with some mods after installing. I finally took the time to find out and wanted to share it with everyone, and discuss adding it to mods that don't have it, or modify the behavior of > mod/boost/class/Boost.php. > Anyway, in conf/controlpanel.php you need to add "admin"=>TRUE to the $link[] array to have the "Go to Module" link appear after boosting your mod. > I didn't test to see if this makes the mod only available to admin users in the control panel. If that is the case, I think a modification to Boost.php may be in order. The line that would need to be altered is 337 in current cvs: > if (isset($modLink['admin']) && (bool)$modLink['admin'] == TRUE) I'm not sure what the original thought was behind this line. It doesn't really make any sense to me since a user must be a Diety to boost anyway. May be more appropriate to just whack this line. Something to look into anyway. > Wendall > -- > "Only the ideas that we really live have any value." --Hermann Hesse (Demian) > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ > Phpwebsite-developers mailing list > Php...@li... > https://lists.sourceforge.net/lists/listinfo/phpwebsite-developers |