README.txt 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. # Lorea Linkup plugin for Elgg 1.8
  2. Linkup provides a simple markup to turn references to known entities
  3. into clickable links.
  4. It recognizes:
  5. - @username and links to the user profile
  6. - #1234 and links to the related task entity, otherwise,
  7. - #hashtag and links to the tag's page (can be #12 if it's not a task)
  8. - !1234 and links to the group's page whose GUID is "1234"
  9. - !group and links to the group's page whose group_alias is "group"
  10. (requires the (https://gitorious.org/lorea/group_alias)[group_alias] plugin)
  11. - *1234 and links to the corresponding ElggEntity page for that GUID
  12. It works by scraping the resulting view and changing the markup
  13. on-the-fly for the current user: if they do not have access to the
  14. target entity, the link won't be made. Therefore, the plugin can be
  15. activated and deactivated without changing anything from the original
  16. contents. It also create links to entities once they're created.
  17. It depends on libxml being installed and available. Linkup uses
  18. [DOMDocument](http://php.net/dom) to parse the tags and extract the
  19. parts to be checked for markup. It works independently from any
  20. plugins.
  21. There is a plugin hook 'linkup','object:$subtype' for plugin authors
  22. to add their own entity-specific markup functions. See how the tasks
  23. are handled to get started.
  24. This plugin is brought to you by Lorea Faeries, and available under
  25. the GNU Affero General Public License version 3, or later (see
  26. LICENSE.txt.)
  27. ## Releases
  28. Current release is **v0.2.4**.
  29. Releases follow the [Semantic Versioning](http://semver.org/) rules.
  30. ## Roadmap / Changes
  31. ### Version 0.1.0, 2012-08-12 [deprecated]
  32. This is a rewrite from a couple of weeks ago before the CPU fan lost power,
  33. and I couldn't transmit the code before I left Europe. It recognizes basic
  34. cases for users and groups. Generic entities are still to be supported.
  35. ### Version 0.2.0, 2012-10-12 [deprecated]
  36. - Add support for generic entities and proper permissions check.
  37. - Now uses DOMDocument to restrict usage of the regular expression to safer
  38. zones.
  39. - Add a plugin hook 'linkup','object:$subtype' for plugins to provide a
  40. specific markup for their entities.
  41. - Add support for tasks as an example extension.
  42. ### Version 0.2.1, 2012-11-01 [deprecated]
  43. - Fix erroneous function call
  44. - Update README
  45. - Update copyright information for AGPLv3+
  46. - Ready for #Foxglove!
  47. ### Version 0.2.2, 2012-11-04 [deprecated]
  48. - Do not try to markup empty nodes (fixes #1502591)
  49. - Add support for subgroup aliases (e.g. lorea+code)
  50. - Updated version for #Foxglove
  51. ### Version 0.2.3, ? [deprecated]
  52. Missed?
  53. ### Version 0.2.4, 2013-01-18 *foxglove*
  54. - Fix bug introduced in acf1af78 that prevented the markup from being applied.
  55. ### Version 0.3.0
  56. - Add support for CSS icons for generated links.
  57. - Add descriptive titles from entity context.
  58. ### Version 0.4.0
  59. - Add support for autocompletion preview (to make it easier to
  60. type shortcuts.)