Changeset 1179 in ExiteCMS
- Timestamp:
- 12/21/07 13:10:39 (4 years ago)
- Location:
- modules/common/download_bars_panel/php-files/modules/download_bars_panel
- Files:
-
- 4 added
- 3 edited
-
download_bars_admin.php (added)
-
download_bars_panel.php (modified) (1 diff)
-
images (added)
-
images/dlstats.gif (added)
-
module_installer.php (modified) (5 diffs)
-
templates/modules.download_bars_panel.download_bars_admin.tpl (added)
-
templates/modules.download_bars_panel.tpl (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
modules/common/download_bars_panel/php-files/modules/download_bars_panel/download_bars_panel.php
r865 r1179 42 42 // if the user has access, add this download to the bar panel 43 43 if ($access) { 44 $data['download_title'] = strtoupper(substr($data['download_title'],0,6));45 44 $download[] = $data; 46 45 $total += $data['download_count']; -
modules/common/download_bars_panel/php-files/modules/download_bars_panel/module_installer.php
r971 r1179 13 13 14 14 /*---------------------------------------------------+ 15 | Locale definition for this installation module |16 +----------------------------------------------------*/17 18 // no locales for this plugin19 20 /*---------------------------------------------------+21 15 | Module identification | 22 16 +----------------------------------------------------*/ 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"; 26 20 $mod_developer = "WanWizard"; 27 21 $mod_email = "wanwizard@gmail.com"; … … 34 28 35 29 $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 37 34 38 35 /*---------------------------------------------------+ … … 60 57 61 58 /*---------------------------------------------------+ 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 /*---------------------------------------------------+ 62 83 | commands to execute when installing this module | 63 84 +----------------------------------------------------*/ … … 71 92 $mod_uninstall_cmds = array(); 72 93 94 /*----------------------------------------------------+ 95 | function for installation code | 96 +----------------------------------------------------*/ 97 if (!function_exists('install_module')) { 98 function install_module() { 99 } 100 } 101 /*---------------------------------------------------+ 102 | function for de-installation code | 103 +----------------------------------------------------*/ 104 if (!function_exists('uninstall_module')) { 105 function uninstall_module() { 106 } 107 } 108 73 109 /*---------------------------------------------------+ 74 110 | function to upgrade from a previous revision | … … 76 112 if (!function_exists('module_upgrade')) { 77 113 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 } 78 126 } 79 127 } -
modules/common/download_bars_panel/php-files/modules/download_bars_panel/templates/modules.download_bars_panel.tpl
r765 r1179 30 30 <tr> 31 31 <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> 33 33 </td> 34 34 <td class='dbp_bar_cell'>
Note: See TracChangeset
for help on using the changeset viewer.
