Joomla vs 2.5.6的Mad最新事件更新

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Joomla vs 2.5.6的Mad最新事件更新相关的知识,希望对你有一定的参考价值。

I've updated Mad Current Event to work with Joomla vs 2.5.6.
Just replace the contents of mod_madcurrentevent.xml with the following code.
  1. <?xml version="1.0" ?>
  2.  
  3. <install version="1.5" type="module">
  4. <name>Mad Current Event</name>
  5. <creationDate>2nd September 2012</creationDate>
  6. <author>Chris Hallett, John Main</author>
  7. <copyright>Copyright (C) 2007, 2010 Chris Hallett</copyright>
  8. <license>http://www.gnu.org/copyleft/gpl.html GNU General Public License version 2 or any later version</license>
  9. <authorEmail>[email protected], [email protected]</authorEmail>
  10. <authorUrl>www.madblanks.org, www.johnmain.co.uk</authorUrl>
  11. <!-- file version 3.0.0 20100414 -->
  12. <version>4.0</version>
  13.  
  14. <description>Display the weekly or daily event, show, or other happening that is taking place right now. An example use is for a radio station schedule where the same shows air on a repeating basis, weekly or daily. Shows/events/happenings are stored in the module parameters. The module parameters must be saved before using the module.</description>
  15.  
  16. <files>
  17. <filename module="mod_madcurrentevent">mod_madcurrentevent.php</filename>
  18. </files>
  19. <config>
  20. <fields name="params">
  21. <fieldset name="basic"
  22. addfieldpath="/modules/mod_madcurrentevent">
  23.  
  24. <field name="spacer" type="spacer" default="" label="" description="" />
  25.  
  26. <field name="display_string_format" type="textarea" rows="5" cols="45"
  27. default="&lt;p&gt;The current event/show is &lt;b&gt;%1$s&lt;/b&gt;.&lt;/p&gt;"
  28. label="Text/HTML to display; %1$s is replaced with name of event/show; %2$s is replaced with the date/time"
  29. description="" />
  30.  
  31. <field name="nomatchoption" type="list" default="1"
  32. label="Do what if if no event/show matches the current time?"
  33. description="">
  34. <option value="1">Display alternative text/HTML</option>
  35. <option value="0">Display nothing</option>
  36. </field>
  37.  
  38. <param name="no_match_string" type="textarea" rows="5" cols="45"
  39. default="&lt;p&gt;&lt;em&gt;There is no current show or event.&lt;/em&gt;&lt;/p>"
  40. label="Alternative text/HTML to display if no event/show matches the current time; %s is replaced with the date/time"
  41. description="" />
  42.  
  43. <field name="eventorshowdata" type="textarea" rows="35" cols="45" default=""
  44. label="Event/show names one per line, with semicolon-delimited capitalized day name, hour (0 through 23), and optional minute range (startmin-endmin); examples follow:&lt;br /&gt;
  45. &lt;br /&gt;
  46. eventorshowname1;Dayname1;hour1&lt;br /&gt;
  47. eventorshowname2;Dayname2;hour2&lt;br /&gt;
  48. name3;Day3;hour3;startmin3-endmin3&lt;br /&gt;
  49. name4;Day4;hour4;startmin4-endmin4&lt;br /&gt;
  50. Knitting Circle;Saturday;10&lt;br /&gt;
  51. Hour Six O&apos;Clock News;Monday;18&lt;br /&gt;
  52. Half Hour Show 1;Tuesday;8;0-29&lt;br /&gt;
  53. Half Hour Show 2;Tuesday;8;30-59"
  54. description="" />
  55.  
  56. <field name="spacer" type="spacer" default="" label="Date/Time settings" description="" />
  57.  
  58. <field name="datetime_format" type="text" size="63" default=""
  59. label="The date/time format when using %2$s in the text/HTML to display or %s in the alternative text/HTML; syntax is according to PHP&apos;s strftime function (see http://php.net/strftime); default is _DATE_FORMAT_LC2 if available, or %d %b %Y %I:%M&amp;nbsp;%p"
  60. description="" />
  61.  
  62.  
  63. <field name="timeadjustment" type="text" size="45" default=""
  64. label="Plain English time adjustment (offset) via PHP&apos;s strtotime function (see http://php.net/strtotime); useful if server is in different time zone than your website or server clock is incorrect and out of your control; default is blank&lt;br /&gt;
  65. &lt;br /&gt;
  66. Examples:&lt;br /&gt;
  67. -5 hours&lt;br /&gt;
  68. +2min +25sec"
  69. description="" />
  70.  
  71. <field name="showservertime" type="radio" default="0"
  72. label="Show a message containing the time according to the web server and the adjusted time? (useful for debugging)"
  73. description="">
  74. <option value="1">Yes</option>
  75. <option value="0">No</option>
  76. </field>
  77.  
  78. <field name="spacer" type="spacer" default="" label="" description="" />
  79.  
  80. <field name="moduleclass_sfx" type="text" default=""
  81. label="Module Class Suffix"
  82. description="A suffix to be applied to the css class of the module
  83. (table.moduletable); this allows individual module styling" />
  84.  
  85. <field name="spacer" type="spacer" default="" label="" description="" />
  86. </fieldset>
  87. </fields>
  88. </config>
  89. </install>

以上是关于Joomla vs 2.5.6的Mad最新事件更新的主要内容,如果未能解决你的问题,请参考以下文章

MAD 最新技能图谱送给大家,收藏再学~

MAD 最新技能图谱送给大家,收藏再学~

Joomla - 如何捕捉系统事件

将 Joomla 1.5 组件更新为 Joomla 2.5 组件的步骤 [关闭]

Joomla 2.5 组件更新

Joomla 中组件、模块、扩展和插件之间的区别