Ignore:
Timestamp:
Apr 29, 2012, 5:09:28 PM (12 years ago)
Author:
mistic100
Message:

update for 2.4
delete useless admin page
now compatible with RV Thumb Scroller

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/Comments_on_Albums/main.inc.php

    r12618 r14528  
    88Author URI: http://www.strangeplanet.fr
    99*/
     10
     11## TODO ##
     12// compatibility with Simple when updated to 2.4
     13// compatibility with Gally when updated to 2.4
    1014
    1115if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
     
    2933{
    3034  global $user;
    31   // luciano doesn't show comments, display is very bad on Stripped & Collumns
     35 
     36  // luciano doesn't use comments
     37  // incompatible with dynamic display of Stripped & Collumns
    3238  if ($user['theme'] == 'luciano' or $user['theme'] == 'stripped_black_bloc') return;
    3339 
    34   add_event_handler('loc_end_index', 'COA_albums');
     40  add_event_handler('loc_begin_page_header', 'COA_albums');
    3541  add_event_handler('loc_after_page_header', 'COA_comments_page');
    3642  add_event_handler('loc_begin_admin_page', 'COA_admin_intro');
    3743  add_event_handler('loc_end_admin', 'COA_admin_comments');
    38   add_event_handler('get_admin_plugin_menu_links', 'COA_admin_menu');
    3944  add_event_handler('get_stuffs_modules', 'COA_register_stuffs_module');
    4045}
     
    4954  global $template, $page, $conf, $pwg_loaded_plugins;
    5055 
    51   if (
    52     $page['section'] == 'categories' AND isset($page['category']) AND
    53     ( !isset($pwg_loaded_plugins['rv_tscroller']) OR count($page['navigation_bar']) == 0 )
    54   ) {   
     56  if ( !empty($page['section']) AND $page['section'] == 'categories' AND isset($page['category']) AND $page['body_id'] == 'theCategoryPage' )
     57  {
    5558    if (isset($pwg_loaded_plugins['bbcode_bar']) AND !isset($_GET['comment_to_edit']))
    5659    {
     
    102105}
    103106
    104 function COA_admin_menu($menu)
    105 {
    106   array_push($menu, array(
    107     'NAME' => 'Comments on Albums',
    108     'URL' => COA_ADMIN
    109   ));
    110   return $menu;
    111 }
    112 
    113107function COA_register_stuffs_module($modules)
    114108{
     
    124118}
    125119
    126 
    127120?>
Note: See TracChangeset for help on using the changeset viewer.