Code: Select all
'WROTE' => 'wrote',
'MESSAGE_UNHIDE' => 'HIDE: OFF',
'MESSAGE_HIDDEN' => 'HIDE: ON',
'MESSAGE_HIDDEN_DESCRIPTION' => 'You need to reply to this topic before you can view the hidden message',
));
?>
~Mac## 2007-07-18 - Version 0.2.3
## - Fix a bug that cause hidden content to display during PM (davejo90)
## - Added MOD changes for efusion template
Code: Select all
[phpBB Debug] PHP Notice: in file /includes/functions_posting.php on line 1012: Undefined variable: unhide
[phpBB Debug] PHP Notice: in file /includes/functions_posting.php on line 1012: Undefined variable: unhide
but I don't want that.ycl6 wrote:rohithathie, don't forgot to apply changes for your template files. Also Admins and Moderators can see hidden messages be default.
~Mac
Code: Select all
// If moderator or admin, skip reply check, auto unhide
if ($auth->acl_get('m_', $forum_id))
{
$unhide = true;
}
else
{
... some sql commands ...
}
Code: Select all
... some sql commands ...
Code: Select all
##############################################################
## Author Notes:
## Tested on phpBB 3.0.0 RC3.
## Template changes can be found in the "templates" folder, supported templates includes:
I think you didn't edit one or some of the files required. Please double check it.igorj wrote:I get this error on post reply page:
Code: Select all
[phpBB Debug] PHP Notice: in file /includes/functions_posting.php on line 1012: Undefined variable: unhide [phpBB Debug] PHP Notice: in file /includes/functions_posting.php on line 1012: Undefined variable: unhide
Code: Select all
## Files To Edit: 9
## posting.php
## viewtopic.php
## includes/bbcode.php
## includes/constants.php
## includes/functions_posting.php
## includes/message_parser.php
## includes/ucp/ucp_pm_compose.php
## language/en/posting.php
## language/en/viewtopic.php
This is still don't working :Sycl6 wrote:rohithathie,Change it toCode: Select all
// If moderator or admin, skip reply check, auto unhide if ($auth->acl_get('m_', $forum_id)) { $unhide = true; } else { ... some sql commands ... }
THAT WORKED THANXXCode: Select all
... some sql commands ...
For the display you want, edit the template changes!~MacCode: Select all
############################################################## ## Author Notes: ## Tested on phpBB 3.0.0 RC3. ## Template changes can be found in the "templates" folder, supported templates includes:
Code: Select all
<!-- BEGIN unhide_open --><dl class="hidebox"><dt class="unhide">{L_MESSAGE_UNHIDE}</dt><dd><!-- END unhide_open -->
<!-- BEGIN unhide_close --></dd></dl><!-- END unhide_close -->
<!-- BEGIN hide --><dl class="hidebox">Verborgen Bericht:<dt class="hide">{L_MESSAGE_HIDDEN}</dt>
<dd>{L_MESSAGE_HIDDEN_DESCRIPTION}</dd></dl><!-- END hide -->
Code: Select all
[phpBB Debug] PHP Notice: in file /includes/functions_posting.php on line 1012: Undefined variable: unhide
[phpBB Debug] PHP Notice: in file /includes/functions_posting.php on line 1012: Undefined variable: unhide
Code: Select all
[phpBB Debug] PHP Notice: in file /includes/functions_posting.php on line 1012: Undefined variable: unhide
Code: Select all
if ($show_quote_button && $auth->acl_get('f_reply', $forum_id))
{
$decoded_message = $message;
$uid = $row['bbcode_uid'];
if ($unhide == true)
{
$decoded_message = preg_replace("#\[hide:$uid\](.*?)\[/hide:$uid\]#ise", "'\\1'", $decoded_message);
}
else
{