Difference between revisions of "Admin and User Menu Functions"

From GeeklogWiki
Jump to: navigation, search
m (Removed </p> tag)
 
(3 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
If you want your plugin to effect the Admin and User Function blocks     
 
If you want your plugin to effect the Admin and User Function blocks     
 
that show up on every Geeklog page then you must implement these  
 
that show up on every Geeklog page then you must implement these  
functions.</p>
+
functions.
  
 
       <table cellpadding="2" cellspacing="2" border="1" width="90%" align="Center">
 
       <table cellpadding="2" cellspacing="2" border="1" width="90%" align="Center">
Line 11: Line 11:
 
           <tr>
 
           <tr>
 
             <td valign="top" class="codeheader">plugin_adminoptions_&lt;plugin name&gt;</td>
 
             <td valign="top" class="codeheader">plugin_adminoptions_&lt;plugin name&gt;</td>
             <td valign="top" class="code">Will show options under the Admin
+
             <td valign="top" class="code">Will show options under the Admin Functions block for your plugin</td>
      Functions block for your plugin</td>
 
 
           </tr>
 
           </tr>
 
           <tr>
 
           <tr>
 
             <td valign="top" class="codeheader">plugin_getuseroption_&lt;plugin
 
             <td valign="top" class="codeheader">plugin_getuseroption_&lt;plugin
 
       name&gt;</td>
 
       name&gt;</td>
             <td valign="top" class="code">Will show options under the User
+
             <td valign="top" class="code">Will show options under the User Functions block for your plugin</td>
      Functions block for your plugin</td>
 
 
           </tr>
 
           </tr>
 
           <tr>
 
           <tr>
 
             <td valign="top" class="codeheader">plugin_adminedit_&lt;plugin
 
             <td valign="top" class="codeheader">plugin_adminedit_&lt;plugin
 
       name&gt;</td>
 
       name&gt;</td>
             <td valign="top" class="code">Shows the links at the top of admin/plugins/&lt;plugin
+
             <td valign="top" class="code">Shows the links at the top of admin/plugins/&lt;plugin name&gt;.php for New and Admin Home. This is for consistency sake only</td>
    name&gt;.php for New and Admin Home. This is for consistency sake only</td>
 
 
           </tr>
 
           </tr>
 
           <tr>
 
           <tr>
             <td valign="top" class="codeheader">plugin_submissioncount_&lt;plugin
+
             <td valign="top" class="codeheader">plugin_submissioncount_&lt;plugin name&gt;</td>
      name&gt;</td>
+
             <td valign="top" class="code">Shows the number of submissions pending for you plugin.&nbsp; This is usually just "dbcount(&lt;plugin name&gt;submission);"</td>
             <td valign="top" class="code">Shows the number of submissions
 
      pending for you plugin.&nbsp; This is usually just "dbcount(&lt;plugin
 
  name&gt;submission);"</td>
 
 
           </tr>
 
           </tr>
 
           <tr>
 
           <tr>
             <td valign="top" class="codeheader">plugin_cclabel_&lt;plugin
+
             <td valign="top" class="codeheader">plugin_cclabel_&lt;plugin name&gt;</td>
      name&gt;</td>
+
             <td valign="top" class="code">Returns array of your plugin image and a label for your plugin.&nbsp; This is called to show your plugin in the command and control block on moderation.php</td>
             <td valign="top" class="code">Returns array of your plugin image
 
      and a label for your plugin.&nbsp; This is called to show your plugin
 
  in   the command and control block on moderation.php</td>
 
 
           </tr>
 
           </tr>
 
       </table>
 
       </table>
 +
  
 
[[Category:Plugin Development]]
 
[[Category:Plugin Development]]

Latest revision as of 07:43, 6 May 2009

If you want your plugin to effect the Admin and User Function blocks that show up on every Geeklog page then you must implement these functions.

Table 2. Admin and User functions
Function Description of Function
plugin_adminoptions_<plugin name> Will show options under the Admin Functions block for your plugin
plugin_getuseroption_<plugin name> Will show options under the User Functions block for your plugin
plugin_adminedit_<plugin name> Shows the links at the top of admin/plugins/<plugin name>.php for New and Admin Home. This is for consistency sake only
plugin_submissioncount_<plugin name> Shows the number of submissions pending for you plugin.  This is usually just "dbcount(<plugin name>submission);"
plugin_cclabel_<plugin name> Returns array of your plugin image and a label for your plugin.  This is called to show your plugin in the command and control block on moderation.php