Mod Base 0.1.0 Developer Manuel

 

Index

  1. Config file
  2. Core parser tags
  3. Common phpBB 2.0.13 Vs. Olympus functions
  4. Other functions
    1. Cache
      1. Functions
      2. Example

1. Config file

The config file has alot of options for developers to use. Here is are some (real) config examples:

Toplist 2.0.0:


<?php
$module_config
= array(
   
'name' => 'Toplist',
   
'version' => '2.0',

   'url' => "http://www.wyrihaximus.net/",
   
'author' => 'WyriHaximus',

   
'code_include_file' => $phpbb_root_path . 'mods/toplist_mod/core.class.' . $phpEx,
   
'code_init_func' => array(
      
'class' => 'toplist_class',
      
'method' => 'init'
   ),
   
'load_on' => 'toplist',
   
'lang_load_on' => 'ALL',
   
'lang_file' => 'toplist',
   
'lang_search' => 2,
   
'copyright' => array(

      'enable' => true,
      
'time_spawn' => '2005'
   )
);
?>


Uptime project 1.0.0:


<?php
$module_config
= array(
'name' => 'Uptime-Project.net',
'version' => '1.0',
'url' => "http://www.wyrihaximus.net/",
'author' => 'WyriHaximus',

'code_include_file' => $phpbb_root_path . 'mods/mods_base/installed_hacks/uptime_project.' . $phpEx,
'data_retrieval' => array(
      
'viewtopic' => array(
            
'user_table_field' => 'Uptime Project userID',
            
'method_of_use' => 'function',
            
'function' => 'uptime_project_func',
            
'arguments' => array(
               
'%s'
            )
         ),
      
'add_br' => true
   ),
'load_on' => 'viewtopic'
);
?>


Money Intergration Suite:


<?php
$module_config
= array(
   
'name' => 'Money Intergration Suite',
   
'version' => '0.1.4',
   'url' => "http://www.drm-hacks.comt/",
   
'author' => 'Doe Ray Me',

   
'code_include_file' => array($phpbb_root_path . 'includes/functions_mis.php',$phpbb_root_path . 'mods/mods_base/installed_hacks/mis.php'),
   
'data_retrieval' => array(
      
'viewprofile' => array(
         
'interests' => array(
            
'method_of_use' => 'function',
            
'function' => 'mis_view_profile',
            
'arguments' => array(
               
'%s'
            )
         )
      ),
      
'viewtopic' => array(
            
'method_of_use' => 'function',
            
'function' => 'mis_view_topic',
            
'arguments' => array(
               
'%s'
            )
         ),
      
'add_br' => true
   ),
   
'load_on' => 'ALL',
   
'lang_file' => 'lang_mis',
   
'lang_search' => 2
);
?>

Here is a list of options that are requierd of optional.

Requierd options.

Optinal options.