Firefox PHP

How to add a new PhorumAdminMenu ?

Posted by gklp 
How to add a new PhorumAdminMenu ?
April 19, 2011 11:30AM
Hi, i have just download your source code, and thats pretty forum :)

Now, i need to make a plugin for my project. I found include/admin/PhorumAdminMenu. where did you use on your source code to create menu items ? i cant find that ( in docs and source files ) ????

Thanks
Re: How to add a new PhorumAdminMenu ?
April 19, 2011 12:15PM
see include/admin/header.php.
If you just want to add another admin menu entry, see the admin_menu-hook which is also described in that file.


Thomas Seifert
Phorum Development Team / Mysnip-Solutions.de
Custom Phorum and general software development
worry-free Phorum Hosting
Re: How to add a new PhorumAdminMenu ?
April 19, 2011 12:23PM
Thank u for quick response.

include/admin/header.php

example

Language: PHP
... $menu = new PhorumAdminMenu("Main Menu");   $menu->add("Admin Home", "", "Takes you to the default Admin page."); $menu->add("Phorum Index", "index", "Takes you to the front page of the Phorum."); $menu->add("Log Out", "logout", "Logs you out of the admin.");   $menu->show();   echo $layout->fetchAndRemoveNext(); ...
Sorry, only registered users may post in this forum.

Click here to login