mijn vraag is of deze dit eenvoudig aan te passen is zodat er een andere groep toegevoegd kan worden die niet behoeft te reageren.
de add-on ziet er oorspronkelijk zo uit.
Code: Selecteer alles
########################################################
## MOD Title: [phpBB3] Simple Hide BBcode MOD Add-on - Admins & Moderators Read Hidden Content
## MOD Author: ycl6 < ycl6@users.sourceforge.net > (Y.C. LIN) http://macphpbbmod.sourceforge.net/
## MOD Description: MOD tutorial for allowing Admins and Moderators to view hidden content without reply
## MOD Version: 0.0.1
##
## Installation Level: Easy
## Installation Time: 3 Minutes
##
## Files To Edit: 3
## posting.php
## viewtopic.php
## includes/ucp/ucp_pm_compose.php
##
## Included Files: N/A
##
## License: http://opensource.org/licenses/gpl-license.php GNU General Public License v2
#################################################################
## For security purposes, please check: http://www.phpbb.com/mods/
## for the latest version of this MOD. Although MODs are checked
## before being allowed in the MODs Database there is no guarantee
## that there are no security problems within the MOD. No support
## will be given for MODs not found within the MODs Database which
## can be found at http://www.phpbb.com/mods/
##############################################################
## Author Notes:
## Tested on phpBB 3.0.0 RC3.
##
##############################################################
## MOD History:
##
## 2007-07-28 - Version 0.0.1
## - Initial Release for BETA testing
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
#
#-----[ OPEN ]------------------------------------------
#
posting.php
#
#-----[ FIND ]------------------------------------------
#
$sql = "SELECT poster_id, topic_id
FROM " . POSTS_TABLE . "
WHERE topic_id = $topic_id
AND poster_id = " . $user->data['user_id'];
$result = $db->sql_query($sql);
$unhide = $db->sql_affectedrows($result) ? true : false;
$db->sql_freeresult($result);
#
#-----[ BEFORE, ADD ]------------------------------------------
#
// If moderator or admin, skip reply check, auto unhide
if ($auth->acl_get('m_', $forum_id))
{
$unhide = true;
}
else
{
#
#-----[ AFTER, ADD ]------------------------------------------
#
}
#
#-----[ OPEN ]------------------------------------------
#
viewtopic.php
#
#-----[ FIND ]------------------------------------------
#
$sql = "SELECT poster_id, topic_id
FROM " . POSTS_TABLE . "
WHERE topic_id = $topic_id
AND poster_id = " . $user->data['user_id'];
$result = $db->sql_query($sql);
$unhide = $db->sql_affectedrows($result) ? true : false;
$db->sql_freeresult($result);
#
#-----[ BEFORE, ADD ]------------------------------------------
#
// If moderator or admin, skip reply check, auto unhide
if ($auth->acl_get('m_', $forum_id))
{
$unhide = true;
}
else
{
#
#-----[ AFTER, ADD ]------------------------------------------
#
}
#
#-----[ OPEN ]------------------------------------------
#
includes/ucp/ucp_pm_compose.php
#
#-----[ FIND ]------------------------------------------
#
$sql = "SELECT poster_id, topic_id
FROM " . POSTS_TABLE . "
WHERE post_id = $msg_id
AND poster_id = " . $user->data['user_id'];
$result = $db->sql_query($sql);
$unhide = $db->sql_affectedrows($result) ? true : false;
$db->sql_freeresult($result);
#
#-----[ BEFORE, ADD ]------------------------------------------
#
// If moderator or admin, skip reply check, auto unhide
if ($auth->acl_get('m_', $post['forum_id']))
{
$unhide = true;
}
else
{
#
#-----[ AFTER, ADD ]------------------------------------------
#
}
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
deze mod word niet meer ondersteund dus ondersteuning van de maker is niet mogelijk.