Wicher's phpBB2 Mods Forum Index Wicher's phpBB2 Mods
On this board you will find all phpBB2 mods that i have created over the years. Most mods are on this board installed. Before asking for support, be sure to have your board updated to the latest phpBB2 version.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 Simple db_update generatorSimple db_update generator   Advanced db_update generatorAdvanced db_update generator 
 This board is protected by Phpbbantispam 

Was This Post/Topic Helpful

 
Board Alert Board Message
There are in this topic 173 posts to view if you are logged in.

You can log in or register via the login / registerlink here or in the header.
Back to top  Login here and be redirected to this TopicLogin here and be redirected to this Topic RegisterRegister
Reply to topic    Wicher's phpBB2 Mods Forum Index -> Wicher's phpBB Mods Was this Topic Helpful?  
Points for this topic: 25
Topic gradiation: 
View previous topic :: View next topic  
Author Was This Post/Topic Helpful
Wicher
Site Admin


Joined: 16 Dec 2005
Posts: 1144
User's local time:
2017 Sep 19 - 2:28 PM
Country IP         : Netherlands
Country of choice: Netherlands


Was This Post Helpful?

 
Users postingpoints:
57
Posts points:
13
Post gradiation:
PostPosted: Sun Mar 04, 2007 10:59 pm    Post subject: Reply with quote

