8
Today i update newbb to support new xoopspoll and all old xoopspoll and umfrage versions and all new and old clones.
because i have 2 xoopspoll in my website and now one can select them in newbb > preferences.
Q: is this good to make it selectable? or just make it selectable for one time?
please test this new version:
http://svn.code.sf.net/p/xoops/svn/XoopsModules/newbb/branches/irmtfan/newbb/
Thru my tests I found this issue in xoopspoll/class/poll.pph around line 285 function renderForm.
to solve it I add a $extra:
if (!$this->hasExpired()) {
$endTimeText = new XoopspollFormDateTimePicker("<div class='bold middle'>" . _AM_XOOPSPOLL_EXPIRATION . "</div>"
, 'xu_end_time'
, 20
, $xuEndTimestamp);
} else {
// START irmtfan add topic_id
$extra = "";
foreach($addHidden as $key=>$value) {
$extra="&{$key}=" . $value;
}
$xuEndFormattedTime = ucfirst(date(_MEDIUMDATESTRING, $xuEndTimestamp));
$endTimeText = new XoopsFormLabel("<div class='bold middle'>" . _AM_XOOPSPOLL_EXPIRATION,
sprintf(_AM_XOOPSPOLL_EXPIREDAT, $xuEndFormattedTime)
. "<br /><a href='{$rtnPage}?op=restart&poll_id="
. $this->getVar('poll_id') . $extra . "'>" . _AM_XOOPSPOLL_RESTART . "</a></div>");
// END irmtfan add topic_id
}
Q: how can we add hejira date? now it used jquery-ui-timepicker-addon.js and i think it is possible to add hejira system.
I will work on it.