1. 25 Sep, 2012 1 commit
    • Hugh Davenport's avatar
      Add option to disable device detection · 109eb4a5
      Hugh Davenport authored
      
      
      Also add a few theme changes that allow some more
      features on small devices.
      - Printing links
      - Settings link in top right corner
      - Create/copy page/collection link
      - Edit/delete buttons
      - Remove group members button
      - Help icons
      - Administration link
      
      Also made the admin link show in full
      
      The items that are disabled when device detection is on
      and user is on a mobile device are:
      - TinyMCE editor
      - Adding new blocks to pages, this is now a non-js version
      - Dropdown menu's
      - Export functionality
      
      Bug #1052060
      
      Change-Id: I5a8fe3cf136bb0c3e76e50a2b3bc48179c675b6a
      Signed-off-by: default avatarHugh Davenport <hugh@catalyst.net.nz>
      109eb4a5
  2. 19 Sep, 2012 2 commits
  3. 07 Sep, 2012 1 commit
    • Son Nguyen's avatar
      Allow users to choose institution themes for browsing if in multiple · 7cf320bc
      Son Nguyen authored
      
      institutions (Bug #793308)
      
      - Add a help file to explain the user setting: 'Theme'
      - By default, users can choose one of their institution's themes as
      their prefered theme.
      - if site admins set $cfg->sitethemeprefs = true in config.php,
      users can ALSO choose standard site's themes as preferred theme for
      browsing the site.
      - remove the option 'No theme selected'
      - sort the themes in alphabetical order
      
      Change-Id: I6f144747338e88eb1f90c79f0f7934449fe0ab63
      Signed-off-by: default avatarSon Nguyen <son.nguyen@catalyst.net.nz>
      7cf320bc
  4. 20 Aug, 2012 2 commits
  5. 17 Aug, 2012 1 commit
  6. 14 Aug, 2012 1 commit
  7. 07 Aug, 2012 1 commit
  8. 06 Aug, 2012 1 commit
    • Hugh Davenport's avatar
      Add cron job to poll an imap mailbox for bounces · ed5e91ab
      Hugh Davenport authored
      Bug #993018
      
      Checks an imap mailbox, assumes that you have set up a
      seperate mailbox for recieving the mailbounces.
      
      To enable this change, the php imap extension must be loaded
      
      This uses 9b9b2a5c
      
       for the
      mail bounce checking. It also adds a few extra config.php
      settings that need to be set for this cronjob to work.
      
      The config settings that need to be set are:
      $cfg->bounces_handle = true
      $cfg->bouncedomain
      $cfg->imapserver
      
      There are also some other options shown in lib/config-defaults.php
      for power users.
      
      By default, email will only be disabled when more than 4 bounces
      have been received, and the ratio between bounces and emails sent
      to the user is above 0.2
      
      Change-Id: I0bbc4cae26fd5284e4cbdc25b01ea4b566dd045a
      Signed-off-by: default avatarHugh Davenport <hugh@catalyst.net.nz>
      ed5e91ab
  9. 03 Aug, 2012 1 commit
  10. 03 Jul, 2012 1 commit
  11. 26 Jun, 2012 1 commit
  12. 18 Jun, 2012 1 commit
  13. 12 Jun, 2012 1 commit
  14. 08 Jun, 2012 6 commits
  15. 01 Jun, 2012 1 commit
  16. 31 May, 2012 2 commits
    • Richard Mansfield's avatar
      Add config option to allow users to change their theme · e250631d
      Richard Mansfield authored
      
      
      Part of bug #793308
      
      Adds a config.php option which lets users change their theme (for
      browsing) via a drop-down on the Settings page.  The allowed themes
      are the same set accessible to the user when the viewthemes option is
      availiable.  Any theme which is restricted to one or more institutions
      in its themeconfig.php file is not available in the drop-down unless
      the user is a member of one of those institutions.
      
      Change-Id: If6a7db9a4c160e16b38d22a074c128777968c4ca
      Signed-off-by: default avatarRichard Mansfield <richard.mansfield@catalyst.net.nz>
      e250631d
    • Richard Mansfield's avatar
      Add support in User for theme preference · c1fda6fe
      Richard Mansfield authored
      
      
      Part of bug #793308
      
      If a user has the 'theme' property set in their account preferences,
      this is used instead of the site or institution's theme.
      
      The LiveUser::reset_institutions() function, which recalculates the
      institution theme, is now called in place of LiveUser::update_theme()
      whenever a user's institutions have changed.  reset_institutions() now
      calls update_theme() if the user is a LiveUser.
      
      Change-Id: I75b36da85a5aa249c3098078b8588b8a20ac9b48
      Signed-off-by: default avatarRichard Mansfield <richard.mansfield@catalyst.net.nz>
      c1fda6fe
  17. 04 May, 2012 1 commit
  18. 21 Feb, 2012 1 commit
  19. 17 Feb, 2012 1 commit
  20. 02 Feb, 2012 1 commit
    • Richard Mansfield's avatar
      Fix remote avatars broken by 'profileiconbyid' commit (bug #924777) · ab3b5a19
      Richard Mansfield authored
      Commit 011c5039 changed lot of thumb.php urls to use the
      type=profileiconbyid parameter (which takes an artefact id) rather
      than type=profileicon (which takes a user id, and which cannot be
      cached).
      
      Unfortunately, when a user has no locally stored profile icon, use of
      type=profileiconbyid stops their remote gravatar image from being
      displayed.
      
      This commit updates the thumb.php urls that were changed in commit
      011c5039 to use the profile_icon_url() function, which respects
      remote avatars when no local profileicon is available.
      
      In some cases this requires a new size of the no_userphoto.png image,
      so three new sizes are added in the raw theme.  The four no_userphoto
      images in the custom theme were duplicates of those in raw, and are
      removed.
      
      Finally, the type=profileiconbyid change from commit 011c5039
      
       in the
      viewacl.tpl template has been reverted back to type=profileicon.
      Because this url is constructed in javascript, it is not worth the
      trouble to use a profile_icon_url call here until the number of
      requests to thumb.php really becomes a problem.
      
      Change-Id: I7dce7090842999fe090dc2d8c481cb4aca7720d5
      Signed-off-by: default avatarRichard Mansfield <richard.mansfield@catalyst.net.nz>
      ab3b5a19
  21. 16 Jan, 2012 2 commits
    • Richard Mansfield's avatar
      Use type=profileiconbyid in more requests for thumb.php · 011c5039
      Richard Mansfield authored
      
      
      This can help to reduce the overall number of requests for thumb.php
      because the 'profileiconbyid' urls are cached for longer by the
      browser.
      
      (Where the profile_icon_url function can be used, we also avoid the
      need to generate additional requests for users without profileicons,
      when remote avatars are disabled.  But because profile_icon_url relies
      on the nouserphoto icon being available in the requested size, we
      can't use it everywhere until we either generate the nouserphoto icon
      in more sizes, or change all those pages to use standard sizes.)
      
      Change-Id: I81c5c5f4b7f9136bf9b6a6f711e55a4bceb6fa14
      Signed-off-by: default avatarRichard Mansfield <richard.mansfield@catalyst.net.nz>
      011c5039
    • Richard Mansfield's avatar
      Fix sql error in bulk user deletion (bug #916998) · 9bc9d15c
      Richard Mansfield authored
      
      
      When a user is deleted, deletion of notification_internal_activity
      records can fail with a foreign key error when another row in
      notification_internal_activity has a parent field pointing to one of
      the records we are trying to delete.  This is fixed by setting the
      parent fields to null before deletion.
      
      The handle_event('deleteuser') call in delete_user is also moved
      inside the transaction, to ensure that deleted users will have their
      notifications deleted correctly.  Other subscribers to the deleteuser
      event in core should be unaffected.
      
      Change-Id: Ibc0a695e986bb175a00441f02d3e40abf38cbcde
      Signed-off-by: default avatarRichard Mansfield <richard.mansfield@catalyst.net.nz>
      9bc9d15c
  22. 11 Jan, 2012 1 commit
    • Richard Mansfield's avatar
      Cache user records in calls to display_default_name · bb91e704
      Richard Mansfield authored
      Commit 0cdaaa1d
      
       introduced a lot of calls to display_default_name.
      Unfortunately this bypasses the user record caching that happens
      inside display_name, so it produced a lot of new queries, most notably
      on profile pages, where a single user's name gets displayed several
      times.
      
      This change moves the caching of user records into another function,
      so it can be shared by display_name, display_default_name, and
      profile_icon_url.
      
      The search_user function is also modified to fetch the admin status
      and profileicon id, to stop profile_icon_url producing more queries.
      
      Change-Id: Id1993decf164e7d0563a7d277444402fc6350b3a
      Signed-off-by: default avatarRichard Mansfield <richard.mansfield@catalyst.net.nz>
      bb91e704
  23. 10 Jan, 2012 4 commits
  24. 24 Nov, 2011 1 commit
    • Richard Mansfield's avatar
      Remove wwwroot from notification urls (bug #849716) · 4384e747
      Richard Mansfield authored
      
      
      Urls stored in the url field of notification_internal_activity contain
      the site's wwwroot.  This leads to broken links when the wwwroot is
      changed.  It also dangerously turns what should be local links into
      remote ones when for example a production database is copied into a
      test Mahara instance.
      
      This patch does three things:
      - Removes the wwwroot from urls passed to ActivityType constructors
      - Adds the wwwroot back on the url when sending email and emaildigest
        notifications, and when displaying them on the site.
      - Removes the wwwroot from the url in all existing rows of
        notification_internal_activity.
      
      Change-Id: I00ae1abc65be79030ed4c572ce951edc43f7a034
      Signed-off-by: default avatarRichard Mansfield <richard.mansfield@catalyst.net.nz>
      4384e747
  25. 30 Sep, 2011 1 commit
  26. 29 Sep, 2011 3 commits