Code:
  1. #################################################################
  2. ## MOD Title: Was This Post/Topic Helpful
  3. ## MOD Author: Wicher < N/A > (N/A) http://www.wichersmods.nl
  4. ## MOD Description:  This is a sort of ranking mod, users can click on yes or no
  5. ##                   if they find a post or topic helpful or not.
  6. ##                   Points will be added to the posters total points, the post or the topic if clicked yes
  7. ##                   and if clicked no one points will be subtracted from the total.
  8. ##                   
  9. ##                 
  10. ## 
  11. ## MOD Version: 1.0.5
  12. ##
  13. ## Installation Level:  easy
  14. ## Installation Time:  45 minutes
  15. ##
  16. ## Files To Edit:    memberlist.php
  17. ##                   modcp.php
  18. ##                   posting.php
  19. ##                   viewtopic.php
  20. ##                   viewforum.php
  21. ##                   includes/constants.php
  22. ##                   includes/functions_post.php
  23. ##                   includes/prune.php
  24. ##                   includes/usercp_viewprofile.php
  25. ##                   language/lang_english/lang_main.php
  26. ##                   templates/subSilver/memberlist_body.tpl
  27. ##                   templates/subSilver/subSilver.cfg
  28. ##                   templates/subSilver/posting_body.tpl
  29. ##                   templates/subSilver/profile_view_body.tpl
  30. ##                   templates/subSilver/viewtopic_body.tpl
  31. ##                   templates/subSilver/viewforum_body.tpl
  32. ##
  33. ## Included Files: admin/admin_helpful.php
  34. ##                 templates/subSilver/admin/helpful_config_body.tpl
  35. ##                 templates/subSilver/images/lang_english/yes.gif
  36. ##                 templates/subSilver/images/lang_english/no.gif
  37. ##                 templates/subSilver/images/gradiation_start-end.gif
  38. ##                 templates/subSilver/images/gradiation_green.gif
  39. ##                 templates/subSilver/images/gradiation_red.gif
  40. ##                 templates/subSilver/images/gradiation_trans.gif
  41. ##                 templates/subSilver/images/1a_star.gif
  42. ##                 templates/subSilver/images/2a_star.gif
  43. ##                 templates/subSilver/images/3a_star.gif
  44. ##                 templates/subSilver/images/4a_star.gif
  45. ##                 templates/subSilver/images/5a_star.gif
  46. ##                 templates/subSilver/images/1star.gif
  47. ##                 templates/subSilver/images/2star.gif
  48. ##                 templates/subSilver/images/3star.gif
  49. ##                 templates/subSilver/images/4star.gif
  50. ##                 templates/subSilver/images/5star.gif
  51. ##                 templates/subSilver/images/avarage.gif
  52. ##                 templates/subSilver/images/avaragesmall.gif
  53. ##                 templates/subSilver/images/good.gif
  54. ##                 templates/subSilver/images/goodsmall.gif
  55. ##                 templates/subSilver/images/poor.gif
  56. ##                 templates/subSilver/images/poorsmall.gif
  57. ##                 templates/subSilver/images/verygood.gif
  58. ##                 templates/subSilver/images/verygoodsmall.gif
  59. ##                 templates/subSilver/images/verypoor.gif
  60. ##                 templates/subSilver/images/verypoorsmall.gif
  61. ##
  62. ## License:      http://opensource.org/licenses/gpl-license.php GNU General Public License v2
  63. ##
  64. ##############################################################
  65. ## For security purposes, please check: http://www.phpbb.com/mods/
  66. ## for the latest version of this MOD. Although MODs are checked
  67. ## before being allowed in the MODs Database there is no guarantee
  68. ## that there are no security problems within the MOD. No support
  69. ## will be given for MODs not found within the MODs Database which
  70. ## can be found at http://www.phpbb.com/mods/
  71. ##############################################################
  72. ## Author Notes:   
  73. ##         This mod has been tested on phpbb 2.0.22
  74. ##         Example board http://www.wichersmods.nl/TestphpBB
  75. ##
  76. ##############################################################
  77. ## MOD History:
  78. ##
  79. ##   2007-07-23 - Version 1.0.5
  80. ##    - Added images for the topicrates a user has given for display next to there posts.
  81. ##    - Added choice in Helpful config which kind of image to display or just plain text.
  82. ##   2007-07-22 - Version 1.0.4
  83. ##    - Added view if user has rated the topic or not and how it was rated.
  84. ##   2007-07-21 - Version 1.0.3
  85. ##    - Added choice between voting on the viewtopic page or on the posting page.
  86. ##   2007-07-12 - Version 1.0.2
  87. ##    - Fixed bug in lang_main.php.
  88. ##   2007-06-28 - Version 1.0.1
  89. ##    - Added points in memberlist.
  90. ##   2007-04-20 - Version 1.0.0
  91. ##    - stable release
  92. ##   2007-04-20 - Version 0.1.2
  93. ##    - Bugfix in config
  94. ##   2007-04-10 - Version 0.1.1
  95. ##    - Some changes to make it xhtml compliant
  96. ##   2007-04-08 - Version 0.1.0
  97. ##    - Added choice to not let users vote again in a very very long time (idea from Ghost)
  98. ##   2007-04-08 - Version 0.0.9
  99. ##    - Added forgotten code in usercp_viewprofile.php (thanks Ghost)
  100. ##   2007-04-05 - Version 0.0.8
  101. ##    - Edits in prune.php
  102. ##   2007-03-28 - Version 0.0.7
  103. ##    - Took bug out viewtopic.php
  104. ##   2007-03-28 - Version 0.0.6
  105. ##    - Redirection is fixed
  106. ##    - Added choice if guest are allowed to see points
  107. ##    - Added choice if guests are allowed to give points
  108. ##   2007-03-20 - Version 0.0.5
  109. ##    - Added points in viewprofile.
  110. ##    - Replaced ACP settings, they are now on there own page.
  111. ##   2007-03-09 - Version 0.0.4
  112. ##    - Added ACP Settings.
  113. ##    - Added stuff in viewforum
  114. ##   2007-03-04 - Version 0.0.3
  115. ##    - Added gradient beam, relative to topic or post points.
  116. ##   2007-03-04 - Version 0.0.2
  117. ##    - users cant vote for the same thing twice in a week now.
  118. ##    - added more points things.
  119. ##   2007-03-01 - Version 0.0.1
  120. ##
  121. ##############################################################
  122. ## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
  123. ##############################################################



Download WasThisPostTopicHelpfull1.0.5.zip
Look in the contrib for an addon.

Translations:
Download Italian language (mod version 1.0.5) Submitted by Daniele

ACP demo:


