Changeset 1179 in ExiteCMS


Ignore:
Timestamp:
12/21/07 13:10:39 (4 years ago)
Author:
hverton
Message:

updated download_bars_panel, moved the definition panel from the download admin module to a separate admin module

Location:
modules/common/download_bars_panel/php-files/modules/download_bars_panel
Files:
4 added
3 edited

Legend:

Unmodified
Added
Removed
  • modules/common/download_bars_panel/php-files/modules/download_bars_panel/download_bars_panel.php

    r865 r1179  
    4242    // if the user has access, add this download to the bar panel 
    4343    if ($access) { 
    44         $data['download_title'] = strtoupper(substr($data['download_title'],0,6)); 
    4544        $download[] = $data; 
    4645        $total += $data['download_count']; 
  • modules/common/download_bars_panel/php-files/modules/download_bars_panel/module_installer.php

    r971 r1179  
    1313 
    1414/*---------------------------------------------------+ 
    15 | Locale definition for this installation module     | 
    16 +----------------------------------------------------*/ 
    17  
    18 // no locales for this plugin 
    19  
    20 /*---------------------------------------------------+ 
    2115| Module identification                              | 
    2216+----------------------------------------------------*/ 
    23 $mod_title = "Top downloads panel"; 
    24 $mod_description = "Side panel to show top downloads"; 
    25 $mod_version = "1.0.0"; 
     17$mod_title = "Download StatBars"; 
     18$mod_description = "Side panel to show download counters in a horizontal bar graph"; 
     19$mod_version = "1.0.1"; 
    2620$mod_developer = "WanWizard"; 
    2721$mod_email = "wanwizard@gmail.com"; 
     
    3428 
    3529$mod_folder = "download_bars_panel"; 
    36 // no administration module for this plugin 
     30$mod_admin_image = "dl.gif";                            // icon to be used for the admin panel 
     31$mod_admin_panel = "download_bars_admin.php";           // name of the admin panel for this module 
     32$mod_admin_rights = "D";                                // admin rights code (we use the code for the Downloads admin module). 
     33$mod_admin_page = 4;                                    // admin page this panel has to be placed on 
    3734 
    3835/*---------------------------------------------------+ 
     
    6057 
    6158/*---------------------------------------------------+ 
     59| locale strings for this module                     | 
     60+----------------------------------------------------*/ 
     61 
     62$localestrings = array(); 
     63 
     64// English locale strings 
     65$localestrings['en'] = array(); 
     66$localestrings['en']['400'] = "Download Bars Panel Content"; 
     67$localestrings['en']['401'] = "Bar Position"; 
     68$localestrings['en']['402'] = "Save Bar Content"; 
     69$localestrings['en']['403'] = "Download Bars Title"; 
     70$localestrings['en']['404'] = "Download Bars Panel Content succesfully saved"; 
     71$localestrings['en']['405'] = "There are no download items present to add to the download statistics panel"; 
     72 
     73// Nederlandse locale strings 
     74$localestrings['nl'] = array(); 
     75$localestrings['nl']['400'] = "Inhoud download balk-grafiek paneel"; 
     76$localestrings['nl']['401'] = "Balk positie"; 
     77$localestrings['nl']['402'] = "Inhoud bewaren"; 
     78$localestrings['nl']['403'] = "Download balk titel"; 
     79$localestrings['nl']['404'] = "Inhoud van het balk-grafiek paneel is opgeslagen"; 
     80$localestrings['nl']['405'] = "Er zijn geen download items gevonden om aan het statistieken paneel toe te voegen"; 
     81 
     82/*---------------------------------------------------+ 
    6283| commands to execute when installing this module    | 
    6384+----------------------------------------------------*/ 
     
    7192$mod_uninstall_cmds = array(); 
    7293 
     94/*----------------------------------------------------+ 
     95| function for installation code                      | 
     96+----------------------------------------------------*/ 
     97if (!function_exists('install_module')) { 
     98    function install_module() { 
     99    } 
     100} 
     101/*---------------------------------------------------+ 
     102| function for de-installation code                  | 
     103+----------------------------------------------------*/ 
     104if (!function_exists('uninstall_module')) { 
     105    function uninstall_module() { 
     106    } 
     107} 
     108 
    73109/*---------------------------------------------------+ 
    74110| function to upgrade from a previous revision       | 
     
    76112if (!function_exists('module_upgrade')) { 
    77113    function module_upgrade($current_version) { 
     114 
     115        switch ($current_version) { 
     116            case "1.0.0":   // things to do when the current version is 1.0.0 
     117 
     118                // commands here, NO break statement! 
     119 
     120            case "1.0.1":   // things to do when the current version is 1.0.1 
     121 
     122                // commands here, NO break statement! 
     123 
     124            default: 
     125        } 
    78126    } 
    79127} 
  • modules/common/download_bars_panel/php-files/modules/download_bars_panel/templates/modules.download_bars_panel.tpl

    r765 r1179  
    3030    <tr> 
    3131        <td class='dbp_list'> 
    32             <a href='{$settings.siteurl}downloads.php?download_id={$barinfo[bar].download_id}'>{$barinfo[bar].download_title}</a> 
     32            <a href='{$settings.siteurl}downloads.php?download_id={$barinfo[bar].download_id}' title='{$barinfo[bar].download_title}'>{$barinfo[bar].download_title|truncate:8:".."}</a> 
    3333        </td> 
    3434        <td class='dbp_bar_cell'> 
Note: See TracChangeset for help on using the changeset viewer.