You are here

README.txt in Vote Up/Down 5

Same filename and directory in other branches
  1. 6.3 README.txt
  2. 6 README.txt
  3. 6.2 README.txt
  4. 7.2 README.txt
  5. 7 README.txt
Drupal Vote up/down Package:
---------------------------
Author - Fredrik Jonsson fredrik at combonet dot se
Requires - Drupal 5
License - GPL (see LICENSE)


Overview:
--------
This project is an attempt to build a digg.com/reddit.com clone.
There are voting widgets that mimic both, i.e. +1/-1 and +1 voting.
It builds upon a number of other module, se below.

AJAX functionality is used for voting if the browser supports it
(using drupal.js included in Druapl 4.7). Bookmarklets are supported
for quickly submitting new story links. A number of RSS feeds are
available.

This is not a point and click solution. This project provide the missing
pieces but you need to put them all together. Please try it out and
report back with bugs you find and suggestions you have.


Features and files:
------------------
List of the files and there function:
* vote_up_down.module - Provides voting widgets for nodes and comments.
* vote_storylink.module - Provides a node type suitable for links to storys.
* node-storylink.tpl.php - PHPTemplate theming of story links
* alternative/node-storylink.tpl.php - PHPTemplate theming of story links
* template.php - PHPTemplate theming of story links
* vote_up_down.css - Adds some css style to the above files.
* ajax_vote_up_down.js - JavaScript for AJAX functionality

The "vote_up_down.module" can be used on any node type to allow
users to vote +1/-1 on them.

The "vote_storylink.module" give a new node type that is well suited
for a digg.com/reddit.com style site. It provides two blocks.
* A user navigation block with links to, "submit new story", "my account", 
  "my posts" and "log out".
* A "Top story links" block with links to "this day", "this week", 
  "this month", "this year" and "all time".

Pages that are generated by "vote_up_down.module":
* admin/vote_up_down
* admin/vote_up_down/user_votes
* node/[nid]/votes

Pages that are generated by "vote_storylink.module":
* storylink (same as storylink/new)
* storylink/new
* storylink/queue
* storylink/top
* storylink/top/day
* storylink/top/week
* storylink/top/month
* storylink/top/year
* storylink/[uid] (all posts for a user)

Feed that are generated by "vote_storylink.module":
* storylink/new/feed
* storylink/queue/feed
* storylink/top/feed
* storylink/top/week/feed
* storylink/top/month/feed
* storylink/top/year/feed
* storylink/[uid]/feed


Installation and configuration:
------------------------------
See INSTALL.txt contributed by Ron Williams.


Theme story links:
-----------------
If you use a PHPTemplate theme you can theme story links nodes with a
"node-storylink.tpl.php" file.

An example "node-storylink.tpl.php" and "template.php" is included.
Place them in the folder of your theme. The examples are styled with the
css file "vote_up_down.css" in the vote_up_down module folder.

In "alternative" there are a "node-storylink.tpl.php" for use with the 
"Alternative +1 vote style" (digg style) voting widget.

The example include these functions:
* Make the title an external link to the submitted story.
* Inserts the voting widget directly for greater control.
* Inserts the domain of the submitted story url like "(via example.com)".
* Displays a small user picture above the voting widget.

OBS! When using "node-storylink.tpl.php" you must turn off
"Vote widget display..." in "admin/settings/vote_up_down" to avoid
getting double voting widgets.


Bookmarklet to submit story links:
---------------------------------
javascript:location.href='http://www.example.com/node/add/storylink?edit[url]='+encodeURIComponent(location.href)+'&edit[title]='+encodeURIComponent(document.title)

Replace "www.example.com" with your domain.


Contributions:
-------------
* INSTALL.txt contributed by Ron Williams.
  This has cut down on the support requst considerbly and
  has made the package much more accessible for users.

* jQuery verision of ajax_vote_up_down.js by Nedjo Rogers.
  The Drupal 5 version whould have taken a *lot* longer
  if I have had to do this myself.


Last updated:
------------

File

