You are here

README.txt in Vote Up/Down 6

Same filename and directory in other branches
  1. 5 README.txt
  2. 6.3 README.txt
  3. 6.2 README.txt
  4. 7.2 README.txt
  5. 7 README.txt
[[ THIS FILE NEEDS TO BE UPDATED OR REMOVED ]]
**********************************************

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