You are here

README.txt in Forward 7.3


        FORWARD MODULE - README
______________________________________________________________________________

NAME:       Forward

AUTHORS:    Drupal 7 version:
            John Oltman <john.oltman@sitebasin.com>

            Drupal 6 version:
            Sean Robertson <seanr@ngpsoftware.com>
            Peter Feddo
______________________________________________________________________________


DESCRIPTION

  Adds a "forward this page" link to each entity. This module allows users to
  forward a link to a specific entity on your site to a friend. You can
  customize the default form field values and even view a running count of
  the emails sent so far using the forward module.


INSTALLATION

  Forward is intalled like any other module and placed in the
  sites/all/modules folder. Consult drupal.org if you need help installing
  or enabling contributed modules.


ENTITY SUPPORT

  This version of Forward is fully compatible with the Drupal entity model,
  meaning you can place Forwards links and forms on taxonomy terms, users,
  comments and even your own custom entities, in addition to nodes. The
  entity must have at least one view mode defined to be eligible to be
  forwarded.


CONFIGURATION

  Go to "/admin/config/user-interface/forward" to configure the module.
  This path is also linked from the Configuration page and the Modules list
  page within site administration.

  If you wish to customize the emails, copy 'forward.tpl.php' into your theme
  directory. Then you can customize the function as needed and those changes
  will only appear when sent by a user using that theme.

  If you check the 'custom display' box on the configuration page, the Forward
  view mode which defines the fields that will be sent in Forward emails can
  be configured using the Manage Display tab for the relevant entity and bundle.


THEMING FIELDS SENT IN FORWARD EMAILS

  If you enable the "custom display" option and check the "output themed entity"
  box on the configuration page, you can theme the entity fields that are sent
  using a template such as node--forward.tpl.php for nodes.  When using this
  option, you will most likely not want to output the entity title, since the
  title is already output within the mail template forward.tpl.php.

  Here are the template suggestions that are enabled when using this option:

  [entity-type]--forward.tpl.php
  [entity-type]--[bundle]--forward.tpl.php


SENDING FORWARD EMAILS AS HTML

  By default, Forward will install a new mail system named ForwardMailSystem
  that is configured to send email as HTML. If you installed a different
  mail system module for sending emails, you should visit the Mail System
  configuration page at "admin/config/system/mailsystem" to change the mail
  system setup.  For example, if you installed the HTMLMail module, you could
  change the default site wide mail system to HTMLMailSystem. The Mail System
  module also allows you to use one mail system as a default but a different
  mail system on a module by module basis.  This would allow you to use a
  special mail handler for Forward emails while not affecting emails sent
  from the rest of your site.


PERMISSIONS

  Enable permissions appropriate to your site.

  Go to "/admin/people/permissions#module-forward" to configure permissions.
  This path is also linked from the Modules list page, click on the 
  Permissions link next to Forward.

  The forward module provides several permissions:
   - 'access forward': allow user to forward pages.
   - 'access epostcard': allow user to send an epostcard.
   - 'override email address': allow logged in user to change sender address.
   - 'administer forward': allow user to configure forward.
   - 'override flood control': allow user to bypass flood control on send.

  Note that you need to enable 'access forward' for users who should be able
  to send emails using the forward module.


STATISTICS

  Go to "/admin/reports/forward" to view forward usage statistics.
  There is also a link on the Reports page within site administration.

  Statistics are captured when emails are sent and when recipients click on
  links within the sent emails.


DEFAULT VIEWS

  If the Views module is enabled for your site, go to "admin/structure/views"
  to optionally enable and configure Forward related views:
  
  Most forwarded
  Most recently forwarded
  Most clickthroughs


VIEWS INTEGRATION

  The Forward Log is now integrated with Views 3 for Drupal 7. You can create
  a view with log data including users who forwarded, the forwarded path, the
  data and time the forwarding occurred, and other information.

  You can also add a Forward link if you are using fields as the row style.


BLOCKS

  Go to "admin/structure/block" to optionally enable and configure Forward
  blocks for your theme.  Several blocks are available:

  Forward: Interface - places the forward link or forward form in a block
  Forward: Statistics - most recently emailed or most emailed of all time

  If you enabled views in step 7, these blocks are also available:

  View: Most forwarded
  View: Most recently forwarded
  View: Most clickthroughs


THEMEING

  Sent email   - copy forward.tpl.php into your theme and modify
  Forward page - add yourtheme_forward_page($variables) to template.php
  Forward link - add yourtheme_forward_link($variables) to template.php

  Forward links generated using Panels, Display Suite or Views integration
  are fully themeable. Forward links generated into the node inline links
  render array are not directly themeable; to override these links you
  can write a preprocess function. However, the ability to provide a
  custom icon and any text for the links via the Forward configuration
  page should make this unnecessary for most use cases.


TEMPLATES

  Forward links can be hardcoded into your theme templates as needed:

  // For entities

  print theme('forward_link', array(
    'entity_type' => $entity_type,  // for example, 'entity_type' => 'node'
    'entity' => $entity,            // for example, 'entity' => $node
    )
  );

  // For views pages and other non-entity pages

  print theme('forward_link', array('path' => $path));
  
  // for example, $path could contain 'listing/recent-posts'


  The use of Display Suite or Panels is recommended instead of writing PHP.

  
