Welcome to Geeklog, Anonymous Tuesday, November 29 2022 @ 04:33 pm EST

Geeklog Forums

Admin Block Menu Items


Status: offline

the Modfather

Forum User
Newbie
Registered: 03/09/03
Posts: 6
Does anyone know how to add menu items to the Admin Block? Would like to have a couple of links for site admins only, but not sure how to incorporate that. Any help is appreciated.
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Plugins can add links to the Admin menu. If you don't want to write a plugin, then you will need to modify function COM_adminMenu() in lib-common.php. bye, Dirk
 Quote

Status: offline

Ruatha

Forum User
Junior
Registered: 01/31/03
Posts: 26
Take a look at the Menu plugin. You can add items for different groups/users.
 Quote

Status: offline

suvi

Forum User
Chatty
Registered: 11/20/05
Posts: 44
Location:Zurich
I have tried to move the statistics to the admin block.

I have added
Text Formatted Code

$retval .= '<a href="http://localhost/geeklog-1.4.0b1/public_html/stats.php">Site Statistics</a><br>';

        // This function will show the user options for all installed plugins
        // (if any)

 


to function COM_userMenu( $help='', $title='' ) in lib-common.php. This added a menu entry. Not in the Admins only block, but in the User Functions block.
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Quote by suvi: function COM_userMenu( $help='', $title='' ) in lib-common.php. This added a menu entry. Not in the Admins only block, but in the User Functions block.

Well, that's what you would expect, given the function's name. Hint: There's also a function COM_adminMenu ...

bye, Dirk
 Quote

Status: offline

suvi

Forum User
Chatty
Registered: 11/20/05
Posts: 44
Location:Zurich
mmm, yeah. Stupid me. Thanks!
 Quote

suvi

Anonymous
anyway. Loclahost is not good for a link ;-)
 Quote

All times are EST. The time is now 04:33 pm.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content