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.
<?xml version="1.0" ?> <install version="1.5" type="module"> <name>Mad Current Event</name> <creationDate>2nd September 2012</creationDate> <author>Chris Hallett, John Main</author> <copyright>Copyright (C) 2007, 2010 Chris Hallett</copyright> <license>http://www.gnu.org/copyleft/gpl.html GNU General Public License version 2 or any later version</license> <authorUrl>www.madblanks.org, www.johnmain.co.uk</authorUrl> <!-- file version 3.0.0 20100414 --> <version>4.0</version> <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> <files> </files> <config> <fields name="params"> <fieldset name="basic" addfieldpath="/modules/mod_madcurrentevent"> <field name="spacer" type="spacer" default="" label="" description="" /> <field name="display_string_format" type="textarea" rows="5" cols="45" default="<p>The current event/show is <b>%1$s</b>.</p>" label="Text/HTML to display; %1$s is replaced with name of event/show; %2$s is replaced with the date/time" description="" /> <field name="nomatchoption" type="list" default="1" label="Do what if if no event/show matches the current time?" description=""> <option value="1">Display alternative text/HTML</option> <option value="0">Display nothing</option> </field> <param name="no_match_string" type="textarea" rows="5" cols="45" default="<p><em>There is no current show or event.</em></p>" label="Alternative text/HTML to display if no event/show matches the current time; %s is replaced with the date/time" description="" /> <field name="eventorshowdata" type="textarea" rows="35" cols="45" default="" 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:<br /> <br /> eventorshowname1;Dayname1;hour1<br /> eventorshowname2;Dayname2;hour2<br /> name3;Day3;hour3;startmin3-endmin3<br /> name4;Day4;hour4;startmin4-endmin4<br /> Knitting Circle;Saturday;10<br /> Hour Six O'Clock News;Monday;18<br /> Half Hour Show 1;Tuesday;8;0-29<br /> Half Hour Show 2;Tuesday;8;30-59" description="" /> <field name="spacer" type="spacer" default="" label="Date/Time settings" description="" /> <field name="datetime_format" type="text" size="63" default="" 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's strftime function (see http://php.net/strftime); default is _DATE_FORMAT_LC2 if available, or %d %b %Y %I:%M&nbsp;%p" description="" /> <field name="timeadjustment" type="text" size="45" default="" label="Plain English time adjustment (offset) via PHP'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<br /> <br /> Examples:<br /> -5 hours<br /> +2min +25sec" description="" /> <field name="showservertime" type="radio" default="0" label="Show a message containing the time according to the web server and the adjusted time? (useful for debugging)" description=""> <option value="1">Yes</option> <option value="0">No</option> </field> <field name="spacer" type="spacer" default="" label="" description="" /> <field name="moduleclass_sfx" type="text" default="" label="Module Class Suffix" description="A suffix to be applied to the css class of the module (table.moduletable); this allows individual module styling" /> <field name="spacer" type="spacer" default="" label="" description="" /> </fieldset> </fields> </config> </install>
以上是关于Joomla vs 2.5.6的Mad最新事件更新的主要内容,如果未能解决你的问题,请参考以下文章