Changes between Version 10 and Version 11 of FAQ


Ignore:
Timestamp:
Nov 21, 2006, 2:14:45 PM (13 years ago)
Author:
elskwi
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • FAQ

    v10 v11  
    2424
    2525'''Q:''' I installed and activated FireStats in Wordpress 2.0.5, but it's installed in the Dashboard menu and not in management page! [[BR]]
    26 '''A:''' Desactive the plugin, and go into plugins/firestats directory. [[BR]]
    27 Edit file "firestats-wordpress.php" and search function fs_add_page(). [[BR]]
    28 Then change it for : [[BR]]
    29 # Add a sub-menu to the "manage"-page. [[BR]]
    30 function fs_add_page() [[BR]]
    31 { [[BR]]
    32 /* Add Firestats menu into management page if 'add_management_page' exists */ [[BR]]
    33         if (function_exists('add_management_page')) { [[BR]]
    34             add_management_page('index.php', 'FireStats', 1, __FILE__, 'fs_page'); [[BR]]
    35         } [[BR]]
     26'''A:''' do this
     27 * Desactive the plugin.
     28 * Go into plugins/firestats directory.
     29 * Edit file "firestats-wordpress.php" and search for function fs_add_page().
     30 * Then change it for : [[BR]]
     31# Add a sub-menu to the "manage"-page.
     32function fs_add_page()
     33{
     34/* Add Firestats menu into management page if 'add_management_page' exists */
     35        if (function_exists('add_management_page')) {
     36            add_management_page('index.php', 'FireStats', 1, __FILE__, 'fs_page');
     37        }
    3638        /* Else add it like original Source */
    37         else { [[BR]]
    38             add_submenu_page('index.php', 'FireStats', 'FireStats', 1, __FILE__, 'fs_page'); [[BR]]
    39         } [[BR]]
     39        else {
     40            add_submenu_page('index.php', 'FireStats', 'FireStats', 1, __FILE__, 'fs_page');
     41        }
    4042} [[BR]]
     43 * Reactive the plugin. Done :)