Posted on: 04/24/03 02:34pm
By: klync
Posted on: 04/24/03 02:45pm
By: Dirk
Posted on: 04/24/03 08:48pm
By: squatty
Posted on: 04/25/03 12:27pm
By: Anonymous (Anonymous)
Thanks for pointing me in the right direction, guys. I checked out the menu plugin, and it didn't do exactly what I had in mind. I meditated on your comment, Dirk..... And, finally, it came to me.
I mentioned that I had made a new phpblock in lib-custom by ripping out the code from lib-common. Well, since that's my own custom function, I found it easy to change the menu items by adding, removing and modifying the four line stanzas. So, for example my "Get Published" link appears thanks to this code:
$adminmenu->set_var( 'option_url', $_CONF['site_url'] . '/submit.php?type=story' );
$adminmenu->set_var( 'option_label', $LANG01[71] );
$adminmenu->set_var( 'option_count', '' );
$retval .= $adminmenu->parse( 'item', 'option' );
Now I get a bit better of an idea how the templates work, since they're set up a the beginning of the function to draw the "User Functions" block.