Below a nice addon which is submitted by net83it:
here the addon to enable or disable the Helpful mod on forums
Show Was This PostTopic Helpful only on NORMAL topic
Code:
  1. #################################################################
  2. ## MOD Title: Switch for Was This Post/Topic Helpful
  3. ## MOD Author: Maione Antonio < N/A > (N/A) http://www.ioguadagno.it
  4. ## MOD Description:  This is an addon for Was This Post/Topic Helpful Mod by Wicher (http://www.wichersmods.nl).
  5. ##                   Install this addon if you want to switch on/off the Helpful Mod on forums on your board.
  6. ##                   ATTENTION: YOU HAVE TO INSTALL THE Was This Post/Topic Helpful Mod by Wicher FIRST, THEN THIS ADDON.
  7. ##                   
  8. ##                 
  9. ## 
  10. ## MOD Version: 1.0.0   
  11. ##
  12. ## Installation Level:  easy
  13. ## Installation Time:  5 minutes
  14. ##
  15. ## Files To Edit:    admin/admin_forums.php
  16. ##                   template/subsilver/admin/forum_edit_body.tpl
  17. ##                   language/lang_english/lang_admin.php
  18. ##                   language/lang_italian/lang_admin.php (only if italian language is installed on your board)
  19. ##                   viewforum.php
  20. ##                   viewtopic.php
  21. ##
  22. ## Included Files: < n/a >
  23. ##
  24. ## License:      http://opensource.org/licenses/gpl-license.php GNU General Public License v2
  25. ##
  26. ##############################################################
  27. ## For security purposes, please Mod Author for the latest version
  28. ## of this MOD.
  29. ##############################################################
  30. ## Author Notes:   
  31. ##         < n/a >
  32. ##
  33. ##############################################################
  34. ## MOD History:
  35. ##
  36. ##   2007-09-11 - Version 1.0.0
  37. ##    This addon
  38. ##
  39. ##############################################################
  40. ## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
  41. ##############################################################
  42. #
  43. #-----[ SQL ]------------------------------------------
  44. #
  45. ALTER TABLE phpbb_forums ADD forum_helpful TINYINT(1) NOT NULL DEFAULT 0;
  46. #
  47. #-----[ OPEN ]------------------------------------------
  48. #
  49. admin/admin_forums.php
  50. #
  51. #-----[ FIND ]------------------------------------------
  52. #
  53.             $forumstatus = $row['forum_status'];
  54. #
  55. #-----[ AFTER, ADD ]------------------------------------------
  56. #
  57.             $forum_helpful = $row['forum_helpful'];
  58. #
  59. #-----[ FIND ]------------------------------------------
  60. #
  61.             'S_STATUS_LIST' => $statuslist,
  62. #
  63. #-----[ AFTER, ADD ]------------------------------------------
  64. #
  65.             'L_FORUM_HELPFUL' => $lang['forum_helpful'],
  66.             'L_FORUM_HELPFUL_DESCRIPTION' => $lang['forum_helpful_description'],
  67.             'FORUM_HELPFUL' => ( $forum_helpful == 1 ) ? 'checked="checked"' : '',
  68. #
  69. #-----[ FIND ]------------------------------------------
  70. # whole line is longer
  71.          $sql = "INSERT INTO " . FORUMS_TABLE . "
  72. #
  73. #-----[ IN-LINE FIND ]------------------------------------------
  74. #
  75. , forum_status
  76. #
  77. #-----[ IN-LINE AFTER, ADD ]------------------------------------------
  78. #
  79. , forum_helpful
  80. #
  81. #-----[ FIND ]------------------------------------------
  82. # whole line is longer
  83.             VALUES ('" . $next_id . "', '" . str_replace("\'", "''", $HTTP_POST_VARS['forumname']) .
  84. #
  85. #-----[ IN-LINE FIND ]------------------------------------------
  86. #
  87. intval($HTTP_POST_VARS['forumstatus']) . ", "
  88. #
  89. #-----[ IN-LINE AFTER, ADD ]------------------------------------------
  90. #
  91.  . intval($HTTP_POST_VARS['forum_helpful']) . ", "
  92. #
  93. #-----[ FIND ]------------------------------------------
  94. # second line is longer
  95.          $sql = "UPDATE " . FORUMS_TABLE . "
  96.             SET forum_name = '" . str_replace
  97. #
  98. #-----[ IN-LINE FIND ]------------------------------------------
  99. #
  100. forum_status = " . intval($HTTP_POST_VARS['forumstatus']) . "
  101. #
  102. #-----[ IN-LINE AFTER, ADD ]------------------------------------------
  103. #
  104. , forum_helpful = " . intval($HTTP_POST_VARS['forum_helpful']) . "
  105. #
  106. #-----[ OPEN ]------------------------------------------
  107. #
  108. template/subsilver/admin/forum_edit_body.tpl
  109. #
  110. #-----[ FIND ]------------------------------------------
  111. #
  112.    <tr>
  113.      <td width="50%" class="row1">{L_FORUM_STATUS}</td>
  114.      <td class="row2"><select name="forumstatus">{S_STATUS_LIST}</select></td>
  115.    </tr>
  116. #
  117. #-----[ AFTER, ADD ]------------------------------------------
  118. #
  119.    <tr>
  120.      <td width="50%" class="row1">{L_FORUM_HELPFUL}<br />
  121.       {L_FORUM_HELPFUL_DESCRIPTION}</td>
  122.      <td class="row2"><input name="forum_helpful" type="checkbox" id="forum_helpful" value="1" {FORUM_HELPFUL} /></td>
  123.    </tr>
  124. #
  125. #-----[ OPEN ]------------------------------------------
  126. #
  127. language/lang_english/lang_admin.php
  128. #
  129. #-----[ FIND ]------------------------------------------
  130. #
  131. ?>
  132. #
  133. #-----[ BEFORE, ADD ]------------------------------------------
  134. #
  135. $lang['forum_helpful'] = 'Enable HelpFul Mod';
  136. $lang['forum_helpful_description'] = 'If enabled, users can vote topics on this forum. The HelpFul Mod has to be enabled on general board control panel.';
  137. #
  138. #-----[ OPEN ]------------------------------------------
  139. #
  140. language/lang_italian/lang_admin.php
  141. #
  142. #-----[ FIND ]------------------------------------------
  143. #
  144. ?>
  145. #
  146. #-----[ BEFORE, ADD ]------------------------------------------
  147. #
  148. $lang['forum_helpful'] = 'Attiva punteggio discussioni';
  149. $lang['forum_helpful_description'] = 'Attivando questa opzione sarĂ  possibile votare le discussioni all\'interno di questo forum. L\'Helpful Mod deve essere abilitata dalla configurazione generale della Board.';
  150. #
  151. #-----[ OPEN ]------------------------------------------
  152. #
  153. viewforum.php
  154. #
  155. #-----[ FIND ]------------------------------------------
  156. #
  157.       if ($board_config['helpful_vfp_on_off'] && $allow_view)
  158. #
  159. #-----[ IN-LINE FIND ]------------------------------------------
  160. #
  161. $allow_view
  162. #
  163. #-----[ IN-LINE AFTER, ADD ]------------------------------------------
  164. #
  165.  && $forum_row['forum_helpful'] == 1
  166. #
  167. #-----[ FIND ]------------------------------------------
  168. #
  169.       if ($board_config['helpful_vfg_on_off'] && $allow_view)
  170. #
  171. #-----[ IN-LINE FIND ]------------------------------------------
  172. #
  173. $allow_view
  174. #
  175. #-----[ IN-LINE AFTER, ADD ]------------------------------------------
  176. #
  177.  && $forum_row['forum_helpful'] == 1
  178. #
  179. #-----[ OPEN ]------------------------------------------
  180. #
  181. viewtopic.php
  182. #
  183. #-----[ FIND ]------------------------------------------
  184. # whole line is longer
  185. $sql = "SELECT t.topic_sig, t.topic_id, t.topic_title
  186. #
  187. #-----[ IN-LINE FIND ]------------------------------------------
  188. #
  189. " . $count_sql . "
  190. #
  191. #-----[ IN-LINE BEFORE, ADD ]------------------------------------------
  192. #
  193. , f.forum_helpful
  194. #
  195. #-----[ FIND ]------------------------------------------
  196. #
  197. if ($board_config['helpful_topic_on_off'] && $allow_view)
  198. #
  199. #-----[ IN-LINE FIND ]------------------------------------------
  200. #
  201. $allow_view
  202. #
  203. #-----[ IN-LINE AFTER, ADD ]------------------------------------------
  204. #
  205.  && $forum_topic_data['forum_helpful'] == 1
  206. #   
  207. #-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
  208. #
  209. # EoM

_________________

Wicher's phpBB2 Mods | Wicher's phpBB3 Mods | Statistics Mod 4.x.x


Last edited by Wicher on Sun Mar 08, 2009 5:12 pm; edited 19 times in total
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Post new topic    Reply to topic    Wicher's phpBB2 Mods Forum Index -> Wicher's phpBB Mods
Author Was This Post/Topic Helpful Replies
Display posts from previous:   
Post new topic   Reply to topic    Wicher's phpBB2 Mods Forum Index -> Wicher's phpBB Mods All times are GMT

Was this Topic Helpful?  
Points for this topic: 25
Topic gradiation: 
Page 12 of 12

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

This board is protected by Phpbbantispam
Powered by phpBB © 2001, 2005 phpBB Group

Googlepage: GooglePullerPage
IP Country Flag 2.9.4 © 2005, 2007 - 3Di (aka 3D)