README.txt
View source
  1. Drupal Vote up/down Package:
  2. ---------------------------
  3. Author - Fredrik Jonsson fredrik at combonet dot se
  4. Requires - Drupal 5
  5. License - GPL (see LICENSE)
  6. Overview:
  7. --------
  8. This project is an attempt to build a digg.com/reddit.com clone.
  9. There are voting widgets that mimic both, i.e. +1/-1 and +1 voting.
  10. It builds upon a number of other module, se below.
  11. AJAX functionality is used for voting if the browser supports it
  12. (using drupal.js included in Druapl 4.7). Bookmarklets are supported
  13. for quickly submitting new story links. A number of RSS feeds are
  14. available.
  15. This is not a point and click solution. This project provide the missing
  16. pieces but you need to put them all together. Please try it out and
  17. report back with bugs you find and suggestions you have.
  18. Features and files:
  19. ------------------
  20. List of the files and there function:
  21. * vote_up_down.module - Provides voting widgets for nodes and comments.
  22. * vote_storylink.module - Provides a node type suitable for links to storys.
  23. * node-storylink.tpl.php - PHPTemplate theming of story links
  24. * alternative/node-storylink.tpl.php - PHPTemplate theming of story links
  25. * template.php - PHPTemplate theming of story links
  26. * vote_up_down.css - Adds some css style to the above files.
  27. * ajax_vote_up_down.js - JavaScript for AJAX functionality
  28. The "vote_up_down.module" can be used on any node type to allow
  29. users to vote +1/-1 on them.
  30. The "vote_storylink.module" give a new node type that is well suited
  31. for a digg.com/reddit.com style site. It provides two blocks.
  32. * A user navigation block with links to, "submit new story", "my account",
  33. "my posts" and "log out".
  34. * A "Top story links" block with links to "this day", "this week",
  35. "this month", "this year" and "all time".
  36. Pages that are generated by "vote_up_down.module":
  37. * admin/vote_up_down
  38. * admin/vote_up_down/user_votes
  39. * node/[nid]/votes
  40. Pages that are generated by "vote_storylink.module":
  41. * storylink (same as storylink/new)
  42. * storylink/new
  43. * storylink/queue
  44. * storylink/top
  45. * storylink/top/day
  46. * storylink/top/week
  47. * storylink/top/month
  48. * storylink/top/year
  49. * storylink/[uid] (all posts for a user)
  50. Feed that are generated by "vote_storylink.module":
  51. * storylink/new/feed
  52. * storylink/queue/feed
  53. * storylink/top/feed
  54. * storylink/top/week/feed
  55. * storylink/top/month/feed
  56. * storylink/top/year/feed
  57. * storylink/[uid]/feed
  58. Installation and configuration:
  59. ------------------------------
  60. See INSTALL.txt contributed by Ron Williams.
  61. Theme story links:
  62. -----------------
  63. If you use a PHPTemplate theme you can theme story links nodes with a
  64. "node-storylink.tpl.php" file.
  65. An example "node-storylink.tpl.php" and "template.php" is included.
  66. Place them in the folder of your theme. The examples are styled with the
  67. css file "vote_up_down.css" in the vote_up_down module folder.
  68. In "alternative" there are a "node-storylink.tpl.php" for use with the
  69. "Alternative +1 vote style" (digg style) voting widget.
  70. The example include these functions:
  71. * Make the title an external link to the submitted story.
  72. * Inserts the voting widget directly for greater control.
  73. * Inserts the domain of the submitted story url like "(via example.com)".
  74. * Displays a small user picture above the voting widget.
  75. OBS! When using "node-storylink.tpl.php" you must turn off
  76. "Vote widget display..." in "admin/settings/vote_up_down" to avoid
  77. getting double voting widgets.
  78. Bookmarklet to submit story links:
  79. ---------------------------------
  80. javascript:location.href='http://www.example.com/node/add/storylink?edit[url]='+encodeURIComponent(location.href)+'&edit[title]='+encodeURIComponent(document.title)
  81. Replace "www.example.com" with your domain.
  82. Contributions:
  83. -------------
  84. * INSTALL.txt contributed by Ron Williams.
  85. This has cut down on the support requst considerbly and
  86. has made the package much more accessible for users.
  87. * jQuery verision of ajax_vote_up_down.js by Nedjo Rogers.
  88. The Drupal 5 version whould have taken a *lot* longer
  89. if I have had to do this myself.
  90. Last updated:
  91. ------------