DISPLAY SUITE INTEGRATION

  Forward link is now a field that is available within DS layouts.


PANELS INTEGRATION

  Forward link is now available when adding content to a panel, both as an
  entity field and also a widget. If your panel is working within an entity
  context, such as overriding a standard view with a panel, use the entity
  field instead of the widget. The entity field is available within the Entity
  group as well as the individual entity type groups.


DYNAMIC BLOCK ACCESS CONTROL

  The 7.x-1.3 release of the Forward module added a new security field
  for administators on the Forward configuration page named Dynamic Block
  Access Control.  This field allows the administrator to control which
  permissions are used when Drupal applies access control checks to the nodes,
  comments or users listed in the Dynamic Block.  Several access control
  options are available, including a bypass option.  The bypass option allows
  the email recipient to possibly view node titles, comment titles, or user
  names that only privileged users should see. The bypass option should not
  normally be selected, but is provided for sites that used prior versions
  of Forward and rely on the access bypass to operate correctly.

  IMPORTANT: Because the default for the new field is to apply access control,
  administrators of sites that rely on the access bypass to operate correctly
  need to visit the Forward configuration page and explicitly select the bypass
  option after upgrading from versions of Forward prior to 7.x-1.3.


CLICKTHROUGH COUNTER FLOOD CONTROL

  The Forward module tracks clicks from links in sent emails to determine which
  nodes get the most clickthroughs.  The method used could allow someone to
  manipulate clickthrough counts via CSRF - for example, placing an image on
  a website with a src tag that points to the clickthrough counter link.  The
  module uses flood control to limit the number of clickthroughs from a given
  IP address in a given time period to migitate this possibility.


CREDITS & SUPPORT

  Special thanks to Jeff Miccolis of developmentseed.org for supplying the
  tracking features and various other edits.  Thanks also to Nick White for
  his EmailPage module, some code from which was used in this module, as well
  as the numerous other users who have submitted issues and patches.

  All issues with this module should be reported via the following form:
  http://drupal.org/node/add/project_issue/forward

File

