1
glenp
Re: Agenda-X 2.2.0 is released
  • 2004/9/4 14:24

  • glenp

  • Just popping in

  • Posts: 4

  • Since: 2004/3/18


In the prior version repeating events showed up in the upcoming events blocks with their original dates. Has this been fixed in this release?



2
glenp
Re: Agenda-X v2.1.1 Upcoming 30 day events block (Duplicate events listed)
  • 2004/8/10 19:01

  • glenp

  • Just popping in

  • Posts: 4

  • Since: 2004/3/18


I have a partial fix for the repeating events problem, see this forum post for details.

This fix does not handle the events in the past issue. The problem (as I see it) is that repeating events are being displayed with the date that starts the repeating sequence, not the date of the next repeat. The logic to correctly display the events is in the module, we just need to find it and hack it into the upcoming events block.



3
glenp
Agenda-X 2.1.1 bug fix
  • 2004/7/17 15:39

  • glenp

  • Just popping in

  • Posts: 4

  • Since: 2004/3/18


I noticed that the Upcoming 30 day events block would show repeating events more than once and that the sort order looked odd. The get_thisMonth_events function in minical.php seems to be the source of the problem. The original version performed the following steps:

1 - query agendax_events
2 - load results into the event array
3 - query agendax_event_repeats
4 - append the second query results onto the event array

Here are the problems that I see. The repeating events show up in both queries, hence the duplicates. The second query wasn't sorted by date. The appending places non-repeating events before repeating events.

My change retrieves all events in a single step that are sorted by date. Here is my updated logic:

function get_thisMonth_events() {
global $xoopsDB;
$events = array();
$ONE_DAY = 86400;

$userTimestamp = xoops_getUserTimestamp(time());
$date = date("Ymd", $userTimestamp);
$date30days = date("Ymd", $userTimestamp+30*$ONE_DAY);

$query = 'SELECT id, title, date FROM '.$xoopsDB->prefix("agendax_events").' LEFT JOIN '.$xoopsDB->prefix("agendax_event_repeats").' ON id=event_id'.' WHERE approved=1 AND (event_end=0 OR event_end is NULL OR event_end <='.$date30days.') AND date<='.$date30days.' ORDER BY date ASC';
$result = $xoopsDB->queryF($query);
$numrows = $xoopsDB->getRowsNum($result);
while ( $row = $xoopsDB->fetchArray($result) ) {
$events[] = $row;
}

return $events;
}

There are other functions in minical.php that follow the same logic. I updated them as well.

FYI, the original query had 'event_end=NULL' in it. This does not work as expected as it evaluates to null, not true or false. 'event_end is null' will return true if the column contains a null. Nulls in SQL are tricky this way!

wjue, thanks for putting Agenda-x out in the community. It is a great module.



4
glenp
Email configuration problem
  • 2004/3/18 20:17

  • glenp

  • Just popping in

  • Posts: 4

  • Since: 2004/3/18


Greetings,

I am attempting to setup XOOPS and I am experiencing errors with the email functionality. Basically, XOOPS is reporting email errors even though the emails are being sent out.

I am running
Solaris 9 12/03, PHP 4.3.4, Apache 2 (Apache Friends distro)
XOOPS 2.0.6

The mail delivery method is set to PHP mail(). I am testing it by trying the lost password function. I get the following message

Errors
Could not instantiate mail()
Confirmation Mail for glenp mailed.

If I switch the mail delivery method to sendmail, then I get the following message:

Errors
Could not execute /usr/sbin/sendmail
Confirmation Mail for glenp mailed.

Mail is working correctly from the command line using the send command and a simple test page that calls the PHP mail() function also works. Turning on PHP Debug doesn’t show any additional information. Sendmail is configured for outgoing mail only.

Any thoughts?




TopTop



Login

Who's Online

192 user(s) are online (164 user(s) are browsing Support Forums)


Members: 0


Guests: 192


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits