jj01

About me: åß∂ƒ
Location:
Website: http://
Email:

Send private message

You must be logged in to send a private message.

Activity

  • jj01 replied on the discussion topic Get latest member to join group
    Got sidetracked but just tried this out now. Works perfectly thanks Kevin! This is the full syntax I used in case anyone else needs it: $last_player = elgg_get_entities_from_relationship(array('relationship' => 'member', 'relationship_guid'... view reply
  • jj01 added a new discussion topic Get latest member to join group in the group Plugin Development
    Is it possible to return the last/most recent person to joined a group? I have looked through the elgg_get_entities_from_relationship function but it doesn't seem possible. From what I can see the getMembers method reutrns them i order of the date...
  • jj01 joined the group Plugin Development
  • jj01 replied on the discussion topic Sending group messages
    Thanks all - had thought that CRON might be an option. Will see how I get on : ) view reply
  • jj01 replied on the discussion topic Sending group messages
    Thanks guys - that makes sense. Re performance, I went through a test run on my local site with about 800 messages and it took about 15 minutes... this is OK for now if I send them out at low usage times.  I think ultimately I need to create... view reply
  • jj01 added a new discussion topic Sending group messages in the group Elgg Technical Support
    I am working on a modifcation to the messaging plugin to allow a PM to be sent to all the users (1000+) in my site. I have used the Messages improved - Groups & Collections of friends support as a basis and have it working. The issue...
    • Hmm.. very interesting.. I will have to go thru your notes in more detail !
      What we did was not to "Grab all the users" -
      but did a one-time and incremental create of users' emails into files called
      userlist_123_999.data from users_entity tbl
      where 123 is guid of the first user and 999 is the guid of the last user on the file

      next -->
              listdir userlist_123_999.data
              if (notfound)
                  all emails have been sent
                  rename newsletter_123.mail --> newsletter_999.done
      and
          grab 1st userlist_999_999.data
              process with newsletter_999.mail
              rename userlist_123_999.data --> userlist_999_999.done

      while a userlist_123_999.data file is found -
      it gets processed by CRON'ed sendnewsletter.php

      The CRON is simple -->
      CRON x 5mins, PHP CLI := sendnewsletter.php
      #!../bin/bash
      ...
      echo ".START::NEWSLETTERSEND:: "$DATE
      date
      php /www/httpdocs/mod/newslettersend.php > $LOGFILE
      echo ".END::NEWSLETTERSEND.SH"

      • I guess one could call this a quasi-queue ;)
      • Looks like the CRON @ 5 mins - for us
      • does the same as the sleep(1) works for you.
    • Thanks. That looks much much simpler.

      The "grab all users" approach is a disaster, PHP runs out of memory in a lot of other places where we have used it, replacing it with something that cycles through the list, 100 at a time (which seems to be the sweet spot on the current configuration).

    • Thanks all - had thought that CRON might be an option. Will see how I get on : )

  • jj01 replied on the discussion topic Upgrading elgg
    Thanks v much for the detailed explanation although I'm surprised that there no easier way. My site is based around a league so I will do it in the off season... fingers crossed! view reply
  • jj01 added a new discussion topic Upgrading elgg in the group Elgg Technical Support
    I am about to upgrade from 1.6 to 1.7. My concern is whether the upgrade will have issues if users are currently live on the site (or cause db issues). Should this be a concern... if so is there an easy way to put up a 'site under maintenance'...
    • Thanks v much for the detailed explanation although I'm surprised that there no easier way. My site is based around a league so I will do it in the off season... fingers crossed!

    • If you test the upgrade first on a test site, you can do the upgrade with all your plugins enabled which saves a lot of time. My site upgrades normally take about a minute.

    • Or you can break the database connection first by editing the settings.php file, while you are FTP'ying the files. Later once file transfer is completed change the settings.php credentials to the original and run the upgrade.php