README.txt
View source
  1. FORWARD MODULE - README
  2. ______________________________________________________________________________
  3. NAME: Forward
  4. AUTHORS: Drupal 7 version:
  5. John Oltman
  6. Drupal 6 version:
  7. Sean Robertson
  8. Peter Feddo
  9. ______________________________________________________________________________
  10. DESCRIPTION
  11. Adds a "forward this page" link to each entity. This module allows users to
  12. forward a link to a specific entity on your site to a friend. You can
  13. customize the default form field values and even view a running count of
  14. the emails sent so far using the forward module.
  15. INSTALLATION
  16. Forward is intalled like any other module and placed in the
  17. sites/all/modules folder. Consult drupal.org if you need help installing
  18. or enabling contributed modules.
  19. ENTITY SUPPORT
  20. This version of Forward is fully compatible with the Drupal entity model,
  21. meaning you can place Forwards links and forms on taxonomy terms, users,
  22. comments and even your own custom entities, in addition to nodes. The
  23. entity must have at least one view mode defined to be eligible to be
  24. forwarded.
  25. CONFIGURATION
  26. Go to "/admin/config/user-interface/forward" to configure the module.
  27. This path is also linked from the Configuration page and the Modules list
  28. page within site administration.
  29. If you wish to customize the emails, copy 'forward.tpl.php' into your theme
  30. directory. Then you can customize the function as needed and those changes
  31. will only appear when sent by a user using that theme.
  32. If you check the 'custom display' box on the configuration page, the Forward
  33. view mode which defines the fields that will be sent in Forward emails can
  34. be configured using the Manage Display tab for the relevant entity and bundle.
  35. THEMING FIELDS SENT IN FORWARD EMAILS
  36. If you enable the "custom display" option and check the "output themed entity"
  37. box on the configuration page, you can theme the entity fields that are sent
  38. using a template such as node--forward.tpl.php for nodes. When using this
  39. option, you will most likely not want to output the entity title, since the
  40. title is already output within the mail template forward.tpl.php.
  41. Here are the template suggestions that are enabled when using this option:
  42. [entity-type]--forward.tpl.php
  43. [entity-type]--[bundle]--forward.tpl.php
  44. SENDING FORWARD EMAILS AS HTML
  45. By default, Forward will install a new mail system named ForwardMailSystem
  46. that is configured to send email as HTML. If you installed a different
  47. mail system module for sending emails, you should visit the Mail System
  48. configuration page at "admin/config/system/mailsystem" to change the mail
  49. system setup. For example, if you installed the HTMLMail module, you could
  50. change the default site wide mail system to HTMLMailSystem. The Mail System
  51. module also allows you to use one mail system as a default but a different
  52. mail system on a module by module basis. This would allow you to use a
  53. special mail handler for Forward emails while not affecting emails sent
  54. from the rest of your site.
  55. PERMISSIONS
  56. Enable permissions appropriate to your site.
  57. Go to "/admin/people/permissions#module-forward" to configure permissions.
  58. This path is also linked from the Modules list page, click on the
  59. Permissions link next to Forward.
  60. The forward module provides several permissions:
  61. - 'access forward': allow user to forward pages.
  62. - 'access epostcard': allow user to send an epostcard.
  63. - 'override email address': allow logged in user to change sender address.
  64. - 'administer forward': allow user to configure forward.
  65. - 'override flood control': allow user to bypass flood control on send.
  66. Note that you need to enable 'access forward' for users who should be able
  67. to send emails using the forward module.
  68. STATISTICS
  69. Go to "/admin/reports/forward" to view forward usage statistics.
  70. There is also a link on the Reports page within site administration.
  71. Statistics are captured when emails are sent and when recipients click on
  72. links within the sent emails.
  73. DEFAULT VIEWS
  74. If the Views module is enabled for your site, go to "admin/structure/views"
  75. to optionally enable and configure Forward related views:
  76. Most forwarded
  77. Most recently forwarded
  78. Most clickthroughs
  79. VIEWS INTEGRATION
  80. The Forward Log is now integrated with Views 3 for Drupal 7. You can create
  81. a view with log data including users who forwarded, the forwarded path, the
  82. data and time the forwarding occurred, and other information.
  83. You can also add a Forward link if you are using fields as the row style.
  84. BLOCKS
  85. Go to "admin/structure/block" to optionally enable and configure Forward
  86. blocks for your theme. Several blocks are available:
  87. Forward: Interface - places the forward link or forward form in a block
  88. Forward: Statistics - most recently emailed or most emailed of all time
  89. If you enabled views in step 7, these blocks are also available:
  90. View: Most forwarded
  91. View: Most recently forwarded
  92. View: Most clickthroughs
  93. THEMEING
  94. Sent email - copy forward.tpl.php into your theme and modify
  95. Forward page - add yourtheme_forward_page($variables) to template.php
  96. Forward link - add yourtheme_forward_link($variables) to template.php
  97. Forward links generated using Panels, Display Suite or Views integration
  98. are fully themeable. Forward links generated into the node inline links
  99. render array are not directly themeable; to override these links you
  100. can write a preprocess function. However, the ability to provide a
  101. custom icon and any text for the links via the Forward configuration
  102. page should make this unnecessary for most use cases.
  103. TEMPLATES
  104. Forward links can be hardcoded into your theme templates as needed:
  105. // For entities
  106. print theme('forward_link', array(
  107. 'entity_type' => $entity_type, // for example, 'entity_type' => 'node'
  108. 'entity' => $entity, // for example, 'entity' => $node
  109. )
  110. );
  111. // For views pages and other non-entity pages
  112. print theme('forward_link', array('path' => $path));
  113. // for example, $path could contain 'listing/recent-posts'
  114. The use of Display Suite or Panels is recommended instead of writing PHP.
  115. DISPLAY SUITE INTEGRATION
  116. Forward link is now a field that is available within DS layouts.
  117. PANELS INTEGRATION
  118. Forward link is now available when adding content to a panel, both as an
  119. entity field and also a widget. If your panel is working within an entity
  120. context, such as overriding a standard view with a panel, use the entity
  121. field instead of the widget. The entity field is available within the Entity
  122. group as well as the individual entity type groups.
  123. DYNAMIC BLOCK ACCESS CONTROL
  124. The 7.x-1.3 release of the Forward module added a new security field
  125. for administators on the Forward configuration page named Dynamic Block
  126. Access Control. This field allows the administrator to control which
  127. permissions are used when Drupal applies access control checks to the nodes,
  128. comments or users listed in the Dynamic Block. Several access control
  129. options are available, including a bypass option. The bypass option allows
  130. the email recipient to possibly view node titles, comment titles, or user
  131. names that only privileged users should see. The bypass option should not
  132. normally be selected, but is provided for sites that used prior versions
  133. of Forward and rely on the access bypass to operate correctly.
  134. IMPORTANT: Because the default for the new field is to apply access control,
  135. administrators of sites that rely on the access bypass to operate correctly
  136. need to visit the Forward configuration page and explicitly select the bypass
  137. option after upgrading from versions of Forward prior to 7.x-1.3.
  138. CLICKTHROUGH COUNTER FLOOD CONTROL
  139. The Forward module tracks clicks from links in sent emails to determine which
  140. nodes get the most clickthroughs. The method used could allow someone to
  141. manipulate clickthrough counts via CSRF - for example, placing an image on
  142. a website with a src tag that points to the clickthrough counter link. The
  143. module uses flood control to limit the number of clickthroughs from a given
  144. IP address in a given time period to migitate this possibility.
  145. CREDITS & SUPPORT
  146. Special thanks to Jeff Miccolis of developmentseed.org for supplying the
  147. tracking features and various other edits. Thanks also to Nick White for
  148. his EmailPage module, some code from which was used in this module, as well
  149. as the numerous other users who have submitted issues and patches.
  150. All issues with this module should be reported via the following form:
  151. http://drupal.org/node/add/project_issue/forward