Wicher Site Admin
Joined: 16 Dec 2005 Posts: 1144 User's local time: 2024 Sep 11 - 2:12 AM Country IP : Country of choice:
Was This Post Helpful?
Users postingpoints:
Posts points:
Post gradiation:
|
Posted: Sun Mar 04, 2007 10:59 pm Post subject: |
Wicher
*Delete this user
Items with prefix * are permanent. | Close |
|
|
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: |
- #################################################################
- ## MOD Title: Switch for Was This Post/Topic Helpful
- ## MOD Author: Maione Antonio < N/A > (N/A) http://www.ioguadagno.it
- ## MOD Description: This is an addon for Was This Post/Topic Helpful Mod by Wicher (http://www.wichersmods.nl).
- ## Install this addon if you want to switch on/off the Helpful Mod on forums on your board.
- ## ATTENTION: YOU HAVE TO INSTALL THE Was This Post/Topic Helpful Mod by Wicher FIRST, THEN THIS ADDON.
- ##
- ##
- ##
- ## MOD Version: 1.0.0
- ##
- ## Installation Level: easy
- ## Installation Time: 5 minutes
- ##
- ## Files To Edit: admin/admin_forums.php
- ## template/subsilver/admin/forum_edit_body.tpl
- ## language/lang_english/lang_admin.php
- ## language/lang_italian/lang_admin.php (only if italian language is installed on your board)
- ## viewforum.php
- ## viewtopic.php
- ##
- ## Included Files: < n/a >
- ##
- ## License: http://opensource.org/licenses/gpl-license.php GNU General Public License v2
- ##
- ##############################################################
- ## For security purposes, please Mod Author for the latest version
- ## of this MOD.
- ##############################################################
- ## Author Notes:
- ## < n/a >
- ##
- ##############################################################
- ## MOD History:
- ##
- ## 2007-09-11 - Version 1.0.0
- ## This addon
- ##
- ##############################################################
- ## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
- ##############################################################
-
- #
- #-----[ SQL ]------------------------------------------
- #
- ALTER TABLE phpbb_forums ADD forum_helpful TINYINT(1) NOT NULL DEFAULT 0;
- #
- #-----[ OPEN ]------------------------------------------
- #
- admin/admin_forums.php
- #
- #-----[ FIND ]------------------------------------------
- #
- $forumstatus = $row['forum_status'];
- #
- #-----[ AFTER, ADD ]------------------------------------------
- #
- $forum_helpful = $row['forum_helpful'];
- #
- #-----[ FIND ]------------------------------------------
- #
- 'S_STATUS_LIST' => $statuslist,
- #
- #-----[ AFTER, ADD ]------------------------------------------
- #
- 'L_FORUM_HELPFUL' => $lang['forum_helpful'],
- 'L_FORUM_HELPFUL_DESCRIPTION' => $lang['forum_helpful_description'],
- 'FORUM_HELPFUL' => ( $forum_helpful == 1 ) ? 'checked="checked"' : '',
- #
- #-----[ FIND ]------------------------------------------
- # whole line is longer
- $sql = "INSERT INTO " . FORUMS_TABLE . "
- #
- #-----[ IN-LINE FIND ]------------------------------------------
- #
- , forum_status
- #
- #-----[ IN-LINE AFTER, ADD ]------------------------------------------
- #
- , forum_helpful
- #
- #-----[ FIND ]------------------------------------------
- # whole line is longer
- VALUES ('" . $next_id . "', '" . str_replace("\'", "''", $HTTP_POST_VARS['forumname']) .
- #
- #-----[ IN-LINE FIND ]------------------------------------------
- #
- intval($HTTP_POST_VARS['forumstatus']) . ", "
- #
- #-----[ IN-LINE AFTER, ADD ]------------------------------------------
- #
- . intval($HTTP_POST_VARS['forum_helpful']) . ", "
- #
- #-----[ FIND ]------------------------------------------
- # second line is longer
- $sql = "UPDATE " . FORUMS_TABLE . "
- SET forum_name = '" . str_replace
- #
- #-----[ IN-LINE FIND ]------------------------------------------
- #
- forum_status = " . intval($HTTP_POST_VARS['forumstatus']) . "
- #
- #-----[ IN-LINE AFTER, ADD ]------------------------------------------
- #
- , forum_helpful = " . intval($HTTP_POST_VARS['forum_helpful']) . "
- #
- #-----[ OPEN ]------------------------------------------
- #
- template/subsilver/admin/forum_edit_body.tpl
- #
- #-----[ FIND ]------------------------------------------
- #
- <tr>
- <td width="50%" class="row1">{L_FORUM_STATUS}</td>
- <td class="row2"><select name="forumstatus">{S_STATUS_LIST}</select></td>
- </tr>
- #
- #-----[ AFTER, ADD ]------------------------------------------
- #
- <tr>
- <td width="50%" class="row1">{L_FORUM_HELPFUL}<br />
- {L_FORUM_HELPFUL_DESCRIPTION}</td>
- <td class="row2"><input name="forum_helpful" type="checkbox" id="forum_helpful" value="1" {FORUM_HELPFUL} /></td>
- </tr>
- #
- #-----[ OPEN ]------------------------------------------
- #
- language/lang_english/lang_admin.php
- #
- #-----[ FIND ]------------------------------------------
- #
- ?>
- #
- #-----[ BEFORE, ADD ]------------------------------------------
- #
- $lang['forum_helpful'] = 'Enable HelpFul Mod';
- $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.';
- #
- #-----[ OPEN ]------------------------------------------
- #
- language/lang_italian/lang_admin.php
- #
- #-----[ FIND ]------------------------------------------
- #
- ?>
- #
- #-----[ BEFORE, ADD ]------------------------------------------
- #
- $lang['forum_helpful'] = 'Attiva punteggio discussioni';
- $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.';
- #
- #-----[ OPEN ]------------------------------------------
- #
- viewforum.php
- #
- #-----[ FIND ]------------------------------------------
- #
- if ($board_config['helpful_vfp_on_off'] && $allow_view)
- #
- #-----[ IN-LINE FIND ]------------------------------------------
- #
- $allow_view
- #
- #-----[ IN-LINE AFTER, ADD ]------------------------------------------
- #
- && $forum_row['forum_helpful'] == 1
- #
- #-----[ FIND ]------------------------------------------
- #
- if ($board_config['helpful_vfg_on_off'] && $allow_view)
- #
- #-----[ IN-LINE FIND ]------------------------------------------
- #
- $allow_view
- #
- #-----[ IN-LINE AFTER, ADD ]------------------------------------------
- #
- && $forum_row['forum_helpful'] == 1
- #
- #-----[ OPEN ]------------------------------------------
- #
- viewtopic.php
- #
- #-----[ FIND ]------------------------------------------
- # whole line is longer
- $sql = "SELECT t.topic_sig, t.topic_id, t.topic_title
- #
- #-----[ IN-LINE FIND ]------------------------------------------
- #
- " . $count_sql . "
- #
- #-----[ IN-LINE BEFORE, ADD ]------------------------------------------
- #
- , f.forum_helpful
- #
- #-----[ FIND ]------------------------------------------
- #
- if ($board_config['helpful_topic_on_off'] && $allow_view)
- #
- #-----[ IN-LINE FIND ]------------------------------------------
- #
- $allow_view
- #
- #-----[ IN-LINE AFTER, ADD ]------------------------------------------
- #
- && $forum_topic_data['forum_helpful'] == 1
- #
- #-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
- #
- # 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 |
|